/* Peel Out: a sunny jungle path (light) and a firefly night (dark). house.css loads first. */
:root {
  --bg: #EAF4E4; --panel: #FFFFFF; --panel-2: #F3F8EE; --line: #D5E3CC; --text: #1E2A1C; --muted: #5E6E59;
  --accent: #E07A1F; --accent-ink: #FFFFFF; --banana: #FFD23F; --banana-edge: #C08A08; --bad: #D0384B; --good: #2E9B4E;
  --t1: #8A938A; --t2: #2E9B4E; --t3: #2F7FD0; --t4: #8C4FD6; --t5: #D2600F; --t6: #D99A06;
  --h-bg: var(--panel-2); --h-panel: var(--panel); --h-panel2: var(--panel-2); --h-line: var(--line); --h-text: var(--text); --h-muted: var(--muted);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F1A17; --panel: #17241F; --panel-2: #1D2D27; --line: #2A3F36; --text: #EEF3EA; --muted: #9DB1A5;
  --accent: #F5A04A; --accent-ink: #1A1408; --banana: #FFD54A; --banana-edge: #C99510; --bad: #FF6F7F; --good: #5BD486;
  --t1: #9AA59C; --t2: #5BD486; --t3: #6FB2FF; --t4: #C092FF; --t5: #FF9A4D; --t6: #FFC94A;
  --h-on: #0F1A17;
  --h-bg: var(--panel-2); --h-panel: var(--panel); --h-panel2: var(--panel-2); --h-line: var(--line); --h-text: var(--text); --h-muted: var(--muted);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--h-sans); line-height: 1.45; min-height: 100vh; min-height: 100dvh; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.layout { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* header mark: a banana with its peel flap */
.hbrand .logo .mark { width: 30px; height: 30px; flex: none; }
.mark .m-ban { fill: var(--banana); stroke: var(--banana-edge); stroke-width: 1.3; stroke-linejoin: round; }
.mark .m-stem { stroke: #6B4A1A; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.mark .m-peel { stroke: var(--banana-edge); stroke-width: 1.4; fill: none; stroke-linecap: round; }
.hbrand .logo i.sp { width: .28em; }
.hbrand .logo i.lit:nth-child(odd) { color: var(--accent); }
.hbrand .logo i.lit:nth-child(even) { color: var(--t6); }

/* daily / practice / challenge */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin: 4px auto 10px; max-width: 600px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; }
.mode { border: 0; background: transparent; border-radius: 10px; padding: 6px 8px; cursor: pointer; display: flex; gap: 6px; align-items: baseline; justify-content: center; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; }
.mode b { color: var(--text); font-weight: 700; }
.mode span { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; }
.mode.on { background: var(--panel); box-shadow: 0 1px 4px rgba(20, 40, 20, .12); }
.mode.on b { color: var(--accent); }

.stage { display: grid; gap: 16px; justify-items: center; }
@media (min-width: 860px) { .stage { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; } }
.play { width: 100%; max-width: 640px; min-width: 0; }

/* the chase */
.scene-wrap { position: relative; width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 16px 34px -24px rgba(20, 40, 10, .5); background: var(--panel-2); }
#scene { display: block; width: 100%; height: clamp(124px, 30vw, 200px); }
.hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 8px 10px; pointer-events: none; }
.hud > span { background: color-mix(in srgb, var(--panel) 82%, transparent); border-radius: 99px; padding: 3px 10px; font: 700 13px/1.3 var(--h-sans); font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.hud .hscore { margin-left: auto; }
.hud .hclock { font: 700 20px/1.1 var(--h-serif); padding: 3px 12px; min-width: 64px; text-align: center; }
.hud .hclock.low { color: #fff; background: var(--bad); animation: throb .8s ease-in-out infinite; }
.hud .hclock.paused { color: #3A2A00; background: var(--banana); animation: none; }
.hud .hclock.paused::before { content: "⏸ "; font-size: 13px; vertical-align: 2px; }
@keyframes throb { 50% { transform: scale(1.08); } }
.cd { position: absolute; inset: 0; display: grid; place-items: center; font: 800 54px/1 var(--h-serif); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.25), 0 0 24px rgba(0,0,0,.25); pointer-events: none; opacity: 0; }
.cd.go { animation: cd .8s var(--h-ease) both; }
@keyframes cd { 0% { opacity: 0; transform: scale(1.6); } 25% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: scale(.9); } }
.spop { position: absolute; left: 66%; top: 18%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; opacity: 0; }
.spop b { font: 800 28px/1 var(--h-serif); color: var(--tc, var(--text)); text-shadow: 0 2px 0 var(--panel), 0 0 10px var(--panel); }
.spop span { font: 700 11px/1.2 var(--h-sans); letter-spacing: .1em; text-transform: uppercase; background: var(--tc, var(--muted)); color: #fff; border-radius: 99px; padding: 2px 8px; margin-top: 3px; }
.spop.go { animation: popup 1.1s var(--h-ease) both; }
@keyframes popup { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.6); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 30% { transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -20px); } }
.spop.t0 { --tc: var(--t1); } .spop.t1 { --tc: var(--t1); } .spop.t2 { --tc: var(--t2); } .spop.t3 { --tc: var(--t3); } .spop.t4 { --tc: var(--t4); } .spop.t5 { --tc: var(--t5); }
.spop.t6 { --tc: var(--t6); }
.spop.t5 b, .spop.t6 b { animation: shine .5s ease-in-out 3 alternate; }
.spop.t6 b { animation-iteration-count: 6; }
@keyframes shine { to { filter: brightness(1.35) drop-shadow(0 0 6px var(--tc)); } }

/* the peel meter */
.meter { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; }
.meter-ico svg { width: 18px; height: 18px; display: block; fill: var(--banana); stroke: var(--banana-edge); stroke-width: 1.4; stroke-linejoin: round; }
.meter-track { flex: 1; height: 10px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--banana), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--h-spring); border-radius: 99px; }
.meter-lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.meter.full .meter-track { animation: flash .7s ease-out 2; }
@keyframes flash { 40% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px var(--banana); } }

/* the question and the answer box */
.qcard { margin-top: 10px; padding: 2px 4px; }
.qmeta { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.qtext { margin: 2px 0 0; font: 700 clamp(22px, 5.6vw, 30px)/1.15 var(--h-serif); letter-spacing: -.01em; }
.qtext.in { animation: qin .35s var(--h-ease) both; }
@keyframes qin { from { opacity: 0; transform: translateX(16px); } }
.ans { display: flex; gap: 8px; margin-top: 10px; }
.ans[hidden] { display: none; }
.ans input { flex: 1; min-width: 0; height: 52px; border-radius: 16px; border: 2px solid var(--line); background: var(--panel); color: var(--text); padding: 0 14px; font: 600 18px/1 var(--h-sans); outline: none; -webkit-appearance: none; appearance: none; }
.ans input:focus { border-color: var(--accent); }
.ans input::placeholder { color: var(--muted); opacity: .8; }
.ans .go { width: 52px; height: 52px; flex: none; border-radius: 16px; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.ans .go svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ans .go:active { transform: scale(.93); }
.ans .skip { height: 52px; flex: none; border-radius: 16px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); padding: 0 14px; font-weight: 700; cursor: pointer; }
.ans .skip:hover { color: var(--text); }
.ans.shake { animation: shake .4s ease-in-out; }
.ans.shake input { border-color: var(--bad); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.fb { min-height: 1.4em; margin: 6px 4px 0; font-size: .92rem; color: var(--muted); }
.fb.bad { color: var(--bad); font-weight: 600; }
.fb.good { font-weight: 700; }
.fb.good.t1 { color: var(--t1); } .fb.good.t2 { color: var(--t2); } .fb.good.t3 { color: var(--t3); } .fb.good.t4 { color: var(--t4); } .fb.good.t5 { color: var(--t5); } .fb.good.t6 { color: var(--t6); }
.startbox { margin-top: 12px; }
.startbox[hidden] { display: none; }
.startbox .hcta { background: var(--accent); color: var(--accent-ink); }
.fine { color: var(--muted); font-size: .85rem; text-align: center; margin: 8px 0 0; }

/* answer list: during the run (newest first) and on the end card */
.log, .rows, .peek { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.log li, .rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q t" "a t"; column-gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; text-align: left; }
.log li.new { animation: hUp .35s var(--h-ease) both; }
.lq { grid-area: q; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la { grid-area: a; font-weight: 700; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.la.none { font-weight: 500; color: var(--muted); font-style: italic; }
.t { grid-area: t; font: 700 11px/1 var(--h-sans); letter-spacing: .04em; border-radius: 99px; padding: 4px 8px; color: #fff; white-space: nowrap; background: var(--tc, var(--t1)); }
.t0 { --tc: transparent; color: var(--muted); }
.t1 { --tc: var(--t1); } .t2 { --tc: var(--t2); } .t3 { --tc: var(--t3); } .t4 { --tc: var(--t4); } .t5 { --tc: var(--t5); } .t6 { --tc: var(--t6); color: #2A1E00; }
:root[data-theme="dark"] .t:not(.t0) { color: #10170F; }
.dlg .t { display: inline-block; margin: 2px 1px; }

/* side: end card + note */
.side { width: 100%; max-width: 640px; display: grid; gap: 14px; }
@media (min-width: 860px) { .side { position: sticky; top: 16px; } }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; color: var(--muted); font-size: .9rem; }
.note[hidden] { display: none; }
.note p { margin: 0; }
.note b { color: var(--text); }
.hsum [hidden] { display: none !important; }
.hsum .hbtns:has(> [hidden]) { grid-template-columns: 1fr; }
.hsum .big small { font-family: var(--h-sans); font-size: 15px; color: var(--muted); }
.hsum .rows { margin-top: 14px; }
body.ended .log { display: none; }
.hsum .rows li { background: var(--panel-2); }
.rarest { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.rarest b { color: var(--text); }
.rarest:empty { display: none; }
.peek { text-align: left; }
/* every answer (after the run): search, rarity filters, one scrollable A-Z list per question */
.every { text-align: left; margin-top: 10px; display: grid; gap: 6px; }
.every details { background: var(--panel-2); border-radius: 14px; padding: 0; min-width: 0; }
.every summary { cursor: pointer; list-style: none; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.every summary::-webkit-details-marker { display: none; }
.every summary .eq { font-weight: 700; }
.every summary .ec { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.every summary .ey { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); }
.every summary .ey b { color: var(--text); }
.every details[open] summary { border-bottom: 1px solid var(--line); }
.every .abody { padding: 10px 12px 12px; display: grid; gap: 8px; min-width: 0; }
.every .asearch { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 0 12px; font: 600 15px/1 var(--h-sans); outline: none; box-sizing: border-box; }
.every .asearch:focus { border-color: var(--accent); }
.every .afilter { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.every .afilter::-webkit-scrollbar { display: none; }
.every .achip { flex: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 99px; padding: 5px 10px; font: 700 11.5px/1 var(--h-sans); cursor: pointer; white-space: nowrap; }
.every .afilter .achip.t { background: var(--panel); color: var(--tc); border-color: var(--tc); }
.every .achip.on { background: var(--text); color: var(--panel); border-color: var(--text); }
.every .afilter .achip.t.on { background: var(--tc); color: #fff; border-color: var(--tc); }
.every .afilter .achip.t6.on { color: #2A1E00; }
.every .alist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.every .arow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.every .arow:last-child { border-bottom: 0; }
.every .arow .an { min-width: 0; overflow-wrap: anywhere; }
.every .arow .t { flex: none; font-size: 10px; padding: 3px 7px; }
.every .arow.mine { background: var(--tc); color: #fff; font-weight: 700; }
.every .arow.mine.t6 { color: #2A1E00; }
.every .arow.mine .t { background: rgba(0, 0, 0, .18); color: inherit; }
.every .anote { margin: 0; font-size: .8rem; color: var(--muted); min-height: 1em; }
.dispute { display: block; margin: 2px 4px 0; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line); background: var(--panel); color: var(--text); font: 600 .85rem/1.2 var(--h-sans); cursor: pointer; }
.dispute[hidden] { display: none; }
.dispute:hover { border-style: solid; }
.peek li { background: var(--panel-2); border-radius: 12px; padding: 6px 10px; display: block; }

/* Challenge: strikes where the clock was, no peel meter; a room's standings strip under the scene */
body.chal .meter { display: none; }
.hud .hclock.strikes { font: 700 17px/1.2 var(--h-sans); letter-spacing: .1em; color: var(--bad); min-width: 0; }
.t.miss { opacity: .7; }
.strip { margin: 8px 0 0; }
.strip[hidden] { display: none; }
.strip-h { margin: 0 2px 4px; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.strip-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 4px; }
.rs { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "r n" "r s"; column-gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; font-size: .8rem; line-height: 1.3; }
.rs-r { grid-area: r; font: 700 1.05rem/1 var(--h-serif); color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-n { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-s { grid-area: s; color: var(--muted); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-k { color: var(--bad); letter-spacing: .06em; }
.rs.me { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.rs.out { opacity: .55; }
.rs.out .rs-k { color: var(--muted); letter-spacing: 0; }
.rb-end { display: block; margin: 2px auto 0; }
.ch-fresh { display: block; margin: 2px auto 0; }
.ch-fresh[hidden], .startbox [hidden] { display: none; }

/* Challenge rooms: host or join, then the lobby */
.roombox { margin-top: 14px; padding: 12px 14px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; text-align: left; }
.roombox[hidden], .roombox [hidden] { display: none; }
.rb-home, .rb-lobby { display: grid; gap: 8px; }
.rb-h { margin: 0 0 4px; font: 700 1.15rem/1.2 var(--h-serif); }
.roombox .fine { text-align: left; margin: 0; }
.rb-lbl { margin: 0; font-size: .8rem; color: var(--muted); }
.rb-in { width: 100%; min-width: 0; height: 46px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); color: var(--text); padding: 0 12px; font: 600 16px/1 var(--h-sans); outline: none; -webkit-appearance: none; appearance: none; }
.rb-in:focus { border-color: var(--accent); }
.rb-in::placeholder { color: var(--muted); opacity: .8; }
.rb-row { display: flex; gap: 8px; }
.rb-row .rb-in { flex: 1; }
.rb-code { text-transform: uppercase; letter-spacing: .18em; }
.roombox .hcta { height: 46px; border-radius: 14px; }
.roombox .hcta.ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.rb-row .hcta { width: auto; flex: none; padding: 0 18px; }
.roombox .hcta:disabled { opacity: .55; cursor: default; transform: none; }
.rb-big { font: 800 44px/1.05 var(--h-serif); letter-spacing: .14em; text-align: center; font-variant-numeric: tabular-nums; }
.rb-lobby .hlink { justify-self: center; padding-top: 0; }
.rb-members { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rb-members li { background: var(--panel-2); border-radius: 10px; padding: 6px 10px; font-size: .9rem; overflow-wrap: anywhere; }
.rb-members li.me { font-weight: 700; }
.rb-err { margin: 8px 0 0; color: var(--bad); font-weight: 600; font-size: .9rem; }
.rb-err:empty { display: none; }
.sum-room { margin-top: 14px; }
.sum-room .rows { margin-top: 8px; }
.sum-room .rows li.me { border-color: var(--accent); }
.peek .lq { display: block; }
.peek .pk { font-weight: 600; font-size: .9rem; }
.hsum .hlink[aria-expanded="true"] { color: var(--text); }

/* while running, keep the chase, the question and the box together on small screens (room for the keyboard) */
@media (max-width: 859px) {
  body.running .modes, body.running .side, body.running .ad-inline, body.running .foot { display: none; }
  body.running .log { display: none; }
}
@media (max-height: 700px) { body.running .log { display: none; } }

/* ads + footer */
.ad-inline { margin-top: 26px; }
.ad-slot { display: block; margin: 0 auto; overflow: hidden; }
.ad-banner { width: 100%; max-width: 728px; min-height: 100px; }
.ad-slot.placeholder { border: 1.5px dashed var(--line); border-radius: 12px; display: grid; place-items: center; color: var(--muted); font-size: 0.85rem; }
.ad-slot.placeholder::before { content: "Ad space " attr(data-size); }
.ad-slot.collapsed { min-height: 0; }
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }
.ad-label { font-size: 11px; color: var(--muted); text-align: center; margin: 0 0 4px; }
.foot { display: flex; justify-content: center; gap: 22px; padding: 26px 0 40px; color: var(--muted); font-size: .9rem; }

/* dialogs */
.dlg { border: 1px solid var(--line); border-radius: 22px; padding: 22px; width: min(460px, calc(100vw - 32px)); background: var(--panel); color: var(--text); }
.dlg::backdrop { background: rgba(10, 20, 10, .5); }
.dlg h2 { font-family: var(--h-serif); font-weight: 700; margin: 0 0 10px; font-size: 1.6rem; }
.dlg p { color: var(--muted); }
.dlg p b { color: var(--text); }
.dlg .x { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--muted); width: 44px; height: 44px; touch-action: manipulation; }
.dlg .hcta { background: var(--accent); color: var(--accent-ink); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.stats div { display: flex; flex-direction: column-reverse; background: var(--panel-2); border-radius: 12px; padding: 10px; }
.stats dt { color: var(--muted); font-size: .85rem; }
.stats dd { margin: 0; font: 700 1.4rem/1.2 var(--h-serif); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .hbar { gap: 8px; } .hbrand .logo { font-size: 24px; gap: 6px; } .hbrand .logo .mark { width: 22px; height: 22px; } .ans .skip { padding: 0 10px; } }
@media (max-width: 380px) { .hbrand .logo { font-size: 22px; } .hbrand .by { letter-spacing: .16em; } .mode span { display: none; } }
/* six header buttons don't fit beside the logo below ~400px: they go to their own row (the help button was cut off at 360) */
@media (max-width: 400px) { .hbar { flex-wrap: wrap; row-gap: 6px; } .hicons { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) {
  .cd.go, .spop.go, .qtext.in, .ans.shake, .log li.new, .meter.full .meter-track, .hud .hclock.low, .spop.t5 b, .spop.t6 b { animation-duration: .01s; animation-iteration-count: 1; }
  .meter-fill { transition: none; }
}

/* mobile pass: a long dialog scrolls, and its × rides along at the top instead of scrolling away (the form that holds
   it sticks and takes no room); the × is 44px. Same pattern as kit.css. */
.dlg > form:first-child { position: sticky; top: 16px; z-index: 2; height: 0; margin: 0; }
.dlg > form:first-child .x { top: -16px; right: -16px; width: 44px; height: 44px; border-radius: 50%; background: var(--panel); }
.dlg { overscroll-behavior: contain; }
/* mobile pass: no double-tap zoom on buttons; the header icons shrink to 30-34px on phones, so widen what a finger
   hits without moving anything; no hover colour stuck on an icon after a tap */
button { touch-action: manipulation; }
.hicons .hicon { position: relative; }
.hicons .hicon::after { content: ""; position: absolute; inset: -6px -2px; }
@media (hover: none) { .hicon:hover { background: var(--h-panel); } }
@media (pointer: coarse) { .mode { min-height: 40px; } }   /* the mode tabs were 36 px tall */

/* five modes: the three runs on the first row, The Bunch and Hot Banana on the second */
.modes.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.modes.five .mode { grid-column: span 2; }
.modes.five .mode:nth-child(n+4) { grid-column: span 3; }

/* cross-browser pass (2026-11-25): phone in landscape, keep the page clear of the notch side (viewport-fit=cover;
   0 everywhere else) */
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
