/* ---- 3RDS cabinet: bleed past Twenty Twenty-Five's global padding, paint the page dark ---- */
.has-global-padding > [data-tlt-cabinet],
.has-global-padding > .tlt-arcade-wide { margin-left: calc(var(--wp--style--root--padding-left, 30px) * -1) !important; margin-right: calc(var(--wp--style--root--padding-right, 30px) * -1) !important; max-width: none !important; width: auto !important; }
html.tlt3rds-cabinet-page, html.tlt3rds-cabinet-page body, body:has([data-tlt-cabinet]) { background: #07080a !important; }
html.tlt3rds-cabinet-page .wp-site-blocks, html.tlt3rds-cabinet-page .entry-content { background: #07080a; }
html.tlt3rds-cabinet-page .entry-content { margin-block: 0 !important; padding-block: 0 !important; }
@media (max-width: 720px) {
  [data-tlt-cabinet] { border-radius: 0 !important; border-left: 0 !important; border-right: 0 !important; }
}

/* HAUNT3D 3SCAP3 — v0.1 shell styles (scoped under #h3-app) */
#h3-app, #h3-app * { box-sizing: border-box; }
#h3-app {
  --h3-bg: #07060a;
  --h3-panel: #101017;
  --h3-glass: rgba(20, 20, 30, 0.72);
  --h3-line: rgba(244, 239, 230, 0.14);
  --h3-cream: #F4EFE6;
  --h3-dim: #9a97a4;
  --h3-red: #E8452B;
  --h3-blue: #4FA8FF;
  --h3-orange: #FF7A1A;
  --h3-gold: #E1B457;
  --h3-accent: #E8452B;
  --h3-accent2: #F2A93B;
  --h3-font: "Barlow Condensed", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --h3-ui: "Barlow", Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --h3-mono: "SF Mono", Consolas, "Roboto Mono", Menlo, monospace;
  position: relative; width: 100%; max-width: clamp(420px, calc((100vh - 230px) * 0.675), 560px); margin: 0 auto;
  font-family: var(--h3-ui); color: var(--h3-cream); background: var(--h3-bg);
  border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
#h3-app[data-world="hollow"] { --h3-accent: #4FE3FF; --h3-accent2: #9B6CFF; }
#h3-app[data-world="orbital"] { --h3-accent: #2DF2D2; --h3-accent2: #B478D2; }

/* ---------- top bar ---------- */
.h3-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 12px; background: linear-gradient(180deg, #14131b, #0b0a10);
  border-bottom: 1px solid var(--h3-line); font-family: var(--h3-font);
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 11px; color: var(--h3-dim);
}
.h3-bar b { color: var(--h3-cream); font-weight: 600; }
.h3-bar .h3-lamp { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--h3-accent); box-shadow: 0 0 10px var(--h3-accent); margin-right: 6px; vertical-align: middle; }
.h3-bar .h3-brow { white-space: nowrap; }
.h3-bar .h3-chips { display: inline-flex; gap: 4px; align-items: center; margin-left: auto; }

/* ---------- scoreboard HUD ---------- */
.h3-hud {
  display: grid; grid-template-columns: 1.35fr 1fr auto; gap: 8px; align-items: stretch;
  padding: 8px 10px; background: var(--h3-panel); border-bottom: 1px solid var(--h3-line);
}
.h3-cell { background: #0a0a0f; border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 6px 10px; position: relative; overflow: hidden; }
.h3-cell::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 45%); pointer-events: none; }
.h3-eyebrow { font-family: var(--h3-font); font-size: 10px; letter-spacing: 0.22em; color: var(--h3-dim); text-transform: uppercase; }
.h3-eyebrow.h3-acc { color: var(--h3-accent); }
.h3-odo { font-family: var(--h3-mono); font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: 0.06em; margin-top: 2px; color: var(--h3-accent2); text-shadow: 0 0 12px color-mix(in srgb, var(--h3-accent2) 60%, transparent); font-variant-numeric: tabular-nums; }
.h3-odo small { font-size: 12px; letter-spacing: 0.2em; color: var(--h3-dim); margin-left: 4px; font-family: var(--h3-font); }
.h3-odo.h3-score { font-size: 22px; color: var(--h3-cream); text-shadow: none; margin-top: 6px; }
.h3-side { display: flex; flex-direction: column; gap: 6px; min-width: 92px; }
.h3-lives { display: flex; gap: 4px; align-items: center; height: 18px; }
.h3-ball { width: 18px; height: 11px; border-radius: 50%; background: radial-gradient(ellipse at 40% 35%, #FFB35C, #FF7A1A 55%, #8a3a0a); box-shadow: 0 0 8px rgba(255,122,26,0.6); position: relative; }
.h3-ball::after { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 2px; background: rgba(255,255,255,0.75); border-radius: 2px; }
.h3-ball.h3-lost { background: #2a2a33; box-shadow: none; opacity: 0.5; }
.h3-ball.h3-lost::after { background: rgba(255,255,255,0.15); }
.h3-onelife { font-family: var(--h3-font); font-size: 12px; letter-spacing: 0.16em; color: var(--h3-red); text-transform: uppercase; }
.h3-best { font-family: var(--h3-mono); font-size: 13px; color: var(--h3-dim); }
.h3-best b { color: var(--h3-cream); font-weight: 600; }
.h3-pausebtn { font-family: var(--h3-font); letter-spacing: 0.2em; font-size: 11px; text-transform: uppercase; color: var(--h3-cream); background: #16161f; border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; padding: 4px 8px; cursor: pointer; }
.h3-pausebtn:hover { background: #20202b; }

/* ---------- stage ---------- */
.h3-stage { position: relative; width: 100%; aspect-ratio: 540 / 800; background: #000; overflow: hidden; touch-action: none; }
.h3-stage canvas { display: block; width: 100%; height: 100%; }
.h3-stage:focus { outline: none; }
.h3-stage:focus-visible { box-shadow: 0 0 0 3px var(--h3-blue) inset; }

/* ---------- overlays ---------- */
.h3-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; background: rgba(4, 4, 8, 0.58); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.h3-overlay[hidden] { display: none; }
.h3-panelbox { width: 100%; max-width: 440px; background: var(--h3-glass); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 16px 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.06) inset; }
.h3-title { font-family: var(--h3-font); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 0.9; letter-spacing: 0.01em; font-size: 54px; transform: skewX(-6deg); margin: 4px 0 6px; }
.h3-title .a { color: #ff3b2f; text-shadow: 0 0 18px rgba(255, 59, 47, 0.55), 2px 2px 0 #4a0d0a; }
.h3-title .b { color: #57b6ff; text-shadow: 0 0 18px rgba(87, 182, 255, 0.55), 2px 2px 0 #0a2a4a; }
.h3-tag { font-family: var(--h3-font); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; color: var(--h3-dim); margin-bottom: 10px; }
.h3-tag b { color: var(--h3-cream); font-weight: 600; }
.h3-worlds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.h3-world { position: relative; background: #0b0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 6px 8px; cursor: pointer; text-align: center; transition: transform 0.12s, border-color 0.12s, box-shadow 0.12s; }
.h3-world:hover { transform: translateY(-2px); }
.h3-world .h3-wname { font-family: var(--h3-font); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: 0.06em; line-height: 1.05; }
.h3-world .h3-wtag { font-size: 10px; color: var(--h3-dim); margin-top: 4px; line-height: 1.2; }
.h3-world .h3-worb { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 8px; }
.h3-world[data-w="deadlight"] .h3-worb { background: radial-gradient(circle at 40% 35%, #ff6a4a, #a3140f 55%, #3a0806); box-shadow: 0 0 14px rgba(232, 69, 43, 0.5); }
.h3-world[data-w="hollow"] .h3-worb { background: radial-gradient(circle at 40% 35%, #eaf9ff, #6fd0ff 45%, #3c2a8f); box-shadow: 0 0 14px rgba(79, 227, 255, 0.5); }
.h3-world[data-w="orbital"] .h3-worb { background: radial-gradient(circle at 40% 35%, #b0fff0, #2DF2D2 40%, #4a1f7a 80%); box-shadow: 0 0 14px rgba(45, 242, 210, 0.5); }
.h3-world.h3-on { border-color: var(--h3-accent); box-shadow: 0 0 0 1px var(--h3-accent), 0 0 20px color-mix(in srgb, var(--h3-accent) 35%, transparent); }
.h3-world.h3-on .h3-wname { color: var(--h3-accent); }
.h3-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.h3-tiers { display: inline-flex; background: #0b0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; overflow: hidden; }
.h3-tier { font-family: var(--h3-font); letter-spacing: 0.16em; font-size: 12px; text-transform: uppercase; padding: 7px 12px; color: var(--h3-dim); cursor: pointer; border: 0; background: transparent; }
.h3-tier.h3-on { color: #0b0b12; background: var(--h3-cream); font-weight: 700; }
.h3-tier[data-tier="legacy"].h3-on { background: var(--h3-red); color: #fff; }
.h3-name { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 8px 0; }
.h3-name label { font-family: var(--h3-font); letter-spacing: 0.18em; font-size: 11px; color: var(--h3-dim); text-transform: uppercase; }
.h3-name input { font-family: var(--h3-mono); font-size: 15px; color: var(--h3-cream); background: #0b0b12; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 7px 10px; width: 210px; letter-spacing: 0.04em; }
.h3-name input:focus { outline: none; border-color: var(--h3-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--h3-accent) 35%, transparent); }
.h3-go { font-family: var(--h3-font); font-weight: 800; font-size: 22px; letter-spacing: 0.2em; text-transform: uppercase; color: #120602; background: linear-gradient(180deg, #FFB35C, #FF7A1A 60%, #d85f0a); border: 0; border-radius: 10px; padding: 12px 34px; cursor: pointer; box-shadow: 0 0 26px rgba(255,122,26,0.45), 0 6px 0 #7a3306, 0 1px 0 rgba(255,255,255,0.4) inset; margin-top: 10px; transition: transform 0.08s, box-shadow 0.08s; }
.h3-go:hover { transform: translateY(-1px); }
.h3-go:active { transform: translateY(4px); box-shadow: 0 0 20px rgba(255,122,26,0.35), 0 2px 0 #7a3306; }
.h3-go:focus-visible { outline: 3px solid var(--h3-blue); outline-offset: 2px; }
.h3-go:disabled { opacity: 0.45; pointer-events: none; cursor: default; }
.h3-hint { font-family: var(--h3-font); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--h3-orange); margin: -2px 0 4px; }
.h3-pausebtn.is-off { opacity: 0.55; }
.h3-bestline { font-family: var(--h3-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--h3-dim); margin-top: 10px; }
.h3-bestline b { color: var(--h3-cream); font-weight: 600; }
.h3-btn { font-family: var(--h3-font); letter-spacing: 0.16em; font-size: 13px; text-transform: uppercase; color: var(--h3-cream); background: #16161f; border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.h3-btn:hover { background: #20202b; }
.h3-btn.h3-primary { color: #120602; background: linear-gradient(180deg, #FFB35C, #FF7A1A 60%, #d85f0a); border-color: transparent; font-weight: 800; box-shadow: 0 0 18px rgba(255,122,26,0.35); }
.h3-btn:focus-visible { outline: 3px solid var(--h3-blue); outline-offset: 2px; }

/* results */
.h3-over-h { font-family: var(--h3-font); font-weight: 800; font-style: italic; font-size: 40px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--h3-red); text-shadow: 0 0 20px rgba(232,69,43,0.5); line-height: 1; transform: skewX(-6deg); }
.h3-over-sub { font-family: var(--h3-font); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; color: var(--h3-dim); margin: 6px 0 12px; }
.h3-over-sub b { color: var(--h3-cream); font-weight: 600; }
.h3-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 10px; }
.h3-stat { background: #0b0b12; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px 10px; text-align: left; }
.h3-stat .h3-eyebrow { display: block; }
.h3-stat .v { font-family: var(--h3-mono); font-weight: 700; font-size: 24px; color: var(--h3-cream); line-height: 1.1; }
.h3-stat .v.h3-yd { color: var(--h3-accent2); }
.h3-stat .s { font-size: 10px; color: var(--h3-dim); font-family: var(--h3-font); letter-spacing: 0.12em; text-transform: uppercase; }
.h3-newbest { display: inline-block; font-family: var(--h3-font); letter-spacing: 0.18em; font-size: 11px; color: #0b0b12; background: var(--h3-gold); border-radius: 4px; padding: 2px 8px; text-transform: uppercase; margin-left: 6px; vertical-align: middle; }
.h3-kills { font-size: 11px; color: var(--h3-dim); margin-bottom: 8px; letter-spacing: 0.04em; }
.h3-kills b { color: var(--h3-cream); font-weight: 600; }

/* ready flash + pause */
.h3-flash { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; font-family: var(--h3-font); font-weight: 800; font-style: italic; font-size: 92px; text-transform: uppercase; color: var(--h3-cream); text-shadow: 0 0 30px rgba(255,255,255,0.45), 4px 4px 0 rgba(0,0,0,0.6); transform: skewX(-8deg); opacity: 0; }
.h3-flash.h3-show { animation: h3flash 0.9s ease-out forwards; }
@keyframes h3flash { 0% { opacity: 0; transform: skewX(-8deg) scale(1.6); } 20% { opacity: 1; transform: skewX(-8deg) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: skewX(-8deg) scale(1.1); } }
.h3-pause-h { font-family: var(--h3-font); font-weight: 800; font-size: 34px; letter-spacing: 0.1em; text-transform: uppercase; }
.h3-foot { font-family: var(--h3-font); letter-spacing: 0.22em; text-transform: uppercase; font-size: 10px; color: var(--h3-dim); padding: 8px 12px; text-align: center; border-top: 1px solid var(--h3-line); background: #0b0a10; }

/* phones: keep the whole cabinet on one screen */
@media (max-width: 600px) {
  #h3-app { border-radius: 0; max-width: none; }
  .h3-bar { font-size: 10px; letter-spacing: 0.12em; padding: 6px 10px; }
  .h3-bar #h3-barworld { display: none; }
  .h3-hud { padding: 6px 8px; gap: 6px; }
  .h3-odo { font-size: 24px; }
  .h3-odo.h3-score { font-size: 18px; }
  .h3-title { font-size: 44px; }
  .h3-world .h3-wname { font-size: 12px; }
  .h3-world .h3-wtag { display: none; }
  .h3-name input { width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .h3-flash.h3-show { animation-duration: 0.5s; }
  .h3-world, .h3-go { transition: none; }
}

/* ---------- v0.2 art dressing ---------- */
.h3-title-img { display: block; width: 100%; max-width: 380px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.6)); }
.h3-world.h3-art { background-size: cover; background-position: center; min-height: 110px; padding: 0; overflow: hidden; display: flex; align-items: flex-end; border-color: rgba(255,255,255,0.16); }
.h3-world.h3-art .h3-worb { display: none; }
.h3-world.h3-art .h3-wname { width: 100%; padding: 30px 6px 8px; background: linear-gradient(180deg, rgba(4,4,8,0) 0%, rgba(4,4,8,0.85) 55%, rgba(4,4,8,0.95) 100%); text-shadow: 0 2px 6px rgba(0,0,0,0.9); font-size: 15px; }
.h3-world.h3-art .h3-wtag { display: none; }
.h3-world.h3-art.h3-on { box-shadow: 0 0 0 2px var(--h3-accent), 0 0 24px color-mix(in srgb, var(--h3-accent) 45%, transparent); }
.h3-cutband { width: calc(100% + 36px); margin: -16px -18px 12px; height: 118px; background-size: cover; background-position: center 40%; border-bottom: 2px solid var(--h3-orange); border-radius: 14px 14px 0 0; }
.h3-scene { width: calc(100% + 36px); margin: -16px -18px 0; height: 190px; background-size: cover; background-position: center; border-radius: 14px 14px 0 0; position: relative; }
.h3-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,4,8,0) 45%, rgba(20,20,30,0.95) 100%); }
.h3-over-card { display: block; width: 60%; max-width: 260px; height: auto; margin: -48px auto 2px; position: relative; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.7)); }
@media (max-width: 600px) {
  .h3-world.h3-art { min-height: 84px; }
  .h3-world.h3-art .h3-wname { font-size: 12px; padding-top: 22px; }
  .h3-scene { height: 150px; }
  .h3-cutband { height: 90px; }
  .h3-title-img { max-width: 300px; }
}

/* ---------- cabinet mode ---------- */
#h3-app .h3-inner { width: 100%; }
#h3-app .h3-cabbtn { border-color: rgba(255,122,26,0.5); color: var(--h3-orange); }
#h3-app.h3-cabinet { position: fixed; inset: 0; z-index: 2147483000; width: auto; max-width: none; height: 100%; border-radius: 0; overflow: auto; -webkit-overflow-scrolling: touch; display: flex; align-items: flex-start; justify-content: center; padding: 0; background: #050408; }
#h3-app.h3-cabinet .h3-inner, #h3-app:fullscreen .h3-inner { width: min(100vw, calc((100vh - 200px) * 0.675), 640px); margin: 0 auto; }
#h3-app:fullscreen { max-width: none; width: 100%; height: 100%; border-radius: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; background: #050408; }
body.h3-lock { overflow: hidden !important; }
@media (max-width: 600px) {
  #h3-app.h3-cabinet .h3-inner { width: min(100vw, calc((100vh - 170px) * 0.675)); }
  #h3-app.h3-cabinet .h3-foot { display: none; }
}

/* ---------- theme-proof: WordPress themes reach into everything (the MAK3 lesson) ---------- */
#h3-app, #h3-app * { box-sizing: border-box !important; }
#h3-app canvas { display: block !important; width: 100% !important; height: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: #000 !important; }
#h3-app img { margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; max-width: 100% !important; }
#h3-app .h3-title-img { margin: 0 auto 8px !important; }
#h3-app .h3-over-card { margin: -48px auto 2px !important; }
#h3-app button, #h3-app input { font-family: var(--h3-font) !important; line-height: 1.2 !important; margin: 0 !important; text-decoration: none !important; text-shadow: none !important; min-height: 0 !important; height: auto !important; width: auto !important; }
#h3-app .h3-name input { font-family: var(--h3-mono) !important; font-size: 15px !important; color: var(--h3-cream) !important; background: #0b0b12 !important; border: 1px solid rgba(255,255,255,0.14) !important; border-radius: 8px !important; padding: 7px 10px !important; width: 210px !important; box-shadow: none !important; }
#h3-app .h3-go { font-family: var(--h3-font) !important; font-weight: 800 !important; font-size: 22px !important; letter-spacing: 0.2em !important; text-transform: uppercase !important; color: #120602 !important; background: linear-gradient(180deg, #FFB35C, #FF7A1A 60%, #d85f0a) !important; border: 0 !important; border-radius: 10px !important; padding: 12px 34px !important; box-shadow: 0 0 26px rgba(255,122,26,0.45), 0 6px 0 #7a3306, 0 1px 0 rgba(255,255,255,0.4) inset !important; margin-top: 10px !important; }
#h3-app .h3-go:disabled { opacity: 0.45 !important; pointer-events: none !important; cursor: default !important; }
#h3-app .h3-pausebtn.is-off { opacity: 0.55 !important; }
#h3-app .h3-btn { font-family: var(--h3-font) !important; letter-spacing: 0.16em !important; font-size: 13px !important; text-transform: uppercase !important; color: var(--h3-cream) !important; background: #16161f !important; border: 1px solid rgba(255,255,255,0.14) !important; border-radius: 8px !important; padding: 9px 16px !important; box-shadow: none !important; }
#h3-app .h3-btn.h3-primary { color: #120602 !important; background: linear-gradient(180deg, #FFB35C, #FF7A1A 60%, #d85f0a) !important; border-color: transparent !important; font-weight: 800 !important; }
#h3-app .h3-tier { font-family: var(--h3-font) !important; letter-spacing: 0.16em !important; font-size: 12px !important; text-transform: uppercase !important; padding: 7px 12px !important; color: var(--h3-dim) !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
#h3-app .h3-tier.h3-on { color: #0b0b12 !important; background: var(--h3-cream) !important; font-weight: 700 !important; }
#h3-app .h3-tier[data-tier="legacy"].h3-on { background: var(--h3-red) !important; color: #fff !important; }
#h3-app .h3-pausebtn { font-family: var(--h3-font) !important; letter-spacing: 0.2em !important; font-size: 11px !important; text-transform: uppercase !important; color: var(--h3-cream) !important; background: #16161f !important; border: 1px solid rgba(255,255,255,0.12) !important; border-radius: 6px !important; padding: 4px 8px !important; box-shadow: none !important; }
#h3-app .h3-cabbtn { color: var(--h3-orange) !important; border-color: rgba(255,122,26,0.5) !important; }
#h3-app .h3-bar, #h3-app .h3-foot, #h3-app .h3-eyebrow, #h3-app .h3-tag, #h3-app .h3-over-sub, #h3-app .h3-pause-h, #h3-app .h3-wname, #h3-app .h3-onelife, #h3-app .h3-stat .s, #h3-app .h3-name label { font-family: var(--h3-font) !important; }
#h3-app .h3-odo, #h3-app .h3-best, #h3-app .h3-stat .v { font-family: var(--h3-mono) !important; }
#h3-app .h3-kills, #h3-app .h3-bestline { font-family: var(--h3-ui) !important; }
#h3-app .h3-bestline { font-family: var(--h3-mono) !important; }
#h3-app .h3-bar, #h3-app .h3-hud, #h3-app .h3-cell, #h3-app .h3-stage, #h3-app .h3-overlay, #h3-app .h3-panelbox, #h3-app .h3-foot, #h3-app .h3-world, #h3-app .h3-stat { max-width: none !important; }
#h3-app .h3-hud, #h3-app .h3-worlds, #h3-app .h3-stats { display: grid !important; }
#h3-app .h3-row, #h3-app .h3-name, #h3-app .h3-lives, #h3-app .h3-bar { display: flex !important; }
#h3-app .h3-overlay[hidden], #h3-app [hidden] { display: none !important; }
#h3-app .h3-overlay { position: absolute !important; }
#h3-app .h3-stage { position: relative !important; aspect-ratio: 540 / 800 !important; height: auto !important; }
#h3-app span:not(.h3-title span) { font-style: normal !important; }
#h3-app .h3-inner, #h3-app .h3-stage, #h3-app .h3-worlds, #h3-app .h3-lives, #h3-app .h3-flash, #h3-app .h3-side, #h3-app .h3-row, #h3-app .h3-tiers { padding: 0 !important; }
#h3-app .h3-hud { padding: 8px 10px !important; }
.tlt-h3.tlt-arcade-wide { margin: 0; padding: 0; }

/* ---------- RULES drop-down (the shared 3RDS pattern, t3r- prefix) ---------- */
.t3r-rules-btn { font: inherit; letter-spacing: .12em; text-transform: uppercase; }
.t3r-rules { position: fixed; inset: 0; z-index: 9000; background: rgba(3,4,6,.82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.t3r-rules[hidden] { display: none; }
.t3r-rules__panel { --t3r-accent: var(--h3-orange); --t3r-font: var(--h3-font); width: min(440px, 100%); max-height: 86vh; overflow: auto; background: #0d0f14; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 18px 18px; color: #e9ecf1; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.t3r-rules__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--t3r-font); letter-spacing: .18em; font-size: 13px; color: var(--t3r-accent); margin-bottom: 10px; }
.t3r-rules__x { background: none; border: 0; color: #9aa3b2; font-size: 18px; cursor: pointer; padding: 4px 8px; }
.t3r-rules__list { margin: 0 0 12px; padding: 0 0 0 18px; font-size: 15px; line-height: 1.45; }
.t3r-rules__list li { margin: 0 0 6px; }
.t3r-rules__keys { margin: 0 0 8px; font-size: 13px; color: #9aa3b2; }
.t3r-rules__ok { display: block; width: 100%; margin-top: 8px; padding: 12px; font-family: var(--t3r-font); letter-spacing: .14em; font-weight: 700; background: var(--t3r-accent); color: #0b0c10; border: 0; border-radius: 10px; cursor: pointer; }
.t3r-touch { display: none; } @media (hover: none) and (pointer: coarse) { .t3r-desk { display: none; } .t3r-touch { display: block; } }
/* the theme-proof button rules above would flatten the panel's buttons — put them back */
#h3-app .t3r-rules { position: fixed !important; }
#h3-app .t3r-rules__panel { text-align: left; user-select: text; -webkit-user-select: text; }
#h3-app .t3r-rules__list { font-family: var(--h3-ui) !important; }
#h3-app .t3r-rules__ok { width: 100% !important; margin-top: 8px !important; padding: 12px !important; font-size: 15px !important; background: var(--t3r-accent) !important; color: #0b0c10 !important; border: 0 !important; border-radius: 10px !important; }
#h3-app .t3r-rules__x { background: none !important; border: 0 !important; color: #9aa3b2 !important; padding: 4px 8px !important; font-size: 18px !important; }
#h3-app .t3r-rules__head { text-align: left; }

/* ---------- phones (≤ 720): edge to edge, 44 px tap targets, no card chrome ---------- */
@media (max-width: 720px) {
  #h3-app { max-width: none !important; width: 100% !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  .h3-bar { flex-wrap: wrap; padding: 6px 10px; font-size: 10px; letter-spacing: 0.12em; }
  .h3-bar #h3-barworld { display: none; }
  #h3-app .h3-pausebtn { min-height: 44px !important; padding: 0 10px !important; }
  #h3-app .h3-tier { min-height: 44px !important; }
  #h3-app .h3-btn { min-height: 44px !important; }
  #h3-app .h3-name input { min-height: 44px !important; width: 200px !important; }
  #h3-app .h3-world { min-height: 44px; }
  #h3-app .h3-world.h3-art { min-height: 84px !important; }
  #h3-app .h3-overlay { padding: 12px !important; overflow: auto; }
  #h3-app .h3-panelbox { padding: 14px 14px !important; }
  .h3-title-img { max-width: 300px; }
}

/* 0.2.2: the TOP 100 on the results panel — one board per tier, across the three worlds; members mixed in by score */
.h3-board { margin: 2px 0 10px; text-align: left; background: #0b0b12; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 8px 10px; }
.h3-bhead { display: flex; justify-content: space-between; gap: 8px; font-family: var(--h3-font); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--h3-dim); margin-bottom: 6px; white-space: nowrap; }
.h3-bhead span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.h3-bhead b { color: var(--h3-cream); font-weight: 700; }
.h3-blist { position: relative; max-height: 150px; overflow: auto; font-family: var(--h3-mono); font-size: 12px; line-height: 1.3; scrollbar-width: thin; }
.h3-brow { display: grid; grid-template-columns: 38px 1fr auto; gap: 8px; padding: 3px 4px; border-radius: 4px; color: rgba(255,255,255,0.62); }
.h3-brow .h3-brk { color: rgba(255,255,255,0.4); }
.h3-brow .h3-bsc { font-variant-numeric: tabular-nums; }
.h3-brow .h3-bhd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h3-brow.h3-top3 .h3-brk, .h3-brow.h3-top3 .h3-bsc { color: var(--h3-accent2); }
.h3-brow.h3-member .h3-bhd { color: var(--h3-cream); }
.h3-brow.h3-you { background: rgba(255,255,255,0.1); color: var(--h3-cream); font-weight: 700; }
.h3-brow.h3-off { opacity: 0.55; }
.h3-ground { height: 1px; margin: 4px 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0 6px, transparent 6px 10px); }
.h3-bland { font-family: var(--h3-font); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--h3-dim); margin-top: 6px; }
.h3-bland b { color: var(--h3-cream); }
/* 1.2.0: the TL3 arrow pad under the field (phones) */
#h3-app .h3-pads { padding: 8px 10px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.12); }
#h3-app .h3-pads[hidden] { display: none; }
#h3-app .h3-pads .tl3pad { --tl3pad-face: rgba(232,69,43,.12); --tl3pad-edge: rgba(232,69,43,.5); --tl3pad-ink: #F4EFE6; --tl3pad-on: rgba(232,69,43,.62); --tl3pad-on-ink: #FFE9E4; }
