:root{--alphabet-page:#fbf5e6;--alphabet-header-height:105px}
/* Chase and collisions have their own shared coordinates below the header. */
html body #alphabet-playfield{position:absolute;inset:calc(var(--alphabet-header-height) + 10px) 0 96px}
html body #alphabet-playfield #pieces,html body #alphabet-playfield #monsters{position:absolute;inset:0!important}
html body #alphabet-playfield .piece{width:min(clamp(44px,var(--piece-width,12vw),156px),calc((100dvh - var(--alphabet-header-height) - 106px) * .24))!important;min-width:0!important}
html body #alphabet-playfield .slot{max-width:calc((100dvh - var(--alphabet-header-height) - 106px) * .58)}
html body,html body #game{height:100dvh;min-height:0;background:var(--alphabet-page)!important}
html body #game:after{display:none!important}
html body header{height:var(--alphabet-header-height)!important;background:var(--alphabet-page)!important}
html body .brand-name,html body .title-brand{display:none!important}
html body .brand{top:6px!important;background:transparent!important}
html body .brand .game-wordmark img{width:330px!important;max-width:47vw!important;height:92px!important;max-height:92px!important;object-fit:contain}
html body .alphabet-top-controls{left:16px!important;right:auto!important;top:16px!important;gap:8px!important}
html body .alphabet-top-controls button,html body .alphabet-top-controls img{width:39px!important;height:39px!important;max-width:39px!important;max-height:39px!important;padding:0!important}
html body #start{top:var(--alphabet-header-height)!important;bottom:100px!important;inset-inline:0!important;padding:0 18px!important;background:var(--alphabet-page)!important}
html body #start .front-video-card{padding:0!important;width:100%!important;height:100%!important;max-height:100%!important;gap:0!important;background:transparent!important;box-shadow:none!important;border:0!important}
html body #frontLoop{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain;border-radius:0!important;background:transparent!important}
html body #play{display:none!important}
html body .alphabet-selector-footer{width:174px!important;height:78px!important;bottom:12px!important;right:14px!important;left:auto!important;transform:none!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:110}
html body[data-alphabet-screen="home"] .alphabet-selector-footer{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:190px!important;bottom:16px!important}
html body #front-letter-spinner,html body #dialog-letter-spinner{position:relative;width:100%!important;max-width:none!important;height:100%!important;min-height:0!important;display:flex!important;align-items:center;justify-content:center;gap:7px!important;padding:7px!important;border:3px solid #b9954e!important;border-radius:18px!important;background:repeating-linear-gradient(2deg,transparent 0 4px,#3a200e16 5px 6px),linear-gradient(#96704a,#67482c)!important;box-shadow:inset 0 2px 1px #f5d89988,inset 0 -3px 2px #24190e99,0 3px 2px #412a2050!important}
html body #front-letter-spinner:before,html body #front-letter-spinner:after{content:'';position:absolute;top:3px;width:5px;height:5px;border:1px solid #684c23;border-radius:50%;background:#e4bf71}
html body #front-letter-spinner:before{left:6px}html body #front-letter-spinner:after{right:6px}
html body .selector-window{height:58px;flex:1;min-width:0}
html body #front-letter-spinner .spinner-track,html body #dialog-letter-spinner .spinner-track{height:100%!important;min-height:0!important;width:100%!important;display:flex!important;align-items:center;justify-content:center;overflow:hidden;border:2px solid #bda467;border-radius:9px;background:linear-gradient(#e4d3ad,#fff3d2);box-shadow:inset 0 2px 4px #36230e50;padding:0!important}
html body #front-letter-spinner .spinner-glyph,html body #dialog-letter-spinner .spinner-glyph{width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;padding:3px!important;display:flex!important;align-items:center;justify-content:center;background:transparent!important;opacity:1!important;transform:none!important;border:0!important;box-shadow:none!important}
html body .selector-art{display:inline-block;background-repeat:no-repeat;flex:none}
html body #front-letter-spinner .selector-art,html body #dialog-letter-spinner .selector-art{height:49px!important;width:auto!important;max-width:58px!important}
html body .spinner-arrow{flex:none;width:30px!important;height:30px!important;min-width:0!important;padding:0!important;font:26px Georgia!important;line-height:25px!important;border:1px solid #6b4c24!important;border-radius:50%!important;background:linear-gradient(#f4dc91,#ba8b44)!important;color:#573e21!important;box-shadow:inset 0 1px #fff6cf,0 2px #442b17!important}
html body .selector-caption{display:none!important}
html body #meaning{inset:var(--alphabet-header-height) 0 0!important;padding:8px 18px 98px!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--alphabet-page)!important;overflow:hidden!important}
html body #meaning.hidden{display:none!important}
html body #meaning video,html body #meaning .expanded-visual{order:0;flex:1;min-height:0;width:100%!important;height:calc(100% - 78px)!important;max-height:calc(100% - 78px)!important;object-fit:contain;background:transparent!important;border-radius:0!important}
html body #meaning .number-amount{display:grid;justify-content:center;align-content:center;gap:12px}
html body #meaning h1.reward-word{order:1;display:flex;align-items:center;justify-content:center;gap:3px;margin:0!important;height:64px;flex:none;font-size:0!important;letter-spacing:0!important}
html body #meaning .reward-word .selector-art{height:min(64px,7dvh,calc(82vw / var(--letter-count)));width:auto!important;max-width:none!important;filter:drop-shadow(0 2px 1px #39221940)}
html body #meaning .meaning-actions{display:none!important}
html body #game #meaning{padding:8px 18px 98px!important;justify-content:center!important}
html body #game #meaning>h1.reward-word{font-size:0!important;height:64px!important;order:1!important}
html body #game #meaning>video{height:calc(100% - 78px)!important;max-height:calc(100% - 78px)!important;order:0!important}
html body .alphabet-top-controls button img{width:39px!important;height:39px!important;max-width:39px!important;max-height:39px!important}
html body .selector-fallback{font:700 48px Georgia;color:#653b27}
html body .local-review-controls{position:fixed;top:2px;right:4px;z-index:150;display:flex;flex-wrap:wrap;max-width:250px;gap:3px}
html body .local-review-controls button{font:10px Arial;padding:4px;background:#fff8e9;border:1px solid #aa8955;border-radius:4px;cursor:pointer}
@media(max-height:650px){:root{--alphabet-header-height:85px}html body .brand .game-wordmark img{height:75px!important;max-height:75px!important}html body .alphabet-selector-footer{height:68px!important;width:155px!important}html body #front-letter-spinner .selector-art{height:41px!important}html body .selector-window{height:48px}html body #game #meaning{padding-bottom:84px!important}html body #game #meaning h1.reward-word{height:48px!important}html body #start{bottom:86px!important}}
@media(max-width:600px){html body .brand .game-wordmark img{max-width:49vw!important}html body .alphabet-top-controls{left:8px!important;gap:5px!important}html body .alphabet-top-controls button,html body .alphabet-top-controls button img{width:28px!important;height:28px!important;max-width:28px!important;max-height:28px!important}html body .alphabet-selector-footer{width:155px!important;right:8px!important}html body #game #meaning{padding-inline:8px!important}}

/* One measured glyph size for both the outline and the movable letter. */
html body #alphabet-playfield #board{width:var(--glyph-row-width)!important;max-width:none!important;gap:var(--glyph-gap)!important;top:50%!important}
html body #alphabet-playfield .slot,html body #alphabet-playfield .piece{width:var(--glyph-size)!important;min-width:0!important;max-width:none!important;height:calc(var(--glyph-size) * 1.4)!important;aspect-ratio:100/140;flex:none!important;padding:0!important;margin:0!important}
html body #alphabet-playfield .word-hyphen{width:var(--glyph-hyphen-width)!important;flex:none!important}
html body #alphabet-playfield #monsters{overflow:visible!important}
html body #alphabet-playfield .local-collision{overflow:visible!important}

html body #alphabet-playfield .collision-dust{scale:var(--dust-scale,1)!important}

/* Use the page down to its lower edge; only the selector occupies the corner. */
html body #alphabet-playfield{bottom:8px!important}
html body #game #meaning{display:grid!important;grid-template-rows:minmax(0,1fr) 64px;inset:calc(var(--alphabet-header-height) + 4px) 0 8px!important;height:calc(100dvh - var(--alphabet-header-height) - 12px)!important;padding:0 12px!important;gap:6px!important;justify-content:stretch!important}
html body #game #meaning.hidden{display:none!important}
html body #game #meaning>video,html body #game #meaning>.expanded-visual{grid-row:1;align-self:stretch;justify-self:stretch;width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;min-height:0!important;flex:none!important}
html body #game #meaning>h1.reward-word{grid-row:2;justify-self:center;height:64px!important;max-width:calc(100vw - 360px)}
@media(max-width:600px){html body #game #meaning{grid-template-rows:minmax(0,1fr) 64px;padding-inline:4px!important}html body #game #meaning>h1.reward-word{max-width:calc(100vw - 175px);justify-self:start}html body #meaning .reward-word .selector-art{height:min(48px,calc((100vw - 185px) / var(--letter-count)))}}
/* Roomier title animation, with a clear gap below the wordmark. */
html body[data-alphabet-screen="home"] #start{top:calc(var(--alphabet-header-height) + 24px)!important;bottom:100px!important;padding:0 18px!important;overflow:hidden!important}
html body[data-alphabet-screen="home"] #start .front-video-card{position:relative!important;max-width:none!important;width:100%!important;height:100%!important;min-height:0!important;flex:none!important;overflow:hidden!important}
html body[data-alphabet-screen="home"] #start .title-brand{display:none!important}
html body[data-alphabet-screen="home"] #frontLoop{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important;flex:none!important}
@media(max-height:500px){html body[data-alphabet-screen="home"] #start{top:calc(var(--alphabet-header-height) + 12px)!important;bottom:84px!important}}

html body[data-alphabet-screen="home"] #start{position:fixed!important;}
