/* PRESENTATION LAB: three "see the climb" layouts. Lab only. Only restyles existing parts; nothing is removed from the page.
   focus - one slim header line, no stat boxes (two small chips sit on the scene), big board; the scene gets the freed height.
   full  - the scene fills the whole portrait screen; header, chips, word bar and a see-through board float over it.
   fade  - like full, but the board is a faint ghost until you touch it, so you watch the climb and the letters come back when needed. */

/* ---- shared: slim header ---- */
html[data-layout="focus"] .app>header.top,html[data-layout="full"] .app>header.top,html[data-layout="fade"] .app>header.top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:2px 2px 0;grid-template-columns:none}
html[data-layout="focus"] header.top .brand,html[data-layout="full"] header.top .brand,html[data-layout="fade"] header.top .brand,
html[data-layout="focus"] header.top .meta,html[data-layout="full"] header.top .meta,html[data-layout="fade"] header.top .meta,
html[data-layout="focus"] #frBtn,html[data-layout="full"] #frBtn,html[data-layout="fade"] #frBtn,
html[data-layout="focus"] #achBtn,html[data-layout="full"] #achBtn,html[data-layout="fade"] #achBtn,
html[data-layout="focus"] #sunBtn,html[data-layout="full"] #sunBtn,html[data-layout="fade"] #sunBtn{display:none!important}
html[data-layout="focus"] header.top .peak,html[data-layout="full"] header.top .peak,html[data-layout="fade"] header.top .peak{order:-1;min-width:0;flex:1}
html[data-layout="focus"] header.top .peak h1,html[data-layout="full"] header.top .peak h1,html[data-layout="fade"] header.top .peak h1{font-size:1.15rem;line-height:1.1;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-layout="focus"] .sub,html[data-layout="full"] .sub,html[data-layout="fade"] .sub{font-size:.78rem}
html[data-layout="focus"] .hbtns,html[data-layout="full"] .hbtns,html[data-layout="fade"] .hbtns{gap:6px;flex:none}
html[data-layout="focus"] .hbtns .icon,html[data-layout="full"] .hbtns .icon,html[data-layout="fade"] .hbtns .icon{width:38px;height:38px}
/* stats: only Words and Letters left, as small chips; the scene already says how far you are */
html[data-layout="focus"] .stats,html[data-layout="full"] .stats,html[data-layout="fade"] .stats{display:flex;gap:6px;margin:0;background:none;padding:0;box-shadow:none;border:0}
html[data-layout="focus"] .stat,html[data-layout="full"] .stat,html[data-layout="fade"] .stat{flex:none;display:flex;flex-direction:row;align-items:baseline;gap:6px;padding:3px 10px;border-radius:999px;background:rgba(8,12,20,.64);color:#fff;border:0;box-shadow:none}
html[data-layout="focus"] .stat b,html[data-layout="full"] .stat b,html[data-layout="fade"] .stat b{font-size:1rem;color:#fff}
html[data-layout="focus"] .stat span,html[data-layout="full"] .stat span,html[data-layout="fade"] .stat span{font-size:.68rem;color:rgba(255,255,255,.8);text-transform:uppercase;letter-spacing:.04em}
html[data-layout="focus"] .stats .stat:nth-child(2),html[data-layout="full"] .stats .stat:nth-child(2),html[data-layout="fade"] .stats .stat:nth-child(2){display:none}
html[data-layout="focus"] .word,html[data-layout="full"] .word,html[data-layout="fade"] .word{height:46px;margin:0}
html[data-layout="focus"] .app>.boardarea,html[data-layout="full"] .app>.boardarea,html[data-layout="fade"] .app>.boardarea{flex:0 1 auto;width:100%;aspect-ratio:1/1}
html[data-layout="focus"] .boardwrap,html[data-layout="full"] .boardwrap,html[data-layout="fade"] .boardwrap{padding:5px;border-radius:12px}
html[data-layout="focus"] .app,html[data-layout="full"] .app,html[data-layout="fade"] .app{gap:6px;padding-left:4px;padding-right:4px}
html[data-layout="focus"] .alt b,html[data-layout="full"] .alt b,html[data-layout="fade"] .alt b{font-size:1.6rem}

/* ---- focus: the stats chips sit on the bottom-left of the scene (grid overlap) ---- */
html[data-layout="focus"] .app{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto}
html[data-layout="focus"] .app>header.top{grid-row:1}
html[data-layout="focus"] .app>.mtn{grid-row:2;grid-column:1;margin:0 4px;padding-top:0;display:flex;flex-direction:column;min-height:0}
html[data-layout="focus"] .mtnart{height:auto;flex:1 1 0;min-height:60px}
html[data-layout="focus"] .app>.stats{grid-row:2;grid-column:1;align-self:end;justify-self:start;margin:0 0 8px 12px;z-index:3;pointer-events:none}
html[data-layout="focus"] .app>.word{grid-row:3}
html[data-layout="focus"] .app>.boardarea{grid-row:4}
html[data-layout="focus"] .app>.endpanel{grid-row:2/span 3;grid-column:1;z-index:4}
html[data-layout="focus"] .app>.overlay{grid-row:1/span 4;grid-column:1}

/* ---- full + fade: the scene is the whole screen ---- */
html[data-layout="full"] .app,html[data-layout="fade"] .app{position:relative;justify-content:flex-start}
html[data-layout="full"] .app>*,html[data-layout="fade"] .app>*{position:relative;z-index:2}
html[data-layout="full"] .app>.mtn,html[data-layout="fade"] .app>.mtn{position:absolute;inset:0;z-index:0;margin:0;padding:0;border-radius:0;border:0;display:block}
html[data-layout="full"] .mtnart,html[data-layout="fade"] .mtnart{height:100%}
html[data-layout="full"] .alt,html[data-layout="fade"] .alt{position:absolute!important;top:54px!important;left:14px!important;z-index:3}
html[data-layout="full"] .mtnart,html[data-layout="fade"] .mtnart{position:absolute;inset:0;height:auto}
html[data-layout="full"] .app>header.top,html[data-layout="fade"] .app>header.top{text-shadow:0 1px 6px rgba(0,0,0,.7);color:#fff}
html[data-layout="full"] .app>.stats,html[data-layout="fade"] .app>.stats{order:1;margin-top:68px;align-self:flex-start;margin-left:10px;margin-bottom:auto;pointer-events:none;position:absolute;top:34px;left:0}
html[data-layout="full"] .app>.word,html[data-layout="fade"] .app>.word{order:3;margin-top:auto;background:rgba(8,12,20,.7);color:#fff}
html[data-layout="full"] .app>.word .hint,html[data-layout="fade"] .app>.word .hint{color:rgba(255,255,255,.85)}
html[data-layout="full"] .app>.boardarea,html[data-layout="fade"] .app>.boardarea{order:4}
html[data-layout="full"] .boardwrap,html[data-layout="fade"] .boardwrap{background:rgba(8,12,20,.42);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);backdrop-filter:none;-webkit-backdrop-filter:none}
html[data-layout="full"] .app>.endpanel,html[data-layout="fade"] .app>.endpanel{order:5;margin-top:auto;background:var(--panel)}
html[data-layout="full"] .app>.overlay,html[data-layout="fade"] .app>.overlay{position:relative;z-index:6;margin-top:0;background:color-mix(in srgb,var(--bg) 84%,transparent);border-radius:14px}
body.ovopen #hud2{display:none!important}
/* fade: letters are a ghost until touched */
html[data-layout="fade"] .app>.boardarea{opacity:.2;transition:opacity .5s ease}
html[data-layout="fade"].lab-bon .app>.boardarea{opacity:1;transition-duration:.15s}
html[data-layout="fade"] .app>.word{transition:opacity .5s}
html[data-layout="fade"] .app>.word.idle{opacity:.7}
