
/* Layout after Sandboxels (user reference, 2026-09-25): canvas on top, a thin status line, one evenly spaced icon row,
   colour-coded tool pills, category tabs, then every element of the active category as a pill in its own colour. */
:root{color-scheme:dark;--bg:#141414;--panel:#1c1c1c;--line:#343434;--text:#ececec;--muted:#9a9a9a;--accent:#c8f542;--ink:#141414;--selected:rgb(230,195,116);--ring:#c8f542;--pillfont:700 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font:13px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);overflow:hidden}
button,input,select{font:inherit}
button,select{color:inherit;background:transparent;border:1px solid var(--line);border-radius:5px;cursor:pointer}
button{min-height:34px;padding:6px 10px;display:inline-flex;gap:7px;align-items:center;justify-content:center;white-space:nowrap}
button:hover,select:hover{background:#2c2c2c}
button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:2px}
button:disabled{opacity:.3;cursor:default}
button[aria-pressed=true]{background:var(--accent);color:var(--ink);border-color:var(--accent)}
button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.iconbtn{width:37px;padding:6px}.accent{background:var(--accent);color:var(--ink);border-color:var(--accent)}.accent:hover{background:#dcff78}
.app{height:100svh;max-width:1240px;margin:0 auto;padding:10px max(12px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:6px}
/* World */
.world{position:relative;flex:1;min-height:150px;background:#0b1115;border:1px solid #4a4a4a;overflow:hidden;display:flex;align-items:center;justify-content:center}
#canvas{display:block;image-rendering:pixelated;touch-action:none;cursor:none;outline:none}
/* The canvas focuses itself on every pointerdown, which Chrome counts as :focus-visible, so its ring follows Tab navigation
   instead (body.kbd: set by Tab, cleared by any pointer). */
body.kbd #canvas:focus{outline:2px solid #fff;outline-offset:-2px}
#overlay{position:absolute;pointer-events:none;image-rendering:pixelated}
#pausedTag{position:absolute;top:10px;left:10px;display:none;background:var(--accent);color:#141414;padding:4px 8px;font:var(--pillfont);font-size:12px;font-variant:small-caps;border-radius:3px}
#worldLabel{position:absolute;top:10px;right:12px;pointer-events:none;color:#7f8a8a;font:var(--pillfont);font-size:11px;font-variant:small-caps;letter-spacing:.06em}
.worldHint{position:absolute;pointer-events:none;text-align:center;color:#9aa6a6;top:38%;left:20px;right:20px;font-size:14px;line-height:1.8}.worldHint strong{color:#f0f0f0;font-size:21px;font-variant:small-caps}
.heatkey{display:none;position:absolute;left:12px;bottom:12px;color:#b8b8b8;font-size:10px}.heatkey i{display:inline-block;width:85px;height:7px;background:linear-gradient(90deg,#6c4fcf,#2689cf,#43bb92,#d7d967,#f49950,#ed523b);margin:0 6px}body.heatview .heatkey{display:block}
#toast{position:absolute;left:50%;bottom:16px;transform:translate(-50%,10px);max-width:90%;text-align:center;padding:8px 13px;border:1px solid #555;border-radius:5px;background:#222;color:#f0f0f0;font-size:12px;opacity:0;transition:opacity .15s,transform .15s;pointer-events:none;z-index:4}#toast.show{opacity:1;transform:translate(-50%,0)}
/* Status line */
.readout{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font:11px/16px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;min-height:16px;margin-top:-2px}
.statusleft{display:flex;gap:14px;align-items:center;white-space:nowrap}
.statusleft>span{display:inline-flex;align-items:center;gap:4px}
#runStatus{color:#c9c9c9}.liveDot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--accent);margin-right:2px}
#brushInfo b{color:#ddd;font-weight:600}
#hoverInfo{min-width:0;flex:1;text-align:right;color:#d0d0d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Icon controls: one evenly spaced row */
.controls{flex-shrink:0;display:flex;gap:4px}
.controls>button,.controls>select{flex:1 1 0;min-width:0;height:36px;min-height:0;padding:0;border:1px solid #0009;border-radius:4px;background:#2b2b2b;color:#e8e8e8;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -2px 0 #00000059}
.controls>button:hover,.controls>select:hover{background:#383838}
/* Undo/redo and the brush limits use aria-disabled, not disabled: a disabled button drops keyboard focus to the page, where
   the next Enter paints and Space pauses. They are dimmed by colour (the old 30% opacity look), not opacity, so a focused
   one still shows a full-strength ring. */
.controls>button[aria-disabled=true],.controls>button[aria-disabled=true]:hover{background:#1b1b1b;border-color:#131313;color:#545454;cursor:default;box-shadow:inset 0 1px 0 #ffffff08,inset 0 -2px 0 #0000002b}
.controls>button.on,.controls>button[aria-pressed=true]{background:#3c4a1c;color:var(--accent);border-color:#0009;box-shadow:inset 0 0 0 2px var(--ring),inset 0 -2px 0 #00000059}
.controls>button .glyph{font:var(--pillfont);font-size:14px}
.controls>select{flex:2.2 1 0;padding:0 18px 0 8px;font:var(--pillfont);font-size:13px;font-variant:small-caps;text-align:center;text-align-last:center;appearance:none;-webkit-appearance:none;background:#2b2b2b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bbb' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 7px center/9px 6px}
.controls>select:hover{background-color:#383838}
.controls>.sizebox{flex:2 1 0;min-width:0;display:flex;height:36px;border:1px solid #0009;border-radius:4px;background:#2b2b2b;overflow:hidden;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -2px 0 #00000059}
.sizebox>button{flex:1 1 0;min-width:0;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:transparent;color:#e8e8e8}.sizebox>button:hover{background:#383838}.sizebox>button[aria-disabled=true],.sizebox>button[aria-disabled=true]:hover{background:transparent;color:#646464;cursor:default}
.sizebox>output{flex:0 0 auto;min-width:26px;padding:0 2px;display:flex;align-items:center;justify-content:center;font:var(--pillfont);font-size:14px;color:#fff;background:#222;border-left:1px solid #0008;border-right:1px solid #0008;font-variant-numeric:tabular-nums}
/* The box clips (rounded, joined cells) and the value cell covers the inner edge, so the ring is drawn inside the button. */
.sizebox>button:focus-visible{outline:2px solid #fff;outline-offset:-3px}
/* Pills: tools and elements share the chunky beveled look */
.pill{font:var(--pillfont);font-variant:small-caps;letter-spacing:.02em;min-height:30px;padding:0 12px;border:1px solid #000a;border-radius:6px;background:var(--pill,#555);color:#fff;text-shadow:1px 1px 0 #0000008c;box-shadow:inset 0 2px 0 #ffffff5c,inset 0 -3px 0 #00000047}
.pill.dark{color:#141414;text-shadow:0 1px 0 #ffffff66}
.pill:hover{background:var(--pill,#555);filter:brightness(1.12)}
.pill[aria-pressed=true]{background:var(--pill,#555);color:#fff;border-color:#000a;box-shadow:0 0 0 2px #141414,0 0 0 4px var(--ring),0 0 12px 3px #c8f54266,inset 0 2px 0 #ffffff5c,inset 0 -3px 0 #00000047}
.pill.dark[aria-pressed=true]{color:#141414}
.tools{flex-shrink:0;display:flex;gap:6px;flex-wrap:wrap;justify-content:center;padding:3px 2px}
.tool{flex:1 1 0;min-width:62px}
.tool[data-tool=draw]{--pill:var(--selected)}
/* Category tabs */
.palette{flex-shrink:0;display:flex;flex-direction:column;gap:6px;min-height:0}
.categories{display:flex;flex-wrap:wrap;justify-content:center;gap:2px;border-bottom:1px solid #2c2c2c}
.category{font:var(--pillfont);font-size:14px;font-variant:small-caps;letter-spacing:.02em;border:0;border-bottom:3px solid transparent;border-radius:4px 4px 0 0;padding:6px 12px 5px;min-height:32px;color:#c4c4c4;text-shadow:1px 1px 0 #000}
.category:hover{background:#242424;color:#fff}
.category[aria-selected=true]{background:#303030;color:#fff;border-color:transparent;border-bottom-color:#5ecb3b}
/* Element pills: every element of the category visible, background in its own colour */
.materials{display:grid;padding:4px 2px}
/* All eight groups share one grid cell: the row is always as tall as the fullest category, so the canvas never jumps. */
.matgroup{grid-area:1/1;display:flex;flex-wrap:wrap;justify-content:center;gap:6px;align-content:flex-start;visibility:hidden}
.matgroup[data-active=true]{visibility:visible}
.material{flex:0 0 auto}
.materialnotes{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);min-height:24px;border-top:1px solid #262626;padding-top:5px}
.materialnotes strong{font:var(--pillfont);font-variant:small-caps;font-size:13px;color:#eee;white-space:nowrap;text-shadow:1px 1px 0 #000}
.materialnotes .note{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#colorPicker{height:22px;width:28px;padding:0;border:0;background:transparent;cursor:pointer}
#infoBtn{--pill:#5f8584;min-height:24px;padding:0 10px;font-size:12px;flex-shrink:0}#infoBtn svg{width:14px;height:14px}
/* Footer */
.bottom{display:flex;gap:10px;justify-content:space-between;align-items:center;color:#777;font-size:11px;flex-shrink:0;min-height:18px;border-top:1px solid #222;padding-top:3px}
.bottom b{color:#bbb;font-variant:small-caps;font-size:12px}
.bottom .links{display:flex;gap:12px;align-items:center}
.bottom button{font-size:11px;border:0;padding:0;min-height:18px;color:#9ec0bf;text-decoration:underline;text-underline-offset:2px}.bottom button:hover{background:none;color:#fff}
dialog{color:var(--text);background:#1c1c1c;border:1px solid #474747;border-radius:10px;padding:24px;width:min(620px,calc(100% - 24px));max-height:85svh;box-shadow:0 20px 70px #0008}dialog::backdrop{background:#000c;backdrop-filter:blur(4px)}.dialoghead{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}.dialoghead h2{font-size:20px;margin:0;letter-spacing:1px;font-variant:small-caps}.dialogbody{font-size:15px;line-height:1.55}.dialogbody h3{font:var(--pillfont);font-variant:small-caps;font-size:15px;color:var(--accent);margin:23px 0 8px}.dialogbody p{color:#c4c4c4;margin:8px 0}.recipes{display:grid;gap:8px}.recipe{display:block;text-align:left;padding:10px 12px;white-space:normal;font-family:inherit}.recipe b{display:block;color:var(--text);font-size:14px}.recipe span{color:#adadad;font-size:13px}.keyboard{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px}.keyboard kbd{background:#383838;padding:2px 6px;border-radius:3px;color:#eee}.files{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}#recipeDetails{display:grid;gap:7px}#recipeDetails p{margin:0;padding:7px 0;border-top:1px solid #333;font-size:13px}
.swatch{width:15px;height:17px;flex-shrink:0;background:var(--mat);box-shadow:inset -4px -4px #0002,inset 3px 3px #fff2;clip-path:polygon(0 0,75% 0,75% 15%,100% 15%,100% 100%,15% 100%,15% 75%,0 75%)}
@media(min-width:1400px){.pill{font-size:14px;min-height:32px}.controls>button,.controls>select,.controls>.sizebox{height:38px}}
/* Phones: the rows wrap into tidy grids; the canvas keeps the rest of the height. */
@media(max-width:650px){
 .app{padding:6px 6px max(5px,env(safe-area-inset-bottom));gap:5px}
 .world{min-height:170px}
 .readout{font-size:10px;gap:8px}.statusleft{gap:9px}#runStatus{display:none}
 .controls{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
 .controls>button,.controls>select,.controls>.sizebox{height:32px}.controls>.sizebox{grid-column:span 2}.sizebox>output{min-width:20px;font-size:12px}.controls>select{grid-column:span 2;font-size:11px;font-variant:normal;letter-spacing:0;padding:0 11px 0 2px;background-position:right 3px center;background-size:7px 5px}
 .controls>button svg{width:17px;height:17px}
 .tools{gap:4px;padding:2px 1px}.tool{flex:0 0 calc((100% - 16px)/5);min-width:0;padding:0 4px}.bottom .tag{display:none}
 .pill{font-size:12px;min-height:27px;padding:0 9px;border-radius:5px}
 .categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}
 .category{font-size:13px;min-height:28px;padding:4px 2px 3px}
 .materials{padding:2px 1px}.matgroup{gap:4px}
 .materialnotes{font-size:11px;gap:7px;min-height:22px;padding-top:4px}
 .bottom .keyhints{display:none}
 .worldHint strong{font-size:18px}.worldHint{font-size:12px}
 .keyboard{grid-template-columns:1fr}#worldLabel{font-size:9px;right:8px;top:8px}
}
@media(max-width:650px) and (max-height:700px){.pill{min-height:25px;font-size:11.5px;padding:0 7px}.category{min-height:25px;font-size:12px}.controls>button,.controls>select,.controls>.sizebox{height:30px}.materialnotes{min-height:20px}.world{min-height:150px}}
@media(max-width:350px){.readout .hideTiny{display:none}.controls>select{font-size:10px;padding:0 9px 0 1px;background-position:right 2px center}.tool{padding:0 2px;font-size:11px}.pill{padding:0 6px}.category{font-size:11.5px}}
/* Short landscape: world on the left, every control stacked in a scrolling column on the right. */
@media(max-height:500px) and (min-width:651px){
 .app{display:grid;max-width:none;grid-template-columns:minmax(0,1fr) min(330px,40vw);grid-template-rows:auto auto minmax(0,1fr) 16px;gap:5px 8px;padding-top:6px}
 .world{grid-column:1;grid-row:1/4;min-height:0}
 .readout{grid-column:1;grid-row:4;margin:0}
 .controls{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
 .controls>button,.controls>select,.controls>.sizebox{height:28px}.controls>.sizebox{grid-column:span 2}.sizebox>output{min-width:20px;font-size:12px}.controls>select{grid-column:span 2;font-size:11px;font-variant:normal;letter-spacing:0;padding:0 11px 0 2px;background-position:right 3px center;background-size:7px 5px}.controls>button svg{width:15px;height:15px}
 .tools{grid-column:2;grid-row:2;gap:4px;padding:1px}.tool{min-width:0;flex:0 0 calc((100% - 16px)/5);padding:0 4px}
 .pill{font-size:11.5px;min-height:24px;padding:0 7px;border-radius:5px}
 .palette{grid-column:2;grid-row:3/5;overflow-y:auto;gap:4px;overscroll-behavior:contain}
 .categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px}.category{font-size:12px;min-height:24px;padding:3px 2px}
 .materials{padding:2px 1px}.matgroup{gap:4px}
 .materialnotes .note{display:none}.materialnotes{min-height:22px;justify-content:space-between}
}
/* Small phones and short landscape have no room for the footer. It is hidden visually only, so the page keeps its H1 for
   screen readers; its Saves link leaves the tab order (the help button opens the same page). */
@media(max-width:650px) and (max-height:700px),(max-height:500px) and (min-width:651px){.bottom{position:absolute;width:1px;height:1px;min-height:0;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.bottom .links{display:none}}
.bottom h1{display:inline;margin:0;font:var(--pillfont);font-variant:small-caps;font-size:13px;color:#cfcfcf;letter-spacing:.04em}


/* The field guide is display-only; each pane scrolls without moving the world. */
#guide{width:min(990px,calc(100% - 28px));height:min(790px,calc(100svh - 32px));max-height:none;padding:22px;overflow:hidden}
#guide[open]{display:flex;flex-direction:column;gap:16px}
#guide [hidden]{display:none!important}
#guide .dialoghead{margin:0;flex-shrink:0}.guide-kicker{display:block;color:var(--muted);font-size:10px;letter-spacing:1.6px;margin-bottom:5px}
.guide-tabs{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line);padding-bottom:12px;flex-shrink:0}.guide-tabs button{font-size:12px}.guide-tabs small{font-size:10px;opacity:.65}.guide-tabs>span{font-size:10px;color:var(--muted);margin-left:auto}
#generalGuide{overflow:auto;min-height:0;overscroll-behavior:contain;padding-right:6px}#generalGuide>p:first-child{margin-top:0}
#elementGuidePanel{display:flex;flex-direction:column;min-height:0;flex:1;gap:9px}.element-layout{display:grid;grid-template-columns:270px minmax(0,1fr);min-height:0;flex:1;gap:25px}
.element-browser{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);padding-right:18px}.element-filters{flex-shrink:0}.element-filters label{font-size:10px;color:var(--muted);letter-spacing:1px}.element-filters input,.element-filters select{display:block;width:100%;height:36px;margin-top:8px;padding:7px 9px;font-size:12px;min-width:0}.element-filters input{background:#121c20;color:var(--text);border:1px solid var(--line);border-radius:5px}.element-filters input::placeholder{color:#829593}#elementCount{font-size:10px;color:var(--muted);margin:9px 0}
.element-list{overflow:auto;min-height:0;padding-right:3px;overscroll-behavior:contain}.element-group{margin-bottom:16px}.element-group h4{margin:8px 0;font-size:10px;font-weight:500;letter-spacing:1.5px;color:#93a4a4;text-transform:uppercase}.element-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px}.element-entry{justify-content:flex-start;font-size:11px;padding:7px;min-height:38px;text-align:left;white-space:normal;line-height:1.3;gap:7px}.element-entry .swatch{width:11px;height:13px}.element-entry[aria-pressed=true]{background:color-mix(in srgb,var(--mat) 16%,#182222);color:var(--text);border-color:var(--mat)}
.element-details{overflow:auto;min-width:0;padding-right:6px;overscroll-behavior:contain}.element-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.element-heading>.swatch{width:32px;height:36px}.element-heading>div{min-width:0;flex:1}#elementMeta{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:0 0 3px}#elementTitle{font-size:27px;letter-spacing:-.5px;line-height:1.2;margin:0;outline:none}.element-heading button{font-size:11px;padding:6px 9px}#elementDescription{font:15px/1.6 system-ui,sans-serif;margin:0 0 12px;color:#d7e1dd}.motion-note{font:12px/1.6 system-ui,sans-serif;background:#253137;border-left:2px solid #718775;padding:10px 12px;margin:0 0 23px;color:#aec0ba}
#reactionHeading{font-size:11px;letter-spacing:1.2px;color:var(--accent);margin:0}.related-hint{font:12px/1.5 system-ui,sans-serif;color:var(--muted);margin:5px 0 14px}#recipeDetails{gap:10px}.reaction-card{border:1px solid #36464a;border-radius:5px;padding:13px;background:#1e2a2e}.reaction-card h5{font:600 13px/1.45 system-ui,sans-serif;color:#e4ebdf;margin:0 0 6px}.reaction-card .reaction-origin{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#91a9a0;margin-bottom:6px}#recipeDetails .reaction-card p{border:0;padding:0;margin:0;font:13px/1.6 system-ui,sans-serif;color:#b8c9c4}.reaction-links{display:flex;gap:5px;flex-wrap:wrap;margin-top:11px}.reaction-links button{min-height:27px;padding:3px 7px;font-size:10px;color:#d4dfd9;gap:5px}.reaction-links .swatch{width:8px;height:10px}.guide-footnote{font:11px/1.6 system-ui,sans-serif;color:#8fa29c;margin:18px 0 5px}.guide-browse-toggle{display:none}
@media(max-width:650px){#guide{width:calc(100% - 16px);height:calc(100svh - 16px);padding:14px}#guide[open]{gap:11px}#guide .dialoghead h2{font-size:18px}.guide-kicker{font-size:8px;letter-spacing:1px}.guide-tabs{gap:6px;padding-bottom:9px}.guide-tabs button{font-size:11px;min-height:33px;padding:6px 8px}.guide-tabs>span{display:none}.guide-browse-toggle{display:flex;min-height:31px;font-size:11px;justify-content:space-between;color:var(--accent)}.element-layout{grid-template-columns:1fr;grid-template-rows:205px minmax(0,1fr);gap:13px}.element-layout.catalog-collapsed{grid-template-rows:minmax(0,1fr)}.catalog-collapsed .element-browser{display:none}.element-browser{border-right:0;border-bottom:1px solid var(--line);padding:0 0 7px}.element-filters{display:grid;grid-template-columns:minmax(0,1fr) 125px;gap:6px}.element-filters label{display:none}.element-filters input,.element-filters select{margin:0;height:33px;font-size:11px;padding:6px}.element-filters #elementCount{grid-column:1/-1;margin:0 0 3px;font-size:9px}.element-group{margin-bottom:10px}.element-group h4{margin:5px 0}.element-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.element-entry{font-size:10px;min-height:33px;padding:5px;gap:4px}.element-entry .swatch{width:9px;height:11px}.element-details{padding-right:3px}.element-heading{gap:8px;margin-bottom:11px}.element-heading>.swatch{width:23px;height:27px}#elementTitle{font-size:22px}#elementMeta{font-size:9px;letter-spacing:.3px}.element-heading button{font-size:10px;min-height:32px;padding:5px 7px}.element-heading button svg{display:none}#elementDescription{font-size:14px}.motion-note{font-size:11px;margin-bottom:18px}.reaction-card{padding:11px}}
@media(max-width:650px) and (max-height:650px){.element-layout{grid-template-rows:155px minmax(0,1fr)}.element-layout.catalog-collapsed{grid-template-rows:minmax(0,1fr)}}

@media(min-width:651px) and (max-height:500px){#guide{padding:12px 16px;height:calc(100svh - 20px)}#guide[open]{gap:9px}.guide-kicker{display:none}#guide .dialoghead h2{font-size:18px}.guide-tabs{padding-bottom:7px}.guide-tabs button{min-height:31px}.element-layout{grid-template-columns:220px minmax(0,1fr);gap:17px}.element-browser{padding-right:12px}.element-filters label{display:none}.element-filters input,.element-filters select{height:29px;margin-top:0;margin-bottom:5px;padding:4px 6px}#elementCount{margin:5px 0}.element-heading{margin-bottom:10px}#elementTitle{font-size:23px}#elementDescription{font-size:14px}.motion-note{margin-bottom:15px}}

/* The app fills 100svh; the site bar takes its own 38px strip beneath it instead of covering the
   world, its 32px buttons centred. A full-width dark row like the game's own control rows, its
   buttons lining up with the app column; the hairline is a shadow so the height stays exact. */
.app{height:calc(100svh - 38px - env(safe-area-inset-bottom,0px));padding-bottom:6px}
.site-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:calc(38px + env(safe-area-inset-bottom,0px));padding:0 max(12px,env(safe-area-inset-right),calc((100% - 1240px)/2 + 12px)) env(safe-area-inset-bottom,0px) max(12px,env(safe-area-inset-left),calc((100% - 1240px)/2 + 12px));background:#111;box-shadow:inset 0 1px 0 #262626}
/* Same bevel, small-caps face and hover as the .controls row buttons; 12px and no text shadow to
   match the Feedback trigger beside it, which is fixed at 12px inside its shadow root. */
.hub-back{display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid #0009;border-radius:4px;background:#2b2b2b;color:#e8e8e8;font:var(--pillfont);font-size:12px;font-variant:small-caps;letter-spacing:.02em;text-decoration:none;white-space:nowrap;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -2px 0 #00000059;touch-action:manipulation}
.hub-back:hover{background:#383838}.hub-back:focus-visible{outline:2px solid #fff;outline-offset:2px}
/* The Feedback shell clips its widget's own ring and a shadow host never matches :focus-visible,
   so site.js marks Tab navigation and the shell draws the ring itself. */
[data-site-keyboard] .site-bar [data-feedback-mount]:focus-within{outline:2px solid #fff;outline-offset:2px}
@media(max-width:650px){.site-bar{padding-left:max(6px,env(safe-area-inset-left));padding-right:max(6px,env(safe-area-inset-right))}}

/* Shared site utility; never position it over the playfield. */
[data-feedback-mount]{display:inline-flex;flex:none;pointer-events:auto}

  .site-bar [data-feedback-mount]{height:32px;border:1px solid #0009;border-radius:4px;background:#2b2b2b;box-shadow:inset 0 1px 0 #ffffff1c,inset 0 -2px 0 #00000059;--feedback-ink:#e8e8e8}
  .site-bar [data-feedback-mount]:hover{background:#383838}
  .site-bar anul-feedback{height:100%;overflow:hidden;border-radius:3px;font:var(--pillfont);font-variant:small-caps;letter-spacing:.02em}
  