@font-face { font-family: 'DM Serif Display'; src: url('/assets/dm-serif-display-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/assets/dm-serif-display-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
:root { color-scheme: dark; --night: #0d0c0a; --surface: #171510; --paper: #f2ede2; --muted: #b5ad9e; --gold: #c6a54a; --bright: #e7c147; --line: #c6a54a40; --danger: #f2a084; --display: 'DM Serif Display', Georgia, serif; --body: 'Helvetica Neue', Helvetica, Arial, sans-serif; --mono: 'Courier New', monospace; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; touch-action: manipulation; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--bright); outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--bright); }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--gold); color: var(--night); padding: 14px; z-index: 20; }
.skip-link:focus { top: 10px; }
.header { height: 110px; padding: 0 5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { width: 132px; height: 72px; object-fit: contain; }
.header-note { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.header-note span { color: var(--muted); margin-left: 8px; }
nav { display: flex; align-items: center; gap: 26px; }
.text-button { border: 0; background: none; padding: 10px 0; min-height: 44px; font-size: 12px; font-weight: 600; }
.text-button:hover { color: var(--bright); }
.text-button span { margin-left: 5px; }
.sound-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .2s; }
.sound-button:hover { background: var(--surface); }
.sound-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sound-slash { stroke: var(--gold); }
main { max-width: 1440px; margin: auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); padding: 38px 5% 30px; gap: 7%; }
.intro { padding-top: 17px; }
.edition { display: flex; align-items: center; gap: 9px; font-size: 10px; letter-spacing: 1.8px; font-weight: 700; color: var(--gold); }
.small-star { font-size: 24px; }
h1 { font: 400 clamp(68px, 6.8vw, 100px)/.99 var(--display); letter-spacing: -4px; margin: 24px 0 22px; }
h1 em, dialog em { color: var(--gold); font-weight: 400; }
.tagline { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0; }
.tagline br { display: none; }
.how-simple { display: grid; gap: 13px; margin: 28px 0 32px; font: 11px var(--mono); color: var(--gold); }
.how-simple strong { color: var(--paper); font: 14px var(--body); margin-left: 15px; }
.milestones { max-width: 360px; border-top: 1px solid var(--line); padding-top: 20px; }
.milestone-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.caps { display: flex; justify-content: space-between; gap: 20px; margin: 20px 0 14px; }
.cap { display: flex; align-items: center; flex-direction: column; gap: 6px; color: var(--muted); }
.cap-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #393326; color: #b7a87b; font: 22px var(--display); clip-path: polygon(50% 0,60% 8%,73% 5%,80% 18%,94% 23%,92% 38%,100% 50%,92% 61%,95% 74%,81% 80%,76% 94%,61% 92%,50% 100%,38% 92%,24% 95%,19% 80%,5% 75%,8% 61%,0 50%,8% 38%,5% 25%,19% 20%,24% 6%,39% 9%); transition: background .3s, transform .3s; }
.cap strong { font-size: 12px; font-weight: 500; }
.cap small { font: 10px var(--mono); }
.cap.earned { color: var(--bright); }
.cap.earned .cap-icon { background: var(--gold); color: var(--night); transform: rotate(-12deg); }
.milestones>p { font-size: 11px; color: var(--muted); margin: 0; }
.name-field { max-width: 360px; margin-top: 27px; }
.name-field label { font-size: 10px; display: block; margin-bottom: 8px; letter-spacing: 1px; color: var(--muted); }
.name-field>div { display: flex; align-items: center; border-bottom: 1px solid var(--line); gap: 7px; padding: 5px 0 10px; }
.name-field input { width: 100%; min-width: 0; background: none; border: none; color: var(--paper); font: 13px var(--mono); }
.name-field>div>span { color: var(--gold); }
.field-error { color: var(--danger); font-size: 11px; display: block; margin-top: 5px; }
.field-error:empty { display: none; }
.brand-signoff { margin: 25px 0 0; color: var(--muted); font: 14px var(--display); }
.brand-signoff em { color: var(--gold); }
.arena { position: relative; min-width: 0; outline: none; }
.mode-switch { display: flex; gap: 4px; border: 1px solid var(--line); padding: 4px; width: fit-content; margin: 0 auto 21px; border-radius: 4px; }
.mode-switch button { border: 0; background: none; border-radius: 2px; min-height: 39px; padding: 9px 17px; font-size: 12px; color: var(--muted); transition: color .2s, background .2s; }
.mode-switch button[aria-pressed=true] { color: var(--paper); background: #2c271a; }
.mode-switch button:hover { color: var(--bright); }
.mode-switch span { font-size: 8px; letter-spacing: .7px; margin-left: 6px; color: var(--gold); }
.arena-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 10px var(--mono); letter-spacing: .5px; }
.live-label { display: flex; align-items: center; gap: 8px; }
.live-label i, .status-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--muted); }
.live-label i.connected { background: var(--gold); box-shadow: 0 0 0 4px #c6a54a13; }
.round-label { color: var(--muted); }
.timer-block { text-align: center; margin-top: 24px; position: relative; z-index: 1; }
.micro-label { font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.timer { font: 400 68px/1.1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -2px; margin-top: 3px; }
.timer span { font-size: 35px; color: var(--gold); }
.best { font: 10px var(--mono); letter-spacing: .4px; color: var(--muted); margin-top: 5px; }
.best strong { margin-left: 6px; color: var(--gold); font-weight: 400; }
.stage { height: 325px; position: relative; margin: 12px auto 0; max-width: 560px; isolation: isolate; overflow: clip; }
.stage:before { content: ''; position: absolute; inset: 5% 10% 0; background: radial-gradient(ellipse at 50% 65%, #a2702020, transparent 66%); pointer-events: none; }
.balance-arc { position: absolute; width: 100%; height: 100%; top: -3px; fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 7; }
.balance-arc .arc-tick { stroke: var(--gold); stroke-dasharray: none; opacity: .7; }
.glass { position: absolute; width: 250px; height: 300px; bottom: 24px; left: calc(50% - 125px); transform-origin: 50% 94%; will-change: transform; z-index: 2; filter: drop-shadow(0 8px 18px #0005); }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.12); } }
.stage-note { position: absolute; left: 12px; top: 114px; font: 14px/1.4 var(--display); transform: rotate(-9deg); color: var(--muted); }
.stage-note em { color: var(--gold); }
.stage-note:after { content: '⤴'; display: block; font-size: 32px; margin: 4px 0 0 41px; color: var(--gold); }
.table-line { position: absolute; height: 1px; background: var(--gold); bottom: 24px; left: 7%; right: 7%; box-shadow: 0 6px #c6a54a18; }
.fulcrum { position: absolute; width: 38px; height: 10px; bottom: 25px; left: calc(50% - 19px); background: repeating-linear-gradient(90deg, #c6a54a 0 4px, #8a6a25 4px 6px); border: 1px solid var(--gold); border-radius: 5px 5px 1px 1px; z-index: 3; }
.glass-shadow { position: absolute; bottom: 21px; width: 170px; height: 12px; left: calc(50% - 85px); border-radius: 50%; background: #0009; }
.angle-label { position: absolute; text-align: center; bottom: -2px; width: 100%; font-size: 11px; color: var(--muted); }
.balance-meter { display: flex; align-items: center; gap: 12px; font: 9px var(--mono); color: var(--muted); margin: 19px auto 23px; width: 74%; }
.meter-track { position: relative; flex: 1; height: 3px; background: linear-gradient(90deg, #ad6046, #5e5637 32%, #c6a54a 50%, #5e5637 68%, #ad6046); }
.meter-track:after { content: ''; position: absolute; width: 1px; height: 10px; top: -3px; left: 50%; background: var(--gold); }
.meter-track i { display: block; position: absolute; left: 0; top: -4px; width: 4px; height: 12px; background: var(--paper); z-index: 1; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.push-button { border: 1px solid #ac8c35; background: var(--gold); color: var(--night); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; height: 78px; box-shadow: 0 5px 0 #6a5426; transition: transform .1s, box-shadow .1s, background .15s; user-select: none; }
.push-button>span:not(.button-arrow) { font: 26px var(--display); white-space: nowrap; }
.push-button small { display: block; font: 10px var(--mono); margin-top: 3px; opacity: .7; }
.push-button:hover { background: #d9b858; }
.push-button.recommended { background: #f0d681; box-shadow: 0 5px #8c6a29, 0 0 0 3px #e7c14728; }
.push-button:active, .push-button.pressed { transform: translateY(4px); box-shadow: 0 1px #6a5426; }
.button-arrow { font-size: 32px; font-weight: 400; }
.control-hint { text-align: center; font-size: 11px; color: var(--muted); margin: 17px 0 0; }
.danger .angle-label { color: var(--danger); }
.danger .eye { animation: none; }
.danger #glass { filter: drop-shadow(0 0 18px #f2a08420); }
.callout { position: absolute; z-index: 5; top: 35px; left: 50%; transform: translateX(-50%) rotate(-5deg); background: var(--gold); color: var(--night); padding: 10px 17px; font: 18px var(--display); white-space: nowrap; box-shadow: 3px 3px var(--night); border-radius: 2px; }
.particles { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 4; }
.particle { position: absolute; left: 50%; top: 55%; width: 8px; height: 11px; border-radius: 50%; background: var(--gold); animation: pop .85s ease-out forwards; }
@keyframes pop { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) rotate(var(--spin)); opacity: 0; } }
.ticker { margin: 0 5%; border-block: 1px solid var(--line); min-height: 55px; display: flex; align-items: center; gap: 25px; font: 10px var(--mono); }
.ticker-live { white-space: nowrap; display: flex; gap: 8px; align-items: center; color: var(--gold); }
.status-dot { background: var(--gold); }
.ticker p { color: var(--muted); letter-spacing: 0; flex: 1; line-height: 1.5; }
.push-count { white-space: nowrap; color: var(--muted); }
.push-count strong { color: var(--paper); font-size: 13px; margin-right: 5px; }
footer { margin: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; color: var(--muted); font-size: 11px; }
footer>a { font-size: 10px; letter-spacing: 1px; color: var(--gold); }
footer>div { display: flex; align-items: center; gap: 22px; }
footer .text-button { font-size: 11px; }
.age { border: 1px solid var(--line); padding: 4px; font-size: 10px; }
.result { position: absolute; z-index: 6; inset: 110px 0 108px; background: #0d0c0af5; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 23px; border-radius: 4px; box-shadow: 0 15px 40px #0005; }
.result h2, dialog h2 { font: 64px/1 var(--display); letter-spacing: -2px; color: var(--gold); margin: 18px 0; }
.result p { margin: 5px 0; font-size: 18px; }
.result .blame { font: 12px var(--mono); margin: 13px 0 23px; }
.result .result-rank { color: var(--gold); font: 16px var(--display); }
.result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share-button { background: var(--gold); color: var(--night); border: 1px solid var(--gold); padding: 14px 20px; min-height: 46px; font-size: 12px; font-weight: 600; box-shadow: 0 3px #6a5426; border-radius: 3px; }
.share-button:hover { background: #d9b858; }
.share-button:active { transform: translateY(2px); box-shadow: 0 1px #6a5426; }
.result .text-button { margin-top: 12px; font-size: 11px; }
.restart { font: 10px var(--mono); color: var(--muted); margin-top: 12px; }
.splash { position: absolute; left: 15%; right: 15%; bottom: 20px; height: 12px; border-radius: 50%; background: #edaa2c; opacity: 0; z-index: 4; transform: scaleX(.1); }
.spilled .splash { animation: splash .65s ease-out forwards; }
.spilled .glass { transition: transform .45s ease-in; }
.spilled .stage-note { opacity: 0; }
@keyframes splash { 50% { transform: scale(1.15, 1.8); opacity: 1; } 100% { transform: scale(1, .65); opacity: 1; } }
dialog { border: 1px solid var(--line); border-radius: 4px; padding: 34px 40px; max-width: 520px; max-height: calc(100dvh - 32px); width: calc(100% - 32px); background: var(--night); color: var(--paper); box-shadow: 0 20px 70px #0009; }
dialog::backdrop { background: #000b; backdrop-filter: blur(5px); }
dialog h2 { font-size: 47px; color: var(--paper); }
dialog p, dialog li { font-size: 14px; line-height: 1.6; color: var(--muted); }
dialog strong { color: var(--paper); }
dialog ol { padding-left: 20px; }
dialog li { padding-left: 6px; margin-bottom: 10px; }
.help-note { font-size: 11px !important; }
.close-button { position: absolute; right: 12px; top: 12px; font-size: 27px; width: 44px; height: 44px; border: 0; background: none; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--night); font: 13px/1.5 var(--body); padding: 14px 20px; border-radius: 3px; z-index: 20; width: max-content; max-width: 90vw; text-align: center; box-shadow: 0 5px 30px #0005; }
body.stream { background: transparent; }
.stream .header, .stream .intro, .stream .ticker, .stream footer, .stream .controls, .stream .control-hint, .stream .balance-meter, .stream .mode-switch, .stream .skip-link { display: none; }
.stream main { display: block; max-width: 650px; padding: 15px; }
.stream .arena { background: var(--night); padding: 25px; border: 1px solid var(--line); border-radius: 8px; }
.stream .stage { height: 330px; }
.stream .result { inset: 70px 15px 15px; }
.stream .result button { display: none; }
@media(min-width:1600px) { .header, .ticker, footer { padding-inline: 0; max-width: 1296px; margin-inline: auto; } }
@media(max-width:1100px) { .header-note { display: none; } main { gap: 5%; } h1 { font-size: 7.1vw; letter-spacing: -2px; } .push-button { padding: 14px; } .push-button>span:not(.button-arrow) { font-size: 22px; } .stage-note { font-size: 12px; } footer>span { display: none; } }
@media(max-width:700px) {
  .header { height: 78px; padding: 0 5%; gap: 16px; }.brand img { width: 93px; height: 52px; } nav { gap: 15px; }.text-button { font-size: 12px; }.invite-button { width: 32px; font-size: 0; }.invite-button:after { content: '↗'; font-size: 24px; color: var(--gold); }
  main { padding: 20px 5% 22px; display: grid; grid-template-columns: 1fr; gap: 20px; }.intro { padding: 0; display: contents; }
  .edition { display: none; } h1 { font-size: clamp(38px, 8.7vw, 59px); letter-spacing: -1.5px; margin: 0; text-align: center; grid-row: 1; } h1 br { display: none; } h1 em { white-space: nowrap; }
  .tagline { font-size: 12px; text-align: center; margin-top: -11px; grid-row: 2; }.how-simple, .brand-signoff { display: none; }
  .arena { grid-row: 3; }.mode-switch { margin-bottom: 17px; }.mode-switch button { padding: 8px 13px; min-height: 35px; font-size: 11px; }.arena-top { font-size: 9px; }.timer-block { margin-top: 16px; }.timer { font-size: 52px; }.timer span { font-size: 29px; }.micro-label { font-size: 8px; letter-spacing: 1px; }.best { font-size: 9px; }
  .stage { height: 251px; margin-top: 4px; }.glass { height: 240px; width: 200px; left: calc(50% - 100px); }.stage-note { top: 90px; font-size: 11px; }.stage-note:after { font-size: 25px; margin-left: 24px; }.angle-label { font-size: 11px; }.balance-meter { margin-top: 15px; margin-bottom: 18px; width: 82%; }.push-button { height: 65px; padding: 10px 16px; }.push-button>span:not(.button-arrow) { font-size: 23px; }.button-arrow { font-size: 27px; }.control-hint { font-size: 11px; margin-top: 15px; }
  .milestones { grid-row: 5; max-width: none; padding-top: 18px; }.caps { margin: 17px 0 12px; padding-inline: 17px; }.cap { flex-direction: row; flex-wrap: wrap; width: 65px; justify-content: center; gap: 4px; }.cap-icon { width: 42px; height: 42px; margin: 0 7px 3px; }.cap strong { font-size: 11px; }.cap small { font-size: 10px; }.milestones>p { text-align: center; }
  .name-field { grid-row: 4; max-width: none; margin-top: 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }.name-field label { font-size: 9px; max-width: 114px; line-height: 1.4; margin: 0; }.name-field>div { flex: 1; padding: 5px 0 8px; }.name-field input { font-size: 12px; }.field-error { flex-basis: 100%; margin: 0; }
  .ticker { margin: 0 5%; flex-wrap: wrap; gap: 7px 10px; padding: 15px 0; font-size: 9px; }.ticker-live { flex: 1; }.ticker p { order: 3; flex-basis: 100%; margin: 2px 0 0; }.push-count strong { font-size: 11px; }
  footer { margin: 0 5%; font-size: 10px; gap: 10px; min-height: 67px; }footer>div { gap: 15px; }footer>a { font-size: 9px; }footer .text-button { font-size: 10px; }
  .result { inset: 85px 0 95px; padding: 18px 10px; }.result h2 { font-size: 55px; margin: 16px 0; }.result p { font-size: 16px; }.result .result-rank { font-size: 14px; }.result .blame { font-size: 11px; margin: 12px 0 18px; }.result .text-button { margin-top: 6px; }.restart { font-size: 9px; }.result-actions { gap: 8px; }.share-button { padding: 12px 15px; font-size: 11px; }.callout { font-size: 16px; top: 23px; }
  dialog { padding: 28px 24px; }dialog h2 { font-size: 40px; }dialog p, dialog li { font-size: 13px; }
}
@media(max-width:360px) { nav { gap: 10px; }#help-button span { display: none; }h1 { font-size: 34px; }.push-button { padding: 10px; }.push-button>span:not(.button-arrow) { font-size: 21px; }.stage-note { font-size: 10px; }.stage-note:after { margin-left: 10px; }.stage { height: 231px; }.glass { height: 222px; width: 185px; left: calc(50% - 92.5px); }footer>div { gap: 10px; }.mode-switch button { padding-inline: 10px; } }
@media(prefers-reduced-motion:reduce) { *, *:before, *:after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; } }
