@font-face { font-family: "Fortescue Pro Text"; src: url(assets/fonts/fortescue-pro-text-light.woff2) format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Quintessential"; src: url(assets/fonts/quintessential.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VOI Score Glyphs"; src: url(assets/fonts/score-glyphs.woff2) format("woff2"); font-display: block; }

@font-face { font-family: "VOI Latin"; src: url(assets/fonts/fortescue-pro-text-light.woff2) format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0020-007E, U+00A0-00FF, U+0100-024F; }
@font-face { font-family: "VOI Mincho JA"; src: url(assets/fonts/ja-mincho.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "VOI Hand JA"; src: url(assets/fonts/ja-hand.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "VOI Myeongjo"; src: url(assets/fonts/ko-myeongjo.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "VOI Hand ZH"; src: url(assets/fonts/zh-hand.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "VOI Hand ZHT"; src: url(assets/fonts/zht-hand.woff2) format("woff2"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "VOI Naskh"; src: url(assets/fonts/ar-naskh.woff2) format("woff2"); font-weight: 300 400; font-display: swap; size-adjust: 112%; }
@font-face { font-family: "VOI Ruqaa"; src: url(assets/fonts/ar-ruqaa.woff2) format("woff2"); font-weight: 300 400; font-display: swap; size-adjust: 118%; }

:root {
  --ground: #17110a;
  --ivory: #e7dcd0;
  --muted: #b7a98e;
  --dim: #8f8068;
  --gold: linear-gradient(180deg, #f2c892 17%, #a17945 83%);
  --gold-solid: #d9b072;
  --alabaster: linear-gradient(180deg, #e7dcd0 17%, #ad977f 83%);
  --gold-line: #8a6f42;
  --ink: #2b2318;
  --red: #a3311b;
  --serif: "Fortescue Pro Text", "Cormorant Garamond", Georgia, serif;
  --hand: "Quintessential", Georgia, serif;
  color-scheme: dark;
}

html:lang(ja) { --serif: "VOI Latin", "VOI Mincho JA", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --hand: "VOI Hand JA", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; }
html:lang(ko) { --serif: "VOI Latin", "VOI Myeongjo", "AppleMyungjo", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Serif KR", serif;
  --hand: "VOI Myeongjo", "AppleMyungjo", "Noto Serif KR", serif; }
html:lang(zh-Hans) { --serif: "VOI Latin", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --hand: "VOI Hand ZH", "PingFang SC", "Microsoft YaHei", sans-serif; }
html:lang(zh-Hant) { --serif: "VOI Latin", "PingFang TC", "Heiti TC", "Microsoft JhengHei", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --hand: "VOI Hand ZHT", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html:lang(ar) { --serif: "VOI Latin", "VOI Naskh", "Geeza Pro", "Noto Naskh Arabic", "Arial", serif;
  --hand: "VOI Ruqaa", "VOI Naskh", "Geeza Pro", serif; }

html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) body * { font-style: normal !important; }

html[lang="ar"] body, html[lang="ar"] body * { unicode-bidi: plaintext; letter-spacing: 0 !important; }
html[lang="ar"] body :is(span, b, strong, i, em, a, br) { unicode-bidi: normal; }

html[lang="ar"] body :is(.lead, .label, .lang-now > span, .plate-title, .plate-kind > span, .listen-t, .note-n, .hint-n, .hint-sub, .found-t, .signature) { unicode-bidi: plaintext; }

html[lang="ar"] .title { line-height: 1.6; background-size: 100% 1.6em; }
html[lang="ar"] .paper { direction: rtl; line-height: 1.75; }
html[lang="ar"] :is(.tray-t, .hint-row, .found-note) { text-align: start; }
html[lang="ar"] .hint-row { align-items: flex-end; }
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ivory); font: 300 18px/1.6 var(--serif); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: var(--gold-solid); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold-solid); outline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: #000; color: var(--gold-solid); text-decoration: none; }
.skip:focus { top: 12px; }

.title, .panel-title, .eyebrow {
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title { font-weight: 300; font-size: clamp(26px, 3.3vw, 40px); line-height: 1.2; letter-spacing: .14em; text-transform: uppercase; margin: 0; background-size: 100% 1.2em; background-repeat: repeat-y; }

.panel-title { display: block; font-weight: 300; font-size: 23px; line-height: 1.2; font-variant-caps: small-caps; letter-spacing: .02em; text-align: center; margin: 0 0 18px; padding: .32em 0 .14em; background-size: 100% 100%; }
.pop .panel-title { font-size: 25px; }

.panel-title::after, .countdown .title::after, .enigma-head .title::after {
  content: ""; display: block; height: 12px; margin: 10px auto 0; width: min(270px, 80%);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 .5 11.5 6 6 11.5 .5 6Z' fill='none' stroke='%23715a41'/%3E%3Cpath d='M6 4 8 6 6 8 4 6Z' fill='%23715a41'/%3E%3C/svg%3E") center / 12px 12px no-repeat,
    linear-gradient(90deg, rgba(113, 90, 65, 0), #715a41) left center / calc(50% - 7px) 1px no-repeat,
    linear-gradient(90deg, #715a41, rgba(113, 90, 65, 0)) right center / calc(50% - 7px) 1px no-repeat;
  -webkit-background-clip: border-box; background-clip: border-box;
}
.eyebrow { font-size: 13px; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 14px; }

.diamond { display: inline-block; width: .707em; height: .589em; margin: 0 .8em .12em; background: url(assets/img/ui/diamond.png) center / 100% 100% no-repeat; vertical-align: middle; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 46px; padding: 0 26px; border: 1px solid var(--gold-line); border-radius: 1px;
  background: linear-gradient(180deg, rgba(40, 30, 19, .94), rgba(14, 10, 6, .96));
  box-shadow: inset 0 0 0 3px rgba(14, 10, 6, .96), inset 0 0 0 4px rgba(176, 140, 84, .55);
  color: var(--ivory); font: 300 15px/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: color .15s, box-shadow .15s, opacity .15s; -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { color: var(--gold-solid); box-shadow: inset 0 0 0 3px rgba(14, 10, 6, .96), inset 0 0 0 4px rgba(217, 176, 114, .85); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }
.linkish { background: none; border: 0; padding: 0; color: var(--dim); text-decoration: underline; cursor: pointer; font-size: inherit; letter-spacing: inherit; }

.panel { position: relative; isolation: isolate; }
.house-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.house-decor > span { position: absolute; display: block; }
.house-ground {
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 12, 9, .34), rgba(6, 5, 4, .46)) no-repeat, #100d09 url(assets/img/frame/stone.webp) 0 0 / 320px 320px repeat;
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent 8px, #000 8.5px), radial-gradient(circle at 100% 0, transparent 8px, #000 8.5px), radial-gradient(circle at 0 100%, transparent 8px, #000 8.5px), radial-gradient(circle at 100% 100%, transparent 8px, #000 8.5px);
  mask-image: radial-gradient(circle at 0 0, transparent 8px, #000 8.5px), radial-gradient(circle at 100% 0, transparent 8px, #000 8.5px), radial-gradient(circle at 0 100%, transparent 8px, #000 8.5px), radial-gradient(circle at 100% 100%, transparent 8px, #000 8.5px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.house-brass {
  inset: 4.5px; background: #836742;
  -webkit-mask-image: radial-gradient(circle at -9px -9px, transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) -9px, transparent 19.5px, #000 20px), radial-gradient(circle at -9px calc(100% + 9px), transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) calc(100% + 9px), transparent 19.5px, #000 20px);
  mask-image: radial-gradient(circle at -9px -9px, transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) -9px, transparent 19.5px, #000 20px), radial-gradient(circle at -9px calc(100% + 9px), transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) calc(100% + 9px), transparent 19.5px, #000 20px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.house-inner {
  inset: 5.5px;
  background: linear-gradient(180deg, rgba(21, 21, 15, .40), rgba(9, 9, 6, .56)) no-repeat, #0e0b07 url(assets/img/frame/stone.webp) 0 0 / 320px 320px repeat;
  -webkit-mask-image: radial-gradient(circle at -10px -10px, transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) -10px, transparent 20.5px, #000 21px), radial-gradient(circle at -10px calc(100% + 10px), transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) calc(100% + 10px), transparent 20.5px, #000 21px);
  mask-image: radial-gradient(circle at -10px -10px, transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) -10px, transparent 20.5px, #000 21px), radial-gradient(circle at -10px calc(100% + 10px), transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) calc(100% + 10px), transparent 20.5px, #000 21px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}

.panel.foot .house-brass {
  -webkit-mask-image: radial-gradient(circle at -9px -9px, transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) -9px, transparent 19.5px, #000 20px), radial-gradient(circle at -4.5px calc(100% + 4.5px), transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 4.5px) calc(100% + 4.5px), transparent 19.5px, #000 20px);
  mask-image: radial-gradient(circle at -9px -9px, transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 9px) -9px, transparent 19.5px, #000 20px), radial-gradient(circle at -4.5px calc(100% + 4.5px), transparent 19.5px, #000 20px), radial-gradient(circle at calc(100% + 4.5px) calc(100% + 4.5px), transparent 19.5px, #000 20px);
}
.panel.foot .house-inner {
  -webkit-mask-image: radial-gradient(circle at -10px -10px, transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) -10px, transparent 20.5px, #000 21px), radial-gradient(circle at -5.5px calc(100% + 5.5px), transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 5.5px) calc(100% + 5.5px), transparent 20.5px, #000 21px);
  mask-image: radial-gradient(circle at -10px -10px, transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 10px) -10px, transparent 20.5px, #000 21px), radial-gradient(circle at -5.5px calc(100% + 5.5px), transparent 20.5px, #000 21px), radial-gradient(circle at calc(100% + 5.5px) calc(100% + 5.5px), transparent 20.5px, #000 21px);
}

.house-gear { width: 18px; height: 18px; overflow: hidden; }
.house-gear.tl { top: 4.5px; left: 4.5px; } .house-gear.tr { top: 4.5px; right: 4.5px; }
.house-gear.bl { bottom: 4.5px; left: 4.5px; } .house-gear.br { bottom: 4.5px; right: 4.5px; }
.panel.foot .house-gear.bl, .panel.foot .house-gear.br { bottom: 9px; }
.house-gear img { position: absolute; display: block; width: 49px; height: 49px; max-width: none; }
.house-gear.tl img { top: -32.5px; left: -32.5px; -webkit-mask-image: radial-gradient(circle at 23.5px 23.5px, transparent 19.5px, #000 20px); mask-image: radial-gradient(circle at 23.5px 23.5px, transparent 19.5px, #000 20px); }
.house-gear.tr img { top: -32.5px; right: -32.5px; -webkit-mask-image: radial-gradient(circle at 25.5px 23.5px, transparent 19.5px, #000 20px); mask-image: radial-gradient(circle at 25.5px 23.5px, transparent 19.5px, #000 20px); }
.house-gear.bl img { bottom: -32.5px; left: -32.5px; -webkit-mask-image: radial-gradient(circle at 23.5px 25.5px, transparent 19.5px, #000 20px); mask-image: radial-gradient(circle at 23.5px 25.5px, transparent 19.5px, #000 20px); }
.house-gear.br img { bottom: -32.5px; right: -32.5px; -webkit-mask-image: radial-gradient(circle at 25.5px 25.5px, transparent 19.5px, #000 20px); mask-image: radial-gradient(circle at 25.5px 25.5px, transparent 19.5px, #000 20px); }
.house-angle { position: absolute; z-index: 3; bottom: -3px; width: 36px; height: 44px; max-width: none; pointer-events: none; }
.house-angle.l { left: -3px; }
.house-angle.r { right: -3px; transform: scaleX(-1); }

.item-row { position: relative; isolation: isolate; }
.row-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.row-gear { position: absolute; width: 28px; height: 28px; max-width: none; }
.row-gear.tl { top: -1px; left: -1px; -webkit-mask-image: radial-gradient(circle at 1px 1px, #000 12px, transparent 12.5px); mask-image: radial-gradient(circle at 1px 1px, #000 12px, transparent 12.5px); }
.row-gear.tr { top: -1px; right: -1px; -webkit-mask-image: radial-gradient(circle at 27px 1px, #000 12px, transparent 12.5px); mask-image: radial-gradient(circle at 27px 1px, #000 12px, transparent 12.5px); }
.row-gear.bl { bottom: -1px; left: -1px; -webkit-mask-image: radial-gradient(circle at 1px 27px, #000 12px, transparent 12.5px); mask-image: radial-gradient(circle at 1px 27px, #000 12px, transparent 12.5px); }
.row-gear.br { bottom: -1px; right: -1px; -webkit-mask-image: radial-gradient(circle at 27px 27px, #000 12px, transparent 12.5px); mask-image: radial-gradient(circle at 27px 27px, #000 12px, transparent 12.5px); }
.row-glow { position: absolute; inset: 0; filter: drop-shadow(0 0 2.5px #000) drop-shadow(0 0 1px #000); }
.row-glow > span { position: absolute; display: block; }
.row-rim {
  inset: 0; background: radial-gradient(ellipse 128% 68% at 50% 50%, #e9c39b, #6e451a);
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 0, transparent 12px, #000 12.5px), radial-gradient(circle at 0 100%, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 100%, transparent 12px, #000 12.5px);
  mask-image: radial-gradient(circle at 0 0, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 0, transparent 12px, #000 12.5px), radial-gradient(circle at 0 100%, transparent 12px, #000 12.5px), radial-gradient(circle at 100% 100%, transparent 12px, #000 12.5px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.row-ground {
  inset: 1px; background: linear-gradient(0deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)) no-repeat, #0b0906 url(assets/img/frame/stone.webp) 0 0 / 320px 320px repeat;
  -webkit-mask-image: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px), radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px), radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px), radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px);
  mask-image: radial-gradient(circle at 0 0, transparent 11px, #000 11.5px), radial-gradient(circle at 100% 0, transparent 11px, #000 11.5px), radial-gradient(circle at 0 100%, transparent 11px, #000 11.5px), radial-gradient(circle at 100% 100%, transparent 11px, #000 11.5px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
button.item-row:hover:not(:disabled) .row-rim, .item-row.armed .row-rim { background: radial-gradient(ellipse 128% 68% at 50% 50%, #f6ece1, #835c33); }
.item-row.armed .row-glow { filter: drop-shadow(0 0 7px rgba(171, 140, 84, .5)) drop-shadow(0 0 2px rgba(222, 188, 124, .6)); }
.item-row.armed .row-ground { box-shadow: inset 0 0 10px rgba(171, 140, 84, .39), inset 0 0 38px rgba(171, 140, 84, .13); }

.topbar { position: absolute; z-index: 40; top: 34px; right: 64px; display: flex; gap: 8px; align-items: center; padding: 4px; border-radius: 999px; background: rgba(14, 10, 6, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.langs { position: relative; display: flex; }
.lang-now, .sound { background: none; border: 0; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 10px; cursor: pointer; border-radius: 999px; min-height: 36px; }
.lang-now { display: inline-flex; align-items: center; gap: 7px; padding: 8px 9px 8px 12px; white-space: nowrap; }
.lang-now:hover, .lang-now[aria-expanded="true"] { color: var(--gold-solid); }

.lang-now .caret { flex: none; position: relative; width: 9px; height: 9px; }
.lang-now .caret img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .2s; }
.lang-now .caret .c-up, .lang-now[aria-expanded="true"] .caret .c-down { opacity: 0; }
.lang-now[aria-expanded="true"] .caret .c-up { opacity: 1; }
@media (hover: hover) { .lang-now:hover .caret { filter: brightness(1.15); } }
.lang-list { position: absolute; z-index: 2; top: calc(100% + 10px); right: -4px; min-width: 188px; margin: 0; padding: 6px; list-style: none;
  background: rgba(14, 10, 6, .94); border: 1px solid rgba(138, 111, 66, .6); border-radius: 12px; box-shadow: 0 14px 34px rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang-list[hidden] { display: none; }
.lang-list li { margin: 0; }
.lang-list button { display: block; width: 100%; min-height: 40px; margin: 0; padding: 8px 14px; border: 0; border-radius: 8px; background: none; color: #d8cab2;
  font: 300 16px/1.25 var(--serif); letter-spacing: .02em; text-transform: none; text-align: left; cursor: pointer; }
.lang-list button:hover, .lang-list button:focus-visible { background: rgba(217, 176, 114, .12); color: var(--ivory); outline: none; }
.lang-list button[aria-current="true"] { color: var(--gold-solid); }

.lang-list button[aria-current="true"]::after { content: ""; display: inline-block; width: 9px; height: 7.5px; margin-inline-start: 9px; vertical-align: .16em; background: url(assets/img/ui/diamond.png) center / 100% 100% no-repeat; }

.lang-short { display: none; }
@media (max-width: 760px) {
  .lang-long { display: none; }
  .lang-short { display: inline; }
  .lang-now, .sound { min-height: 32px; padding: 6px 9px; }
  .sound { --rd: 24px; padding: 0; }
  .lang-now { padding: 6px 8px 6px 11px; }
}

.sound { --rd: 26px; position: relative; display: grid; place-items: center; width: 36px; padding: 0; }
.sound .snd { position: absolute; left: 50%; top: 50%; width: calc(var(--rd) * 326 / 184); height: calc(var(--rd) * 326 / 184); max-width: none; transform: translate(-50%, -50%); pointer-events: none; transition: filter .12s; }
.sound .snd-off, .sound.off .snd-on { display: none; }
.sound.off .snd-off { display: block; }
@media (hover: hover) { .sound:hover .snd { filter: brightness(1.15); } }

.hero { position: relative; width: 100%; height: 100vh; min-height: 460px; display: grid; place-items: center; padding: 84px 0 92px; overflow: hidden; background: #000; isolation: isolate; scroll-snap-align: start; }
@supports (height: 1svh) { .hero { height: 100svh; } }

.hero-frame.case { --u: max(.62px, min(1px, calc(100vw / 1282))); z-index: 2; }
.hero-in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { margin: 0; }

.hero { --logo: min(620px, 78vw, calc((100vh - 202px) * 1.078)); }
@supports (height: 1svh) { .hero { --logo: min(620px, 78vw, calc((100svh - 202px) * 1.078)); } }
.logo { display: block; width: var(--logo); height: auto; filter: drop-shadow(0 2px 4px #1a1007) drop-shadow(0 0 14px #1a1007); }

.hero-cta { --u: clamp(.62px, calc(var(--logo) / 860), .72px); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: calc(14 * var(--u)); width: max-content; margin: calc(var(--logo) * .07) auto 0; }
.hero-cta .gbtn.doorway { --bh: calc(79 * var(--u)); --cap: calc(48 * var(--u)); --pad: calc(62 * var(--u)); --fs: calc(26 * var(--u)); --bw: calc(460 * var(--u)); }
.hero-cta .gbtn { width: 100%; text-decoration: none; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .55)); }

@media (max-width: 639px) {
  .hero-cta { --u: .56px; grid-auto-flow: row; gap: 0; }
  .hero-cta .gbtn + .gbtn { margin-top: calc(-9 * var(--u)); }
}
.hero-by { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: calc(var(--logo) * .06); white-space: nowrap; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .9)); }
.hero-by span { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: rgba(226, 190, 130, .8); }
.hero-by img { width: clamp(130px, calc(var(--logo) * .34), 200px); height: auto; opacity: .95; }

.hero .scroll { z-index: 3; bottom: 29px; border: 1px solid rgba(220, 180, 112, .6); border-radius: 50%; background: rgba(9, 7, 5, .25); }

.hero .scroll span { width: 18px; height: 18px; margin-top: 2px; background: url(assets/img/ui/caret-down.png) center / 100% 100% no-repeat; animation: none; }
.hero .scroll span::after { content: none; }
@media (max-width: 760px) { .hero .scroll { bottom: 21px; } }

@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  .hero { --logo: min(420px, 60vw, calc((100vh - 260px) * 1.9)); min-height: 300px; padding: 84px 0 56px; }
  @supports (height: 1svh) { .hero { --logo: min(420px, 60vw, calc((100svh - 260px) * 1.9)); } }
  .hero-cta { --u: .62px; margin-top: calc(var(--logo) * .08); }
  .hero-by { margin-top: calc(var(--logo) * .05); }
  .hero .scroll { bottom: 8px; }
}
.scroll { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 44px; height: 44px; transform: translateX(-50%); display: grid; place-items: center; }
.scroll span, .go span { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--gold-solid)); position: relative; animation: drip 2.4s ease-in-out infinite; }

.scroll span::after, .go span::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; transform: translateX(-50%); background: url(assets/img/ui/caret-down.png) center / 100% 100% no-repeat; }
@keyframes drip { 0%, 100% { opacity: .35; transform: translateY(-4px); } 50% { opacity: 1; transform: translateY(3px); } }

html { scroll-snap-type: y proximity; }
.hero, .screen { scroll-snap-align: start; }
.screen { position: relative; min-height: 100vh; min-height: 100svh; }

.intro { position: relative; display: grid; place-items: center; min-height: 100vh; padding: clamp(56px, 9vh, 110px) 22px; text-align: center; background: var(--ground); isolation: isolate; scroll-snap-align: start; }
@supports (height: 1svh) { .intro { min-height: 100svh; } }
.intro-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.intro-bg img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 59% 62%; filter: brightness(.6) saturate(.9); }

.depth-stage { position: absolute; transform: scale(1.06); transform-origin: 50% 50%; }
.depth-stage > .depth-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; filter: brightness(.6) saturate(.9); }
.depth-stage > img.under { visibility: hidden; }
.intro-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44% 52% at 50% 50%, rgba(12, 8, 4, .62), rgba(12, 8, 4, .4) 60%, rgba(12, 8, 4, .18) 100%),
    linear-gradient(180deg, var(--ground) 0, rgba(23, 17, 10, .3) 22%, rgba(23, 17, 10, .16) 50%, rgba(23, 17, 10, .4) 78%, var(--ground) 100%); }
.intro-in { display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3.4vh, 36px); max-width: 52em; }
.intro-hook { margin: 0; max-width: 21em; font: 300 clamp(25px, 2.9vw, 42px)/1.3 var(--serif); color: var(--ivory); }
.intro-hook .lead { display: block; margin: 0 auto .28em; padding: .12em .1em .14em; font-size: 1.62em; line-height: 1.02; letter-spacing: .01em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-promise { margin: 0; max-width: 35em; font: 300 clamp(16.5px, 1.35vw, 20px)/1.65 var(--serif); color: #d8cab2; }
.intro-examples { margin: 0; font: 300 clamp(12px, .95vw, 14px)/1.7 var(--serif); letter-spacing: .26em; text-transform: uppercase; color: #b9a98d; }
.intro-metrics { margin: 0; padding: .24em 0 .12em; font: 300 clamp(17px, 1.5vw, 22px)/1.4 var(--serif); font-variant-caps: small-caps; letter-spacing: .08em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-metrics .diamond { width: .566em; height: .471em; margin: 0 .97em .12em; }

.intro-examples, .intro-metrics { text-wrap: balance; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.intro-in > .reveal:nth-child(2) { transition-delay: .18s; }
.intro-in > .reveal:nth-child(3) { transition-delay: .36s; }
.intro-in > .reveal:nth-child(4) { transition-delay: .5s; }

.count-sec { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 0 clamp(24px, 5vh, 64px); overflow: hidden; text-align: center; scroll-snap-align: start; }
.countdown { display: flex; flex-direction: column; align-items: center; width: 100%; }

.count-screen { --bw: min(max(100cqw, 177.68cqh), 243cqh); --t: clamp(100cqh - .5628 * var(--bw), 45cqh - .2685 * var(--bw), 0px);
  position: relative; width: 100%; height: 100vh; min-height: 360px; overflow: hidden; container-type: size; isolation: isolate; }
@supports (height: 1svh) { .count-screen { height: 100svh; } }

.count-screen::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 34% at 50% calc(var(--t) + .2685 * var(--bw)), rgba(12, 8, 4, 0) 36%, rgba(12, 8, 4, .46) 70%, rgba(12, 8, 4, .74) 100%),
    linear-gradient(180deg, var(--ground) 0, rgba(23, 17, 10, .6) 5%, rgba(23, 17, 10, 0) 13%, rgba(23, 17, 10, 0) 86%, rgba(23, 17, 10, .55) 94%, var(--ground) 100%); }

.count-head { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(100cqh - var(--t) - .1587 * var(--bw) + 22px); padding: 0 22px; }
.count-head::before, .count-foot::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(980px, 100%); height: calc(100% + 70px); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(14, 9, 4, .62), rgba(14, 9, 4, .4) 55%, rgba(14, 9, 4, 0)); pointer-events: none; }
.countdown .title { font-size: clamp(19px, min(2.6vw, 4.8cqh), 48px); text-wrap: balance; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .8)); }
.countdown .title::after { margin-top: clamp(5px, 1.2cqh, 10px); }
.countdown .date { margin: clamp(3px, 1.2cqh, 10px) 0 0; color: #d5c6ab; font-size: clamp(13px, min(1.2vw, 2.6cqh), 21px); letter-spacing: .08em; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }

.lock-box { position: absolute; z-index: 0; flex: none; width: var(--bw); aspect-ratio: 1672 / 941; container-type: inline-size;
  left: clamp(max(100cqw - var(--bw), 3cqw - .356 * var(--bw)), 50cqw - .5035 * var(--bw), min(0px, 97cqw - .825 * var(--bw)));
  top: var(--t); }

@media (max-height: 540px) and (min-aspect-ratio: 19/20) {
  .countdown .title::after { display: none; }
  .countdown .date { margin-top: 2px; }
  .count-foot .early-title { font-size: 18px; margin-bottom: 2px; }
  .count-foot .early-copy, .count-foot .found-note { font-size: 14px; line-height: 1.45; }
  .count-foot .go { display: none; }
}
@media (min-aspect-ratio: 243/100) {
  .lock-box { left: calc(50cqw - .5035 * var(--bw));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
.lock-box > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.lock-box .drum { position: absolute; top: 40.4%; height: 12.3%; width: 3.74%; transform: translateX(-50%); overflow: hidden; }
.drum .fig { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font: 300 3.28cqw/1 var(--serif); color: #24180a; text-shadow: 0 .095cqw 0 rgba(255, 231, 170, .5), 0 -.047cqw 0 rgba(40, 25, 8, .4);
  transition: transform .52s cubic-bezier(.3, .7, .25, 1), opacity .52s; }
.drum .fig.in { transform: translateY(-110%); opacity: .2; transition: none; }
.drum .fig.out { transform: translateY(110%); opacity: .2; }
.plate-label { position: absolute; top: 55.52%; transform: translate(-50%, -50%); white-space: nowrap;
  font: 300 1.36cqw/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; color: #22170a; text-shadow: 0 .11cqw 0 rgba(255, 236, 190, .6), 0 -.045cqw 0 rgba(30, 18, 6, .35); }

.lost-tooth { position: absolute; z-index: 2; left: 77.2%; top: 67.9%; width: max(46px, 3.2cqw); height: max(56px, 4.4cqw); padding: 0; border: 0; background: none; cursor: pointer;
  transform: translate(-50%, -50%); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.lost-tooth .blade { position: absolute; left: 50%; top: 50%; height: 3.3cqw; aspect-ratio: 84 / 164; transform: translate(-50%, -50%) rotate(-22deg); pointer-events: none; }
.lost-tooth img { position: relative; display: block; width: 100%; height: 100%; max-width: none; pointer-events: none;
  filter: brightness(1.18) contrast(1.4) saturate(.55) drop-shadow(.1cqw .2cqw .14cqw rgba(0, 0, 0, .8)); transition: filter .25s; }
.lost-tooth .blade::after { content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 244, 218, .9) 50%, transparent 62%) no-repeat; background-size: 320% 100%; background-position: 160% 0;
  -webkit-mask: url(assets/img/box/tooth-hd.webp) center / 100% 100% no-repeat; mask: url(assets/img/box/tooth-hd.webp) center / 100% 100% no-repeat;
  animation: toothGleam 6.5s ease-in-out 2.5s infinite; }
@keyframes toothGleam { 0%, 74% { background-position: 160% 0; } 90%, 100% { background-position: -60% 0; } }
@media (hover: hover) { .lost-tooth:hover img { filter: brightness(1.45) contrast(1.4) saturate(.55) drop-shadow(0 0 .5cqw rgba(255, 226, 170, .6)); } }
.lost-tooth:focus-visible { outline: 2px solid var(--gold-solid); outline-offset: 4px; }
.lost-tooth.taking { pointer-events: none; animation: toothTaken .7s cubic-bezier(.4, 0, .6, 1) forwards; }
.lost-tooth.taking .blade::after { animation: none; }
@keyframes toothTaken { 0% { transform: translate(-50%, -50%); opacity: 1; filter: brightness(1.6); }
  35% { transform: translate(-50%, -90%) rotate(34deg) scale(1.5); opacity: 1; }
  100% { transform: translate(-50%, -260%) rotate(74deg) scale(.6); opacity: 0; } }

@media (min-aspect-ratio: 4/3) and (min-height: 541px) {
  .lost-tooth { left: 72.68%; top: 74.8%; filter: drop-shadow(.03cqw .07cqw .03cqw rgba(8, 4, 1, .95)) drop-shadow(.16cqw .3cqw .3cqw rgba(8, 4, 1, .7)); }
  .lost-tooth .blade { transform: translate(-50%, -50%) rotate(-37deg); }
  .lost-tooth img { filter: brightness(1.18) contrast(1.4) saturate(.55) brightness(1.5); }
}
@media (min-aspect-ratio: 4/3) and (min-height: 541px) and (hover: hover) {
  .lost-tooth:hover img { filter: brightness(1.45) contrast(1.4) saturate(.55) brightness(1.5) drop-shadow(0 0 .5cqw rgba(255, 226, 170, .88)); }
}

.count-foot { position: absolute; z-index: 2; left: 0; right: 0; top: calc(var(--t) + .3647 * var(--bw) + clamp(22px, 5.2cqh, 48px)); display: flex; flex-direction: column; align-items: center; }

.count-head, .count-foot, .count-foot > * { pointer-events: none; }
.count-foot a, .count-foot button { pointer-events: auto; }
.countdown:has(.found-note:not([hidden])) .count-foot :is(.early-title, .early-copy) { display: none; }
.found-note { position: relative; max-width: 34em; margin: 0 22px; font: 300 clamp(15px, min(1.2vw, 2.2cqh), 21px)/1.5 var(--serif); color: var(--gold-solid);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .95), 0 0 2px rgba(0, 0, 0, .8); }
.found-go { margin-left: .3em; color: var(--ivory); text-underline-offset: 3px; white-space: nowrap; }
.early { max-width: 44em; padding: 0 22px; text-shadow: 0 1px 8px rgba(0, 0, 0, .85); }

.early-title { font-size: clamp(21px, min(2vw, 3.6cqh), 32px); margin: 0 0 6px; color: var(--ivory); }

.countdown:not(.is-open) .early-title { text-transform: uppercase; letter-spacing: .06em; }
.early-copy { margin: 0; color: #dccfb8; font-size: clamp(16px, min(1.25vw, 2.2cqh), 21px); white-space: pre-line; text-wrap: balance; }
.early .play-now { margin-top: 22px; }
.go { display: grid; place-items: center; width: 44px; height: 54px; margin: 10px auto 0; }

@media (max-aspect-ratio: 19/20) {
  .count-sec { --bwu: 100vw; justify-content: center; min-height: 100vh; padding: clamp(16px, 3vh, 48px) 0; isolation: isolate; }
  @supports (height: 1svh) { .count-sec { min-height: 100svh; } }
  .count-sec::before { content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none;
    background: url(assets/img/story/lock-1672.webp) 50.35% 50% / cover no-repeat; filter: blur(14px) brightness(.46) saturate(.85); }
  .count-sec::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(180deg, var(--ground) 0, rgba(23, 17, 10, .35) 14%, rgba(23, 17, 10, 0) 30%, rgba(23, 17, 10, 0) 66%, rgba(23, 17, 10, .45) 84%, var(--ground) 100%); }
  .countdown { position: relative; z-index: 1; }
  .count-screen { display: flex; flex-direction: column; align-items: center; height: auto; min-height: 0; overflow: visible; container-type: normal; isolation: auto; }
  .count-screen::after { display: none; }
  .count-head { position: relative; z-index: 1; bottom: auto; padding: 0 22px; }
  .count-foot { position: relative; z-index: 1; top: auto; left: auto; right: auto; width: 100%; margin-top: calc(6px - .1688 * var(--bwu)); }
  .countdown .title { font-size: clamp(22px, 2.6vw, 38px); filter: none; }
  .countdown .title::after { margin-top: 10px; }
  .countdown .date { margin-top: 10px; font-size: clamp(14px, 1.1vw, 17px); text-shadow: none; }
  .early-title { font-size: clamp(21px, 2vw, 26px); }
  .early-copy { font-size: inherit; }
  .found-note { font-size: clamp(15px, 1.2vw, 18px); }
  .lock-box { position: relative; left: auto; top: auto; width: 100%; margin-top: calc(16px - .1587 * var(--bwu));
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(180deg, transparent, #000 11%, #000 89%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .lock-box::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 48% 40% at 56% 47.7%, rgba(12, 8, 4, 0) 46%, rgba(12, 8, 4, .5) 80%, rgba(12, 8, 4, .74) 100%); }
  .found-note { position: relative; z-index: 1; margin: 0 22px; text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
  .early { position: relative; z-index: 1; max-width: 30em; }
}

@media (max-aspect-ratio: 4/5) {
  .count-sec { --bwu: 175vw; }
  .lock-box { width: 175vw; max-width: none; transform: translateX(-9%); }
  .lost-tooth .blade { height: 3.6cqw; }
}

.enigma, .solver { --u: .72px; --alabaster: linear-gradient(180deg, #e7dcd0 17%, #ad977f 83%); --pink: linear-gradient(180deg, #f0c9c0, #b8837a); }
.enigma { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px clamp(56px, 10vh, 120px); }
.enigma-head { flex: none; text-align: center; padding: clamp(40px, 9vh, 100px) 0 clamp(18px, 3.4vh, 36px); }
.enigma-head .eyebrow { margin: 0 0 6px; }
.enigma-head .title { font-size: clamp(22px, 2.3vw, 32px); }
.enigma-head .title::after { display: none; }

.enigma > .enigma-head, .enigma > .desk, .enigma > .desk-foot { position: relative; }
.enigma-bg { position: absolute; inset: 0; pointer-events: none; -webkit-clip-path: inset(0); clip-path: inset(0); }
.enigma-bg-in { position: -webkit-sticky; position: sticky; top: 0; height: min(100%, 100vh); height: min(100%, 100lvh); overflow: hidden; background: var(--ground); }
.enigma-bg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; }
.enigma-bg-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 6, 4, .4), rgba(4, 3, 2, .48)); }
.enigma-bg::before, .enigma-bg::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; height: min(16vh, 140px); }
.enigma-bg::after { height: min(14vh, 120px); }
.enigma-bg::before { top: 0; background: linear-gradient(180deg, var(--ground), rgba(23, 17, 10, 0)); }
.enigma-bg::after { bottom: 0; background: linear-gradient(0deg, var(--ground), rgba(23, 17, 10, 0)); }

.enigma-head { isolation: isolate; }
.enigma-head::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -20px; bottom: -20px; width: min(980px, 100%); transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14, 9, 4, .86), rgba(14, 9, 4, .72) 60%, rgba(14, 9, 4, 0)); pointer-events: none; }

@media (max-height: 700px) { .enigma-head::before { background: radial-gradient(closest-side, rgba(14, 9, 4, .94), rgba(14, 9, 4, .84) 60%, rgba(14, 9, 4, 0)); } }
.enigma-head :is(.eyebrow, .title) { filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .8)); }

.preamble { max-width: 40em; margin: clamp(10px, 1.8vh, 18px) auto 0; padding: 0 16px; font: italic 300 clamp(15.5px, 1.15vw, 18px)/1.6 var(--serif); color: #cdbfa8; }

.desk { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); gap: calc(18 * var(--u)); width: min(1340px, 100%); align-items: stretch; }
.desk-box { display: flex; flex-direction: column; padding: calc(18 * var(--u)) calc(20 * var(--u)) calc(16 * var(--u)); }
.desk-box .pz-h { position: static; margin: calc(4 * var(--u)) 0 calc(12 * var(--u)); }
.comb-home { position: relative; width: 100%; aspect-ratio: 2.437; }
.box-bar { --gap: calc(16 * var(--u)); --volw: max(30px, calc(40 * var(--u))); --volg: calc(var(--volw) + var(--gap)); display: flex; align-items: flex-start; gap: var(--gap); margin-top: calc(14 * var(--u)); padding: 0 calc(4 * var(--u)); }

.box-play { --rd: max(46px, calc(62 * var(--u))); margin-top: calc((100% - var(--rd) - var(--gap) - var(--volg)) * .15 - var(--rd) / 2); }
.box-play .sq, .box-play.on .tri { display: none; }
.box-play.on .sq { display: block; }
svg.desk-line { flex: 1 1 auto; min-width: 0; }

.tray { display: flex; align-items: center; justify-content: center; gap: calc(16 * var(--u)); min-height: max(58px, calc(76 * var(--u))); margin-top: calc(10 * var(--u)); padding: calc(8 * var(--u)) calc(14 * var(--u));
  border-top: 1px solid rgba(131, 103, 66, .35); }
.tray-tooth { position: relative; flex: none; display: grid; place-items: center; width: max(64px, calc(86 * var(--u))); height: max(46px, calc(60 * var(--u))); padding: 0; border: 0; border-radius: 8px; background: none;
  cursor: grab; touch-action: none; -webkit-tap-highlight-color: transparent; }
.tray-tooth::before { content: ""; position: absolute; inset: 0; border-radius: 8px; border: 1px dashed rgba(232, 201, 138, .55); box-shadow: 0 0 14px rgba(232, 201, 138, .18); animation: trayGlow 2.2s ease-in-out infinite; }

.tray-tooth img { position: absolute; left: 50%; top: 50%; display: block; width: auto; height: max(58px, calc(77 * var(--u))); max-width: none; transform: translate(-50%, -50%) rotate(-72deg); filter: brightness(1.18) contrast(1.4) saturate(.55) drop-shadow(0 4px 5px rgba(0, 0, 0, .75)); pointer-events: none; }
@media (hover: hover) { .tray-tooth:hover img { filter: brightness(1.4) contrast(1.4) saturate(.55) drop-shadow(0 0 8px rgba(255, 226, 170, .5)); } }
.tray-tooth.armed::before { border-style: solid; border-color: rgba(255, 214, 150, .95); box-shadow: 0 0 18px rgba(255, 206, 140, .6); animation-duration: 1.1s; }
.tray-tooth.dragging { opacity: .3; }
.tray-tooth:active { cursor: grabbing; }
@keyframes trayGlow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.tray-t { margin: 0; max-width: 30em; font: italic 300 max(14px, calc(17 * var(--u)))/1.45 var(--serif); color: #cdbfa8; }
.desk-box.in-hand .tray-t { color: var(--gold-solid); font-style: normal; }
.desk-box.whole .tray-t { color: var(--gold-solid); }
.tray-t.nudge { animation: shake .42s; }

.drag-ghost { position: fixed; z-index: 60; width: auto; height: max(84px, calc(112 * var(--u))); pointer-events: none; transform: translate(-50%, -50%) rotate(10deg);
  filter: brightness(1.18) contrast(1.4) saturate(.55) drop-shadow(0 10px 12px rgba(0, 0, 0, .7)); }
.letter-home { position: relative; min-height: 0; }
.letter-home .pz-letter { position: absolute; inset: 0; }
.desk-foot { display: flex; justify-content: center; margin-top: calc(28 * var(--u)); }

html.solver-open { overflow: hidden; }
.solver { position: fixed; inset: 0; z-index: 48; display: flex; align-items: center; justify-content: center; background: var(--ground); outline: none; overflow: hidden;
  opacity: 0; transition: opacity .45s ease; }
.solver.shown { opacity: 1; }
.puzzle { position: relative; z-index: 1; flex: none; width: calc(1672 * var(--u)); height: calc(920 * var(--u)); }

.g-gold, .g-ala { -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-gold { background-image: var(--gold); }
.g-ala { background-image: var(--alabaster); }

.study { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent); }
.study-stage { position: absolute; isolation: isolate; }
.study-plate { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; }
.study-fire, .study-glow, .study-lamp, .study-lit { position: absolute; display: block; }
.study-fire { mix-blend-mode: screen; }
.study-glow, .study-lamp { background: center / 100% 100% no-repeat; mix-blend-mode: screen; }
.study-glow { opacity: .66; will-change: opacity; }
.study-lit { opacity: 0; will-change: opacity; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.study-lit.up { background: rgb(128, 128, 128); mix-blend-mode: color-dodge; }
.study-lit.down { background: #000; }
.study-lamp { animation-timing-function: ease-in-out; animation-iteration-count: infinite; will-change: opacity, transform; }
@keyframes studyFlickerA { 0%, 100% { opacity: .82; } 17% { opacity: .96; } 34% { opacity: .74; } 51% { opacity: .9; } 68% { opacity: .79; } 85% { opacity: .93; } }
@keyframes studyFlickerB { 0%, 100% { opacity: .9; } 23% { opacity: .72; } 47% { opacity: 1; } 61% { opacity: .8; } 88% { opacity: .94; } }
@keyframes studyFlickerC { 0%, 100% { opacity: .86; } 29% { opacity: 1; } 55% { opacity: .7; } 73% { opacity: .92; } }
@keyframes studyBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.study.asleep .study-lamp { animation-play-state: paused; }
.study.still .study-glow, .study.still .study-lit { display: none; }
.study.still .study-lamp { animation: none; opacity: .86; }
.study-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 6, 4, .62), rgba(4, 3, 2, .68)); }

.case { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.case-rule { position: absolute; inset: calc(15 * var(--u)); border: max(1px, calc(2 * var(--u))) solid rgba(140, 124, 111, .75); }
.case-rule.light { inset: calc(18 * var(--u)); border-color: rgba(140, 124, 111, .38); }
.case-corner { position: absolute; display: block; width: calc(35 * var(--u)); height: calc(35 * var(--u)); max-width: none; }
.case-corner.tl { left: calc(12 * var(--u)); top: calc(12 * var(--u)); }
.case-corner.tr { right: calc(12 * var(--u)); top: calc(12 * var(--u)); transform: scaleX(-1); }
.case-corner.bl { left: calc(12 * var(--u)); bottom: calc(12 * var(--u)); transform: scaleY(-1); }
.case-corner.br { right: calc(12 * var(--u)); bottom: calc(12 * var(--u)); transform: scale(-1, -1); }

.gbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: var(--bh); min-width: var(--bw, 0); padding: 0; border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gbtn.small { --bh: calc(48 * var(--u)); --cap: calc(30 * var(--u)); --pad: calc(40 * var(--u)); --fs: calc(19 * var(--u)); --set: bs; }
.gbtn.large { --bh: calc(61 * var(--u)); --cap: calc(37 * var(--u)); --pad: calc(51 * var(--u)); --fs: calc(20 * var(--u)); }
.gbtn.tall { --bh: calc(79 * var(--u)); --cap: calc(48 * var(--u)); --pad: calc(62 * var(--u)); --fs: calc(25 * var(--u)); --bw: calc(233 * var(--u)); }
.gbtn .skin { position: absolute; inset: 0; display: flex; pointer-events: none; transition: opacity .12s linear; }
.gbtn .skin i { display: block; height: 100%; background-repeat: no-repeat; background-size: 100% 100%; }
.gbtn .skin .l, .gbtn .skin .r { flex: none; width: var(--cap); }
.gbtn .skin .b { flex: 1; background-repeat: repeat-x; background-size: auto 100%; }
.gbtn .skin.hov, .gbtn .skin.act { opacity: 0; }
@media (hover: hover) { .gbtn:hover:not(:disabled) .skin.hov { opacity: 1; } }
.gbtn.on .skin.act, .gbtn:active:not(:disabled) .skin.act { opacity: 1; }
.gbtn.small .rest .l { background-image: url(assets/img/ui/bsL.png); } .gbtn.small .rest .b { background-image: url(assets/img/ui/bsB.png); } .gbtn.small .rest .r { background-image: url(assets/img/ui/bsR.png); }
.gbtn.small .hov .l { background-image: url(assets/img/ui/bsLH.png); } .gbtn.small .hov .b { background-image: url(assets/img/ui/bsBH.png); } .gbtn.small .hov .r { background-image: url(assets/img/ui/bsRH.png); }
.gbtn.small .act .l { background-image: url(assets/img/ui/bsLA.png); } .gbtn.small .act .b { background-image: url(assets/img/ui/bsBA.png); } .gbtn.small .act .r { background-image: url(assets/img/ui/bsRA.png); }
.gbtn:is(.large, .tall) .rest .l { background-image: url(assets/img/ui/blL.png); } .gbtn:is(.large, .tall) .rest .b { background-image: url(assets/img/ui/blB.png); } .gbtn:is(.large, .tall) .rest .r { background-image: url(assets/img/ui/blR.png); }
.gbtn:is(.large, .tall) .hov .l { background-image: url(assets/img/ui/blLH.png); } .gbtn:is(.large, .tall) .hov .b { background-image: url(assets/img/ui/blBH.png); } .gbtn:is(.large, .tall) .hov .r { background-image: url(assets/img/ui/blRH.png); }
.gbtn:is(.large, .tall) .act .l { background-image: url(assets/img/ui/blLA.png); } .gbtn:is(.large, .tall) .act .b { background-image: url(assets/img/ui/blBA.png); } .gbtn:is(.large, .tall) .act .r { background-image: url(assets/img/ui/blRA.png); }
.gbtn:is(.large, .tall):disabled .rest .l { background-image: url(assets/img/ui/blLD.png); } .gbtn:is(.large, .tall):disabled .rest .b { background-image: url(assets/img/ui/blBD.png); } .gbtn:is(.large, .tall):disabled .rest .r { background-image: url(assets/img/ui/blRD.png); }
.gbtn .label { position: relative; display: inline-flex; align-items: center; gap: .45em; padding: 0 var(--pad); font: 300 var(--fs)/1 var(--serif); text-transform: uppercase; white-space: nowrap; transform: translateY(calc(3 * var(--u)));
  background-image: var(--alabaster); -webkit-background-clip: text; background-clip: text; color: transparent; }

.gbtn .label, .pz-h, .g-gold, .g-ala, .plate-kind > span:first-child { padding-top: .32em; padding-bottom: .14em; margin-top: -.32em; margin-bottom: -.14em; }
.gbtn .label { padding-left: var(--pad); padding-right: var(--pad); }
.gbtn.small .label { transform: none; }

.gbtn.small .skin { inset: calc(-2.5 * var(--u)) 0 auto; height: var(--bh); }
.gbtn .label > span:not(.count) { background-image: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (hover: hover) { .gbtn:hover:not(:disabled) .label { background-image: var(--gold); } }
.gbtn.on .label { background-image: var(--gold); }
.gbtn:disabled { cursor: default; }
.gbtn:disabled .label { opacity: .45; }
.gbtn .label svg { width: .85em; height: .85em; fill: #d9cbb9; flex: none; }
.gbtn.on .label svg { fill: var(--gold-solid); }
.gbtn:focus-visible { outline-offset: 2px; }

.ground { position: relative; display: grid; place-items: center; width: var(--rd, calc(52 * var(--u))); height: var(--rd, calc(52 * var(--u))); flex: none; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: filter .12s; }
.ground > .art { position: absolute; left: -38.59%; top: -38.59%; width: 177.17%; height: 177.17%; max-width: none; pointer-events: none; }
@media (hover: hover) { .ground:hover:not(:disabled) { filter: brightness(1.15); } }
.ground:disabled { cursor: default; opacity: .5; }

.stage-nav::before { content: ""; position: absolute; inset: 0; background: url(assets/img/ui/round.png) center / 100% 100% no-repeat; }
.stage-nav > svg { position: relative; z-index: 1; width: 50%; height: 50%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8)); }
.stage-nav svg path { fill: none; stroke: #cbb38a; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.topbar-game { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.topbar-game > * { pointer-events: auto; }

.topbar-game .hud-hints { position: absolute; left: calc(41 * var(--u)); top: calc(43 * var(--u)); --bw: calc(160 * var(--u)); }
.hud-close { position: absolute; right: calc(36 * var(--u)); top: calc(37 * var(--u)); display: grid; place-items: center; width: calc(60 * var(--u)); height: calc(60 * var(--u));
  min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; opacity: .85; transition: opacity .2s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hud-close img { display: block; width: max(22px, calc(32 * var(--u))); height: max(22px, calc(32 * var(--u))); transition: filter .2s ease; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); }
@media (hover: hover) { .hud-close:hover { opacity: 1; } .hud-close:hover img { filter: brightness(1.35) drop-shadow(0 1px 2px rgba(0, 0, 0, .8)); } }
.hud-close:focus-visible { outline: 1px solid rgba(232, 201, 138, .8); outline-offset: -4px; }

.gplate { position: absolute; left: 50%; top: calc(11 * var(--u)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; min-width: calc(320 * var(--u)); pointer-events: none; }
.plate-crown { position: relative; z-index: 1; display: block; width: calc(142 * var(--u)); height: calc(22 * var(--u)); max-width: none; margin-bottom: calc(-16 * var(--u)); }
.plate-band { display: flex; align-items: stretch; height: calc(77 * var(--u)); }
.plate-band > img { display: block; height: 100%; width: auto; max-width: none; }
.plate-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: calc(9 * var(--u)) calc(26 * var(--u)) 0; background: url(assets/img/ui/titleBg.webp) 0 0 / auto 100% repeat-x; white-space: nowrap; }
.plate-title { font: 300 calc(24 * var(--u))/0.95 var(--serif); font-variant-caps: small-caps; letter-spacing: .02em; padding: .12em 0 .06em;
  background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plate-kind { display: flex; align-items: center; gap: calc(7 * var(--u)); margin-top: calc(-2 * var(--u)); }
.plate-kind > span:first-child { font: 300 calc(12 * var(--u))/1 var(--serif); letter-spacing: .24em; text-transform: uppercase; opacity: .6;
  background-image: var(--alabaster); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gears { display: inline-flex; align-items: center; gap: calc(2 * var(--u)); opacity: .85; }
.gears i { display: block; width: calc(11 * var(--u)); height: calc(11 * var(--u)); background: linear-gradient(180deg, rgba(231, 220, 208, .26), rgba(173, 151, 127, .26));
  -webkit-mask: url(assets/img/ui/ic_settings.png) center / 100% 100% no-repeat; mask: url(assets/img/ui/ic_settings.png) center / 100% 100% no-repeat; }
.gears i.on { background: var(--gold); }

.puzzle .toast { position: absolute; z-index: 45; left: calc(41 * var(--u)); top: calc(96 * var(--u)); max-width: calc(620 * var(--u)); margin: 0; padding: calc(7 * var(--u)) calc(14 * var(--u));
  background: rgba(10, 7, 4, .92); border: 1px solid #836742; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); color: #e2c48f; font: 300 calc(15 * var(--u))/1.35 var(--serif);
  opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .3s, transform .3s; }
.puzzle .toast.show { opacity: 1; transform: none; }

.puzzle .pz-comb { position: absolute; left: calc(43 * var(--u)); top: calc(112 * var(--u)); width: calc(982 * var(--u)); height: calc(432 * var(--u)); }
.comb-slot { position: absolute; left: calc(16 * var(--u)); right: calc(16 * var(--u)); top: calc(58 * var(--u)); bottom: calc(12 * var(--u)); }
.letter-slot { position: absolute; left: calc(1037 * var(--u)); top: calc(112 * var(--u)); width: calc(592 * var(--u)); height: calc(432 * var(--u)); }
.letter-slot .pz-letter { position: absolute; inset: 0; }
.pz-letter { padding: calc(16 * var(--u)) calc(14 * var(--u)) calc(16 * var(--u)) calc(16 * var(--u)); }
.pz-listen { position: absolute; left: calc(43 * var(--u)); top: calc(556 * var(--u)); width: calc(474 * var(--u)); height: calc(332 * var(--u));
  display: flex; flex-direction: column; gap: calc(8 * var(--u)); padding: calc(50 * var(--u)) calc(20 * var(--u)) calc(18 * var(--u)); }
.pz-score { position: absolute; z-index: 2; left: calc(529 * var(--u)); top: calc(556 * var(--u)); width: calc(1100 * var(--u)); height: calc(332 * var(--u));
  display: flex; flex-direction: column; align-items: center; gap: calc(7 * var(--u)); padding: calc(60 * var(--u)) calc(30 * var(--u)) calc(14 * var(--u)); }
.pz-h { position: absolute; left: 0; right: 0; top: calc(22 * var(--u)); margin: 0; text-align: center; font: 300 calc(23 * var(--u))/1.2 var(--serif); font-variant-caps: small-caps; letter-spacing: .04em;
  background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.pz-listen .pz-h, .pz-score .pz-h { top: calc(13.2 * var(--u)); }

.stage-fit { position: absolute; inset: 0; container-type: size; display: grid; place-items: center; }
.stage { position: relative; overflow: hidden; background: #000; width: 100%; width: min(100cqw, calc(100cqh * var(--ar, 1.77)));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent), linear-gradient(180deg, transparent, #000 4%, #000 94%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.stage-world { position: absolute; z-index: 0; }
.stage-plate { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; }
.stage-cyl, .stage-tooth, .stage-loose { position: absolute; display: block; pointer-events: none; user-select: none; }
.stage-tooth { will-change: transform; }
.stage-tooth.seating { animation: seat .7s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes seat { from { transform: translateY(-38%) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.stage-loose { filter: drop-shadow(.25vw .7vw .45vw rgba(0, 0, 0, .75)); transition: transform .65s cubic-bezier(.4, 0, .2, 1), opacity .65s; }
.stage-loose.lifting { opacity: 0; transform: translate(-10%, -60%) rotate(-40deg) scale(1.35) !important; }
.stage-spot { position: absolute; width: max(44px, var(--w)); height: max(44px, var(--h)); transform: translate(-50%, -50%); background: none; border: 0; border-radius: 10px; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stage-spot:focus-visible { outline: 2px solid var(--gold-solid); outline-offset: 0; }

.stage-spot.spot-tooth { width: var(--w); height: max(44px, var(--h)); border-radius: 2px; }

.stage-spot.spot-gap, .stage-spot.spot-loose { z-index: 2; }

.stage-tine { position: absolute; display: block; pointer-events: none; opacity: 0; will-change: opacity, transform;
  background: linear-gradient(180deg, rgb(255, 238, 200), rgb(246, 196, 112) 40%, rgba(214, 150, 64, .82) 80%, rgba(190, 130, 50, .4));
  box-shadow: inset 0 0 2px rgba(120, 70, 10, .5); }
.stage-tine-halo { position: absolute; display: block; pointer-events: none; opacity: 0; mix-blend-mode: screen; will-change: opacity;
  background: radial-gradient(ellipse 50% 44% at 50% 26%, rgba(255, 210, 140, .9), rgba(255, 186, 100, .35) 50%, rgba(255, 170, 90, 0) 74%); }

.stage-world { transform-origin: 0 0; }
.stage-detail { position: absolute; display: block; pointer-events: none; user-select: none; opacity: 0; transition: opacity .3s;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(180deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.stage-detail.ready { opacity: 1; }

.stage-closer { position: absolute; inset: 0; z-index: 4; display: none; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.stage-fit[data-mode="wide"] .stage-closer { display: block; }
.stage-fit[data-mode="wide"] .stage-spot { pointer-events: none; }
.stage.gliding .stage-spot, .stage.gliding .stage-closer { pointer-events: none; }
.stage.gliding .stage-world { will-change: transform; }

.stage-nav { position: absolute; z-index: 6; left: 7px; top: 7px; --rd: 42px; display: none; }
.stage-fit[data-mode="wide"] .stage-nav, .stage-fit[data-mode="close"] .stage-nav { display: grid; }
.stage-nav > svg { grid-area: 1 / 1; }
.stage-nav .back, .stage-fit[data-mode="close"] .stage-nav .zoom { display: none; }
.stage-fit[data-mode="close"] .stage-nav .back { display: block; }

.gap-halo { position: absolute; pointer-events: none; }
.gap-halo::before, .gap-halo::after { content: ""; position: absolute; inset: 0; border-radius: .7cqw; }
.gap-halo::before { box-shadow: 0 0 1.5cqw .45cqw rgba(232, 201, 138, .8), inset 0 0 1.1cqw rgba(232, 201, 138, .35); animation: haloGlow 1.8s ease-in-out infinite; }
.gap-halo::after { border: max(1px, .14cqw) solid rgba(232, 201, 138, .9); animation: haloLine 1.8s ease-in-out infinite; }
@keyframes haloGlow { 0%, 100% { opacity: .4; } 50% { opacity: .85; } }
@keyframes haloLine { 0%, 100% { opacity: .55; } 50% { opacity: .25; } }
.stage.armed .gap-halo::before, .stage.armed .gap-halo::after { animation-duration: 1.1s; }
.stage.armed .gap-halo::before { box-shadow: 0 0 2cqw .7cqw rgba(255, 206, 140, .9), inset 0 0 1.3cqw rgba(255, 206, 140, .45); }

.score-wrap { position: relative; flex: none; width: 100%; padding: calc(8 * var(--u)) calc(16 * var(--u));
  background: url(assets/img/paper-mid.webp) center / 100% auto repeat; box-shadow: 0 8px 22px rgba(0, 0, 0, .45); border-radius: 2px; }

.score-wrap { margin: calc(-6 * var(--u)) 0; padding-top: calc(12 * var(--u)); padding-bottom: calc(11 * var(--u)); box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 calc(12 * var(--u)), #000 calc(100% - 11 * var(--u)), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 calc(12 * var(--u)), #000 calc(100% - 11 * var(--u)), transparent); }
svg.score { display: block; width: 100%; height: auto; overflow: visible; transition: opacity .4s; }
svg.score .g { font-family: "VOI Score Glyphs"; font-size: 36px; fill: var(--ink); }
svg.score .line { fill: rgba(43, 35, 24, .7); }
svg.score .bar, svg.score .stem, svg.score .beam, svg.score .ledger, svg.score .tie { fill: var(--ink); }
svg.score .barnum { font: 300 15px var(--serif); fill: #7a5a2c; pointer-events: none; }
svg.score .barnum.on { fill: #4a2800; font-weight: 400; }

svg.score .bar-hov { fill: rgba(140, 90, 20, .1); pointer-events: none; }
@media (hover: hover) { svg.score .hit:not(.sel):hover { fill: rgba(196, 146, 62, .14); } }
svg.score .playhead { display: none; pointer-events: none; }
svg.score .playhead.running { display: inline; }
svg.score .playhead .head-line { fill: rgba(168, 52, 30, .7); }
svg.score .playhead .head-dot { fill: var(--red); }
svg.score .nname { font: 300 13px var(--serif); fill: #8c5a14; text-anchor: middle; letter-spacing: .02em; pointer-events: none; }
svg.score .nname.sel { fill: #4a2800; }
svg.score .nname.q { fill: #b08848; }

svg.score .head.mine { fill: #8c5a14; }
svg.score .ink, svg.score .system { pointer-events: none; }
svg.score .hit { fill: transparent; cursor: pointer; }

svg.score .hit.sel { fill: rgba(196, 146, 62, .32); stroke: rgba(140, 90, 20, .7); stroke-width: 1.2; }

svg.score .ring { fill: rgba(255, 250, 238, .85); stroke: #6b5638; stroke-width: 1.3; stroke-dasharray: 2.2 1.6; pointer-events: none; }
svg.score .ring.chosen { stroke: #8c5a14; stroke-dasharray: none; stroke-width: 1.8; fill: #f6d9a0; }
svg.score .ring.now { stroke: var(--red); }

svg.score .playhead.paused .head-line { fill: rgba(168, 52, 30, .45); }
svg.score .playhead.paused .head-dot { fill: rgba(168, 52, 30, .75); }
svg.score .chosen { fill: #8c5a14; }
svg.score .now { fill: var(--red) !important; }
svg.score .astray { fill: var(--red); opacity: .8; }
svg.score.locked { opacity: .38; }
svg.score.locked .hit { cursor: default; }
svg.score.shake { animation: shake .42s; }
@keyframes shake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

.status { flex: none; margin: 0; min-height: 1.35em; text-align: center; order: 2; font: 300 max(13px, calc(17 * var(--u)))/1.35 var(--serif);
  background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.status.err { background-image: var(--pink); }
.pz-score .status { order: 0; font-size: max(12px, calc(16 * var(--u))); }

.pz-score .status { order: 2; min-height: 0; }
.pz-score .score-foot { margin-top: calc(6 * var(--u)); }

.score-foot { flex: none; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.score-foot .notes { grid-column: 2; grid-row: 1; }

.score-foot .erase-note { grid-column: 1; grid-row: 1; justify-self: start; }
.erase-note:disabled { opacity: .45; cursor: default; }
.mine-row { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: calc(10 * var(--u)); }
.mine-row .listen-mine { --rd: calc(54 * var(--u)); }
.mine-row .listen-t { font-size: max(12px, calc(16 * var(--u))); }

.notes { flex: none; display: flex; justify-content: center; gap: calc(16 * var(--u)); }
.note-btn { position: relative; display: grid; place-items: center; width: calc(66 * var(--u)); height: calc(66 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.note-btn .knob { position: absolute; left: -38.59%; top: -38.59%; width: 177.17%; height: 177.17%; background: url(assets/img/ui/round-blank.webp) center / 100% 100% no-repeat; pointer-events: none; transition: filter .12s; }
.note-btn::before { content: ""; position: absolute; inset: calc(-3 * var(--u)); border-radius: 50%; box-shadow: 0 0 0 max(1.5px, calc(2 * var(--u))) rgba(246, 222, 176, .9), 0 0 calc(16 * var(--u)) rgba(240, 196, 120, .55); opacity: 0; transition: opacity .15s; pointer-events: none; }
@media (hover: hover) { .note-btn:hover .knob { filter: brightness(1.15); } }
.note-btn.on .knob { filter: brightness(1.18); }
.note-btn.on::before { opacity: 1; }
.note-n { position: relative; z-index: 1; display: block; transform: translateY(var(--note-dy, 0em)); font: 400 calc(22.8 * var(--u))/1 var(--serif); letter-spacing: .05em; color: rgba(36, 22, 8, .88);
  text-shadow: 0 max(1px, calc(1.3 * var(--u))) 0 rgba(255, 238, 200, .5), 0 calc(-1 * var(--u)) max(1px, calc(1.2 * var(--u))) rgba(0, 0, 0, .35); }

.note-n { --note-dy: .15em; }
html:lang(ar) .note-n { --note-dy: -.085em; }
.note-btn.on .note-n { color: #2c1805; text-shadow: 0 0 calc(7 * var(--u)) rgba(255, 214, 140, .95), 0 max(1px, calc(1.3 * var(--u))) 0 rgba(255, 238, 200, .55); }
.note-btn.ring .knob { animation: noteRing .5s ease-out; }
@keyframes noteRing { 0% { filter: brightness(1.7) drop-shadow(0 0 10px rgba(255, 196, 120, .9)); transform: scale(.94); } 40% { transform: scale(1.04); } 100% { filter: none; transform: none; } }
.solved-bar { display: flex; align-items: center; gap: calc(20 * var(--u)); }

.score-foot .solved-bar { grid-column: 2; grid-row: 1; justify-self: center; }

.listen-row { flex: none; display: flex; align-items: center; justify-content: center; gap: calc(12 * var(--u)); margin-top: calc(5 * var(--u)); }

.listen-play, .listen-mine { --rd: calc(64 * var(--u)); }
.listen-play .sq, .listen-play.on .tri, .listen-mine .sq, .listen-mine.on .tri { display: none; }
.listen-play.on .sq, .listen-mine.on .sq { display: block; }
.listen-t { font: 300 max(13px, calc(18 * var(--u)))/1.2 var(--serif); font-variant-caps: small-caps; letter-spacing: .04em; color: #cdbfa8; }
svg.timeline .bar-hit { fill: rgba(232, 201, 138, 0); cursor: pointer; transition: fill .2s; outline: none; }
@media (hover: hover) { svg.timeline .bar-hit:hover { fill: rgba(232, 201, 138, .09); } }
svg.timeline .bar-hit:focus-visible { fill: rgba(232, 201, 138, .12); stroke: rgba(232, 201, 138, .7); stroke-width: 2; }
svg.timeline .bar-hit.astray { fill: rgba(196, 92, 72, .2); }
svg.timeline .bar-n { font: 300 46px var(--serif); fill: #b7a98e; text-anchor: middle; pointer-events: none; }
svg.desk-line .bar-n { font-size: 36px; }

svg.timeline .bar-sep { stroke: rgba(214, 196, 160, .78); stroke-width: 1.5px; stroke-dasharray: 3px 4px; vector-effect: non-scaling-stroke; pointer-events: none; }
svg.timeline .mid { fill: rgba(183, 169, 142, .2); pointer-events: none; }
svg.timeline { display: block; height: auto; overflow: visible; }

svg.timeline .wave, svg.timeline .wave-ghost { pointer-events: none; }
svg.timeline .wave-area { opacity: .14; }
svg.timeline .wave-line { fill: none; stroke: rgba(203, 179, 138, .62); stroke-width: 1.2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
svg.timeline .wave.lit .wave-area { opacity: .46; }
svg.timeline .wave.lit .wave-line { stroke: #f6deb0; stroke-width: 1.6px; }
svg.timeline .wave.lit { filter: drop-shadow(0 0 3px rgba(240, 200, 120, .6)); }
svg.timeline .wave-ghost { fill: none; stroke: #e8c98a; stroke-width: 1.4px; stroke-dasharray: 4 4; opacity: .85; vector-effect: non-scaling-stroke; }
svg.timeline .head { pointer-events: none; }
svg.timeline .head-line { fill: rgba(240, 215, 168, .4); }
svg.timeline .head-dot { fill: #b7a98e; }
svg.timeline .head.running .head-line { fill: #f0d7a8; }
svg.timeline .head.running .head-dot { fill: #f6e3bd; }
svg.timeline .head.paused .head-line { fill: rgba(240, 215, 168, .75); }
svg.timeline .head.paused .head-dot { fill: #e2cfa8; }
svg.solver-line { flex: none; width: 100%; }

.seek { position: relative; flex: none; width: 100%; height: calc(22 * var(--u)); cursor: pointer; touch-action: pan-y; -webkit-tap-highlight-color: transparent; outline: none; user-select: none; }
.pz-listen .seek { margin-top: calc(26 * var(--u)); }
.seek-track { position: absolute; left: var(--x0, 0px); width: calc(8 * var(--bw, 0px)); top: 50%; height: max(4px, calc(5 * var(--u))); transform: translateY(-50%); border-radius: 3px; overflow: hidden; pointer-events: none;
  background: rgba(183, 169, 142, .2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .85), 0 0 0 1px rgba(214, 196, 160, .38); }
.seek-lit { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p, .15) * var(--bw, 0px)); background: linear-gradient(90deg, rgba(232, 201, 138, .35), #e8c98a); }
.seek-knob { position: absolute; left: calc(var(--x0, 0px) + var(--p, .15) * var(--bw, 0px)); top: 50%; width: max(12px, calc(17 * var(--u))); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 36% 30%, #fff3d6, #e2c48f 45%, #8a6a3a); box-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 0 1px rgba(40, 25, 8, .6); transition: transform .12s; }
@media (hover: hover) { .seek:not(.off):hover .seek-knob { transform: translate(-50%, -50%) scale(1.2); } }
.seek.dragging .seek-knob { transform: translate(-50%, -50%) scale(1.28); }
.seek:focus-visible .seek-knob { box-shadow: 0 0 0 2px var(--gold-solid), 0 1px 3px rgba(0, 0, 0, .8); }
.seek.off { opacity: .38; cursor: default; }

.vol { --vk: max(12px, calc(17 * var(--u))); flex: none; align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); }
.vol-bar { position: relative; flex: 1 1 auto; width: 100%; min-height: 44px; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; outline: none; user-select: none; }
.vol-track { position: absolute; left: 50%; top: calc(var(--vk) / 2); bottom: calc(var(--vk) / 2); width: max(4px, calc(5 * var(--u))); transform: translateX(-50%); border-radius: 3px; overflow: hidden; pointer-events: none;
  background: rgba(183, 169, 142, .2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .85), 0 0 0 1px rgba(214, 196, 160, .38); }
.vol-lit { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v, 1) * 100%); background: linear-gradient(0deg, rgba(232, 201, 138, .35), #e8c98a); }
.vol-knob { position: absolute; left: 50%; top: calc(var(--vk) / 2 + (1 - var(--v, 1)) * (100% - var(--vk))); width: var(--vk); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle at 36% 30%, #fff3d6, #e2c48f 45%, #8a6a3a); box-shadow: 0 1px 3px rgba(0, 0, 0, .8), 0 0 0 1px rgba(40, 25, 8, .6); transition: transform .12s; }
@media (hover: hover) { .vol-bar:hover .vol-knob { transform: translate(-50%, -50%) scale(1.2); } }
.vol-bar.dragging .vol-knob { transform: translate(-50%, -50%) scale(1.28); }
.vol-bar:focus-visible .vol-knob { box-shadow: 0 0 0 2px var(--gold-solid), 0 1px 3px rgba(0, 0, 0, .8); }
.vol.muted .vol-lit, .vol.muted .vol-knob { opacity: .4; }
.vol-snd { --rd: max(24px, calc(32 * var(--u))); position: relative; flex: none; display: grid; place-items: center; width: var(--rd); height: var(--rd); padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.vol-snd .snd { position: absolute; left: 50%; top: 50%; width: calc(var(--rd) * 326 / 184); height: calc(var(--rd) * 326 / 184); max-width: none; transform: translate(-50%, -50%); pointer-events: none; transition: filter .12s; }
.vol-snd .snd-off, .vol-snd.off .snd-on { display: none; }
.vol-snd.off .snd-off { display: block; }
@media (hover: hover) { .vol-snd:hover .snd { filter: brightness(1.15); } }
.vol-snd:focus-visible { outline: 2px solid var(--gold-solid); outline-offset: 2px; }
.box-bar .vol { width: var(--volw); }

.listen-main { flex: none; display: flex; align-items: stretch; gap: calc(12 * var(--u)); }
.listen-wave { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.listen-main .vol { width: max(30px, calc(40 * var(--u))); }

.pz-listen .listen-wave { height: calc(165.82 * var(--u)); }
.pz-listen .listen-wave .seek { margin-top: auto; }

.pz-listen svg.solver-line { flex: 1 1 0; min-height: 0; }

@media (pointer: coarse) and (max-width: 560px), (pointer: coarse) and (max-height: 560px) {
  .vol { display: none; }
  .box-bar { --volg: 0px; }
}

svg.timeline .pick, svg.timeline .point, svg.timeline .view { pointer-events: none; }
svg.timeline .pick { fill: rgba(232, 201, 138, .17); stroke: rgba(240, 215, 168, .75); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
svg.timeline .point { fill: rgba(232, 201, 138, .1); }
svg.timeline .bar-n.on { fill: #f6deb0; filter: drop-shadow(0 0 6px rgba(240, 200, 120, .6)); }
svg.timeline .view { fill: rgba(232, 201, 138, .05); stroke: rgba(240, 215, 168, .5); stroke-width: 1.5px; vector-effect: non-scaling-stroke; }

.letter-scroll { position: relative; height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(138, 111, 66, .6) transparent; padding-right: calc(4 * var(--u)); }
.letter-scroll.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 64 * var(--u)), rgba(0, 0, 0, .08)); mask-image: linear-gradient(180deg, #000 calc(100% - 64 * var(--u)), rgba(0, 0, 0, .08)); }
.pz-letter .paper { font-size: max(13.5px, calc(18.5 * var(--u))); padding: calc(46 * var(--u)) calc(40 * var(--u)) calc(54 * var(--u)); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .5)); }
.pz-letter .seal { width: calc(64 * var(--u)); height: calc(64 * var(--u)); }

.doc-scroll[data-more="1"] { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--doc-fade, 72px)), rgba(0, 0, 0, .08) 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - var(--doc-fade, 72px)), rgba(0, 0, 0, .08) 100%); }
.doc-scroll[data-more-x="1"] { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .08) 100%); mask-image: linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .08) 100%); }
.doc-scroll[data-more="1"][data-more-x="1"] {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--doc-fade, 72px)), rgba(0, 0, 0, .08) 100%), linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .08) 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--doc-fade, 72px)), rgba(0, 0, 0, .08) 100%), linear-gradient(to right, #000 calc(100% - 56px), rgba(0, 0, 0, .08) 100%); mask-composite: intersect; }

.paper { position: relative; isolation: isolate; color: var(--ink); font-family: var(--hand); font-size: clamp(15.5px, 1.18vw, 17px); line-height: 1.47;
  padding: clamp(34px, 9%, 58px) clamp(24px, 8%, 52px) clamp(40px, 10%, 66px); filter: drop-shadow(0 10px 26px rgba(0, 0, 0, .5)); }
.paper::before, .paper::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; pointer-events: none; }
.paper::before { top: calc(var(--cap, 260px) * .55); bottom: calc(var(--cap, 260px) * .55); background: url(assets/img/paper-mid.webp) top center / 100% auto repeat-y; }
.paper::after { top: 0; bottom: 0; background: url(assets/img/paper-top.webp) top center / 100% auto no-repeat, url(assets/img/paper-bot.webp) bottom center / 100% auto no-repeat; }
.paper p { margin: 0 0 .62em; }
.paper .salutation { margin-bottom: .85em; }
.closing { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 1em; }
.closing p { margin: 0; }
.signature { font-size: 1.25em; }
.seal { width: 62px; height: 62px; transform: rotate(-12deg); filter: drop-shadow(0 2px 2px rgba(40, 20, 10, .35)); }

.vo { position: fixed; inset: 0; z-index: 52; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 0 max(22px, calc(50vw - 456 * var(--u))) max(56px, calc((100vh - 920 * var(--u)) / 2 + 140 * var(--u)));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .55) 48%, rgba(0, 0, 0, .86) 78%);
  opacity: 0; pointer-events: none; transition: opacity .35s ease-out; }
.vo.on { opacity: 1; }
.vo.hint { pointer-events: auto; cursor: pointer; }
.vo-in { display: flex; flex-direction: column; align-items: center; padding: 18px 30px 14px; }
.vo-t { margin: 0; max-width: 46em; text-align: center; color: #e3e0da; font: 300 max(16px, calc(21 * var(--u)))/1.333 var(--serif); }
.vo.say .vo-t { opacity: .85; text-shadow: 0 0 12px rgba(0, 0, 0, .8), 0 0 40px rgba(0, 0, 0, .8); }
.vo-bar { width: calc(220 * var(--u)); height: 2px; margin-top: calc(22 * var(--u)); background: rgba(227, 224, 218, .18); }
.vo-bar i { display: block; width: 100%; height: 100%; background: #b7a98e; }
.vo.run .vo-bar i { animation: voCount var(--ms, 8000ms) linear forwards; }
@keyframes voCount { from { width: 100%; } to { width: 0%; } }
.vo-help { margin: 8px 0 0; color: rgba(227, 224, 218, .45); font: 300 max(11px, calc(14 * var(--u)))/1.3 var(--serif); }
.vo.say .vo-help { display: none; }

.vo-in { position: relative; }
.vo-x { position: absolute; z-index: 1; top: calc(-20 * var(--u)); right: calc(-24 * var(--u)); display: grid; place-items: center; width: max(36px, calc(44 * var(--u))); height: max(36px, calc(44 * var(--u)));
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; opacity: .8; transition: opacity .2s ease; -webkit-tap-highlight-color: transparent; }
.vo-x img { display: block; width: max(18px, calc(26 * var(--u))); height: max(18px, calc(26 * var(--u))); transition: filter .2s ease; }
@media (hover: hover) { .vo-x:hover { opacity: 1; } .vo-x:hover img { filter: brightness(1.35); } }
.vo-x:focus-visible { outline: 1px solid rgba(232, 201, 138, .8); outline-offset: -4px; }

.pop { position: fixed; z-index: 45; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 24px); overflow-y: auto; padding: 28px 26px 26px; text-align: center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .7)); }
.puzzle .pop { position: absolute; z-index: 44; top: calc(95 * var(--u)); width: calc(362 * var(--u)); max-height: none; overflow: visible; transform: none; padding: calc(28 * var(--u)) calc(26 * var(--u)) calc(26 * var(--u)); }
.puzzle .hints-panel { left: calc(35 * var(--u)); }
.puzzle .pop .panel-title { font-size: calc(25 * var(--u)); }
.puzzle .pop .panel-title::after { width: calc(270 * var(--u)); }
.puzzle .empty { font-size: max(13px, calc(18 * var(--u))); }
.puzzle .hint-rows { gap: calc(10 * var(--u)); }
.puzzle .hint-row { padding: calc(14 * var(--u)) calc(22 * var(--u)) calc(13 * var(--u)); }
.puzzle .hint-n { font-size: max(13px, calc(21 * var(--u))); }
.puzzle .hint-sub { font-size: max(12.5px, calc(20 * var(--u))); }
.hints-panel:focus { outline: none; }
.empty { color: var(--muted); margin: 0 0 16px; }

.hint-rows { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.hint-row { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; margin: 0; padding: 14px 22px 13px; border: 0; background: none; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.hint-row:disabled { opacity: .4; cursor: default; }
.hint-n, .hint-sub { position: relative; z-index: 1; font: 300 21px/1.25 var(--serif); padding: .32em 0 .14em; margin: -.32em 0 -.14em;
  background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hint-row.seen .hint-n { background-image: var(--alabaster); }
.hint-sub { font-size: 20px; }

.door-veil { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .8s ease; }
.door-veil.on { opacity: 1; pointer-events: auto; }

.win-film { position: fixed; inset: 0; z-index: 95; background: #000; opacity: 0; transition: opacity .45s ease; cursor: pointer; overflow: hidden; }
.win-film.on { opacity: 1; }
.win-stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.win-stage.on { opacity: 1; }
.win-stage video { display: block; width: 100%; height: 100%; object-fit: cover; }

.trailer-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--ground); }
.trailer-still, .trailer-loop { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.trailer-loop { opacity: 0; transition: opacity .9s ease; }
.trailer.looping .trailer-loop { opacity: 1; }
.trailer-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44% 48% at 50% 50%, rgba(8, 5, 2, .6), rgba(8, 5, 2, .28) 62%, rgba(8, 5, 2, .06) 100%),
    linear-gradient(180deg, rgba(8, 5, 2, .5) 0, rgba(8, 5, 2, 0) 18%, rgba(23, 17, 10, 0) 72%, var(--ground) 100%); }

.hero-in, .hero .scroll, .hero-frame { transition: opacity .45s ease, visibility 0s; }
.trailer.showing :is(.hero-in, .scroll, .hero-frame) { opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
html.film .topbar { opacity: 0; visibility: hidden; }
.trailer-screen { position: absolute; inset: 0; z-index: 6; background: #000; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.trailer.showing .trailer-screen { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.trailer-video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; background: #000; }

.trailer-close { position: absolute; z-index: 1; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center;
  width: clamp(44px, 4vw, 54px); height: clamp(44px, 4vw, 54px); padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.trailer-close img { display: block; width: clamp(30px, 2.9vw, 39px); height: clamp(30px, 2.9vw, 39px); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .9)); transition: filter .2s ease; }
@media (hover: hover) { .trailer-close:hover img { filter: brightness(1.35) drop-shadow(0 1px 3px rgba(0, 0, 0, .9)); } }
.trailer-close:focus-visible { outline: 1px solid rgba(232, 201, 138, .8); outline-offset: -4px; }

.footer { text-align: center; padding: 30px 16px 46px; border-top: 1px solid rgba(138, 111, 66, .25); }
.footer .legal { margin: 0; font-size: 13px; color: var(--dim); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer .legal a { color: var(--muted); }
.enigma.failed .puzzle > :not(.case):not(.topbar-game) { visibility: hidden; }
.noscript { text-align: center; padding: 20px; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .topbar { top: 20px; right: 34px; }
  .paper { font-size: 16px; }
}

@media (max-width: 899px), (max-aspect-ratio: 1/1) {

  .enigma { padding: 0 10px clamp(40px, 8vh, 80px); }
  .case-rule { left: calc(10 * var(--u)); right: calc(10 * var(--u)); }
  .case-rule.light { left: calc(13 * var(--u)); right: calc(13 * var(--u)); }
  .case-corner.tl, .case-corner.bl { left: calc(7 * var(--u)); }
  .case-corner.tr, .case-corner.br { right: calc(7 * var(--u)); }

  .puzzle > .case { display: none; }
  .enigma-head { padding: clamp(36px, 7vh, 64px) 0 14px; }

  .desk { grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 640px; }
  .letter-home { order: -1; }
  .letter-home .pz-letter { position: relative; inset: auto; }

  .comb-home { aspect-ratio: 2580 / 1563; max-height: 58vh; max-height: 58svh; }
  .desk-box { padding: 12px 12px 10px; }
  .box-bar { --gap: 10px; }
  .tray { gap: 12px; padding: 8px 6px; }

  .solver { display: block; overflow-y: auto; overscroll-behavior: contain; }
  .vo { padding: 0 22px max(56px, 13svh); }
  .vo-t { font-size: clamp(16px, 4.4vw, 19px); }
  .vo-bar { width: 160px; margin-top: 16px; }
  .vo-x { top: -16px; right: -18px; width: 40px; height: 40px; }
  .vo-x img { width: 20px; height: 20px; }
  .vo-help { font-size: 12px; }
  .enigma-head .eyebrow { font-size: 10.5px; margin: 0 0 2px; }
  .enigma-head .title { font-size: 21px; }
  .preamble { font-size: 15px; margin-top: 8px; }

  .puzzle { width: 100%; max-width: 640px; height: auto; min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 4px; padding: calc(22 * var(--u)) calc(16 * var(--u)) calc(22 * var(--u)); }
  .topbar-game { position: relative; inset: auto; display: flex; align-items: center; justify-content: space-between; }

  .topbar-game .hud-hints, .hud-close { position: relative; left: auto; right: auto; top: auto; }
  .gplate { display: none; }
  .puzzle .toast { left: 50%; top: calc(22 * var(--u) + 40px); transform: translate(-50%, -4px); width: max-content; max-width: calc(100% - 32px); text-align: center; }
  .puzzle .toast.show { transform: translate(-50%, 0); }

  .puzzle .pz-comb, .pz-listen, .pz-score { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .puzzle .pz-comb, .pz-listen { display: flex; flex-direction: column; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)); }

  .score-wrap { width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 calc(12 * var(--u)), #000 calc(100% - 11 * var(--u)), transparent), linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    mask-image: linear-gradient(180deg, transparent, #000 calc(12 * var(--u)), #000 calc(100% - 11 * var(--u)), transparent), linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .score-wrap::-webkit-scrollbar { display: none; }
  svg.score { max-width: none; }

  .comb-slot { position: relative; inset: auto; width: 100%; aspect-ratio: 2 / 1; max-height: 58vh; max-height: 58svh; }
  .letter-slot { display: none; }

  .listen-t { display: none; }
  .listen-play, .listen-mine, .mine-row .listen-mine { --rd: 38px; }
  .pz-h { position: static; flex: none; font-size: clamp(14px, 3.8vw, 17px); letter-spacing: .06em; line-height: 1.15; }

  .pz-listen { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center; }
  .pz-listen > .pz-h { grid-column: 1 / -1; }
  .pz-listen .listen-main, .pz-listen .listen-wave { display: contents; }
  .pz-listen svg.solver-line { grid-column: 1; grid-row: 2; flex: none; min-height: auto; }
  .pz-listen .seek-box { grid-column: 1; grid-row: 3; }
  .pz-listen .vol { grid-column: 2; grid-row: 2; align-self: stretch; }
  .pz-listen .listen-row { grid-column: 2; grid-row: 3; margin: 0; }

  .seek { height: 32px; }
  .pz-listen .seek { margin-top: 0; }
  .pz-listen .listen-wave { height: auto; gap: calc(10 * var(--u)); }
  .seek-knob { width: 18px; }

  .pz-score { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: center;
    padding: calc(12 * var(--u)) calc(12 * var(--u)) calc(18 * var(--u)); gap: calc(8 * var(--u)) 10px; }
  .pz-score .pz-h { margin-bottom: calc(4 * var(--u)); }
  .pz-score > .pz-h, .pz-score > .score-wrap, .pz-score > .status { grid-column: 1 / -1; }
  .pz-score > .seek-mine { grid-column: 1; grid-row: 3; }

  .pz-score > .status { grid-row: 5; min-height: 0; }
  .pz-score > .status:empty { display: none; }
  .score-foot, .score-foot .mine-row { display: contents; }
  .score-foot .listen-mine { grid-column: 2; grid-row: 3; }
  .score-foot .notes, .score-foot .solved-bar { grid-column: 1 / -1; grid-row: 4; justify-self: stretch; margin-top: 4px; }
  .score-foot .solved-bar { justify-self: center; }
  .score-foot .erase-note { grid-column: 1 / -1; grid-row: 6; justify-self: center; margin-top: 8px; }
  .pz-score > .status:empty ~ .score-foot .erase-note { grid-row: 5; }

  .notes { container-type: inline-size; display: flex; justify-content: center; gap: 5px; width: 100%; }
  .note-btn { --nb: min(48px, calc((100cqw - 35px) / 8)); width: var(--nb); height: var(--nb); flex: none; }
  .note-n { font-size: calc(var(--nb) * .36); -webkit-text-stroke: .045em currentColor; }
  .puzzle { padding-bottom: calc(26 * var(--u)); }
  .gbtn.tall { --bh: calc(61 * var(--u)); --cap: calc(37 * var(--u)); --pad: calc(44 * var(--u)); --fs: calc(22 * var(--u)); --bw: 0px; }
  .pz-letter { padding: 12px; }

  .letter-scroll { height: var(--letter-h, auto); overflow-y: auto; overscroll-behavior: auto; padding-right: 0; }
  .letter-scroll.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - clamp(44px, 8vh, 72px)), rgba(0, 0, 0, .08)); mask-image: linear-gradient(180deg, #000 calc(100% - clamp(44px, 8vh, 72px)), rgba(0, 0, 0, .08)); }
  .pz-letter .paper { font-size: 16px; padding: 40px 28px 46px; }
  .pz-letter .seal { width: 54px; height: 54px; }
  .puzzle .pop { position: fixed; left: 50%; top: 50%; right: auto; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); max-height: calc(100svh - 24px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll span, .go span { animation: none; }
  * { transition-duration: .01ms !important; }
  .gap-halo::before, .gap-halo::after { animation: none; }

  .lost-tooth .blade::after, .tray-tooth::before { animation: none; }
  .js .reveal { transition: none; }
}

html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .hero-by span { font-size: 13px; letter-spacing: .12em; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .intro-examples { font-size: clamp(14px, 1.05vw, 16px); letter-spacing: .12em; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .eyebrow { font-size: max(13px, 1em); letter-spacing: .12em; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .enigma-head .eyebrow { font-size: 13px; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .vo-help { font-size: max(13px, calc(14 * var(--u))); }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .plate-kind > span:first-child { font-size: max(12px, calc(14 * var(--u))); letter-spacing: .1em; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .status { font-size: max(14px, calc(17 * var(--u))); }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .lang-now { font-size: 13px; letter-spacing: .06em; }
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
html:lang(zh) :is(.intro-hook, .early-title, .enigma-head .title, .count-head .title) { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
html:lang(ja) :is(.intro-hook, .early-title, .enigma-head .title, .count-head .title) { word-break: auto-phrase; text-wrap: balance; }
html:lang(ja) :is(.intro-promise, .preamble, .early-copy, .found-note, .vo-t, .status, .tray-t) { word-break: auto-phrase; }

@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  .solved-bar { flex-wrap: wrap; justify-content: center; row-gap: 10px; text-align: center; }
}

.status, .tray-t { text-wrap: balance; }

html:is(:lang(zh), :lang(ja)) .intro-metrics { word-break: keep-all; }

html:is(:lang(zh), :lang(ja)) .intro-examples { word-break: keep-all; }
html:is(:lang(zh), :lang(ja), :lang(ko), :lang(ar)) .early-copy { text-wrap: balance; }
html:lang(zh) :is(.intro-promise, .early-copy) { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }

.vo-help { text-align: center; text-wrap: balance; }

.consent { --u: .86px; position: fixed; left: 24px; bottom: 24px; z-index: 94; width: min(560px, 60vw); padding: 16px 14px 14px; color: #d9ccb4;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); }
.consent[hidden], .consent [hidden] { display: none; }
.consent-h, .consent-h2, .consent-kind-title { font-weight: 300; background-image: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.consent-h { display: block; margin: 0 0 4px; text-align: center; font-size: 16px; line-height: 1.25; text-transform: uppercase; letter-spacing: .08em; padding: .32em 0 .14em; }
.consent-h2 { display: block; margin: 0 0 12px; text-align: center; font-size: 22px; line-height: 1.2; font-variant-caps: small-caps; letter-spacing: .02em; padding: .32em 0 .14em; }
.consent-text { max-height: 80px; overflow-y: auto; padding: 6px 8px 18px 0; font: 300 15px/1.5 var(--serif); overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 26px), transparent 100%); }
.consent-text p { margin: 0 0 7px; }
.consent-text a { color: #e4c98f; text-decoration: underline; }

.consent-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 8px; width: 100%; margin-top: 10px; }
.consent-pair { display: contents; }
.consent .gbtn { min-width: 0; }
.consent-btns .gbtn { width: 100%; --fs: 12.5px; --pad: 12px; }
.consent-btns [data-act="agree"] { grid-column: 1 / -1; grid-row: 1; }
.consent-btns [data-act="configure"] { grid-column: 1; grid-row: 2; }
.consent-btns [data-act="technical"] { grid-column: 2; grid-row: 2; }

.consent-kind { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.consent-words { flex: 1; min-width: 0; font: 300 14px/1.45 var(--serif); }
.consent-kind-title { font-size: 16px; padding: .32em 0 .14em; }
.consent-save { display: flex; justify-content: center; margin-top: 6px; }
.consent-save .gbtn { --fs: calc(15 * var(--u)); --pad: calc(20 * var(--u)); width: calc(276 * var(--u)); max-width: 100%; }

.consent-switch { flex: none; --fs: calc(15 * var(--u)); --pad: calc(22 * var(--u)); }
.sw-inner { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); }
.sw-words { display: inline-grid; }
.sw-words > span { grid-area: 1 / 1; text-align: start; }
.consent-switch .sw-on, .consent-switch.is-on .sw-off { visibility: hidden; }
.consent-switch.is-on .sw-on { visibility: visible; }
.sw-pill { position: relative; flex: none; width: calc(40 * var(--u)); height: calc(20 * var(--u)); border-radius: calc(10 * var(--u)); box-sizing: border-box;
  background: linear-gradient(180deg, #141210, #26221d); border: 1px solid #3a332a; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7);
  -webkit-background-clip: border-box; background-clip: border-box; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.sw-knob { position: absolute; top: calc(1 * var(--u)); left: calc(1 * var(--u)); width: calc(16 * var(--u)); height: calc(16 * var(--u)); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a524a, #3a342e 70%, #2a2622); box-shadow: 0 1px 3px rgba(0, 0, 0, .6); transition: left .2s ease, background .2s ease; }
.consent-switch.is-on .sw-pill { background: linear-gradient(180deg, #e6c983, #b08a42 60%, #8f6c30); border-color: #c9a869; box-shadow: inset 0 1px 2px rgba(255, 240, 200, .35), 0 0 6px rgba(226, 186, 110, .25); }
.consent-switch.is-on .sw-knob { left: calc(21 * var(--u)); background: radial-gradient(circle at 35% 30%, #fffaf0, #efe1c0 60%, #cdb68a); }
@media (prefers-reduced-motion: reduce) { .sw-pill, .sw-knob { transition: none; } }

.consent.rtl .consent-text, .consent.rtl .consent-words, .consent.rtl .consent-h { direction: rtl; }
.consent.rtl .consent-text { padding: 6px 0 18px 8px; }

.legal .cookie-link[hidden], .legal .cookie-link-sep[hidden] { display: none; }

@media (max-width: 560px) {
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 14px 12px 12px; }
  .consent-h { font-size: 15px; }
  .consent-text { max-height: 74px; font-size: 14px; }
  .consent-h2 { font-size: 20px; margin-bottom: 10px; }

  .consent-kind { flex-wrap: wrap; row-gap: 4px; }
  .consent-words { flex-basis: 100%; }
  .consent-switch { margin-left: auto; }
  .consent-words { font-size: 13.5px; }
  .consent-kind-title { font-size: 15px; }
}
