/* Hashar browser demo: Karim aka's phone, Dilnoza's phone, the race card and the "O'zingiz sinab ko'ring" box. The
   phone frame and the chat are in phone.css, the app in webapp/app.css. */
:root { --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --sun: #e0a93a; --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: #eef3ea; font: 15px/1.45 var(--font);
  background: radial-gradient(90% 60% at 8% 0%, #256b50 0%, transparent 60%), radial-gradient(70% 50% at 96% 30%, #5b4118 0%, transparent 55%), #0f211a;
}
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(10, 26, 19, .93); 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 19px var(--serif); }
.demo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #fff; color: #1f5d45; }
.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: #cfdccb; }
.demo-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(224, 169, 58, .25); }
.demo-date { font-size: 13px; color: #cfdccb; 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.500px; 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: #bccdb9; }
.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: #eef3ea; border-radius: 999px; padding: 7px 14px 7px 8px; font-weight: 600; font-size: 13.500px; 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: #a3b5a0; } .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(224, 169, 58, .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: #2b2a1c; background: color-mix(in srgb, #e0a93a 14%, #10231b); border: 1px solid rgba(224, 169, 58, .4); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); color: #f8ecca; text-align: center; font-size: 14.500px; 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: #f7f2e7; color: #1c2b23; 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 #e3dccb; border-radius: 12px; padding: 8px 12px; background: #fff; transition: border-color .3s, background-color .3s; }
.race-col.won { border-color: #1f7d55; background: #effaf2; } .race-col.lost { border-color: #e0a93a; background: #fffaf0; }
.race-col b { font-size: 15px; } .race-col ol { margin: 4px 0 0; padding-left: 18px; font-size: 13.500px; display: grid; gap: 2px; }
.race-col li.ok { color: #175a3c; 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 34px; 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: #a3b5a0; }
.pane.app.g-root { height: auto; }
.pane.app .g-toasts { bottom: 86px; }
.g-app .pressing { outline: 3px solid rgba(224, 169, 58, .95); outline-offset: 2px; }
.try { flex: 0 1 480px; align-self: center; justify-items: stretch; }
.try-card { width: 100%; background: #f7f2e7; color: #1c2b23; 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: #5f6f64; font-size: 14px; }
.try-strip { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: #fffdf7; border: 1px solid #e3dccb; }
.try-need { display: flex; align-items: center; gap: 10px; } .try-need b { flex: 0 0 84px; font-size: 14px; } .try-need span { margin-left: auto; font-weight: 700; color: #1f5d45; font-variant-numeric: tabular-nums; }
.try-sq { display: flex; gap: 4px; flex-wrap: wrap; } .try-sq i { width: 20px; height: 20px; border-radius: 6px; background: #ebe4d3; box-shadow: inset 0 0 0 1px #d9d0ba; transition: background-color .3s; }
.try-sq i.on { background: #2f7d5c; box-shadow: none; } .try-sq i.a { background: #2f66c4; box-shadow: none; } .try-sq i.b { background: #c2603a; box-shadow: none; } .try-sq i.c { background: #8a4fb5; box-shadow: none; }
.try-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.try-phone { background: #fff; border: 2px solid #e3dccb; 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 #c2603a; }
.try-phone.won { border-color: #1f7d55; } .try-phone.lost { border-color: #e0a93a; }
.try-phone small { color: #6a7566; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .4px; }
.try-book { margin-top: 8px; border: 0; border-radius: 12px; background: #1f5d45; color: #fff; padding: 11px; font-weight: 650; font-size: 15px; }
.try-book:disabled { background: #c9c3b6; cursor: default; }
.try-res { min-height: 64px; font-size: 13px; color: #414d44; } .try-res p { margin: 6px 0 2px; font-weight: 650; } .try-res .ok { color: #175a3c; } .try-res .no { color: #9a4a12; }
.try-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.try-btn { border: 1.500px solid #1f5d45; background: #fff; color: #1f5d45; border-radius: 12px; padding: 10px 16px; font-weight: 650; font-size: 14.500px; flex: 1 1 auto; }
.try-btn.solid { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); } .try-btn.ghost { border-color: #cfd6c8; color: #5f6f64; flex: 0 0 auto; } .try-btn:disabled { opacity: .45; cursor: default; }
.try-count { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; font-size: 14px; } .try-fifty { margin: 0; font-size: 14px; color: #175a3c; font-weight: 600; }
.demo-foot { text-align: center; color: #a3b5a0; font-size: 12.500px; padding: 0 20px 34px; max-width: 980px; margin: 0 auto; }
@media (max-width: 1340px) { .try { flex: 1 1 100%; max-width: 760px; } }
@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 */
  .demo-bar { position: static; padding: 8px 12px; gap: 8px; order: -3; }
  .demo-badge { display: none; }
  .demo-tools { margin-left: 0; width: 100%; gap: 6px; }
  .demo-btn { padding: 5px 9px; font-size: 12.500px; }
  .demo-intro { padding: 14px 16px 0; order: -2; } .demo-intro h1 { font-size: 23px; } .demo-intro p { font-size: 14px; }
  .demo-foot { order: -1; padding: 8px 16px 0; font-size: 12px; text-align: left; max-width: none; margin: 0; }
  .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.500px; padding: 6px 10px 6px 6px; }
  .story-live { top: 0; padding: 8px 0 0; gap: 6px; background: #0a1a13; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .7); }
  .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.500px; } .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); background: #0a1a13; }
  .who-switch button { border: 0; background: transparent; padding: 8px 4px; border-radius: 9px; font-weight: 700; color: #a3b5a0; font-size: 13px; }
  .who-switch button.on { background: var(--sun); color: var(--sun-ink); }
  .demo-stage { display: block; padding: 0; }
  .side { display: none; min-width: 0; max-width: 100vw; } .side.show { display: grid; } .side-label { display: none; }
  .try { padding: 12px 12px 24px; max-width: none; } .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(224, 169, 58, .9); }
  .phone::before, .phone::after, .phone-island, .phone-status, .phone-homebar { display: none; }
  .phone-screen { border-radius: 0; }
  .tg-input { padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .push, .msg.new, .race, .race-col li { transition: none; animation: none; } }
