:root { color-scheme: dark; --bg: #0b0b0e; --fg: #f4f4f6; --accent: #ffd21f; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font: 16px/1.4 system-ui, -apple-system, sans-serif; overflow: hidden; }
.panel { position: fixed; z-index: 10; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 16px; text-align: center; }
.panel[hidden] { display: none; }
h1 { margin: 0; font-size: 26px; }
p { margin: 0; max-width: 28em; }
.note { font-size: 13px; opacity: .65; }
.brand { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; opacity: .8; }
button { font: 600 18px system-ui; border: 0; border-radius: 40px; padding: 15px 34px; color: #111; background: #fff; }
button.primary { background: var(--accent); }
button[hidden] { display: none; }
.bar { position: fixed; left: 0; right: 0; bottom: calc(28px + env(safe-area-inset-bottom)); z-index: 50; display: flex; gap: 10px; justify-content: center; padding: 0 16px; flex-wrap: wrap; }
.bar[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px system-ui; text-decoration: none; border: 0; border-radius: 28px; padding: 13px 24px; min-height: 48px; box-shadow: 0 2px 10px #0006; }
.btn.primary { color: #111; background: var(--accent); }
.btn.ghost { color: #fff; background: #1c1c22d9; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid #ffffff40; }
.close { position: fixed; right: 14px; top: calc(14px + env(safe-area-inset-top)); z-index: 60; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; color: #fff; background: #1c1c22d9; border: 1px solid #ffffff40; border-radius: 50%; }
.close[hidden] { display: none; }
video.pinned { display: block; position: fixed; left: 50%; top: calc(50% - 40px); transform: translate(-50%, -50%); max-width: 92vw; max-height: 62vh; border-radius: 16px; box-shadow: 0 10px 40px #000a; background: #000; z-index: 40; }
video:not(.pinned):not(.plain) { display: none; }
#stage { position: fixed; inset: 0; z-index: 0; touch-action: none; }
video.plain { width: 100%; max-height: 70vh; border-radius: 12px; background: #000; }
.nudge { position: fixed; left: 8px; bottom: 110px; z-index: 60; display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; }
.nudge[hidden] { display: none; }
.nudge button { height: 48px; padding: 0; font-size: 20px; border-radius: 10px; background: #fffd; }
.nval { grid-column: 1 / -1; font: 13px ui-monospace, monospace; color: #ff0; background: #000b; padding: 6px; border-radius: 6px; white-space: nowrap; }
img.gal:not(.pinned) { display: none; }
img.gal.pinned { display: block; position: fixed; left: 50%; top: calc(50% - 40px); transform: translate(-50%, -50%); max-width: 92vw; max-height: 62vh; border-radius: 16px; box-shadow: 0 10px 40px #000a; z-index: 40; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-height: 62vh; overflow-y: auto; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; background: #14141bf2; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 22px 22px 0 0; border-top: 1px solid #ffffff2a; transform: translateY(105%); transition: transform .35s ease; }
.sheet.open { transform: none; }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }
.sheet h2 { margin: 0; font: 700 22px/1.15 system-ui; }
.sheet .sub { margin: 0 0 4px; opacity: .7; font-size: 14px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #ffffff12; border: 1px solid #ffffff1c; color: #fff; text-decoration: none; min-height: 52px; }
.item .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item b { font-weight: 600; font-size: 16px; } .item small { opacity: .7; font-size: 14px; }
.item .arrow { opacity: .6; font-size: 20px; }
.item .thumb { width: 54px; height: 54px; flex: none; border-radius: 10px; background: #2a2a34 center / cover; }
.item .go { flex: none; font: 700 14px system-ui; padding: 10px 16px; border-radius: 22px; color: #111; background: var(--accent); }
.hint { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 12; max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 999px; background: rgba(5, 10, 24, 0.78); color: #fff; font: 600 13px/1.3 system-ui, sans-serif; text-align: center; pointer-events: none; }
.fseg { display: flex; gap: 6px; padding: 4px; border-radius: 14px; background: #ffffff12; border: 1px solid #ffffff1c; }
.fseg button { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: 700 15px system-ui; opacity: .75; }
.fseg button[aria-pressed="true"] { background: var(--accent); color: #0b1a10; opacity: 1; }
.ffld { display: flex; flex-direction: column; gap: 6px; }
.ffld > span:first-child { font: 700 12px system-ui; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.frow { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 52px; border-radius: 14px; background: #ffffff12; border: 1px solid #ffffff24; }
.frow input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: 600 18px system-ui; }
.frow input::placeholder { color: #ffffff66; }
.frow em { font: 600 14px system-ui; opacity: .6; font-style: normal; }
.fcta { margin-top: 4px; min-height: 58px; border: 0; border-radius: 16px; background: var(--accent); color: #0b1a10; font: 800 18px system-ui; letter-spacing: .01em; }
.fnote { margin: 0; text-align: center; font-size: 12px; opacity: .55; }
