/* Mehmonxona Bron browser demo: Dilshod's phone, Aziza's window with the reception's panel, the race card and the
   "O'zingiz sinab ko'ring" box. The phone frame and the chat are in phone.css, the apps in webapp/app.css and
   admin/admin.css. */
:root { --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --sun: #d9a441; --sun-ink: #2a1a00; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden; color: #edf1fa; font: 15px/1.45 var(--font);
  background: radial-gradient(90% 60% at 8% 0%, #1d4a7a 0%, transparent 60%), radial-gradient(70% 50% at 96% 30%, #0f4f55 0%, transparent 55%), #0a1730;
}
button { cursor: pointer; font-family: inherit; }
.demo-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 20px; background: rgba(8, 18, 40, .92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.demo-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 18px var(--serif); }
.demo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #1f9fb0; }
.demo-mark svg { width: 24px; height: 24px; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: #c9d3ea; }
.demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(217, 164, 65, .25); }
.demo-date { font-size: 13px; color: #c9d3ea; font-variant-numeric: tabular-nums; }
.demo-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.demo-btn { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; border-radius: 10px; padding: 6px 12px; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.demo-btn.solid { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.demo-btn:hover { background: rgba(255, 255, 255, .08); } .demo-btn.solid:hover { filter: brightness(1.05); background: var(--sun); }
.demo-btn:disabled { opacity: .5; cursor: default; }
.demo-intro { max-width: 980px; margin: 0 auto; padding: 22px 24px 4px; display: grid; gap: 6px; text-align: center; }
.demo-intro h1 { margin: 0; font: 600 32px/1.15 var(--serif); letter-spacing: -.01em; }
.demo-intro p { margin: 0 auto; max-width: 820px; color: #b7c2dc; }
.story { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 14px 16px 0; max-width: 1400px; margin: 0 auto; }
.story-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #edf1fa; border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 13.5px; text-align: left; }
.story-btn b { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: 12px; }
.story-btn.done { color: #9aa8c8; } .story-btn.done b { background: var(--sun); color: var(--sun-ink); border-color: var(--sun); }
.story-btn.next, .story-btn.now { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(217, 164, 65, .18); }
.story-btn:disabled { opacity: .6; cursor: default; }
.story-live { position: sticky; top: 53px; z-index: 35; padding: 12px 16px 0; display: grid; gap: 8px; pointer-events: none; }
.story-live > * { pointer-events: auto; }
.story-cap { width: 100%; max-width: 940px; margin: 0 auto; padding: 10px 16px; border-radius: 12px; background: #2a2a2c; background: color-mix(in srgb, #d9a441 14%, #0c1a33); border: 1px solid rgba(217, 164, 65, .4); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); color: #f7e9c8; text-align: center; font-size: 14.5px; min-height: 44px; }

.race { width: 100%; max-width: 940px; margin: 0 auto; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); padding: 12px 16px 14px; border-radius: 14px; background: #f8f5ec; color: #14233f; display: grid; gap: 8px; animation: race-in .3s; }
.race[hidden] { display: none; }
.race h3 { margin: 0; font: 600 16px var(--serif); text-align: center; }
.race-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.race-col { border: 2px solid #e2dccb; border-radius: 12px; padding: 8px 12px; background: #fff; transition: border-color .3s, background-color .3s; }
.race-col.won { border-color: #1c8f62; background: #effaf4; } .race-col.lost { border-color: #d9a441; background: #fffaf0; }
.race-col b { font-size: 15px; } .race-col ol { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; display: grid; gap: 2px; }
.race-col li.ok { color: #12603f; font-weight: 650; } .race-col li.no { color: #9a4a12; font-weight: 650; } .race-col li { animation: race-in .3s; }
@keyframes race-in { from { opacity: 0; transform: translateY(6px); } }

.who-switch { display: none; }
.demo-stage { display: flex; justify-content: center; align-items: flex-start; flex-wrap: wrap; gap: 26px 28px; padding: 20px 18px 40px; max-width: 1560px; margin: 0 auto; }
.side { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.side-label { display: flex; align-items: baseline; gap: 8px; font-size: 15px; } .side-label b { font: 600 19px var(--serif); } .side-label span { color: #9aa8c8; }
.pane.app.g-root, .win-body.g-root { height: auto; }
.pane.app .g-toasts { bottom: 86px; }
.g-app .pressing, .a-app .pressing { outline: 3px solid rgba(217, 164, 65, .95); outline-offset: 2px; }

.side-win { flex: 1 1 760px; max-width: 1100px; justify-items: stretch; }
.side-win .side-label { justify-content: center; }
.win-row { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.win { flex: 1; min-width: 0; height: max(620px, min(780px, calc(100dvh - 215px))); display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: #eef1f6; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 50px 90px -35px rgba(0, 0, 0, .8); transition: box-shadow .3s; }
.win.ring { box-shadow: 0 0 0 4px rgba(217, 164, 65, .7), 0 50px 90px -35px rgba(0, 0, 0, .8); }
.win-bar { flex: none; display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #dfe3ea; }
.win-dots { display: flex; gap: 6px; } .win-dots i { width: 11px; height: 11px; border-radius: 50%; background: #f26b5e; } .win-dots i:nth-child(2) { background: #f5bd4f; } .win-dots i:nth-child(3) { background: #5fc454; }
.win-url { flex: 1; max-width: 360px; margin: 0 auto; background: #fff; border-radius: 8px; padding: 4px 12px; font-size: 12.5px; color: #5c6473; text-align: center; }
.win-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.win-notes { flex: 0 0 250px; display: flex; flex-direction: column; gap: 8px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px; max-height: max(620px, min(780px, calc(100dvh - 215px))); overflow: hidden; }
.win-notes.empty { display: none; }
.win-notes-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d3ea; } .win-notes-head .tg-ava { width: 28px; height: 28px; } .win-notes-head .tg-ava svg { width: 17px; height: 17px; }
.win-notes-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; scrollbar-width: none; } .win-notes-list .msg { max-width: 100%; } .win-notes-list .bubble { font-size: 12.5px; }

.try { flex: 1 1 100%; justify-items: center; }
.try-card { width: 100%; max-width: 940px; background: #f8f5ec; color: #14233f; border-radius: 20px; padding: 20px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); display: grid; gap: 12px; }
.try-card h2 { margin: 0; font: 600 22px var(--serif); } .try-lead { margin: 0; color: #5d6470; font-size: 14px; }
.try-strip { display: grid; gap: 4px; } .try-strip small { color: #6a7285; font-size: 12px; }
.try-nights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.try-night { border-radius: 10px; padding: 7px 10px; background: #e9eef2; display: flex; flex-direction: column; line-height: 1.25; transition: background-color .3s; }
.try-night b { font-size: 13.5px; } .try-night span { font-size: 12px; color: #5d6470; }
.try-night.a { background: #2f66c4; color: #fff; } .try-night.b { background: #1c8f62; color: #fff; } .try-night.c { background: #8a4fb5; color: #fff; }
.try-night.a span, .try-night.b span, .try-night.c span { color: rgba(255, 255, 255, .85); }
.try-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.try-phone { background: #fff; border: 2px solid #e2dccb; border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; transition: border-color .3s; }
.try-phone.a { border-top: 5px solid #2f66c4; } .try-phone.b { border-top: 5px solid #1c8f62; }
.try-phone.won { border-color: #1c8f62; } .try-phone.lost { border-color: #d9a441; }
.try-phone small { color: #6a7285; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; } .try-phone > span { font-size: 13px; color: #5d6470; }
.try-book { margin-top: 8px; border: 0; border-radius: 12px; background: #1d3f7a; color: #fff; padding: 11px; font-weight: 650; font-size: 15px; }
.try-book:disabled { background: #c9c3b6; cursor: default; }
.try-res { min-height: 54px; font-size: 13px; } .try-res p { margin: 6px 0 2px; font-weight: 650; } .try-res .ok { color: #12603f; } .try-res .no { color: #9a4a12; }
.try-res ul { margin: 0; padding-left: 16px; color: #414a5c; display: grid; gap: 1px; }
.try-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.try-btn { border: 1.5px solid #1d3f7a; background: #fff; color: #1d3f7a; border-radius: 12px; padding: 10px 16px; font-weight: 650; font-size: 14.5px; }
.try-btn.solid { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); flex: 1 1 220px; } .try-btn.ghost { border-color: #cfd6e4; color: #5d6470; margin-left: auto; }
.try-count { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; } .try-fifty { margin: 0; font-size: 14px; color: #12603f; font-weight: 600; }
.demo-foot { text-align: center; color: #9aa8c8; font-size: 12.5px; padding: 0 20px 34px; max-width: 980px; margin: 0 auto; }

@media (max-width: 1280px) { .win-row { flex-direction: column; } .win { width: 100%; flex: none; } .win-notes { flex: none; width: 100%; max-height: 190px; } .win-notes-list { flex-direction: row; overflow-x: auto; } .win-notes-list .msg { flex: 0 0 250px; } }
@media (max-width: 900px) {
  .demo-bar { position: static; padding: 8px 12px; gap: 8px; }
  .demo-badge { display: none; }
  .demo-tools { margin-left: 0; width: 100%; gap: 6px; }
  .demo-btn { padding: 5px 9px; font-size: 12.5px; }
  .demo-intro { padding: 14px 16px 0; } .demo-intro h1 { font-size: 23px; } .demo-intro p { font-size: 14px; }
  .story { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding: 10px 12px 2px; gap: 6px; }
  .story::-webkit-scrollbar { display: none; }
  .story-btn { flex: none; font-size: 12.5px; padding: 6px 10px 6px 6px; }
  .story-live { top: 0; padding: 8px 0 0; gap: 6px; background: rgba(8, 18, 40, .96); }
  .story-cap, .race { margin: 0 10px; width: auto; font-size: 13px; text-align: left; padding: 8px 12px; min-height: 0; } .race-col ol { font-size: 12.5px; } .race-col { padding: 6px 8px; }
  .who-switch { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; padding: 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .who-switch button { border: 0; background: transparent; padding: 8px 4px; border-radius: 9px; font-weight: 700; color: #9aa8c8; font-size: 13px; }
  .who-switch button.on { background: var(--sun); color: var(--sun-ink); }
  .demo-stage { display: block; padding: 0; }
  .side { display: none; } .side.show { display: grid; } .side-label { display: none; }
  .try { padding: 12px 12px 24px; } .try-card { padding: 16px 14px; } .try-phones { gap: 8px; } .try-phone { padding: 10px; }
  .phone { height: calc(100dvh - var(--live-h, 150px) - 4px); min-height: 440px; width: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .phone.ring { box-shadow: inset 0 0 0 3px rgba(217, 164, 65, .9); }
  .phone::before, .phone::after, .phone-island, .phone-status, .phone-homebar { display: none; }
  .phone-screen { border-radius: 0; }
  .tg-input { padding-bottom: 10px; }
  .pane.app .g-tabs { padding-bottom: 0; }
  .win-row { gap: 0; flex-direction: column; } .win { height: calc(100dvh - var(--live-h, 150px) - 4px); min-height: 440px; border-radius: 0; box-shadow: none; } .win-bar { display: none; }
  .win-notes { border-radius: 0; border: 0; max-height: 150px; }
}
@media (prefers-reduced-motion: reduce) { .push, .msg.new, .race, .race-col li { transition: none; animation: none; } }
/* Narrow screens: the caption and the tabs are a solid header, and nothing below the active frame makes the page
   scroll further, so the frame's top never slides under them. */
@media (max-width: 900px) {
  body { display: flex; flex-direction: column; }
  body > * { width: 100%; min-width: 0; max-width: 100%; margin-left: 0; margin-right: 0; flex: none; } /* auto margins would shrink a flex item to its content */ .side, .win-row, .win { min-width: 0; max-width: 100vw; }
  .demo-foot { order: -1; padding: 8px 16px 0; font-size: 12px; text-align: left; max-width: none; margin: 0; }
  .demo-bar { order: -3; } .demo-intro { order: -2; }
  .story-live { background: #081228; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .7); }
  .who-switch { background: #081228; }
  .win-row { height: calc(100dvh - var(--live-h, 150px) - 4px); min-height: 440px; }
  .win { flex: 1 1 auto; height: auto; min-height: 0; }
  .win-notes { flex: none; max-height: 112px; padding: 6px 8px; }
}
