/* Dear, Klairs LIVE — one deliberate look (a sunset pier with Klairs-blue signage); panels are white cards like the pop-up's POP stands. */
:root {
  color-scheme: light;
  --blue: #3b78e7; --blue-d: #2457c5; --sky: #8cbcf2; --navy: #14234d; --ink: #18213a; --mute: #5b6680; --paper: #ffffff; --wash: #eef4fd;
  --line: #d6e2f5; --gold: #ffcf6e; --ok: #1f9d6b; --warn: #c2410c;
  --f: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif; --hand: 'Patrick Hand', 'Comic Sans MS', cursive;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: #1b2a52; color: var(--ink); font-family: var(--f); overflow: hidden; -webkit-tap-highlight-color: transparent; }
#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font: inherit; color: inherit; cursor: pointer; }

.load { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: linear-gradient(180deg, #2457c5, #8cbcf2 70%, #ffd8b0); transition: opacity .6s; }
.load.done { opacity: 0; pointer-events: none; }
.lk { text-align: center; color: #fff; display: grid; gap: 10px; padding: 0 24px; }
.lk b { font-size: 46px; font-weight: 800; letter-spacing: -1px; } .lk b span { font-size: 64px; }
.lk small { font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: 13px; }
.lk i { display: block; width: 240px; max-width: 70vw; height: 4px; border-radius: 4px; background: rgba(255,255,255,.35); margin: 8px auto 0; overflow: hidden; }
.lk em { display: block; height: 100%; width: 0; background: #fff; transition: width .3s; }
.lk p { margin: 0; font-size: 14px; opacity: .9; }

.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, rgba(20,35,77,.55), rgba(20,35,77,0)); color: #fff; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -.3px; } .brand b span { font-size: 24px; }
.live { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .14em; background: #e5484d; color: #fff; padding: 3px 7px 2px; border-radius: 4px; position: relative; top: -3px; }
.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; margin-right: 5px; vertical-align: 1px; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.src { font-size: 12px; opacity: .9; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; gap: 8px; align-items: center; }
.chip { white-space: nowrap; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.14); backdrop-filter: blur(6px); color: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
.chip b { background: #fff; color: var(--blue-d); border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 12px; }
.time i { font-style: normal; margin-right: 3px; }
.where { position: fixed; z-index: 9; left: max(14px, env(safe-area-inset-left, 0px)); top: calc(50px + env(safe-area-inset-top, 0px)); color: #fff; font-size: 12.5px; font-weight: 600; background: rgba(20,35,77,.55); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 999px; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.near { position: fixed; z-index: 11; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom, 0px)); border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14.5px; box-shadow: 0 10px 30px rgba(20,35,77,.35); max-width: calc(100vw - 40px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .25s ease-out; }
.near span { color: #fff; background: var(--blue); border-radius: 999px; padding: 2px 9px; margin-right: 6px; font-size: 12px; }
.near kbd { font: 700 11px var(--f); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-left: 6px; color: var(--mute); }
@keyframes rise { from { transform: translate(-50%, 8px); opacity: 0; } }
.bag.pulse { animation: pulse .6s ease-out; } @keyframes pulse { 40% { transform: scale(1.18); background: rgba(255,255,255,.4); } }
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stamp { border: 2px dashed var(--line); background: #fff; border-radius: 14px; padding: 10px 6px; display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--mute); }
.stamp b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--wash); color: var(--mute); font-size: 18px; }
.stamp.on { border: 2px solid var(--blue); color: var(--ink); } .stamp.on b { background: var(--blue); color: #fff; transform: rotate(-8deg); }
.rail button span b { font-weight: 800; }
.here { font-size: 12px; font-weight: 600; background: rgba(31,157,107,.9); border-radius: 999px; padding: 6px 11px; }

.hint { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); top: calc(84px + env(safe-area-inset-top, 0px)); background: rgba(20,35,77,.72); color: #fff; font-size: 13px; padding: 7px 14px; border-radius: 999px; transition: opacity .8s; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.hint.off { opacity: 0; pointer-events: none; }
.say { position: fixed; z-index: 9; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); max-width: min(560px, calc(100vw - 32px)); background: rgba(255,255,255,.96); color: var(--ink); border-radius: 14px; padding: 10px 16px; font-size: 14px; line-height: 1.45; box-shadow: 0 8px 30px rgba(20,35,77,.25); text-align: center; }
.say b { color: var(--blue-d); }
.say .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 8px; }
.say .acts button, .say .acts a { border: 0; background: var(--blue); color: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; text-decoration: none; }
.say .acts .ghost { background: var(--wash); color: var(--blue-d); }
.banner { position: fixed; z-index: 11; left: 50%; top: 22%; transform: translate(-50%, -50%); color: #fff; font-weight: 900; font-size: clamp(28px, 7vw, 64px); letter-spacing: -1px; text-align: center; text-shadow: 0 4px 30px rgba(36,87,197,.9); pointer-events: none; line-height: 1.05; }
.banner small { display: block; font-size: .32em; font-weight: 600; letter-spacing: .25em; text-transform: uppercase; margin-top: 8px; }

.dock { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 4px; padding: 6px; background: rgba(255,255,255,.94); border-radius: 18px; box-shadow: 0 10px 34px rgba(20,35,77,.28); max-width: calc(100vw - 24px); overflow-x: auto; scrollbar-width: none; }
.dock button { border: 0; background: transparent; border-radius: 13px; padding: 6px 10px; display: grid; justify-items: center; gap: 1px; min-width: 64px; color: var(--ink); }
.dock button i { font-style: normal; font-weight: 800; font-size: 15px; color: var(--blue-d); height: 20px; }
.dock button span { font-size: 11px; font-weight: 600; white-space: nowrap; }
.dock button:hover, .dock button.on { background: var(--wash); }
.rail { position: fixed; z-index: 10; right: max(12px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.rail button { width: 58px; border: 0; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 6px 20px rgba(20,35,77,.22); padding: 8px 4px; display: grid; justify-items: center; gap: 2px; }
.rail button i { font-style: normal; font-size: 18px; } .rail button span { font-size: 10.5px; font-weight: 600; }
.rail button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.sheet { position: fixed; z-index: 30; right: max(12px, env(safe-area-inset-right, 0px)); top: calc(62px + env(safe-area-inset-top, 0px)); bottom: calc(90px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 24px)); background: var(--paper); border-radius: 20px; box-shadow: 0 20px 60px rgba(20,35,77,.35); display: flex; flex-direction: column; overflow: hidden; }
.shbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f3f8ff, #fff); }
.shbar h2 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -.3px; flex: 1; min-width: 0; text-wrap: balance; }
.x { border: 0; background: var(--wash); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; line-height: 1; color: var(--blue-d); flex: none; }
.shin { overflow-y: auto; padding: 14px 16px 18px; display: grid; gap: 14px; align-content: start; font-size: 14.5px; line-height: 1.5; }
.shin p { margin: 0; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-d); }
.lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lines li { background: var(--wash); border-radius: 10px; padding: 8px 12px; font-weight: 600; }
.lines li.big { font-size: 22px; font-weight: 800; background: transparent; padding: 0; letter-spacing: -.4px; line-height: 1.15; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--blue); color: #fff; text-decoration: none; border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; font-size: 14.5px; }
.cta.ghost { background: var(--wash); color: var(--blue-d); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.film { position: relative; border-radius: 14px; overflow: hidden; background: #0d1530; }
.film video { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: #0d1530; }
.film.v video { aspect-ratio: 9 / 16; width: auto; height: min(52vh, 560px); margin: 0 auto; }
.film figcaption { position: absolute; left: 10px; bottom: 8px; color: #fff; font-size: 12px; background: rgba(0,0,0,.45); border-radius: 6px; padding: 2px 7px; }
.note { font-size: 12.5px; color: var(--mute); }
.count { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 26px; color: var(--blue-d); letter-spacing: -.5px; }
.prod { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.prod img { width: 120px; height: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.prod h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.25; }
.price { font-size: 22px; font-weight: 800; color: var(--ink); }
.price small { font-size: 12px; font-weight: 600; color: var(--mute); margin-left: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 6px; display: grid; gap: 4px; text-align: center; font-size: 11.5px; font-weight: 600; line-height: 1.25; }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #f6f8fc; }
.tile.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.tile .p { color: var(--blue-d); font-weight: 800; }
.steps { display: grid; gap: 12px; }
.step h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-d); }
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.total b { font-size: 24px; }
.bagl { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bagl li { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 10px; align-items: center; font-size: 13.5px; }
.bagl img { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fff; }
.bagl button { border: 0; background: var(--wash); border-radius: 8px; width: 28px; height: 28px; }
.setl { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.setl button { width: 100%; text-align: left; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.setl button:hover, .setl button.on { background: var(--wash); }
.setl img { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; background: #0d1530; }
.setl .g { font-size: 11px; color: var(--mute); }
.setl h5 { margin: 6px 0 2px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-d); }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--navy); padding: 10px; border-radius: 14px; }
.reels div { background: #fff; border-radius: 10px; height: 96px; overflow: hidden; position: relative; }
.reels img { width: 100%; height: 96px; object-fit: contain; display: block; }
.scratch { position: relative; border-radius: 14px; overflow: hidden; height: 150px; background: linear-gradient(135deg, #e9f1ff, #fff); display: grid; place-items: center; text-align: center; padding: 14px; font-weight: 700; }
.scratch canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.coupons { display: grid; gap: 8px; }
.coupon { display: grid; grid-template-columns: 80px 1fr; border: 2px dashed var(--blue); border-radius: 12px; overflow: hidden; transition: transform .4s, opacity .4s; background: #fff; }
.coupon b { background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 18px; font-weight: 900; }
.coupon span { padding: 8px 12px; font-size: 13px; } .coupon span strong { display: block; font-size: 15px; }
.coupon.torn { transform: translateX(16px) rotate(2deg); opacity: .55; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; align-content: start; }
.card h3 { margin: 0; font-size: 16px; }
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.looks button { border: 1px solid var(--line); background: #f5f9ff; border-radius: 12px; padding: 4px 4px 6px; display: grid; gap: 2px; font-size: 11.5px; font-weight: 600; }
.looks button.on { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.looks img { width: 100%; aspect-ratio: 5 / 6; object-fit: contain; }
.lanterns { display: flex; flex-wrap: wrap; gap: 6px; }
.lanterns button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; }
.lanterns button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.list a { color: var(--blue-d); font-weight: 600; }
.list h4 { margin: 8px 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.list ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }

.beat { position: fixed; z-index: 40; inset: 0; background: rgba(13,21,48,.92); display: flex; flex-direction: column; color: #fff; padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.bhead { display: flex; align-items: center; gap: 12px; max-width: 560px; width: 100%; margin: 0 auto; }
.bhead b { font-size: 20px; font-weight: 900; flex: 1; } .bhead span { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
#bcv { flex: 1; width: 100%; max-width: 560px; margin: 10px auto; display: block; min-height: 0; }
.bpads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.bpads button { border: 0; border-radius: 16px; padding: 16px 6px; font-weight: 900; font-size: 16px; letter-spacing: .06em; color: #fff; touch-action: manipulation; }
.bpads button:active { transform: scale(.96); filter: brightness(1.2); }

.toast { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); top: calc(64px + env(safe-area-inset-top, 0px)); background: var(--navy); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }

@media (max-width: 700px) {
  .src { display: none; }
  .brand b { font-size: 15px; } .brand b span { font-size: 20px; }
  .dock { left: 12px; right: 12px; transform: none; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; overflow: visible; }
  .dock button { min-width: 0; padding: 4px 2px; }
  .dock button span { font-size: 10px; }
  .rail { top: auto; bottom: calc(124px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .rail button { width: 50px; padding: 6px 2px; }
  .sheet { left: 8px; right: 8px; width: auto; top: auto; bottom: 0; max-height: 78vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .hint { font-size: 12px; }
  .cols { grid-template-columns: 1fr; }
  .say { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); }
  .near { bottom: calc(122px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; }
  .where { top: calc(52px + env(safe-area-inset-top, 0px)); }
  .hint { top: calc(86px + env(safe-area-inset-top, 0px)); }
  .time { padding: 7px 10px; } .time .tl, .lim .tl, .time .tt { display: none; } .chip.lim { padding: 7px 9px; }
  .top { gap: 8px; } .tools { gap: 6px; margin-left: auto; } .chip { padding: 7px 10px; }
  .rail { gap: 6px; } .rail button i { font-size: 16px; }
}

/* ── Han River boat race HUD ── */
.racing .dock, .racing .rail, .racing #near, .racing #where, .racing #hint, .racing #say, .racing #banner { display: none !important; }
.race { position: fixed; inset: 0; pointer-events: none; z-index: 30; font-family: Outfit, system-ui, sans-serif; color: #fff; }
.race .rtop { position: absolute; top: calc(64px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.race .rtop div { background: rgba(10, 22, 52, .72); border: 1px solid rgba(143, 195, 255, .45); border-radius: 14px; padding: 6px 16px; text-align: center; min-width: 74px; backdrop-filter: blur(6px); }
.race small { display: block; font-size: 10px; letter-spacing: .18em; color: #8fc3ff; font-weight: 700; }
.race .rtop b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.race .rmsg { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font-size: clamp(44px, 9vw, 110px); font-weight: 900; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(10, 30, 90, .6); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .25s; }
.race .rmsg.on { opacity: 1; transform: scale(1); }
.race .rspd { position: absolute; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); text-align: right; }
.race .rspd b { font-size: 46px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1; }
.race .rspd i { display: block; height: 5px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, #8fc3ff, #3b8bff); box-shadow: 0 0 12px #3b8bff; width: 0; margin-left: auto; }
.race .rquit { pointer-events: auto; position: absolute; top: calc(64px + env(safe-area-inset-top, 0px)); right: calc(14px + env(safe-area-inset-right, 0px)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(10, 22, 52, .72); color: #fff; font-size: 24px; cursor: pointer; }
.race .rpads { position: absolute; left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); right: 150px; display: flex; gap: 10px; align-items: flex-end; }
.race .rpads p { margin: 0; font-size: 13px; background: rgba(10, 22, 52, .6); padding: 6px 12px; border-radius: 10px; }
.race .rpads span { flex: 1; }
.race .rpads button { pointer-events: auto; width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .6); background: rgba(10, 22, 52, .55); color: #fff; font: 900 22px Outfit, sans-serif; touch-action: none; user-select: none; -webkit-user-select: none; }
.race .rpads button.gas { width: 92px; height: 92px; background: rgba(36, 87, 197, .85); font-size: 18px; }
.race .rpads button.brk { font-size: 13px; }
.race .rpads button.on { background: #3b8bff; transform: scale(.95); }
.rbd { margin: 4px 0 12px; padding-left: 22px; font-variant-numeric: tabular-nums; font-weight: 700; }

/* ── five minutes a day ── */
.chip.lim { font-variant-numeric: tabular-nums; }
.chip.lim.low { background: #e5484d; color: #fff; border-color: #e5484d; }
.timeup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); background: radial-gradient(ellipse at 50% 40%, rgba(36,87,197,.82), rgba(10,18,40,.94)); backdrop-filter: blur(6px); }
.timeup .tu { max-width: 460px; background: #fff; color: #14234d; border-radius: 22px; padding: 26px 24px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.timeup small { letter-spacing: .2em; font-weight: 700; color: #2457c5; font-size: 11px; }
.timeup h2 { margin: 10px 0 8px; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.timeup p { margin: 0 0 18px; color: #4a5672; font-size: 15px; line-height: 1.5; }
.timeup .row { display: grid; gap: 8px; }
.timeup .cta { display: block; text-decoration: none; text-align: center; background: #2457c5; color: #fff; border-radius: 999px; padding: 12px 16px; font-weight: 700; }
.timeup .cta.ghost { background: #eef3fb; color: #2457c5; }
.timesup .dock, .timesup .rail, .timesup #near, .timesup #hint { display: none !important; }
/* the corner-screen sweet spot: nothing in front of the picture but the way back */
body.signview .dock, body.signview .rail, body.signview .hint, body.signview .where, body.signview .near { display: none !important; }
body.signview .say { top: auto !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; }
.signexit { position: fixed; z-index: 12; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(64px + env(safe-area-inset-top, 0px)); background: rgba(255,255,255,.96); color: var(--blue-d); border: 0; border-radius: 999px; padding: 10px 16px; font: 700 14px/1 Outfit, system-ui, sans-serif; box-shadow: 0 6px 20px rgba(20,35,77,.25); cursor: pointer; }
/* short screens (a phone held sideways: ~290 px of height under Safari's bars) — tighter header, a horizontal rail at the
   bottom-right, a slimmer dock, no hint line; everything stays clear of the notch with the side safe-area insets */
@media (max-height: 480px) {
  .top { padding-top: 6px !important; padding-bottom: 6px !important; } .src, .hint { display: none !important; }
  .where { top: calc(44px + env(safe-area-inset-top, 0px)); font-size: 11.5px; }
  .rail { top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); transform: none; grid-auto-flow: column; gap: 6px; }
  .rail button { width: 44px; padding: 6px 2px; border-radius: 12px; } .rail button span { display: none; } .rail button i { font-size: 17px; }
  .dock { left: max(12px, env(safe-area-inset-left, 0px)); transform: none; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 4px; gap: 2px; max-width: calc(100vw - 310px); overflow-x: auto; }
  .dock button { min-width: 50px; padding: 4px 6px; } .dock button span { font-size: 10px; }
  .near { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } .say { bottom: calc(66px + env(safe-area-inset-bottom, 0px)) !important; max-height: 55vh; overflow: auto; }
  .sheet { top: calc(6px + env(safe-area-inset-top, 0px)) !important; bottom: calc(6px + env(safe-area-inset-bottom, 0px)) !important; }
  .race .rtop { top: calc(8px + env(safe-area-inset-top, 0px)); } .race .rtop b { font-size: 18px; }
}
/* the race HUD and the controls: no iOS text-selection loupe or callout when a thumb rests on them */
.race, .race *, .rail, .dock, .bpads { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
