/* Baseline Recreation canonical stylesheet.
   Consolidated from the former inline authority layers without changing cascade order. */

/* --- Recreation foundation --- */
/* Structural fallback only: active Recreation colour authority lives in sitewide/css/baseline-themes.css and css/recreation-theme.css. */
*{box-sizing:border-box}
html,body{margin:0;padding:0;min-height:100%;background:var(--page-bg);color:var(--ink);font-family:var(--font)}
body{background:var(--page-bg)}
.bl-scroll{background:var(--page-bg);background-size:100% 100%;background-attachment:fixed}

.section{display:none}.section.active{display:block}
.card{background:var(--card-bg);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);padding:24px}
.card h2,.card h3{margin:0 0 12px 0;color:var(--accent-2);font-family:var(--font-soft)}

.note{color:var(--muted);font-size:16px}
.grid{display:grid;gap:16px}.grid-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.tabs{display:flex;gap:10px;flex-wrap:wrap}.tab{appearance:none;border:none;cursor:pointer;background:var(--games-control);padding:10px 14px;border-radius:999px;font-size:16px;font-weight:760;color:var(--games-muted);border:1px solid rgba(var(--recreation-burgundy-rgb),.14)}
.tab[aria-selected="true"]{background:var(--games-panel);color:var(--games-ink);box-shadow:0 16px 32px -24px rgba(var(--recreation-burgundy-rgb),.28)}
.header-row,.game-header,.game-toolbar,.level-row,.skill-head,.word-form-row,.ninja-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.game-header{align-items:flex-start}
.game-header>div:first-child{flex:1 1 520px}
.game-header .link-actions{margin-left:auto;align-self:flex-start;justify-content:flex-end}
.link-actions{display:flex;gap:10px;flex-wrap:wrap}
.action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 14px;border-radius:999px;border:1px solid var(--border);background:var(--games-control);color:var(--accent-2);font-weight:900;cursor:pointer;text-decoration:none;box-shadow:0 10px 22px -20px rgba(var(--recreation-burgundy-rgb),.18)}
.action:hover{filter:brightness(1.03)}
.action[disabled]{opacity:.45;cursor:not-allowed;filter:none}.action.secondary{background:var(--games-panel)}.action.ghost{background:var(--games-panel)}
.summary-box{display:grid;gap:8px;padding:14px 16px;border-radius:18px;background:var(--games-panel);border:1px solid var(--border)}
.inline-note{font-size:15px;color:var(--muted)}
.stat-pills{display:flex;gap:10px;flex-wrap:wrap}.stat-pill{padding:9px 12px;border-radius:999px;background:var(--games-panel);border:1px solid var(--border);font-weight:800;color:var(--games-ink)}
.progress-shell{display:grid;gap:12px;padding:16px 18px;border-radius:20px;border:1px solid var(--border);background:var(--games-panel)}
.xp-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}
.xp-bar{height:16px;border-radius:999px;background:var(--games-play-deep);overflow:hidden;border:1px solid rgba(var(--recreation-burgundy-rgb),.14)}
.xp-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,var(--games-page-deep) 0%,var(--games-page-mid) 45%,var(--games-accent) 100%);width:0%}
.xp-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.skill-alert{width:42px;height:42px;border-radius:999px;border:1px solid var(--border);background:var(--games-control);color:var(--accent-2);font-weight:900;box-shadow:0 0 0 rgba(var(--recreation-burgundy-rgb),0);transition:box-shadow .18s ease, transform .18s ease, background .18s ease, border-color .18s ease}.skill-alert.is-ready{background:linear-gradient(180deg,var(--games-page-soft),var(--games-page-mid));border-color:var(--games-accent);color:var(--games-ink);box-shadow:0 0 0 4px rgba(196,163,109,.24),0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.40);transform:translateY(-1px)}.skill-alert[disabled]{background:var(--games-panel);color:var(--games-muted);border-color:var(--games-border);box-shadow:none;transform:none}
.skill-tree{display:none;gap:12px}.skill-tree.open{display:grid}
.skill-item{display:grid;gap:8px;padding:14px;border-radius:18px;border:1px solid var(--border);background:var(--games-panel)}.skill-item h4{margin:0;color:var(--games-ink)}.skill-item p{margin:0;color:var(--games-muted);line-height:1.5}.skill-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;align-items:center}
.empty-box{display:grid;gap:12px;padding:18px;border-radius:18px;border:1px dashed rgba(var(--recreation-burgundy-rgb),.24);background:var(--games-panel);color:var(--games-muted);justify-items:start}
.games-list{display:grid;gap:12px}
#games.has-active-game #gamesOverviewCard{display:none}
#games.has-active-game .game-panel.is-active{display:block}
.game-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;width:100%;text-align:left;padding:18px 20px;border-radius:22px;border:1px solid var(--border);background:linear-gradient(180deg,var(--games-surface-2),var(--games-panel));box-shadow:0 12px 26px -18px rgba(var(--recreation-burgundy-rgb),.18);cursor:pointer}
.game-row:hover{filter:brightness(1.02)}
.game-row.is-selected{outline:2px solid rgba(var(--recreation-burgundy-rgb),.26);outline-offset:0;box-shadow:0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.24)}
.game-row h3{margin:0 0 6px 0;color:var(--games-ink);font-family:var(--font-soft)}
.game-row p{margin:0;color:var(--games-muted);line-height:1.58}
.game-row-meta{display:grid;gap:6px;justify-items:end;text-align:right}
.game-panel{display:none}.game-panel.is-active{display:block}
.game-shell{display:grid;gap:18px}.game-main{display:grid;grid-template-columns:1fr;gap:18px;align-items:start}.game-board-card{display:grid;gap:16px}.game-side-card{display:grid;gap:16px}.game-toggle-row{display:flex;gap:10px;flex-wrap:wrap}.game-toggle-btn{position:relative}.game-toggle-btn.is-ready{background:linear-gradient(180deg,var(--games-page-soft),var(--games-page-mid));border-color:var(--games-accent);color:var(--games-ink);box-shadow:0 0 0 4px rgba(196,163,109,.18),0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.34)}.collapse-panel-shell[hidden]{display:none !important}
.board-wrap{display:grid;gap:14px}.board-grid{display:grid;gap:12px}
.board-tier-list{display:grid;gap:10px}.tier-btn{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;border-radius:16px;border:1px solid var(--border);background:var(--games-panel);font-weight:800;color:var(--games-ink);cursor:pointer}.tier-btn.active{background:var(--games-panel);color:var(--games-ink)}.tier-btn[disabled]{opacity:.48;cursor:not-allowed}
.memory-card{appearance:none;border:1px solid rgba(var(--recreation-burgundy-rgb),.14);background:var(--games-panel);border-radius:20px;min-height:104px;aspect-ratio:1 / 1.02;padding:0;cursor:pointer;position:relative;overflow:hidden;box-shadow:0 12px 26px -22px rgba(var(--recreation-burgundy-rgb),.22)}
.memory-card:hover{filter:brightness(1.02)}.memory-card[disabled]{cursor:default;opacity:.94}
.memory-card-face{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:clamp(58px,6vw,90px);font-weight:900;line-height:1;padding:4px;transition:transform .18s ease,opacity .18s ease}
.memory-card-back{background:linear-gradient(180deg,var(--games-accent) 0%,var(--games-page-mid) 46%,var(--games-page-deep) 100%);color:var(--games-panel);font-size:clamp(44px,4.8vw,66px)}.memory-card-front{background:radial-gradient(circle at 34% 28%,rgba(255,255,255,.26),transparent 34%),linear-gradient(180deg,var(--games-panel) 0%,var(--games-panel) 54%,var(--games-control) 100%);color:var(--games-ink);opacity:0;transform:scale(.92);text-shadow:0 2px 0 rgba(255,255,255,.24)}
.memory-card.is-open .memory-card-back,.memory-card.is-matched .memory-card-back{opacity:0;transform:scale(.92)}
.memory-card.is-open .memory-card-front,.memory-card.is-matched .memory-card-front{opacity:1;transform:scale(1.03)}
.memory-card.is-matched{border-color:#b9926d;background:var(--games-panel)}
.numbers-strip{display:flex;gap:12px;flex-wrap:wrap}.number-chip{min-width:68px;min-height:68px;border-radius:18px;border:1px solid rgba(var(--recreation-burgundy-rgb),.14);background:var(--games-panel);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900;color:var(--games-ink);box-shadow:0 10px 22px -20px rgba(var(--recreation-burgundy-rgb),.18)}
.formula-box,.word-box,.ninja-box{display:grid;gap:12px;padding:16px;border-radius:18px;border:1px solid var(--border);background:var(--games-panel)}
.text-input{width:100%;min-height:46px;border-radius:14px;border:1px solid rgba(var(--recreation-burgundy-rgb),.18);background:var(--games-panel);color:var(--games-ink);padding:11px 14px;font:inherit}
.text-input:focus{outline:2px solid rgba(var(--recreation-burgundy-rgb),.26);outline-offset:1px}
.stack{display:grid;gap:12px}.helper-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.solution-box{padding:12px 14px;border-radius:16px;background:var(--games-panel);border:1px solid rgba(var(--recreation-burgundy-rgb),.14);color:var(--games-ink);line-height:1.55}
.system-summary-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}.bank-box{display:grid;gap:10px;align-content:start}.bank-value{font-size:clamp(34px,4vw,46px);line-height:1;font-weight:900;color:var(--games-ink)}
.game-summary-stack{display:grid;gap:12px;margin-top:12px}.game-summary-details{border:1px solid var(--border);border-radius:18px;background:var(--games-panel);overflow:hidden}.game-summary-details summary{list-style:none;cursor:pointer;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:900;color:var(--games-ink)}.game-summary-details summary::-webkit-details-marker{display:none}.game-summary-details[open] summary{border-bottom:1px solid rgba(var(--recreation-burgundy-rgb),.12)}.game-summary-body{padding:14px 16px 16px;display:grid;gap:12px}.game-summary-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--games-muted)}.game-summary-row--stack{display:grid;gap:6px;justify-content:start}.game-summary-progress{display:grid;gap:10px}.ninja-toggle-row{display:flex;gap:10px;flex-wrap:wrap}.collapse-panel[hidden]{display:none !important}.game-toolbar .inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.word-grid{display:grid;gap:8px}.word-row{display:grid;gap:8px;grid-template-columns:repeat(var(--letters,5),minmax(0,56px));justify-content:start}.letter-cell{width:56px;height:56px;border-radius:14px;border:1px solid rgba(var(--recreation-burgundy-rgb),.16);display:flex;align-items:center;justify-content:center;background:var(--games-panel);color:var(--games-ink);font-weight:900;font-size:22px;text-transform:uppercase}.letter-cell.correct{background:#6f9b5d;border-color:#557447;color:#F7F0E3}.letter-cell.present{background:#c99a3d;border-color:#9d772a;color:#FFF8EB}.letter-cell.absent{background:var(--games-panel);border-color:rgba(var(--recreation-burgundy-rgb),.16);color:var(--games-muted)}.clue-bar{padding:12px 14px;border-radius:16px;background:var(--games-panel);border:1px solid var(--border);font-weight:800;color:var(--games-ink);letter-spacing:.18em;text-transform:uppercase}
.ninja-grid{display:grid;grid-template-columns:1fr;gap:18px}.ninja-panels{display:grid;gap:16px}.ninja-combat-card{display:grid;gap:16px}.ninja-upgrades{display:grid;gap:12px}.upgrade-item{display:grid;gap:10px;padding:14px;border-radius:18px;border:1px solid var(--border);background:var(--games-panel)}.upgrade-item h4{margin:0;color:var(--games-ink)}.upgrade-item p{margin:0;color:var(--games-muted);line-height:1.5}.meter{height:14px;border-radius:999px;background:var(--games-play-deep);overflow:hidden;border:1px solid rgba(var(--recreation-burgundy-rgb),.14)}.meter-fill{height:100%;background:linear-gradient(90deg,var(--games-page-deep) 0%,var(--games-page-mid) 45%,var(--games-accent) 100%);width:0%}.bonus-list{display:grid;gap:10px}.bonus-item{padding:12px 14px;border-radius:16px;background:var(--games-panel);border:1px solid var(--border);color:var(--games-ink)}.trait-list{display:flex;gap:8px;flex-wrap:wrap}.trait-chip{padding:7px 10px;border-radius:999px;background:var(--games-control);border:1px solid var(--border);font-weight:800;color:var(--games-ink)}@media (max-width:1100px){.game-main,.ninja-grid,.system-summary-grid{grid-template-columns:1fr}}
@media (max-width:700px){.grid-two{grid-template-columns:1fr}.memory-card{min-height:78px}.number-chip{min-width:58px;min-height:58px;font-size:24px}.game-row{grid-template-columns:1fr}.game-row-meta{justify-items:start;text-align:left}.letter-cell{width:44px;height:44px;font-size:18px}.word-row{grid-template-columns:repeat(var(--letters,5),minmax(0,44px))}}

.game-panel-stack{display:grid;gap:16px}
.game-card[hidden]{display:none !important}
.game-subpanel-grid{display:grid;gap:16px}
.game-progress-stats{display:grid;gap:12px}
.game-progress-stats .trackcoin-stat-card{background:var(--games-panel)}
.ninja-tab-row{display:flex;gap:10px;flex-wrap:wrap}
.ninja-tab-row .game-toggle-btn.is-active{background:linear-gradient(180deg,var(--games-page-soft),var(--games-page-mid));border-color:var(--games-accent);color:var(--games-ink);box-shadow:0 0 0 4px rgba(196,163,109,.18),0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.34)}


.game-toolbar .link-actions,.game-toolbar .inline-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end}
/* Track The Coin visual rules live only in css/baseline-recreation.css */


/* Baseline Recreation layout refinements */
.xp-row{grid-template-columns:1fr !important;align-items:stretch}
.xp-row>div:first-child{width:100%}
.progress-shell .xp-bar{width:100%}
.skill-alert{display:none !important}
.game-input-skill-row,.game-input-submit-row,.word-form-row,.make-target-action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.game-input-skill-row{justify-content:flex-start}
.game-input-submit-row{justify-content:flex-start}
.word-form-row,.make-target-action-row{flex-direction:column;align-items:stretch}
.word-form-row .text-input,.make-target-action-row .text-input{flex:1 1 auto;min-width:220px;width:100%}
.make-target-action-row .action,.word-form-row .action,.game-input-skill-row .action,.game-input-submit-row .action{flex:0 0 auto}
.ninja-offline-summary{margin-top:2px}



.auto-next-toggle[aria-pressed="true"]{background:linear-gradient(180deg,var(--games-page-soft),var(--games-page-mid));border-color:var(--games-accent);color:var(--games-ink);box-shadow:0 0 0 4px rgba(196,163,109,.16),0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.34)}
.auto-next-toggle{white-space:nowrap}
/* Final game fixes: compact Pairs cards with larger symbols, seamless Ninja tile. */
.memory-card{min-height:90px !important;aspect-ratio:auto !important;border-radius:18px !important;background:#6f452e !important;}
.memory-card-face{font-size:clamp(48px,5.4vw,82px) !important;padding:4px !important;}
.memory-card-back,.memory-card-front{background:linear-gradient(180deg,var(--games-page-mid) 0%,var(--games-page-deep) 52%,var(--games-page-deep) 100%) !important;color:var(--games-panel)3e8 !important;text-shadow:0 2px 0 rgba(0,0,0,.16) !important;}
.memory-card-back{font-size:clamp(42px,4.8vw,64px) !important;}
.memory-card-front{transform:scale(.94) !important;}
.memory-card.is-open .memory-card-front,.memory-card.is-matched .memory-card-front{transform:scale(1.08) !important;}
@media (max-width:700px){.memory-card{min-height:78px !important}.memory-card-face{font-size:clamp(40px,12vw,64px) !important}}



/* --- Existing Recreation system stylesheet --- */
/* EDIT_VERSION_20260607_REALM_ART_REFRESH */
/* ============================================================================
   Baseline Recreation — SITEWIDE GAME CONTRACT
   Edit: 20260606_games_flyout_authority

   One dominant coding layer for all games. Hidden sub-tabs must stay hidden.
   - Game card = game window / mobile root.
   - Board/scene = play surface only.
   - Round Status stays inside the game window.
   - Start New Game + Auto-Next sit together at the bottom-right of the game window.
   - Start New Game uses Alt+N; Auto-Next Game uses Alt+A.
   - Every game opens with the same idle-card pattern until active play begins.
   - All panels, text boxes, game rows, and controls sit inside the Recreation mirrored gradient family.
   ============================================================================ */

body[data-app="recreation"]{
  /* Structural aliases only. Recreation hue authority lives in baseline-themes.css. */
  --games-page-deep:var(--recreation-burgundy);
  --games-page-mid:var(--recreation-rose);
  --games-page-soft:var(--recreation-copper);
  --games-page-light:var(--recreation-copper-light);
  --games-accent:var(--recreation-copper-light);
  --games-ink:var(--recreation-ink);
  --games-muted:var(--recreation-muted);
  --games-border:rgba(var(--recreation-copper-light-rgb),.38);
  --games-border-strong:rgba(var(--recreation-copper-light-rgb),.72);
  --games-shadow:0 22px 48px -30px rgba(var(--recreation-shadow-rgb),.62);
  --games-page-gradient:var(--recreation-mirror);
  --games-card:var(--recreation-card);
  --games-panel:var(--recreation-panel);
  --games-panel-2:var(--recreation-card);
  --games-control:var(--recreation-mirror);
  --games-control-active:var(--recreation-copper-deep);
  --games-play:var(--recreation-copper-deep);
  --games-play-deep:var(--recreation-burgundy);
  --games-surface-gradient:var(--recreation-mirror);
  --games-control-gradient:var(--recreation-mirror);
  --games-active-gradient:var(--recreation-mirror-active);
  --games-row-gradient:var(--recreation-mirror);
  --games-input-gradient:linear-gradient(180deg,var(--recreation-panel),var(--recreation-card));
  --ink:var(--recreation-ink)!important;
  --muted:var(--recreation-muted)!important;
  --accent:var(--recreation-copper-light)!important;
  --accent-2:var(--recreation-ink)!important;
  --border:var(--games-border)!important;
  --border-2:var(--games-border-strong)!important;
  --shadow:var(--games-shadow)!important;
  --shadow-soft:var(--games-shadow)!important;
  --page-bg:var(--recreation-mirror)!important;
  --hero-bg:var(--recreation-mirror)!important;
  --homebar-bg:var(--recreation-mirror)!important;
  --header-gradient:var(--recreation-mirror)!important;
  --card-bg:var(--recreation-card)!important;
  --showall-bg:var(--recreation-mirror)!important;
  --showall-border:var(--games-border)!important;
}

html[data-app="recreation"],
body[data-app="recreation"],
body[data-app="recreation"] .bl-scroll{
  background:var(--games-page-gradient)!important;
  background-size:100% 100%!important;
  color:var(--games-ink)!important;
}

body[data-app="recreation"] *,
body[data-app="recreation"] *::before,
body[data-app="recreation"] *::after{ box-sizing:border-box; }

body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card{
  background:var(--games-card)!important;
  border:1px solid var(--games-border-strong)!important;
  color:var(--games-ink)!important;
  box-shadow:var(--games-shadow)!important;
}

body[data-app="recreation"] h1,
body[data-app="recreation"] h2,
body[data-app="recreation"] h3,
body[data-app="recreation"] h4,
body[data-app="recreation"] strong,
body[data-app="recreation"] .trackcoin-level-title,
body[data-app="recreation"] .trackcoin-status strong,
body[data-app="recreation"] .stat-pill,
body[data-app="recreation"] .tier-btn,
body[data-app="recreation"] .game-row h3{
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  text-shadow:none!important;
}

body[data-app="recreation"] .note,
body[data-app="recreation"] .inline-note,
body[data-app="recreation"] .game-row p,
body[data-app="recreation"] .skill-item p,
body[data-app="recreation"] .game-summary-row{
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
}

body[data-app="recreation"] .progress-shell,
body[data-app="recreation"] .summary-box,
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .skill-item,
body[data-app="recreation"] .trackcoin-stat-card,
body[data-app="recreation"] .game-summary-details,
body[data-app="recreation"] .game-summary-body,
body[data-app="recreation"] .empty-box{
  background:linear-gradient(180deg,var(--games-panel) 0%,var(--games-card) 100%)!important;
  border:1px solid var(--games-border)!important;
  color:var(--games-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}

body[data-app="recreation"] .action,
body[data-app="recreation"] .action.secondary,
body[data-app="recreation"] .action.ghost,
body[data-app="recreation"] .tab,
body[data-app="recreation"] .game-toggle-btn,
body[data-app="recreation"] .tier-btn,
body[data-app="recreation"] .stat-pill,
body[data-app="recreation"] .mobile-game-key,
body[data-app="recreation"] .mobile-game-exit{
  background:var(--games-control)!important;
  border:1px solid var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  text-shadow:none!important;
  box-shadow:0 10px 22px -20px rgba(var(--recreation-shadow-rgb),.38)!important;
}

body[data-app="recreation"] .tab[aria-selected="true"],
body[data-app="recreation"] .game-toggle-btn.is-active,
body[data-app="recreation"] .tier-btn.active,
body[data-app="recreation"] .auto-next-toggle[aria-pressed="true"]{
  background:var(--games-control-active)!important;
  border-color:rgba(var(--recreation-burgundy-rgb),.56)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

body[data-app="recreation"] .xp-bar,
body[data-app="recreation"] .meter{
  background:var(--recreation-rose)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.36)!important;
}
body[data-app="recreation"] .xp-fill,
body[data-app="recreation"] .meter-fill{
  background:linear-gradient(90deg,var(--recreation-burgundy) 0%,var(--recreation-rose) 45%,var(--recreation-copper-light) 100%)!important;
}

body[data-app="recreation"] .game-shell,
body[data-app="recreation"] .game-panel-stack{
  display:grid!important;
  gap:18px!important;
}

body[data-app="recreation"] .game-card[hidden]{
  display:none!important;
}

body[data-app="recreation"] .game-card:not([hidden]){
  display:grid!important;
  gap:16px!important;
}

body[data-app="recreation"] .game-play-root{
  position:relative!important;
  min-width:0!important;
  max-width:100%!important;
}

body[data-app="recreation"] .game-play-window,
body[data-app="recreation"] .board-wrap,
body[data-app="recreation"] .trackcoin-board{
  display:grid!important;
  gap:14px!important;
  min-width:0!important;
  max-width:100%!important;
}

body[data-app="recreation"] .game-play-surface{
  min-width:0!important;
  max-width:100%!important;
  outline:none!important;
}

body[data-app="recreation"] .round-status-card{
  border-radius:18px!important;
  padding:14px 16px!important;
}

body[data-app="recreation"] .game-window-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  width:100%!important;
  margin-top:2px!important;
  padding-top:12px!important;
  border-top:1px solid rgba(var(--recreation-burgundy-rgb),.20)!important;
}
body[data-app="recreation"] .game-window-actions .action{ min-width:154px!important; }

body[data-app="recreation"] .formula-box,
body[data-app="recreation"] .word-box,
body[data-app="recreation"] .solution-box,
body[data-app="recreation"] .clue-bar,
body[data-app="recreation"] .number-chip,
body[data-app="recreation"] .letter-cell{
  background:linear-gradient(180deg,var(--games-panel) 0%,var(--games-card) 100%)!important;
  border-color:var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

body[data-app="recreation"] .memory-card{
  background:var(--recreation-rose)!important;
  border-color:rgba(var(--recreation-burgundy-rgb),.42)!important;
  box-shadow:0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.58)!important;
}
body[data-app="recreation"] .memory-card-back{
  background:linear-gradient(180deg,var(--recreation-rose) 0%,var(--recreation-burgundy) 100%)!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
}
body[data-app="recreation"] .memory-card-front{
  background:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-rose) 54%,var(--recreation-copper) 100%)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

/* Track The Coin follows the same game contract as Pairs. */
body[data-app="recreation"] #trackCoinGamePanel{
  background:var(--games-card)!important;
  color:var(--games-ink)!important;
}
body[data-app="recreation"] #trackCoinBoard.trackcoin-board{
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body[data-app="recreation"] .trackcoin-scene{
  display:grid!important;
  grid-template-rows:auto auto minmax(300px,1fr)!important;
  gap:12px!important;
  min-height:390px!important;
  padding:18px!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-copper) 50%,var(--recreation-rose) 100%)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.38)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 16px 32px -26px rgba(var(--recreation-shadow-rgb),.50)!important;
  overflow:hidden!important;
}
body[data-app="recreation"] .trackcoin-scene::before,
body[data-app="recreation"] .trackcoin-scene::after,
body[data-app="recreation"] .trackcoin-lane::before,
body[data-app="recreation"] .trackcoin-lane::after{
  content:none!important;
  display:none!important;
}
body[data-app="recreation"] .trackcoin-game-status{
  margin:0!important;
  background:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-copper) 100%)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.38)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .trackcoin-game-status.trackcoin-status-result--correct{
  box-shadow:0 0 0 3px rgba(82,122,87,.24),0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}
body[data-app="recreation"] .trackcoin-game-status.trackcoin-status-result--missed{
  box-shadow:0 0 0 3px rgba(122,69,69,.22),0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}
body[data-app="recreation"] .trackcoin-status{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:wrap!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  background:transparent!important;
  padding:2px 4px 0!important;
  text-shadow:none!important;
  font-weight:900!important;
  position:relative!important;
  z-index:3!important;
}
body[data-app="recreation"] .trackcoin-status strong{
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .trackcoin-status .inline-note{
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
}
body[data-app="recreation"] .trackcoin-lane{
  position:relative!important;
  display:block!important;
  height:340px!important;
  min-height:340px!important;
  border-radius:18px!important;
  background:radial-gradient(circle at 50% 44%,rgba(244,197,108,.22),transparent 34%),linear-gradient(180deg,var(--recreation-rose) 0%,var(--recreation-copper) 44%,var(--recreation-rose) 100%)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.42)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 -18px 28px rgba(var(--recreation-shadow-rgb),.28)!important;
  overflow:hidden!important;
}
body[data-app="recreation"] .trackcoin-lane--idle{
  display:grid!important;
  place-items:center!important;
}
body[data-app="recreation"] .trackcoin-idle-cue{
  max-width:420px!important;
  padding:14px 16px!important;
  border-radius:18px!important;
  background:rgba(216,209,195,.72)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.24)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  font-weight:900!important;
  text-align:center!important;
}
body[data-app="recreation"] .trackcoin-item-token{
  position:absolute!important;
  transform:translate(-50%,-50%)!important;
  width:46px!important;
  height:46px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  background:radial-gradient(circle at 34% 28%,#F3F0EA 0%,var(--games-page-soft) 45%,var(--games-page-mid) 100%)!important;
  border:2px solid rgba(var(--recreation-burgundy-rgb),.38)!important;
  color:#4a340d!important;
  -webkit-text-fill-color:#4a340d!important;
  font-size:0!important;
  box-shadow:0 10px 20px -14px rgba(var(--recreation-shadow-rgb),.65)!important;
  pointer-events:none!important;
  z-index:2!important;
}
body[data-app="recreation"] .trackcoin-item-token::before{
  content:""!important;
  width:18px!important;
  height:18px!important;
  border-radius:999px!important;
  border:3px solid rgba(74,52,13,.46)!important;
  background:rgba(255,246,186,.28)!important;
}
body[data-app="recreation"] .trackcoin-item-token.is-hidden{display:none!important;}
body[data-app="recreation"] .trackcoin-cup{
  position:absolute!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  touch-action:manipulation!important;
  -webkit-tap-highlight-color:rgba(233,148,85,.24)!important;
  width:clamp(88px,9vw,116px)!important;
  height:clamp(118px,11vw,144px)!important;
  padding:0!important;
  border-radius:18px 18px 34px 34px!important;
  background:linear-gradient(180deg,var(--recreation-rose) 0%,var(--recreation-burgundy) 54%,var(--recreation-burgundy) 100%)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.58)!important;
  box-shadow:0 18px 28px -22px rgba(var(--recreation-shadow-rgb),.70), inset 0 1px 0 rgba(255,255,255,.18)!important;
  clip-path:polygon(18% 0%,82% 0%,100% 88%,92% 100%,8% 100%,0% 88%)!important;
  transform:translateX(-50%) translateY(0) rotate(var(--cup-tilt,0deg))!important;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease!important;
  z-index:3!important;
}
body[data-app="recreation"] .trackcoin-cup::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:7px!important;
  right:7px!important;
  bottom:5px!important;
  height:24px!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-burgundy) 100%)!important;
  border:1px solid rgba(244,197,108,.22)!important;
  pointer-events:none!important;
}
body[data-app="recreation"] .trackcoin-cup::after{
  content:none!important;
  display:none!important;
}
body[data-app="recreation"] .trackcoin-scene.is-busy .trackcoin-cup{
  transition:none!important;
  will-change:left,top,transform;
  transform:translateX(-50%) translateZ(0) rotate(var(--cup-tilt,0deg))!important;
  backface-visibility:hidden;
}
body[data-app="recreation"] .trackcoin-cup.is-lifted{
  transform:translateX(-50%) translateY(-46px) rotate(var(--cup-tilt,0deg))!important;
}
body[data-app="recreation"] .trackcoin-cup.is-selectable{ cursor:pointer!important; }
body[data-app="recreation"] .trackcoin-cup.is-selectable:hover{ filter:brightness(1.06)!important; }
body[data-app="recreation"] .trackcoin-cup.is-picked{ outline:3px solid rgba(233,148,85,.88)!important; outline-offset:3px!important; }
body[data-app="recreation"] .trackcoin-cup.is-correct{ box-shadow:0 0 0 4px rgba(82,122,87,.36),0 18px 30px -22px rgba(var(--recreation-shadow-rgb),.70), inset 0 1px 0 rgba(255,255,255,.22)!important; }
body[data-app="recreation"] .trackcoin-cup.is-wrong.is-picked{ box-shadow:0 0 0 4px rgba(122,69,69,.30),0 18px 30px -22px rgba(var(--recreation-shadow-rgb),.70), inset 0 1px 0 rgba(255,255,255,.22)!important; }

.mobile-game-keypad,.mobile-game-exit{ display:none; }
.games-list-group{display:flex;align-items:center;gap:10px;margin:8px 0 2px;color:var(--games-ink);font-weight:950;letter-spacing:.08em;text-transform:uppercase;font-size:13px;}
.games-list-group::after{content:"";height:1px;flex:1;background:rgba(var(--recreation-burgundy-rgb),.24);}

body[data-app="recreation"] .game-play-root:fullscreen{
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  overflow:auto!important;
  background:var(--games-page-gradient)!important;
  padding:16px!important;
  border-radius:0!important;
}
body[data-app="recreation"] .game-play-root:fullscreen .mobile-game-keypad{display:grid;}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body.bl-mobile-game-mode{overflow:hidden!important;touch-action:manipulation;background:var(--games-page-gradient)!important;}
  body.bl-mobile-game-mode .bl-homebar,
  body.bl-mobile-game-mode .hero{display:none!important;}
  body.bl-mobile-game-mode .bl-scroll{top:0!important;overflow:hidden!important;background:var(--games-page-gradient)!important;}
  body.bl-mobile-game-mode .section:not(#games),
  body.bl-mobile-game-mode #gamesOverviewCard,
  body.bl-mobile-game-mode .game-panel:not(.is-active){display:none!important;}
  body[data-app="recreation"] .is-mobile-game-root{
    position:fixed!important;
    inset:0!important;
    z-index:24000!important;
    width:100vw!important;
    height:100svh!important;
    max-width:none!important;
    min-height:100svh!important;
    overflow:auto!important;
    -webkit-overflow-scrolling:touch!important;
    padding:calc(10px + env(safe-area-inset-top,0px)) 10px calc(14px + env(safe-area-inset-bottom,0px))!important;
    background:var(--games-page-gradient)!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    display:grid!important;
    gap:10px!important;
    align-content:start!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .mobile-game-exit{
    display:inline-flex!important;
    position:sticky!important;
    top:0!important;
    z-index:20!important;
    width:100%!important;
    min-height:48px!important;
    align-items:center!important;
    justify-content:center!important;
    border-radius:999px!important;
    font-size:16px!important;
    font-weight:950!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions{
    position:sticky!important;
    bottom:0!important;
    z-index:18!important;
    background:linear-gradient(180deg,rgba(var(--recreation-burgundy-rgb),0),rgba(var(--recreation-burgundy-rgb),.92) 38%,rgba(var(--recreation-burgundy-rgb),.98) 100%)!important;
    padding:12px 0 calc(4px + env(safe-area-inset-bottom,0px))!important;
    justify-content:flex-end!important;
  }
  body[data-app="recreation"] .game-window-actions .action{min-width:min(46vw,180px)!important;flex:0 1 auto!important;}
  .mobile-game-keypad{display:grid;gap:7px;margin-top:10px;padding:10px;border-radius:18px;border:1px solid var(--games-border);background:var(--games-play);box-shadow:var(--games-shadow);}
  .mobile-word-keypad{grid-template-columns:repeat(7,minmax(0,1fr));}
  .mobile-make24-keypad{grid-template-columns:repeat(4,minmax(0,1fr));}
  .mobile-game-key{min-height:44px;border-radius:14px;font-weight:950;font-size:18px;touch-action:manipulation;}
  .mobile-game-key--submit{grid-column:span 2;background:var(--games-accent)!important;}
  .mobile-game-key--utility{font-size:15px;}
  #wordGuessInput[readonly],#make24ExpressionInput[readonly]{caret-color:transparent;user-select:none;-webkit-user-select:none;}
  .word-row{justify-content:center!important;grid-template-columns:repeat(var(--letters,5),minmax(0,44px))!important;gap:6px!important;}
  .letter-cell{width:44px!important;height:44px!important;font-size:18px!important;}
  .numbers-strip{justify-content:center!important;gap:8px!important;}
  .number-chip{min-width:54px!important;min-height:54px!important;font-size:24px!important;}
  .board-grid[data-game-play-surface="pairs"]{gap:7px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:stretch!important;}
  .board-grid[data-game-play-surface="pairs"] .memory-card{min-height:clamp(58px,17vw,86px)!important;border-radius:14px!important;}
  .board-grid[data-game-play-surface="pairs"] .memory-card-face{font-size:clamp(32px,10vw,58px)!important;padding:2px!important;}
  body[data-app="recreation"] .trackcoin-scene{min-height:auto!important;grid-template-rows:auto auto minmax(330px,1fr)!important;gap:10px!important;}
  body[data-app="recreation"] .trackcoin-lane{height:clamp(330px,64svh,560px)!important;min-height:330px!important;}
  body[data-app="recreation"] .trackcoin-cup{width:clamp(72px,19vw,98px)!important;height:clamp(98px,25vw,130px)!important;}
  body[data-app="recreation"] .trackcoin-cup::before{height:18px!important;bottom:4px!important;}
  body[data-app="recreation"] .trackcoin-item-token{width:40px!important;height:40px!important;}
}

@media (max-width:420px){
  .mobile-word-keypad{grid-template-columns:repeat(6,minmax(0,1fr));}
  .mobile-game-key{min-height:42px;font-size:16px;}
  .word-row{grid-template-columns:repeat(var(--letters,5),minmax(0,39px))!important;}
  .letter-cell{width:39px!important;height:39px!important;}
  .board-grid[data-game-play-surface="pairs"]{gap:6px!important;}
  .board-grid[data-game-play-surface="pairs"] .memory-card{min-height:clamp(50px,16vw,72px)!important;}
  body[data-app="recreation"] .trackcoin-lane{height:clamp(286px,60svh,440px)!important;min-height:286px!important;}
}


/* v8 sitewide fit/readability layer: one dominant runtime layer after legacy structural fallback. */
body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card{
  padding:clamp(14px,1.5vw,20px)!important;
}
body[data-app="recreation"] .game-shell,
body[data-app="recreation"] .game-panel-stack,
body[data-app="recreation"] .game-board-card,
body[data-app="recreation"] .board-wrap{
  gap:12px!important;
}
body[data-app="recreation"] .text-input,
body[data-app="recreation"] input.text-input,
body[data-app="recreation"] textarea.text-input{
  background:linear-gradient(180deg,var(--recreation-copper-light) 0%,var(--recreation-copper) 100%)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border-strong)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.20)!important;
}
body[data-app="recreation"] .text-input::placeholder{
  color:rgba(var(--recreation-placeholder-rgb),.82)!important;
  -webkit-text-fill-color:rgba(var(--recreation-placeholder-rgb),.82)!important;
}
body[data-app="recreation"] .game-window-actions .auto-next-toggle{
  min-width:210px!important;
}
body[data-app="recreation"] .trackcoin-idle-card{
  min-height:clamp(118px,18vh,180px)!important;
  align-content:center!important;
}
body[data-app="recreation"] .trackcoin-scene{
  min-height:min(360px,52vh)!important;
  grid-template-rows:auto auto minmax(230px,1fr)!important;
  padding:14px!important;
}
body[data-app="recreation"] .trackcoin-lane{
  height:min(300px,42vh)!important;
  min-height:240px!important;
}
body[data-app="recreation"] .trackcoin-cup{
  width:clamp(76px,7vw,100px)!important;
  height:clamp(100px,9vw,126px)!important;
}
body[data-app="recreation"] .trackcoin-item-token{
  width:40px!important;
  height:40px!important;
}
body[data-app="recreation"] .board-grid[data-game-play-surface="pairs"] .memory-card{
  min-height:clamp(74px,8vw,100px)!important;
}
body[data-app="recreation"] .word-row{
  grid-template-columns:repeat(var(--letters,5),minmax(0,48px))!important;
}
body[data-app="recreation"] .letter-cell{
  width:48px!important;
  height:48px!important;
  font-size:20px!important;
}
body[data-app="recreation"] .number-chip{
  min-width:58px!important;
  min-height:58px!important;
  font-size:24px!important;
}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .game-window-actions{
    justify-content:stretch!important;
  }
  body[data-app="recreation"] .game-window-actions .action{
    flex:1 1 150px!important;
    min-width:0!important;
  }
  body[data-app="recreation"] .game-window-actions .auto-next-toggle{
    min-width:0!important;
  }
  body[data-app="recreation"] .trackcoin-scene{
    min-height:auto!important;
    grid-template-rows:auto auto minmax(250px,1fr)!important;
    padding:10px!important;
  }
  body[data-app="recreation"] .trackcoin-lane{
    height:clamp(260px,52svh,420px)!important;
    min-height:260px!important;
  }
  body[data-app="recreation"] .trackcoin-cup{
    width:clamp(64px,18vw,90px)!important;
    height:clamp(88px,24vw,118px)!important;
  }
}


/* v10 gradient-fit layer: Food/Skincare-style gradient surfaces without changing the Recreation identity. */
body[data-app="recreation"] .hero,
body[data-app="recreation"] .bl-homebar,
body[data-app="recreation"] .bl-homebar::before,
body[data-app="recreation"] .bl-pages-menu{
  background:var(--games-page-gradient)!important;
}
body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card,
body[data-app="recreation"] .progress-shell,
body[data-app="recreation"] .summary-box,
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .skill-item,
body[data-app="recreation"] .trackcoin-stat-card,
body[data-app="recreation"] .game-summary-details,
body[data-app="recreation"] .game-summary-body,
body[data-app="recreation"] .empty-box,
body[data-app="recreation"] .formula-box,
body[data-app="recreation"] .word-box,
body[data-app="recreation"] .solution-box,
body[data-app="recreation"] .clue-bar,
body[data-app="recreation"] .number-chip,
body[data-app="recreation"] .letter-cell{
  background:var(--games-surface-gradient)!important;
  border-color:var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .game-summary-details summary,
body[data-app="recreation"] .game-row{
  background:var(--games-row-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border)!important;
}
body[data-app="recreation"] .action,
body[data-app="recreation"] .action.secondary,
body[data-app="recreation"] .action.ghost,
body[data-app="recreation"] .tab,
body[data-app="recreation"] .game-toggle-btn,
body[data-app="recreation"] .tier-btn,
body[data-app="recreation"] .stat-pill,
body[data-app="recreation"] .mobile-game-key,
body[data-app="recreation"] .mobile-game-exit{
  background:var(--games-control-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border)!important;
}
body[data-app="recreation"] .tab[aria-selected="true"],
body[data-app="recreation"] .game-toggle-btn.is-active,
body[data-app="recreation"] .tier-btn.active,
body[data-app="recreation"] .auto-next-toggle[aria-pressed="true"]{
  background:var(--games-active-gradient)!important;
}
body[data-app="recreation"] .text-input,
body[data-app="recreation"] input.text-input,
body[data-app="recreation"] textarea.text-input{
  background:var(--games-input-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border-strong)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22)!important;
}
body[data-app="recreation"] .game-shell,
body[data-app="recreation"] .game-panel-stack,
body[data-app="recreation"] .game-board-card,
body[data-app="recreation"] .board-wrap{
  gap:10px!important;
}
body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card{
  padding:clamp(12px,1.05vw,18px)!important;
}
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .summary-box{
  padding:10px 14px!important;
}
body[data-app="recreation"] .game-window-actions{
  padding-top:10px!important;
  gap:8px!important;
}
body[data-app="recreation"] .word-box.word-box--active{
  min-height:0!important;
  align-content:start!important;
  gap:8px!important;
  padding:clamp(10px,1vw,14px)!important;
}
body[data-app="recreation"] .word-grid{
  display:grid!important;
  justify-items:center!important;
  align-content:start!important;
  gap:6px!important;
  min-height:0!important;
}
body[data-app="recreation"] .word-row{
  justify-content:center!important;
  gap:6px!important;
  grid-template-columns:repeat(var(--letters,5),minmax(0,clamp(36px,4.4vh,46px)))!important;
}
body[data-app="recreation"] .letter-cell{
  width:clamp(36px,4.4vh,46px)!important;
  height:clamp(36px,4.4vh,46px)!important;
  font-size:clamp(16px,2.1vh,20px)!important;
}
body[data-app="recreation"] .letter-cell.correct,
body[data-app="recreation"] .word-feedback-dot--correct{
  background:linear-gradient(180deg,#6F8F63 0%,#517A57 100%)!important;
  border-color:rgba(38,70,42,.55)!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
}
body[data-app="recreation"] .letter-cell.present,
body[data-app="recreation"] .word-feedback-dot--present{
  background:linear-gradient(180deg,#D1AE62 0%,#B58A3D 100%)!important;
  border-color:rgba(122,88,38,.55)!important;
  color:var(--recreation-ink)!important;
  -webkit-text-fill-color:var(--recreation-ink)!important;
}
body[data-app="recreation"] .letter-cell.absent,
body[data-app="recreation"] .word-feedback-dot--absent{
  background:var(--games-input-gradient)!important;
  border-color:var(--games-border)!important;
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
}
body[data-app="recreation"] .word-feedback-legend{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  font-size:14px!important;
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
}
body[data-app="recreation"] .word-feedback-legend span{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:6px 10px!important;
  border-radius:999px!important;
  background:var(--games-control-gradient)!important;
  border:1px solid var(--games-border)!important;
}
body[data-app="recreation"] .word-feedback-dot{
  width:15px!important;
  height:15px!important;
  display:inline-block!important;
  border-radius:5px!important;
  border:1px solid var(--games-border)!important;
}
body[data-app="recreation"] .word-entry-stack{
  gap:8px!important;
}
body[data-app="recreation"] .clue-bar{
  padding:9px 12px!important;
  letter-spacing:.14em!important;
}
body[data-app="recreation"] .solution-box.word-result-box{
  display:grid!important;
  gap:4px!important;
  padding:10px 12px!important;
}
body[data-app="recreation"] .trackcoin-scene{
  min-height:min(370px,48vh)!important;
  grid-template-rows:auto auto minmax(210px,1fr)!important;
}
body[data-app="recreation"] .trackcoin-lane{
  height:min(280px,38vh)!important;
  min-height:220px!important;
  background:radial-gradient(circle at 50% 44%,rgba(244,197,108,.24),transparent 34%),linear-gradient(180deg,rgba(244,197,108,.50) 0%,rgba(var(--recreation-copper-rgb),.78) 48%,rgba(var(--recreation-rose-rgb),.80) 100%)!important;
}
@media (min-width:900px){
  body[data-app="recreation"] .game-card:not([hidden]){gap:12px!important;}
  body[data-app="recreation"] #wordGameCard .game-play-window{gap:8px!important;}
}
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .word-feedback-legend{font-size:13px!important;gap:6px!important;}
  body[data-app="recreation"] .word-feedback-legend span{padding:6px 8px!important;}
  body[data-app="recreation"] .word-row{grid-template-columns:repeat(var(--letters,5),minmax(0,clamp(34px,10vw,42px)))!important;}
  body[data-app="recreation"] .letter-cell{width:clamp(34px,10vw,42px)!important;height:clamp(34px,10vw,42px)!important;}
  body[data-app="recreation"] .trackcoin-lane{height:clamp(240px,48svh,400px)!important;min-height:240px!important;}
}


/* 20260605 dominant games palette/layout fix */
body[data-app="recreation"]{
  --games-page-deep:var(--recreation-burgundy);
  --games-page-mid:var(--recreation-rose);
  --games-page-soft:var(--recreation-copper);
  --games-page-light:var(--recreation-copper-light);
  --games-ink:var(--recreation-ink);
  --games-muted:var(--recreation-muted);
  --games-border:rgba(var(--recreation-burgundy-rgb),.32);
  --games-border-strong:rgba(var(--recreation-burgundy-rgb),.48);
  --games-shadow:0 22px 48px -30px rgba(var(--recreation-shadow-rgb),.52);
  --games-page-gradient:linear-gradient(90deg,
    var(--games-page-deep) 0%,
    var(--games-page-mid) 18%,
    var(--games-page-soft) 36%,
    var(--games-page-light) 50%,
    var(--games-page-soft) 64%,
    var(--games-page-mid) 82%,
    var(--games-page-deep) 100%
  );
  --games-surface:var(--games-page-light);
  --games-surface-soft:var(--recreation-copper);
  --games-control:var(--games-page-soft);
  --games-control-active:var(--games-page-mid);
  --games-play:var(--games-page-soft);
  --games-play-deep:var(--games-page-mid);
  --games-accent:var(--games-page-mid);
  --games-card:var(--games-surface);
  --games-panel:var(--games-surface);
  --games-panel-2:var(--games-page-soft);
  --games-surface-gradient:var(--games-surface);
  --games-control-gradient:var(--games-control);
  --games-active-gradient:var(--games-control-active);
  --games-row-gradient:var(--games-surface);
  --games-input-gradient:var(--games-surface);
  --ink:var(--games-ink)!important;
  --muted:var(--games-muted)!important;
  --accent:var(--games-page-mid)!important;
  --accent-2:var(--games-ink)!important;
  --border:var(--games-border)!important;
  --border-2:var(--games-border-strong)!important;
  --shadow:var(--games-shadow)!important;
  --shadow-soft:var(--games-shadow)!important;
  --page-bg:var(--games-page-gradient)!important;
  --hero-bg:var(--games-page-gradient)!important;
  --homebar-bg:var(--games-page-gradient)!important;
  --header-gradient:var(--games-page-gradient)!important;
  --card-bg:var(--games-surface)!important;
  --showall-bg:var(--games-control)!important;
  --showall-border:var(--games-border)!important;
}
html[data-app="recreation"],
body[data-app="recreation"],
body[data-app="recreation"] .bl-scroll{
  background:var(--games-page-gradient)!important;
  background-size:100% 100%!important;
  background-attachment:fixed!important;
  color:var(--games-ink)!important;
}
body[data-app="recreation"] .hero,
body[data-app="recreation"] .bl-homebar,
body[data-app="recreation"] .bl-homebar::before,
body[data-app="recreation"] .bl-pages-menu{
  background:var(--games-page-gradient)!important;
  background-size:100% 100%!important;
}
body[data-app="recreation"] .hero{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
  padding-left:clamp(10px,2vw,18px)!important;
  padding-right:clamp(10px,2vw,18px)!important;
}
body[data-app="recreation"] .hero-inner,
body[data-app="recreation"] .tabs{
  width:min(1380px,calc(100% - 20px))!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body[data-app="recreation"] .tabs{
  overflow-x:auto!important;
  -webkit-overflow-scrolling:touch!important;
  /* Match css/baseline-header-canonical.css: header tabs keep the same
     bottom breathing room as every other page. */
  padding-bottom:12px!important;
}
body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card,
body[data-app="recreation"] .progress-shell,
body[data-app="recreation"] .summary-box,
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .skill-item,
body[data-app="recreation"] .trackcoin-stat-card,
body[data-app="recreation"] .game-summary-details,
body[data-app="recreation"] .game-summary-body,
body[data-app="recreation"] .empty-box,
body[data-app="recreation"] .formula-box,
body[data-app="recreation"] .word-box,
body[data-app="recreation"] .solution-box,
body[data-app="recreation"] .clue-bar,
body[data-app="recreation"] .number-chip,
body[data-app="recreation"] .letter-cell{
  background:var(--games-surface)!important;
  background-image:none!important;
  border-color:var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .game-row,
body[data-app="recreation"] .game-summary-details summary{
  background:var(--games-surface)!important;
  background-image:none!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border)!important;
  box-shadow:0 12px 26px -20px rgba(var(--recreation-shadow-rgb),.42)!important;
}
body[data-app="recreation"] .game-row:hover{filter:brightness(1.02)!important;}
body[data-app="recreation"] .game-row.is-selected{
  outline:2px solid var(--games-page-deep)!important;
  box-shadow:0 0 0 4px rgba(var(--recreation-copper-light-rgb),.18),0 16px 30px -18px rgba(var(--recreation-shadow-rgb),.40)!important;
}
body[data-app="recreation"] .action,
body[data-app="recreation"] .action.secondary,
body[data-app="recreation"] .action.ghost,
body[data-app="recreation"] .tab,
body[data-app="recreation"] .game-toggle-btn,
body[data-app="recreation"] .tier-btn,
body[data-app="recreation"] .stat-pill,
body[data-app="recreation"] .mobile-game-key,
body[data-app="recreation"] .mobile-game-exit,
body[data-app="recreation"] .skill-alert{
  background:var(--games-control)!important;
  background-image:none!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border)!important;
  text-shadow:none!important;
}
body[data-app="recreation"] .tab[aria-selected="true"],
body[data-app="recreation"] .game-toggle-btn.is-active,
body[data-app="recreation"] .tier-btn.active,
body[data-app="recreation"] .skill-alert.is-ready,
body[data-app="recreation"] .auto-next-toggle[aria-pressed="true"],
body[data-app="recreation"] .mobile-game-key--submit{
  background:var(--games-control-active)!important;
  background-image:none!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
  border-color:rgba(var(--recreation-burgundy-rgb),.52)!important;
}
body[data-app="recreation"] .text-input,
body[data-app="recreation"] input.text-input,
body[data-app="recreation"] textarea.text-input{
  background:var(--games-surface)!important;
  background-image:none!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border-strong)!important;
}
body[data-app="recreation"] .xp-bar,
body[data-app="recreation"] .meter{
  background:var(--games-page-mid)!important;
  border-color:var(--games-border)!important;
}
body[data-app="recreation"] .xp-fill,
body[data-app="recreation"] .meter-fill{
  background:linear-gradient(90deg,var(--games-page-deep) 0%,var(--games-page-mid) 55%,var(--games-page-light) 100%)!important;
}
body[data-app="recreation"] .board-grid[data-game-play-surface="pairs"].is-pairs-idle{
  grid-template-columns:1fr!important;
  justify-items:stretch!important;
  align-items:stretch!important;
}
body[data-app="recreation"] .board-grid[data-game-play-surface="pairs"].is-pairs-idle .empty-box{
  width:100%!important;
  max-width:none!important;
  min-height:clamp(150px,24vh,240px)!important;
  align-content:center!important;
  justify-items:center!important;
  text-align:center!important;
}
body[data-app="recreation"] .trackcoin-scene,
body[data-app="recreation"] .trackcoin-game-status,
body[data-app="recreation"] .trackcoin-idle-cue{
  background:var(--games-surface)!important;
  background-image:none!important;
  border-color:var(--games-border)!important;
}
body[data-app="recreation"] .trackcoin-lane{
  background:linear-gradient(180deg,var(--games-page-light) 0%,var(--games-page-soft) 52%,var(--games-page-mid) 100%)!important;
}
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .hero-inner,
  body[data-app="recreation"] .tabs{
    width:calc(100% - 16px)!important;
  }
  body[data-app="recreation"] .tabs{
    flex-wrap:nowrap!important;
  }
  body[data-app="recreation"] .game-header .link-actions{
    width:100%!important;
    margin-left:0!important;
  }
  body[data-app="recreation"] .game-header .link-actions .action{
    width:100%!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="pairs"] .game-window-actions{
    position:static!important;
    background:transparent!important;
    padding:10px 0 0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="pairs"] .board-grid[data-game-play-surface="pairs"].is-pairs-idle{
    grid-template-columns:1fr!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="pairs"] .empty-box{
    min-height:clamp(180px,34svh,300px)!important;
  }
}


/* 20260605 coherent Recreation contract — final dominant layer.
   Purpose: remove tan/brown/near-white control drift, remove legacy mobile action-bar colour overrides,
   keep desktop fullscreen clean, and make the optional desktop keypad explicit. */
body[data-app="recreation"]{
  --games-page-deep:var(--recreation-burgundy);
  --games-page-mid:var(--recreation-rose);
  --games-page-soft:var(--recreation-copper);
  --games-page-light:var(--recreation-copper);
  --games-ink:var(--recreation-ink);
  --games-muted:var(--recreation-muted);
  --games-border:rgba(var(--recreation-burgundy-rgb),.34);
  --games-border-strong:rgba(var(--recreation-burgundy-rgb),.50);
  --games-shadow:0 22px 48px -30px rgba(var(--recreation-shadow-rgb),.54);
  --games-page-gradient:linear-gradient(90deg,
    var(--games-page-deep) 0%,
    var(--games-page-mid) 18%,
    var(--games-page-soft) 36%,
    var(--games-page-light) 50%,
    var(--games-page-soft) 64%,
    var(--games-page-mid) 82%,
    var(--games-page-deep) 100%
  );
  --games-surface:var(--recreation-rose);
  --games-surface-2:var(--recreation-copper);
  --games-control:linear-gradient(180deg,var(--games-page-soft) 0%,var(--games-page-mid) 100%);
  --games-control-hover:linear-gradient(180deg,var(--recreation-copper-light) 0%,var(--recreation-rose) 100%);
  --games-control-active:linear-gradient(180deg,var(--games-page-mid) 0%,var(--games-page-deep) 100%);
  --games-play:linear-gradient(180deg,var(--games-surface-2) 0%,var(--games-page-soft) 100%);
  --games-play-deep:var(--games-page-mid);
  --games-accent:var(--games-page-mid);
  --games-card:var(--games-surface);
  --games-panel:var(--games-surface);
  --games-panel-2:var(--games-surface-2);
  --games-surface-gradient:linear-gradient(180deg,var(--games-surface-2) 0%,var(--games-surface) 100%);
  --games-row-gradient:linear-gradient(90deg,var(--games-surface-2) 0%,var(--games-surface) 54%,var(--games-page-soft) 100%);
  --games-input-gradient:linear-gradient(180deg,var(--games-surface-2) 0%,var(--games-surface) 100%);
  --card-bg:var(--games-surface)!important;
  --page-bg:var(--games-page-gradient)!important;
  --hero-bg:var(--games-page-gradient)!important;
  --homebar-bg:var(--games-page-gradient)!important;
  --header-gradient:var(--games-page-gradient)!important;
  --accent:var(--games-page-mid)!important;
  --accent-2:var(--games-ink)!important;
  --border:var(--games-border)!important;
  --border-2:var(--games-border-strong)!important;
}
html[data-app="recreation"],
body[data-app="recreation"],
body[data-app="recreation"] .bl-scroll,
body[data-app="recreation"] .hero,
body[data-app="recreation"] .bl-homebar,
body[data-app="recreation"] .bl-homebar::before,
body[data-app="recreation"] .bl-pages-menu{
  background:var(--games-page-gradient)!important;
  background-size:100% 100%!important;
  color:var(--games-ink)!important;
}
body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card,
body[data-app="recreation"] .progress-shell,
body[data-app="recreation"] .summary-box,
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .skill-item,
body[data-app="recreation"] .trackcoin-stat-card,
body[data-app="recreation"] .game-summary-details,
body[data-app="recreation"] .game-summary-body,
body[data-app="recreation"] .empty-box,
body[data-app="recreation"] .formula-box,
body[data-app="recreation"] .word-box,
body[data-app="recreation"] .solution-box,
body[data-app="recreation"] .clue-bar,
body[data-app="recreation"] .number-chip,
body[data-app="recreation"] .letter-cell,
body[data-app="recreation"] .upgrade-item,
body[data-app="recreation"] .bonus-item,
body[data-app="recreation"] .ninja-bonus-chip{
  background:var(--games-surface-gradient)!important;
  background-image:var(--games-surface-gradient)!important;
  border-color:var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  box-shadow:0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}
body[data-app="recreation"] .game-row,
body[data-app="recreation"] .game-summary-details summary,
body[data-app="recreation"] .tier-btn,
body[data-app="recreation"] .stat-pill,
body[data-app="recreation"] .word-feedback-legend span,
body[data-app="recreation"] .trait-chip{
  background:var(--games-row-gradient)!important;
  background-image:var(--games-row-gradient)!important;
  border-color:var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .action,
body[data-app="recreation"] .action.secondary,
body[data-app="recreation"] .action.ghost,
body[data-app="recreation"] .tab,
body[data-app="recreation"] .game-toggle-btn,
body[data-app="recreation"] .mobile-game-key,
body[data-app="recreation"] .mobile-game-exit,
body[data-app="recreation"] .skill-alert,
body[data-app="recreation"] button[type="submit"],
body[data-app="recreation"] input[type="submit"]{
  background:var(--games-control)!important;
  background-image:var(--games-control)!important;
  border:1px solid var(--games-border)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  text-shadow:none!important;
  box-shadow:0 12px 24px -20px rgba(var(--recreation-shadow-rgb),.48)!important;
}
body[data-app="recreation"] .action:hover,
body[data-app="recreation"] .tab:hover,
body[data-app="recreation"] .mobile-game-key:hover,
body[data-app="recreation"] button[type="submit"]:hover{
  background:var(--games-control-hover)!important;
  background-image:var(--games-control-hover)!important;
  filter:none!important;
}
body[data-app="recreation"] .start-new-game-toggle,
body[data-app="recreation"] [data-action^="start-"],
body[data-app="recreation"] .auto-next-toggle,
body[data-app="recreation"] .submit-game-toggle,
body[data-app="recreation"] #wordGuessForm button[type="submit"],
body[data-app="recreation"] #make24ExpressionForm button[type="submit"]{
  background:var(--games-control)!important;
  background-image:var(--games-control)!important;
  border-color:var(--games-border-strong)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  min-height:44px!important;
  font-weight:950!important;
}
body[data-app="recreation"] .tab[aria-selected="true"],
body[data-app="recreation"] .game-toggle-btn.is-active,
body[data-app="recreation"] .tier-btn.active,
body[data-app="recreation"] .skill-alert.is-ready,
body[data-app="recreation"] .auto-next-toggle[aria-pressed="true"],
body[data-app="recreation"] .mobile-game-key--submit,
body[data-app="recreation"] .desktop-keypad-toggle[aria-pressed="true"]{
  background:var(--games-control-active)!important;
  background-image:var(--games-control-active)!important;
  border-color:rgba(var(--recreation-burgundy-rgb),.58)!important;
  color:#F3F0EA!important;
  -webkit-text-fill-color:#F3F0EA!important;
}
body[data-app="recreation"] .text-input,
body[data-app="recreation"] input.text-input,
body[data-app="recreation"] textarea.text-input{
  background:var(--games-input-gradient)!important;
  background-image:var(--games-input-gradient)!important;
  border-color:var(--games-border-strong)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .xp-fill,
body[data-app="recreation"] .meter-fill{
  background:linear-gradient(90deg,var(--games-page-deep) 0%,var(--games-page-mid) 58%,var(--games-page-soft) 100%)!important;
}
body[data-app="recreation"] .memory-card{
  background:var(--games-page-mid)!important;
  border-color:var(--games-border-strong)!important;
}
body[data-app="recreation"] .memory-card-back{
  background:linear-gradient(180deg,var(--games-page-mid) 0%,var(--games-page-deep) 100%)!important;
  color:#F3F0EA!important;
  -webkit-text-fill-color:#F3F0EA!important;
}
body[data-app="recreation"] .memory-card-front{
  background:var(--games-surface-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .trackcoin-scene,
body[data-app="recreation"] .trackcoin-game-status,
body[data-app="recreation"] .trackcoin-idle-cue{
  background:var(--games-surface-gradient)!important;
  background-image:var(--games-surface-gradient)!important;
  border-color:var(--games-border)!important;
}
body[data-app="recreation"] .trackcoin-scene{
  min-height:auto!important;
  grid-template-rows:auto auto minmax(220px,auto)!important;
  gap:10px!important;
  padding:12px!important;
}
body[data-app="recreation"] .trackcoin-lane{
  height:clamp(220px,32vh,300px)!important;
  min-height:220px!important;
  max-height:300px!important;
  background:linear-gradient(180deg,var(--games-surface-2) 0%,var(--games-page-soft) 52%,var(--games-page-mid) 100%)!important;
  border-color:var(--games-border-strong)!important;
}
body[data-app="recreation"] .trackcoin-cup{
  width:clamp(72px,7vw,96px)!important;
  height:clamp(96px,8.5vw,122px)!important;
  background:linear-gradient(180deg,var(--games-page-mid) 0%,var(--games-page-deep) 100%)!important;
  border-color:var(--games-border-strong)!important;
}
body[data-app="recreation"] .trackcoin-cup::before{
  background:linear-gradient(180deg,var(--games-page-soft) 0%,var(--games-page-deep) 100%)!important;
}
body[data-app="recreation"] .trackcoin-item-token{
  background:radial-gradient(circle at 35% 28%,#F3F0EA 0%,var(--games-page-soft) 42%,var(--games-page-mid) 100%)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .desktop-keypad-toggle[hidden]{display:none!important;}
body[data-app="recreation"] .desktop-keypad-toggle{display:inline-flex!important;}
body[data-app="recreation"] .mobile-game-keypad{
  display:none!important;
  gap:7px!important;
  padding:10px!important;
  border-radius:18px!important;
  border:1px solid var(--games-border)!important;
  background:var(--games-surface-gradient)!important;
  box-shadow:var(--games-shadow)!important;
}
body[data-app="recreation"] .game-play-root:fullscreen{
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  overflow:auto!important;
  background:var(--games-page-gradient)!important;
  padding:16px!important;
  border-radius:0!important;
}
body[data-app="recreation"] .game-play-root:fullscreen .mobile-game-keypad{
  display:none!important;
}
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #wordBoard,
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #make24Board{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(280px,360px)!important;
  gap:14px!important;
  align-items:start!important;
}
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #wordBoard > .word-box,
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #make24Board > .formula-box{
  grid-column:1!important;
  min-width:0!important;
}
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen .mobile-game-keypad{
  display:grid!important;
  grid-column:2!important;
  grid-row:1 / span 3!important;
  align-self:start!important;
  max-height:calc(100vh - 156px)!important;
  overflow:auto!important;
  position:sticky!important;
  top:0!important;
}
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen .mobile-word-keypad{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen .mobile-make24-keypad{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .desktop-keypad-toggle{display:none!important;}
  body.bl-mobile-game-mode{background:var(--games-page-gradient)!important;}
  body.bl-mobile-game-mode .bl-scroll{background:var(--games-page-gradient)!important;}
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions{
    background:linear-gradient(180deg,rgba(200,196,191,0) 0%,rgba(200,196,191,.92) 42%,rgba(200,196,191,.98) 100%)!important;
    padding:12px 0 calc(4px + env(safe-area-inset-bottom,0px))!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="pairs"] .game-window-actions{
    background:transparent!important;
  }
  body[data-app="recreation"] .mobile-game-keypad{
    display:grid!important;
    background:var(--games-surface-gradient)!important;
  }
  body[data-app="recreation"] .trackcoin-scene{
    min-height:auto!important;
    grid-template-rows:auto auto minmax(240px,auto)!important;
    padding:10px!important;
  }
  body[data-app="recreation"] .trackcoin-lane{
    height:clamp(240px,42svh,340px)!important;
    min-height:240px!important;
    max-height:340px!important;
  }
  body[data-app="recreation"] .trackcoin-cup{
    width:clamp(64px,18vw,86px)!important;
    height:clamp(88px,23vw,112px)!important;
  }
}
@media (max-width:900px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen #make24Board{
    grid-template-columns:1fr!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open:fullscreen .mobile-game-keypad{
    grid-column:1!important;
    grid-row:auto!important;
    position:relative!important;
    max-height:none!important;
  }
}


/* 20260605 targeted keypad hotkey patch: keep folded laptops and larger tablets out of compact mobile mode. */
@media (min-width:821px){
  body[data-app="recreation"] .desktop-keypad-toggle{
    display:inline-flex!important;
  }
  body[data-app="recreation"] .mobile-game-keypad{
    display:none!important;
    gap:8px!important;
    margin-top:0!important;
    padding:12px!important;
    border-radius:18px!important;
    border:1px solid var(--games-border)!important;
    background:var(--games-surface-gradient)!important;
    box-shadow:var(--games-shadow)!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(280px,360px)!important;
    gap:14px!important;
    align-items:start!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .formula-box{
    grid-column:1!important;
    min-width:0!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad{
    display:grid!important;
    grid-column:2!important;
    grid-row:1 / span 3!important;
    align-self:start!important;
    max-height:calc(100vh - 156px)!important;
    overflow:auto!important;
    position:sticky!important;
    top:0!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-word-keypad{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-make24-keypad{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
  body[data-app="recreation"] .desktop-keypad-toggle[aria-pressed="true"]{
    background:var(--games-control-active)!important;
    background-image:none!important;
    color:#F7F0E3!important;
    -webkit-text-fill-color:#F7F0E3!important;
    border-color:rgba(var(--recreation-burgundy-rgb),.52)!important;
  }
}
@media (min-width:821px) and (max-width:980px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board{
    grid-template-columns:1fr!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad{
    grid-column:1!important;
    grid-row:auto!important;
    position:relative!important;
    max-height:none!important;
  }
}
@media (max-width:820px){
  body[data-app="recreation"] .desktop-keypad-toggle{
    display:none!important;
  }
}

/* 20260605 keypad layout usability patch: larger keys, normal-browser operation, no fullscreen dependency. */
body[data-app="recreation"] .desktop-keypad-toggle{
  display:inline-flex!important;
}
body[data-app="recreation"] .mobile-game-keypad{
  display:none!important;
  width:100%!important;
  gap:clamp(9px,1.1vw,14px)!important;
  margin-top:clamp(8px,1vw,14px)!important;
  padding:clamp(12px,1.4vw,18px)!important;
  border-radius:22px!important;
  border:1px solid var(--games-border-strong)!important;
  background:var(--games-surface-gradient)!important;
  box-shadow:var(--games-shadow)!important;
  align-content:stretch!important;
}
body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad,
body[data-app="recreation"] .game-play-root.keypad-open .mobile-game-keypad,
body[data-app="recreation"] .is-mobile-game-root .mobile-game-keypad{
  display:grid!important;
}
body[data-app="recreation"] .mobile-game-key{
  min-height:clamp(58px,7.8svh,88px)!important;
  border-radius:18px!important;
  font-size:clamp(24px,3.1svh,36px)!important;
  line-height:1!important;
  font-weight:950!important;
  padding:10px!important;
  touch-action:manipulation!important;
}
body[data-app="recreation"] .mobile-game-key--utility,
body[data-app="recreation"] .mobile-game-key--submit{
  font-size:clamp(20px,2.55svh,30px)!important;
  min-height:clamp(58px,7.8svh,88px)!important;
}
body[data-app="recreation"] .mobile-game-key--submit{
  background:var(--games-control-active)!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
}
body[data-app="recreation"] .mobile-word-keypad{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
}
body[data-app="recreation"] .mobile-make24-keypad{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
}
body[data-app="recreation"] .desktop-keypad-toggle[aria-pressed="true"]{
  background:var(--games-control-active)!important;
  background-image:none!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
  border-color:rgba(var(--recreation-burgundy-rgb),.52)!important;
}
body[data-app="recreation"] .desktop-keypad-toggle::after{
  content:"";
}
@media (min-width:981px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(380px,min(44vw,560px))!important;
    gap:clamp(14px,1.4vw,22px)!important;
    align-items:stretch!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open .mobile-game-keypad{
    grid-column:2!important;
    grid-row:1 / span 4!important;
    align-self:stretch!important;
    position:sticky!important;
    top:12px!important;
    min-height:min(58vh,620px)!important;
    max-height:calc(100vh - 96px)!important;
    overflow:auto!important;
    grid-auto-rows:minmax(62px,1fr)!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-word-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open .mobile-word-keypad{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .formula-box,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board > .formula-box{
    grid-column:1!important;
    min-width:0!important;
  }
}
@media (max-width:980px){
  body[data-app="recreation"] .desktop-keypad-toggle{
    display:inline-flex!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open .mobile-game-keypad,
  body[data-app="recreation"] .is-mobile-game-root .mobile-game-keypad{
    grid-column:1!important;
    grid-row:auto!important;
    position:relative!important;
    top:auto!important;
    min-height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}
@media (max-width:700px){
  body[data-app="recreation"] .mobile-game-keypad{
    gap:8px!important;
    padding:10px!important;
    border-radius:18px!important;
  }
  body[data-app="recreation"] .mobile-game-key{
    min-height:clamp(54px,8.6svh,76px)!important;
    font-size:clamp(22px,6.4vw,32px)!important;
    border-radius:16px!important;
  }
  body[data-app="recreation"] .mobile-game-key--utility,
  body[data-app="recreation"] .mobile-game-key--submit{
    font-size:clamp(18px,5.3vw,26px)!important;
  }
}
@media (max-width:420px){
  body[data-app="recreation"] .mobile-word-keypad{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
  }
  body[data-app="recreation"] .mobile-game-key{
    min-height:clamp(50px,8svh,68px)!important;
    font-size:clamp(20px,5.8vw,28px)!important;
  }
}

/* 20260605 keypad height balance patch: equalise side-by-side cards and prevent keypad distortion. */
body[data-app="recreation"] .mobile-game-key{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  box-sizing:border-box!important;
}
body[data-app="recreation"] .mobile-game-key--utility,
body[data-app="recreation"] .mobile-game-key--submit{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  line-height:1!important;
}
body[data-app="recreation"] .mobile-game-key[data-mobile-game-key$=":clear"]{
  color:#8F1F1F!important;
  -webkit-text-fill-color:#8F1F1F!important;
  font-weight:1000!important;
}
body[data-app="recreation"] .mobile-game-key[data-mobile-game-key$=":submit"],
body[data-app="recreation"] .mobile-game-key--submit{
  font-size:clamp(18px,2.25svh,27px)!important;
  letter-spacing:.01em!important;
  padding-left:8px!important;
  padding-right:8px!important;
}
body[data-app="recreation"] .mobile-game-key[data-mobile-game-key$=":clear"]{
  font-size:clamp(17px,2.15svh,26px)!important;
  padding-left:8px!important;
  padding-right:8px!important;
}
@media (min-width:981px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board{
    display:grid!important;
    grid-auto-flow:row!important;
    gap:clamp(12px,1.15vw,18px)!important;
    align-items:stretch!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board{
    grid-template-columns:minmax(0,1fr) minmax(320px,min(40vw,500px))!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard{
    grid-template-columns:minmax(0,1fr) minmax(300px,min(34vw,430px))!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .formula-box,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board > .formula-box,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .word-box{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    height:auto!important;
    min-height:100%!important;
    align-self:stretch!important;
    display:grid!important;
    align-content:start!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board > .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-game-keypad{
    grid-column:2!important;
    grid-row:1!important;
    align-self:stretch!important;
    position:relative!important;
    top:auto!important;
    min-height:0!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    margin-top:0!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .mobile-make24-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board > .mobile-make24-keypad{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(5,minmax(0,1fr))!important;
    grid-auto-rows:minmax(0,1fr)!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:minmax(46px,1fr)!important;
    align-content:stretch!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key{
    min-height:clamp(42px,5.2svh,64px)!important;
    font-size:clamp(20px,2.35svh,30px)!important;
    padding:7px!important;
    border-radius:16px!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--utility,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--utility,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--submit,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--submit{
    font-size:clamp(16px,1.95svh,24px)!important;
    padding-left:6px!important;
    padding-right:6px!important;
  }
}
@media (min-width:981px) and (max-height:720px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key{
    min-height:40px!important;
    font-size:clamp(18px,2.1svh,26px)!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board > .mobile-make24-keypad .mobile-game-key,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board > .mobile-make24-keypad .mobile-game-key{
    min-height:50px!important;
    font-size:clamp(21px,2.7svh,32px)!important;
  }
}
@media (max-width:980px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #make24Board,
  body[data-app="recreation"] .game-play-root.keypad-open #make24Board{
    grid-template-columns:1fr!important;
    align-items:stretch!important;
  }
  body[data-app="recreation"] .game-play-root.desktop-keypad-open .mobile-game-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open .mobile-game-keypad,
  body[data-app="recreation"] .is-mobile-game-root .mobile-game-keypad{
    max-height:none!important;
    overflow:visible!important;
  }
}

/* 20260605 alphabet keypad 50/50 patch:
   Detect The Word only. Make The Number numerical keypad is intentionally untouched. */
body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter.is-word-correct{
  background:linear-gradient(180deg,#6F8F63 0%,#517A57 100%)!important;
  border-color:rgba(38,70,42,.55)!important;
  color:#F7F0E3!important;
  -webkit-text-fill-color:#F7F0E3!important;
}
body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter.is-word-present{
  background:linear-gradient(180deg,#D1AE62 0%,#B58A3D 100%)!important;
  border-color:rgba(122,88,38,.55)!important;
  color:var(--recreation-ink)!important;
  -webkit-text-fill-color:var(--recreation-ink)!important;
}
body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter.is-word-absent{
  opacity:.58!important;
}

body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  line-height:1!important;
  font-size:clamp(26px,7vw,40px)!important;
  font-weight:1000!important;
  letter-spacing:.01em!important;
  padding:.08em!important;
}

@media (min-width:821px){
  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:clamp(14px,1.35vw,22px)!important;
    align-items:stretch!important;
  }

  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .word-box{
    grid-column:1!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    align-self:stretch!important;
  }

  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad{
    grid-column:2!important;
    grid-row:1!important;
    min-width:0!important;
    width:100%!important;
    height:auto!important;
    min-height:100%!important;
    align-self:stretch!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:minmax(clamp(56px,8.4vh,92px),1fr)!important;
    align-content:stretch!important;
    gap:clamp(8px,1vw,14px)!important;
    padding:clamp(10px,1.1vw,16px)!important;
    margin-top:0!important;
    position:relative!important;
    top:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  body[data-app="recreation"] .game-play-root.desktop-keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--letter,
  body[data-app="recreation"] .game-play-root.keypad-open #wordBoard > .mobile-word-keypad .mobile-game-key--letter{
    min-height:clamp(56px,8.4vh,92px)!important;
    font-size:clamp(32px,min(3.8vw,7.2vh),56px)!important;
    padding:.06em!important;
    border-radius:clamp(16px,1.4vw,24px)!important;
  }
}

@media (max-width:820px){
  body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter{
    min-height:clamp(54px,8.8svh,78px)!important;
    font-size:clamp(24px,7.1vw,36px)!important;
  }
}

@media (max-width:420px){
  body[data-app="recreation"] .mobile-word-keypad .mobile-game-key--letter{
    min-height:clamp(50px,8.2svh,70px)!important;
    font-size:clamp(22px,6.5vw,32px)!important;
  }
}


/* 20260605 mobile game-mode restore patch:
   - Detect The Word and Make The Number now enter the same mobile game screen as Pairs/Track The Coin.
   - Mobile typing games show their keypad automatically; the Open Keypad control is desktop/tablet-only.
   - Back To Games clears mobile/fullscreen layout residue so the Recreation banner is not pushed under the page. */
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .desktop-keypad-toggle{
    display:none!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="detectword"] #wordBoard,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="make24"] #make24Board{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="detectword"] #wordBoard > .mobile-word-keypad,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="make24"] #make24Board > .mobile-make24-keypad{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    position:relative!important;
    inset:auto!important;
    top:auto!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    margin:10px 0 0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="detectword"] #wordBoard > .mobile-word-keypad{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:minmax(clamp(48px,8svh,74px),auto)!important;
    gap:clamp(6px,1.6vw,10px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="detectword"] #wordBoard > .mobile-word-keypad .mobile-game-key--letter{
    min-height:clamp(48px,8svh,74px)!important;
    font-size:clamp(22px,7vw,36px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="detectword"] .desktop-keypad-toggle,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="make24"] .desktop-keypad-toggle{
    display:none!important;
  }
  body[data-app="recreation"]:not(.bl-mobile-game-mode) .game-card-shell,
  body[data-app="recreation"]:not(.bl-mobile-game-mode) .game-play-root{
    z-index:auto!important;
  }
}

/* Keep Detect The Word 50/50 when its alphabetical keypad is opened in desktop fullscreen. */
@media (min-width:821px){
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].desktop-keypad-open:fullscreen #wordBoard,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].keypad-open:fullscreen #wordBoard,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"]:fullscreen #wordBoard:has(> .mobile-word-keypad[aria-hidden="false"]){
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:clamp(14px,1.35vw,22px)!important;
    align-items:stretch!important;
  }
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].desktop-keypad-open:fullscreen #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].keypad-open:fullscreen #wordBoard > .word-box,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"]:fullscreen #wordBoard:has(> .mobile-word-keypad[aria-hidden="false"]) > .word-box{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
    align-self:stretch!important;
  }
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].desktop-keypad-open:fullscreen #wordBoard > .mobile-word-keypad,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"].keypad-open:fullscreen #wordBoard > .mobile-word-keypad,
  body[data-app="recreation"] .game-play-root[data-game-play-root="detectword"]:fullscreen #wordBoard > .mobile-word-keypad[aria-hidden="false"]{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    width:100%!important;
    min-width:0!important;
    align-self:stretch!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-auto-rows:minmax(clamp(56px,8.4vh,92px),1fr)!important;
    gap:clamp(8px,1vw,14px)!important;
    margin-top:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
}

/* 20260605_spacing_trackcoin_mobile
   Header and Track The Coin coherence fixes.
   - The header tab row keeps canonical internal breathing room AND the page body starts lower after the tabs.
   - Track The Coin mobile cups stay centred, have flat bases, no visible labels, and use a gold coin token. */
body[data-app="recreation"] .hero > .tabs{
  margin-top:10px!important;
  padding-bottom:18px!important;
  border-bottom:1px solid var(--border,rgba(0,0,0,.10))!important;
}
body[data-app="recreation"] .hero.compact > .tabs{
  padding-bottom:12px!important;
}
body[data-app="recreation"] .trackcoin-cup{
  font-size:0!important;
  line-height:0!important;
  text-indent:-9999px!important;
  overflow:hidden!important;
  border-radius:16px 16px 8px 8px!important;
  clip-path:polygon(14% 0%,86% 0%,100% 86%,100% 100%,0% 100%,0% 86%)!important;
}
body[data-app="recreation"] .trackcoin-cup::before{
  left:0!important;
  right:0!important;
  bottom:0!important;
  height:14px!important;
  border-radius:0 0 6px 6px!important;
  background:linear-gradient(180deg,var(--recreation-rose) 0%,var(--recreation-burgundy) 100%)!important;
  border:0!important;
}
body[data-app="recreation"] .trackcoin-cup::after{
  content:none!important;
  display:none!important;
}
body[data-app="recreation"] .trackcoin-item-token{
  font-size:0!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  width:clamp(36px,8vw,48px)!important;
  height:clamp(36px,8vw,48px)!important;
  background:radial-gradient(circle at 34% 26%,#FFF7B0 0%,#FFD84D 32%,#D99A17 66%,#8B5A08 100%)!important;
  border:2px solid rgba(103,67,8,.58)!important;
  box-shadow:inset 0 2px 0 rgba(255,255,255,.50), inset 0 -5px 10px rgba(103,67,8,.28), 0 10px 20px -14px rgba(var(--recreation-shadow-rgb),.65)!important;
}
body[data-app="recreation"] .trackcoin-item-token::before{
  content:""!important;
  width:52%!important;
  height:52%!important;
  border-radius:999px!important;
  border:3px solid rgba(116,73,7,.38)!important;
  background:rgba(255,246,186,.28)!important;
}
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-lane{
    height:clamp(260px,44svh,360px)!important;
    min-height:260px!important;
    max-height:360px!important;
    overflow:hidden!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-cup{
    width:clamp(60px,17vw,82px)!important;
    height:clamp(82px,22vw,108px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-cup::before{
    height:12px!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-item-token{
    width:clamp(34px,9vw,44px)!important;
    height:clamp(34px,9vw,44px)!important;
  }
}


/* MOBILE GAME PANEL ROOT FIX
   The mobile root is now the whole game panel, not just the inner game card, so
   Game / Skills / Tiers / Progress remains available inside the mobile view. */
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root .game-header{
    display:flex !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .progress-shell{
    display:grid !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row{
    display:flex !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row{
    position:sticky !important;
    top:54px !important;
    z-index:19 !important;
    align-items:center !important;
    gap:8px !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    padding:8px 0 10px !important;
    background:var(--games-page-gradient) !important;
    scrollbar-width:none !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row::-webkit-scrollbar,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row::-webkit-scrollbar{ height:0 !important; }
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-btn{
    flex:0 0 auto !important;
    min-width:112px !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-panel-stack{
    min-width:0 !important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-lane{
    height:clamp(260px,44svh,360px)!important;
    min-height:260px!important;
    max-height:360px!important;
    overflow:hidden!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-cup{
    width:clamp(60px,17vw,82px)!important;
    height:clamp(82px,22vw,108px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-item-token{
    width:clamp(34px,9vw,44px)!important;
    height:clamp(34px,9vw,44px)!important;
  }
}
/* 20260606_banner_game_tabs_authority
   Dominant mobile game-tabs rule:
   Game / Skills / Tiers / Progress belongs inside the game card flow.
   No sticky floating strip. No alternate gradient bar behind the buttons. */
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row{
    position:relative!important;
    top:auto!important;
    bottom:auto!important;
    z-index:3!important;
    display:flex!important;
    align-items:center!important;
    justify-content:stretch!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
    overflow:visible!important;
    width:100%!important;
    max-width:100%!important;
    margin:0 0 10px 0!important;
    padding:0!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row::before,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row::after,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row::before,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row::after{
    content:none!important;
    display:none!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-tab-row .game-toggle-btn,
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-row .game-toggle-btn{
    flex:1 1 0!important;
    min-width:0!important;
    max-width:none!important;
    white-space:nowrap!important;
    text-align:center!important;
    padding:10px 8px!important;
    font-size:clamp(14px,3.9vw,16px)!important;
    line-height:1!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.16)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions{
    position:relative!important;
    bottom:auto!important;
    z-index:3!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    padding:10px 0 0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="pairs"] .game-window-actions{
    background:transparent!important;
    background-image:none!important;
  }
}


/* 20260606_mobile_banner_trackcoin_controls
   Final dominant Recreation visual + information-density layer.
   Removes near-white/tan drift, compresses the scattered info pills, and keeps
   Back To Games in normal top flow instead of floating. */
body[data-app="recreation"]{
  --games-page-deep:var(--recreation-burgundy);
  --games-page-mid:var(--recreation-rose);
  --games-page-soft:var(--recreation-rose);
  --games-page-light:var(--recreation-copper-light);
  --games-accent:var(--recreation-rose);
  --games-ink:var(--recreation-ink);
  --games-muted:var(--recreation-muted);
  --games-border:rgba(var(--recreation-shadow-rgb),.34);
  --games-border-strong:rgba(var(--recreation-shadow-rgb),.52);
  --games-shadow:0 22px 48px -30px rgba(var(--recreation-shadow-rgb),.58);
  --games-page-gradient:linear-gradient(90deg,
    var(--games-page-deep) 0%,
    var(--games-page-mid) 18%,
    var(--games-page-soft) 36%,
    var(--games-page-light) 50%,
    var(--games-page-soft) 64%,
    var(--games-page-mid) 82%,
    var(--games-page-deep) 100%
  );
  --games-surface:var(--recreation-panel);
  --games-surface-2:var(--recreation-card);
  --games-card:var(--recreation-card);
  --games-panel:var(--recreation-panel);
  --games-panel-2:var(--recreation-card);
  --games-control:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-rose) 100%);
  --games-control-hover:linear-gradient(180deg,var(--recreation-copper-light) 0%,var(--recreation-rose) 100%);
  --games-control-active:linear-gradient(180deg,var(--recreation-rose) 0%,var(--recreation-burgundy) 100%);
  --games-play:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-rose) 100%);
  --games-play-deep:var(--recreation-burgundy);
  --games-surface-gradient:linear-gradient(180deg,var(--recreation-copper-light) 0%,var(--recreation-copper) 100%);
  --games-row-gradient:linear-gradient(90deg,var(--recreation-copper-light) 0%,var(--recreation-copper) 56%,var(--recreation-rose) 100%);
  --games-input-gradient:linear-gradient(180deg,var(--recreation-copper-light) 0%,var(--recreation-copper) 100%);
  --page-bg:var(--games-page-gradient)!important;
  --hero-bg:var(--games-page-gradient)!important;
  --homebar-bg:var(--games-page-gradient)!important;
  --header-gradient:var(--games-page-gradient)!important;
  --card-bg:var(--games-card)!important;
  --accent:var(--games-accent)!important;
  --accent-2:var(--games-ink)!important;
  --border:var(--games-border)!important;
  --border-2:var(--games-border-strong)!important;
}

body[data-app="recreation"] .card,
body[data-app="recreation"] .game-card,
body[data-app="recreation"] .game-panel .card,
body[data-app="recreation"] .progress-shell,
body[data-app="recreation"] .summary-box,
body[data-app="recreation"] .round-status-card,
body[data-app="recreation"] .skill-item,
body[data-app="recreation"] .trackcoin-stat-card,
body[data-app="recreation"] .game-summary-details,
body[data-app="recreation"] .game-summary-body,
body[data-app="recreation"] .empty-box,
body[data-app="recreation"] .formula-box,
body[data-app="recreation"] .word-box,
body[data-app="recreation"] .solution-box,
body[data-app="recreation"] .clue-bar,
body[data-app="recreation"] .number-chip,
body[data-app="recreation"] .letter-cell,
body[data-app="recreation"] .upgrade-item,
body[data-app="recreation"] .bonus-item,
body[data-app="recreation"] .ninja-bonus-chip{
  background:var(--games-surface-gradient)!important;
  background-image:var(--games-surface-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border-color:var(--games-border)!important;
}

body[data-app="recreation"] .game-info-details{
  display:block!important;
  border:1px solid var(--games-border)!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,var(--recreation-panel) 0%,var(--recreation-rose) 100%)!important;
  box-shadow:0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.48)!important;
  overflow:hidden!important;
}
body[data-app="recreation"] .game-info-details > summary{
  list-style:none!important;
  cursor:pointer!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:9px 12px!important;
  min-height:38px!important;
  font-size:14px!important;
  font-weight:950!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}
body[data-app="recreation"] .game-info-details > summary::-webkit-details-marker{ display:none!important; }
body[data-app="recreation"] .game-info-details > summary::after{
  content:"Show"!important;
  border:1px solid var(--games-border)!important;
  border-radius:999px!important;
  padding:5px 9px!important;
  background:var(--games-control)!important;
  font-size:12px!important;
}
body[data-app="recreation"] .game-info-details[open] > summary::after{ content:"Hide"!important; }
body[data-app="recreation"] .game-info-details .progress-shell{
  border:0!important;
  border-top:1px solid var(--games-border)!important;
  border-radius:0!important;
  padding:10px 12px!important;
  box-shadow:none!important;
  gap:8px!important;
  background:linear-gradient(180deg,var(--recreation-copper) 0%,var(--recreation-rose) 100%)!important;
}
body[data-app="recreation"] .progress-shell .xp-row,
body[data-app="recreation"] .progress-shell--trackcoin .xp-row{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
}
body[data-app="recreation"] .trackcoin-level-title{
  font-size:clamp(20px,2.2vw,28px)!important;
  line-height:1.05!important;
}
body[data-app="recreation"] .xp-bar{
  height:12px!important;
  background:var(--recreation-burgundy)!important;
  border-color:rgba(var(--recreation-shadow-rgb),.38)!important;
}
body[data-app="recreation"] .xp-fill{
  background:linear-gradient(90deg,var(--recreation-burgundy) 0%,var(--recreation-rose) 52%,var(--recreation-copper-light) 100%)!important;
}
body[data-app="recreation"] .stat-pills,
body[data-app="recreation"] .trackcoin-stat-pills{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
}
body[data-app="recreation"] .stat-pill{
  min-height:0!important;
  padding:6px 9px!important;
  border-radius:999px!important;
  font-size:clamp(13px,1.35vw,15px)!important;
  line-height:1.1!important;
  font-weight:900!important;
  background:var(--games-row-gradient)!important;
  background-image:var(--games-row-gradient)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10)!important;
}

body[data-app="recreation"] .game-toggle-row,
body[data-app="recreation"] .trackcoin-tab-row{
  gap:6px!important;
}
body[data-app="recreation"] .game-toggle-btn{
  min-height:34px!important;
  padding:7px 10px!important;
  font-size:14px!important;
  line-height:1!important;
}
body[data-app="recreation"] .game-window-actions{
  gap:8px!important;
}
body[data-app="recreation"] .game-window-actions .action,
body[data-app="recreation"] .start-new-game-toggle,
body[data-app="recreation"] .auto-next-toggle,
body[data-app="recreation"] .desktop-keypad-toggle{
  min-height:36px!important;
  min-width:0!important;
  padding:8px 11px!important;
  font-size:14px!important;
  line-height:1.05!important;
}
body[data-app="recreation"] .game-window-actions .auto-next-toggle{
  min-width:0!important;
}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root .mobile-game-exit{
    position:relative!important;
    top:auto!important;
    z-index:3!important;
    width:100%!important;
    margin:0 0 6px 0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-header{
    gap:8px!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-info-details{
    margin:0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-toggle-btn{
    padding:9px 6px!important;
    font-size:clamp(13px,3.6vw,15px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions .action{
    flex:1 1 0!important;
    min-width:0!important;
    font-size:clamp(12px,3.35vw,14px)!important;
    padding:9px 7px!important;
  }
}


/* 20260606_mobile_banner_trackcoin_controls
   Dominant Recreation correction layer:
   - Back To Games remains as the single top mobile exit.
   - Lower header Back To Games and Full Screen are not shown on mobile.
   - Mobile action labels are shorter.
   - Track The Coin cups are centred, spaced, and kept in a calmer height.
   - Recreation hero text remains readable on the darker blue header gradient. */
body[data-app="recreation"] .hero .title{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
  text-shadow:none!important;
}
body[data-app="recreation"] .hero .subtitle{
  color:
}
body[data-app="recreation"] .hero .subtitle{
  color:rgba(255,255,255,.86)!important;
  -webkit-text-fill-color:rgba(255,255,255,.86)!important;
  text-shadow:none!important;
}
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .bl-scroll{
    top:calc(var(--homebar-h) + env(safe-area-inset-top,0px))!important;
  }
  body.bl-mobile-game-mode .bl-scroll{
    top:0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .mobile-game-exit{
    position:relative!important;
    top:auto!important;
    order:-100!important;
    margin:0 0 8px 0!important;
    width:100%!important;
    z-index:4!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-header .link-actions [data-select-game=""],
  body[data-app="recreation"] .is-mobile-game-root .game-header .link-actions [data-game-fullscreen],
  body[data-app="recreation"] .is-mobile-game-root .game-fullscreen-toggle{
    display:none!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions{
    justify-content:stretch!important;
    gap:7px!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .game-window-actions .action{
    min-height:40px!important;
    padding:9px 8px!important;
    font-size:clamp(12px,3.2vw,14px)!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-scene,
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene{
    min-height:0!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    gap:8px!important;
    align-items:center!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-lane,
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-lane{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:clamp(220px,38svh,310px)!important;
    min-height:220px!important;
    max-height:310px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-cup,
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-cup{
    position:absolute!important;
    flex:none!important;
    margin:0!important;
    width:clamp(56px,15vw,72px)!important;
    height:clamp(76px,20vw,96px)!important;
    transform:translateX(-50%) translateY(0) rotate(var(--cup-tilt,0deg))!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-lane[data-cups="5"] .trackcoin-cup,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-lane[data-cups="6"] .trackcoin-cup{
    width:clamp(44px,12.5vw,58px)!important;
    height:clamp(64px,17vw,82px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="trackcoin"] .trackcoin-item-token,
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-item-token{
    width:clamp(28px,7.5vw,38px)!important;
    height:clamp(28px,7.5vw,38px)!important;
  }
}

/* BASELINE-TRACKCOIN-MOBILE-ABSOLUTE-AUTHORITY-20260606_games_flyout_authority
   Track The Coin uses JS left/top absolute positioning. CSS must not turn cups into flex children. */
@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-scene,
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene{
    min-height:0!important;
    grid-template-rows:auto auto minmax(210px,1fr)!important;
    gap:8px!important;
    align-items:stretch!important;
  }
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-lane,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-lane{
    position:relative!important;
    display:block!important;
    width:100%!important;
    height:clamp(220px,38svh,310px)!important;
    min-height:220px!important;
    max-height:310px!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-cup,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-cup{
    position:absolute!important;
    flex:none!important;
    margin:0!important;
    width:clamp(56px,15vw,72px)!important;
    height:clamp(76px,20vw,96px)!important;
    transform:translateX(-50%) translateY(0) rotate(var(--cup-tilt,0deg))!important;
  }
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-cup.is-lifted,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-cup.is-lifted{
    transform:translateX(-50%) translateY(-34px) rotate(var(--cup-tilt,0deg))!important;
  }
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-lane[data-cups="5"] .trackcoin-cup,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-lane[data-cups="6"] .trackcoin-cup{
    width:clamp(44px,12.5vw,58px)!important;
    height:clamp(64px,17vw,82px)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root #trackCoinScene .trackcoin-item-token,
  body[data-app="recreation"] .is-mobile-game-root .trackcoin-item-token{
    position:absolute!important;
    width:clamp(26px,7vw,36px)!important;
    height:clamp(26px,7vw,36px)!important;
    transform:translateX(-50%)!important;
  }
}


/* ============================================================================
   Recreation — Testing list, information buttons, and Rule Shift authority
   ============================================================================ */

body[data-app="recreation"] .game-row-wrap{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:10px!important;
  align-items:stretch!important;
}

body[data-app="recreation"] .game-row-wrap .game-row{
  min-width:0!important;
  height:100%!important;
}

body[data-app="recreation"] .game-row-wrap.is-selected .game-row{
  outline:2px solid rgba(var(--recreation-burgundy-rgb),.26)!important;
  outline-offset:0!important;
  box-shadow:0 16px 30px -18px rgba(var(--recreation-burgundy-rgb),.24)!important;
}

body[data-app="recreation"] .game-row-info-button,
body[data-app="recreation"] .game-info-toggle{
  width:46px!important;
  min-width:46px!important;
  min-height:46px!important;
  border-radius:999px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:22px!important;
  font-weight:950!important;
  line-height:1!important;
  background:var(--games-control-gradient)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  border:1px solid var(--games-border)!important;
  box-shadow:0 10px 22px -20px rgba(var(--recreation-shadow-rgb),.38)!important;
  cursor:pointer!important;
}

body[data-app="recreation"] .game-row-info-button:hover,
body[data-app="recreation"] .game-row-info-button:focus-visible,
body[data-app="recreation"] .game-info-toggle:hover,
body[data-app="recreation"] .game-info-toggle:focus-visible,
body[data-app="recreation"] .game-howto-toggle:hover,
body[data-app="recreation"] .game-howto-toggle:focus-visible{
  filter:brightness(1.04)!important;
  outline:2px solid rgba(var(--recreation-burgundy-rgb),.28)!important;
  outline-offset:2px!important;
}

body[data-app="recreation"] .game-howto-toggle{
  min-width:128px!important;
}

body.games-modal-open{
  overflow:hidden!important;
}

body[data-app="recreation"] .games-modal[hidden]{
  display:none!important;
}

body[data-app="recreation"] .games-modal{
  position:fixed!important;
  inset:0!important;
  z-index:30000!important;
  display:grid!important;
  place-items:center!important;
  padding:18px!important;
}

body[data-app="recreation"] .games-modal__backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(var(--recreation-shadow-rgb),.66)!important;
  backdrop-filter:blur(4px)!important;
}

body[data-app="recreation"] .games-modal__panel{
  position:relative!important;
  z-index:1!important;
  width:min(620px,calc(100vw - 32px))!important;
  max-height:calc(100svh - 34px)!important;
  overflow:auto!important;
  display:grid!important;
  gap:12px!important;
  padding:clamp(18px,2.4vw,26px)!important;
  border-radius:24px!important;
  background:var(--games-surface-gradient)!important;
  border:1px solid var(--games-border-strong)!important;
  box-shadow:0 28px 68px -34px rgba(var(--recreation-shadow-rgb),.72)!important;
  color:var(--games-ink)!important;
}

body[data-app="recreation"] .games-modal__panel h3{
  margin:0!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

body[data-app="recreation"] .games-modal__body{
  display:grid!important;
  gap:10px!important;
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
  line-height:1.58!important;
}

body[data-app="recreation"] .games-modal__body p{
  margin:0!important;
}

body[data-app="recreation"] .games-modal__close{
  position:absolute!important;
  top:10px!important;
  right:10px!important;
  width:42px!important;
  height:42px!important;
  border-radius:999px!important;
  border:1px solid var(--games-border)!important;
  background:var(--games-control-gradient)!important;
  color:var(--games-ink)!important;
  font-size:26px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
}

body[data-app="recreation"] .ruleshift-board{
  display:grid!important;
  gap:12px!important;
  min-width:0!important;
  max-width:100%!important;
}

body[data-app="recreation"] .ruleshift-idle-card,
body[data-app="recreation"] .ruleshift-complete-card,
body[data-app="recreation"] .ruleshift-rule-card,
body[data-app="recreation"] .ruleshift-choice-card{
  display:grid!important;
  gap:10px!important;
  padding:clamp(14px,1.4vw,20px)!important;
  border-radius:22px!important;
  background:var(--games-surface-gradient)!important;
  border:1px solid var(--games-border)!important;
  color:var(--games-ink)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}

body[data-app="recreation"] .ruleshift-rule-card strong{
  font-size:clamp(25px,3.1vw,40px)!important;
  line-height:1.08!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

body[data-app="recreation"] .ruleshift-rule-head{
  display:flex!important;
  justify-content:space-between!important;
  gap:12px!important;
  align-items:center!important;
  flex-wrap:wrap!important;
}

body[data-app="recreation"] .ruleshift-rule-kicker,
body[data-app="recreation"] .ruleshift-round-count{
  font-size:13px!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
  font-weight:950!important;
  color:var(--games-muted)!important;
  -webkit-text-fill-color:var(--games-muted)!important;
}

body[data-app="recreation"] .ruleshift-timer{
  display:grid!important;
  grid-template-columns:auto auto minmax(120px,1fr)!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:4px!important;
}

body[data-app="recreation"] .ruleshift-timer span,
body[data-app="recreation"] .ruleshift-timer strong{
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
  font-weight:950!important;
}

body[data-app="recreation"] .ruleshift-timer-bar{
  height:14px!important;
  border-radius:999px!important;
  overflow:hidden!important;
  background:var(--recreation-rose)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.36)!important;
}

body[data-app="recreation"] .ruleshift-timer-fill{
  height:100%!important;
  border-radius:999px!important;
  background:linear-gradient(90deg,var(--recreation-copper-light) 0%,var(--recreation-rose) 52%,var(--recreation-burgundy) 100%)!important;
  transition:width .12s linear!important;
}

body[data-app="recreation"] .ruleshift-choice-card{
  width:100%!important;
  min-height:clamp(250px,35vh,430px)!important;
  align-content:center!important;
}

body[data-app="recreation"] .ruleshift-options-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(96px,1fr))!important;
  gap:clamp(10px,1.6vw,18px)!important;
  align-items:center!important;
  justify-items:center!important;
}

body[data-app="recreation"] .ruleshift-token{
  appearance:none!important;
  border:1px solid transparent!important;
  border-radius:16px!important;
  width:100%!important;
  min-height:clamp(98px,10vw,142px)!important;
  padding:10px!important;
  display:grid!important;
  gap:8px!important;
  place-items:center!important;
  background:rgba(244,197,108,.18)!important;
  color:var(--games-ink)!important;
  cursor:pointer!important;
  box-shadow:none!important;
  touch-action:manipulation!important;
}

body[data-app="recreation"] .ruleshift-token:hover,
body[data-app="recreation"] .ruleshift-token:focus-visible{
  background:rgba(244,197,108,.34)!important;
  outline:3px solid rgba(var(--recreation-burgundy-rgb),.28)!important;
  outline-offset:2px!important;
}

body[data-app="recreation"] .ruleshift-option-label{
  font-weight:950!important;
  text-align:center!important;
  font-size:clamp(12px,1.05vw,15px)!important;
  color:var(--games-ink)!important;
  -webkit-text-fill-color:var(--games-ink)!important;
}

body[data-app="recreation"] .ruleshift-shape{
  display:block!important;
  width:clamp(52px,6vw,88px)!important;
  height:clamp(52px,6vw,88px)!important;
  background:var(--recreation-burgundy)!important;
  border:3px solid rgba(var(--recreation-burgundy-rgb),.32)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 12px 24px -18px rgba(var(--recreation-shadow-rgb),.56)!important;
}

body[data-app="recreation"] .ruleshift-size--small .ruleshift-shape{
  transform:scale(.72)!important;
}

body[data-app="recreation"] .ruleshift-size--large .ruleshift-shape{
  transform:scale(1)!important;
}

body[data-app="recreation"] .ruleshift-shape--circle{ border-radius:999px!important; }
body[data-app="recreation"] .ruleshift-shape--square{ border-radius:2px!important; }
body[data-app="recreation"] .ruleshift-shape--triangle{
  clip-path:polygon(50% 0%,100% 100%,0% 100%)!important;
  border-radius:0!important;
}
body[data-app="recreation"] .ruleshift-shape--diamond{
  clip-path:polygon(50% 0%,100% 50%,50% 100%,0% 50%)!important;
  border-radius:0!important;
}
body[data-app="recreation"] .ruleshift-shape--oval{
  border-radius:999px!important;
  width:clamp(72px,7.6vw,112px)!important;
  height:clamp(40px,4.6vw,64px)!important;
}
body[data-app="recreation"] .ruleshift-shape--hexagon{
  clip-path:polygon(25% 4%,75% 4%,100% 50%,75% 96%,25% 96%,0 50%)!important;
  border-radius:0!important;
}
body[data-app="recreation"] .ruleshift-shape--star{
  clip-path:polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 92%,50% 70%,21% 92%,32% 57%,2% 35%,39% 35%)!important;
  border-radius:0!important;
}
body[data-app="recreation"] .ruleshift-shape--cross{
  clip-path:polygon(35% 0%,65% 0%,65% 35%,100% 35%,100% 65%,65% 65%,65% 100%,35% 100%,35% 65%,0% 65%,0% 35%,35% 35%)!important;
  border-radius:0!important;
}

body[data-app="recreation"] .ruleshift-colour--red .ruleshift-shape{ background:#9E4A4A!important; }
body[data-app="recreation"] .ruleshift-colour--blue .ruleshift-shape{ background:#3F5F9C!important; }
body[data-app="recreation"] .ruleshift-colour--green .ruleshift-shape{ background:#527A57!important; }
body[data-app="recreation"] .ruleshift-colour--yellow .ruleshift-shape{ background:#C9A646!important; }
body[data-app="recreation"] .ruleshift-colour--purple .ruleshift-shape{ background:#775A9E!important; }
body[data-app="recreation"] .ruleshift-colour--orange .ruleshift-shape{ background:#B8753D!important; }
body[data-app="recreation"] .ruleshift-colour--teal .ruleshift-shape{ background:#3F8C8C!important; }
body[data-app="recreation"] .ruleshift-colour--pink .ruleshift-shape{ background:#B85F8A!important; }

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .game-header .link-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 54px!important;
    gap:10px!important;
    margin-left:0!important;
    justify-content:stretch!important;
  }

  body[data-app="recreation"] .game-header .link-actions [data-select-game=""]{
    grid-column:1 / -1!important;
    width:100%!important;
    min-height:48px!important;
    order:1!important;
  }

  body[data-app="recreation"] .game-header .link-actions .game-howto-toggle{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    order:2!important;
  }

  body[data-app="recreation"] .game-header .link-actions .game-info-toggle{
    grid-column:2!important;
    width:54px!important;
    min-width:54px!important;
    order:3!important;
  }

  body[data-app="recreation"] .game-header .link-actions .game-fullscreen-toggle{
    display:none!important;
  }

  body[data-app="recreation"] .game-row-wrap{
    grid-template-columns:minmax(0,1fr) 52px!important;
  }

  body[data-app="recreation"] .game-row-info-button{
    width:52px!important;
    min-width:52px!important;
  }

  body[data-app="recreation"] .ruleshift-choice-card{
    min-height:clamp(340px,52svh,560px)!important;
    align-content:start!important;
  }

  body[data-app="recreation"] .ruleshift-options-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:9px!important;
  }

  body[data-app="recreation"] .ruleshift-token{
    min-height:clamp(92px,17svh,132px)!important;
    border-radius:16px!important;
    padding:8px 4px!important;
  }

  body[data-app="recreation"] .ruleshift-shape{
    width:clamp(42px,14vw,70px)!important;
    height:clamp(42px,14vw,70px)!important;
  }

  body[data-app="recreation"] .ruleshift-shape--oval{
    width:clamp(58px,18vw,86px)!important;
    height:clamp(34px,10vw,52px)!important;
  }

  body[data-app="recreation"] .ruleshift-option-label{
    font-size:11px!important;
  }

  body[data-app="recreation"] .ruleshift-timer{
    grid-template-columns:auto auto minmax(80px,1fr)!important;
  }
}

@media (max-width:460px){
  body[data-app="recreation"] .ruleshift-options-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* 20260607 Rule Shift visual-only balanced board + mobile fit authority */
body[data-app="recreation"] .ruleshift-option-label{
  display:none!important;
}

body[data-app="recreation"] .ruleshift-options-grid{
  grid-template-columns:repeat(8,minmax(0,1fr))!important;
  gap:clamp(8px,1vw,14px)!important;
}

body[data-app="recreation"] .ruleshift-token{
  min-height:clamp(88px,8vw,132px)!important;
  padding:clamp(8px,.8vw,12px)!important;
  display:grid!important;
  place-items:center!important;
}

body[data-app="recreation"] .ruleshift-choice-card{
  min-height:0!important;
  align-content:center!important;
}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"]{
    overflow:hidden!important;
    height:100svh!important;
    max-height:100svh!important;
    grid-template-rows:auto auto minmax(0,1fr) auto!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-header{
    gap:6px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .progress-shell{
    display:none!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-toggle-row{
    margin-bottom:6px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-panel-stack,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] #ruleShiftGameCard,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-play-window,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-board{
    min-height:0!important;
    max-height:100%!important;
    overflow:hidden!important;
    gap:6px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-rule-card{
    padding:8px 10px!important;
    border-radius:16px!important;
    gap:5px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-rule-card strong{
    font-size:clamp(22px,7.2vw,34px)!important;
    line-height:1!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-rule-kicker,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-round-count{
    font-size:10px!important;
    letter-spacing:.12em!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-timer{
    grid-template-columns:auto auto minmax(0,1fr)!important;
    gap:6px!important;
    margin-top:0!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-timer span,
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-timer strong{
    font-size:clamp(16px,5.2vw,24px)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-timer-bar{
    height:10px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-choice-card{
    min-height:0!important;
    height:100%!important;
    padding:8px!important;
    border-radius:16px!important;
    align-content:stretch!important;
    overflow:hidden!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-options-grid{
    height:100%!important;
    min-height:0!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    align-items:stretch!important;
    justify-items:stretch!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-token{
    min-height:0!important;
    height:100%!important;
    padding:4px!important;
    border-radius:14px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-shape{
    width:min(16vw,64px)!important;
    height:min(16vw,64px)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-shape--oval{
    width:min(20vw,78px)!important;
    height:min(10vw,42px)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-window-actions{
    padding-top:6px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .game-window-actions .action{
    min-height:36px!important;
    font-size:12px!important;
    padding:7px 8px!important;
  }
}

@media (max-width:460px){
  body[data-app="recreation"] .ruleshift-options-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}

/* 20260607 Rule Shift visual card authority:
   - no visible text inside option cards
   - all shapes are centred
   - small shapes are meaningfully smaller */
body[data-app="recreation"] .ruleshift-option-label{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  max-width:0!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:0!important;
}

body[data-app="recreation"] .ruleshift-token{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  place-items:center!important;
  gap:0!important;
  padding:clamp(8px,.9vw,14px)!important;
}

body[data-app="recreation"] .ruleshift-shape{
  display:block!important;
  margin:auto!important;
  align-self:center!important;
  justify-self:center!important;
  transform-origin:50% 50%!important;
}

body[data-app="recreation"] .ruleshift-size--small .ruleshift-shape{
  transform:scale(.50)!important;
}

body[data-app="recreation"] .ruleshift-size--large .ruleshift-shape{
  transform:scale(1)!important;
}

body[data-app="recreation"] .ruleshift-size--small .ruleshift-shape--oval{
  width:clamp(72px,7.6vw,112px)!important;
  height:clamp(40px,4.6vw,64px)!important;
  transform:scale(.46)!important;
}

body[data-app="recreation"] .ruleshift-size--large .ruleshift-shape--oval{
  width:clamp(72px,7.6vw,112px)!important;
  height:clamp(40px,4.6vw,64px)!important;
  transform:scale(1)!important;
}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-token{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    place-items:center!important;
    gap:0!important;
    padding:4px!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-shape{
    margin:auto!important;
    align-self:center!important;
    justify-self:center!important;
    transform-origin:50% 50%!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--small .ruleshift-shape{
    transform:scale(.48)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--large .ruleshift-shape{
    transform:scale(1)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--small .ruleshift-shape--oval{
    transform:scale(.44)!important;
  }

  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--large .ruleshift-shape--oval{
    transform:scale(1)!important;
  }
}

/* 20260607 Games template coherence: clean streak bonus shared visual marker */
body[data-app="recreation"] .stat-pill--clean{
  border-color:rgba(var(--recreation-shadow-rgb),.54)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 12px 24px -22px rgba(var(--recreation-shadow-rgb),.48)!important;
}

body[data-app="recreation"] .stat-pill--clean strong,
body[data-app="recreation"] .stat-pill--clean span{
  font-weight:950!important;
}

/* 20260607 Rule Shift failure/timer/card authority — EDIT_VERSION_20260607_CLEAN_HUB_ENTRY_BANNER_FIX
   - no visible text inside option cards
   - option cards are visual only
   - all shapes are centred
   - small shapes are visibly smaller
   - failed run card is visually distinct */
body[data-app="recreation"] .ruleshift-token,
body[data-app="recreation"] .ruleshift-token *{
  text-indent:0!important;
}

body[data-app="recreation"] .ruleshift-token{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  place-items:center!important;
  text-align:center!important;
  gap:0!important;
  font-size:0!important;
  line-height:0!important;
  overflow:hidden!important;
}

body[data-app="recreation"] .ruleshift-token::before,
body[data-app="recreation"] .ruleshift-token::after{
  content:none!important;
  display:none!important;
}

body[data-app="recreation"] .ruleshift-option-label{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  max-width:0!important;
  max-height:0!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  font-size:0!important;
  line-height:0!important;
}

body[data-app="recreation"] .ruleshift-shape{
  display:block!important;
  margin:auto!important;
  align-self:center!important;
  justify-self:center!important;
  transform-origin:50% 50%!important;
}

body[data-app="recreation"] .ruleshift-size--small .ruleshift-shape{
  transform:scale(.50)!important;
}

body[data-app="recreation"] .ruleshift-size--large .ruleshift-shape{
  transform:scale(1)!important;
}

body[data-app="recreation"] .ruleshift-size--small .ruleshift-shape--oval{
  transform:scale(.46)!important;
}

body[data-app="recreation"] .ruleshift-size--large .ruleshift-shape--oval{
  transform:scale(1)!important;
}

body[data-app="recreation"] .ruleshift-failed-card{
  border-color:rgba(122,69,69,.42)!important;
  box-shadow:0 0 0 3px rgba(122,69,69,.22),0 14px 28px -24px rgba(var(--recreation-shadow-rgb),.42)!important;
}

@media (max-width:820px), (hover:none) and (pointer:coarse){
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-token{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    place-items:center!important;
    font-size:0!important;
    line-height:0!important;
    gap:0!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-shape{
    margin:auto!important;
    align-self:center!important;
    justify-self:center!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--small .ruleshift-shape{
    transform:scale(.48)!important;
  }
  body[data-app="recreation"] .is-mobile-game-root[data-game-play-root="ruleshift"] .ruleshift-size--small .ruleshift-shape--oval{
    transform:scale(.44)!important;
  }
}

/* BASELINE-RECREATION-HERO-WHITE-SITEWIDE-COHERENCE-20260607
   Recreation uses the same sitewide hero position/structure, but its dark blue
   header needs the title/subtext in white like the other dark-header pages.
   No blurred shadow layer. */
body[data-app="recreation"] .hero .title,
body[data-app="recreation"] .hero .subtitle{
  text-shadow:none!important;
  filter:none!important;
}
body[data-app="recreation"] .hero .title{
  color:#FFFFFF!important;
  -webkit-text-fill-color:#FFFFFF!important;
}
body[data-app="recreation"] .hero .subtitle{
  color:rgba(255,255,255,.86)!important;
  -webkit-text-fill-color:rgba(255,255,255,.86)!important;
}


/* GAMES_OVERVIEW_ART_CARDS_20260706
   Responsive overview cards with a distinct image and the information control
   anchored at the top-right of the same card. */
body[data-app="recreation"] #gamesList.games-list{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:12px!important;
  align-items:stretch!important;
}
body[data-app="recreation"] #gamesList .games-list-group{
  grid-column:1 / -1!important;
  margin:12px 0 0!important;
}
body[data-app="recreation"] #gamesList .game-row-wrap{
  position:relative!important;
  display:block!important;
  min-width:0!important;
  isolation:isolate!important;
}
body[data-app="recreation"] #gamesList .game-row-wrap--featured{
  grid-column:auto!important;
}
body[data-app="recreation"] #gamesList .game-row{
  display:grid!important;
  grid-template-columns:92px minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  align-content:center!important;
  column-gap:16px!important;
  row-gap:0!important;
  min-height:120px!important;
  width:100%!important;
  padding:13px 72px 13px 15px!important;
  border-radius:20px!important;
  background:var(--recreation-card)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.38)!important;
  box-shadow:0 18px 38px -28px rgba(var(--recreation-shadow-rgb),.58),inset 0 1px 0 rgba(255,255,255,.24)!important;
  text-align:left!important;
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
body[data-app="recreation"] #gamesList .game-row:hover,
body[data-app="recreation"] #gamesList .game-row:focus-visible{
  transform:translateY(-3px)!important;
  filter:brightness(1.035)!important;
  box-shadow:0 24px 48px -28px rgba(var(--recreation-shadow-rgb),.68),inset 0 1px 0 rgba(255,255,255,.28)!important;
  outline:none!important;
}
body[data-app="recreation"] #gamesList .game-card-art{
  grid-column:1!important;
  grid-row:1!important;
  width:92px!important;
  height:92px!important;
  object-fit:cover!important;
  border-radius:20px!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.34)!important;
  background:var(--recreation-burgundy)!important;
  box-shadow:0 14px 28px -18px rgba(var(--recreation-shadow-rgb),.72)!important;
}
body[data-app="recreation"] #gamesList .game-row-copy{
  grid-column:2!important;
  grid-row:1!important;
  min-width:0!important;
  padding-right:4px!important;
  align-self:center!important;
}
body[data-app="recreation"] #gamesList .game-row-copy h3{
  margin:0 0 7px!important;
  font-size:clamp(20px,1.5vw,25px)!important;
}
body[data-app="recreation"] #gamesList .game-row-copy p{
  margin:0!important;
  line-height:1.42!important;
}
body[data-app="recreation"] #gamesList .game-row-meta{
  grid-column:3!important;
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  justify-items:end!important;
  text-align:right!important;
  align-self:center!important;
  flex-wrap:wrap!important;
}
body[data-app="recreation"] #gamesList .game-row-meta strong,
body[data-app="recreation"] #gamesList .game-row-meta .inline-note{
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  padding:6px 11px!important;
  border-radius:999px!important;
  background:rgba(244,197,108,.56)!important;
  border:1px solid rgba(var(--recreation-burgundy-rgb),.22)!important;
}
body[data-app="recreation"] #gamesList .game-row-info-button{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:5!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  font-family:Georgia,serif!important;
  font-size:25px!important;
  font-weight:800!important;
  font-style:normal!important;
  background:var(--games-key-gradient)!important;
  background-image:var(--games-key-gradient)!important;
  box-shadow:0 10px 24px -16px rgba(var(--recreation-shadow-rgb),.72)!important;
}
@media (max-width:760px){
  body[data-app="recreation"] #gamesList .game-row{
    grid-template-columns:78px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    min-height:112px!important;
    column-gap:13px!important;
    row-gap:7px!important;
    padding:12px 58px 12px 12px!important;
  }
  body[data-app="recreation"] #gamesList .game-card-art{grid-row:1 / 3!important;width:78px!important;height:78px!important;border-radius:14px!important;}
  body[data-app="recreation"] #gamesList .game-row-copy{grid-column:2!important;grid-row:1!important;}
  body[data-app="recreation"] #gamesList .game-row-copy h3{font-size:20px!important;}
  body[data-app="recreation"] #gamesList .game-row-copy p{font-size:14px!important;}
  body[data-app="recreation"] #gamesList .game-row-meta{grid-column:2!important;grid-row:2!important;justify-content:flex-start!important;text-align:left!important;flex-wrap:wrap!important;gap:7px!important;}
  body[data-app="recreation"] #gamesList .game-row-info-button{top:10px!important;right:10px!important;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;}
}


/* RECREATION_SITEWIDE_INFO_CONTROL_20260706
   Position only belongs to the Hub card; palette and interaction use the
   shared Baseline information-button contract. */
body[data-app="recreation"] #gamesList .game-row-info-button.bl-info-button{
  position:absolute!important;
  top:14px!important;
  right:14px!important;
  z-index:8!important;
  width:44px!important;
  min-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  background:var(--games-key-gradient)!important;
  background-image:var(--games-key-gradient)!important;
  color:var(--bl-info-button-ink)!important;
  border-color:var(--bl-info-button-border)!important;
  box-shadow:none!important;
  transform:none!important;
}
body[data-app="recreation"] #gamesList .game-row-info-button.bl-info-button:hover,
body[data-app="recreation"] #gamesList .game-row-info-button.bl-info-button:focus-visible,
body[data-app="recreation"] #gamesList .game-row-info-button.bl-info-button[aria-expanded="true"]{
  border-color:var(--bl-info-accent)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--bl-info-accent) 24%,transparent)!important;
}
@media (max-width:640px){
  body[data-app="recreation"] #gamesList .game-row-info-button.bl-info-button{
    top:10px!important;
    right:10px!important;
    width:44px!important;
    min-width:44px!important;
    height:44px!important;
    min-height:44px!important;
  }
}

/* Save-state icon, tooltip polish, and Baseline Realm banner fit — 2026-07-10 */
.game-save-status,.realm-save-status{display:inline-grid;place-items:center;flex:0 0 auto;width:56px;height:56px;padding:0;border:1px solid rgba(var(--recreation-burgundy-rgb),.28);border-radius:50%;background:linear-gradient(180deg,var(--games-page-light,var(--recreation-copper-light)),var(--games-page-soft,var(--recreation-copper)) 52%,var(--games-page-mid,var(--recreation-rose)));box-shadow:0 8px 18px -12px rgba(var(--recreation-burgundy-rgb),.7);cursor:help}
.game-save-status svg,.realm-save-status svg{width:30px;height:30px;overflow:visible}
.game-save-icon__disc-shell{fill:var(--recreation-copper-light)!important;stroke:var(--recreation-burgundy)!important;stroke-width:1.15;stroke-linejoin:round}
.game-save-icon__disc-shutter{fill:var(--recreation-ink)!important;stroke:var(--recreation-burgundy)!important;stroke-width:.75;stroke-linejoin:round}
.game-save-icon__disc-label{fill:var(--recreation-ink)!important;stroke:var(--recreation-burgundy)!important;stroke-width:.75;stroke-linejoin:round}
.game-save-icon__hub{fill:var(--recreation-rose)!important;stroke:var(--recreation-burgundy)!important;stroke-width:.45}
.game-save-icon__notch{fill:none;stroke:var(--recreation-burgundy)!important;stroke-width:1.05;stroke-linecap:round;stroke-linejoin:round}
.game-save-icon__cross{fill:none;stroke:#c82738!important;stroke-width:2.15;stroke-linecap:round}
.game-save-status.is-saving,.realm-save-status.is-saving{color:var(--recreation-ink)}
.game-save-status.is-unsaved,.realm-save-status.is-unsaved{color:var(--recreation-ink);box-shadow:0 0 0 2px rgba(181,31,46,.10),0 8px 18px -12px rgba(var(--recreation-burgundy-rgb),.7)}
.game-panel .link-actions .game-save-status{order:0}.game-panel .link-actions .bl-info-button{order:1}
.games-save-tooltip{position:fixed;left:0;top:0;z-index:30002;display:grid;gap:6px;max-width:min(430px,calc(100vw - 28px));padding:18px 22px;border-radius:28px;background:linear-gradient(135deg,rgba(244,197,108,.985) 0%,rgba(233,148,85,.975) 50%,rgba(204,105,75,.965) 100%);border:1px solid rgba(var(--recreation-burgundy-rgb),.18);box-shadow:0 24px 48px -30px rgba(var(--recreation-shadow-rgb),.56),0 0 0 1px rgba(255,255,255,.24) inset;color:var(--games-ink,var(--recreation-ink));font-size:17px;line-height:1.48;pointer-events:none}
.games-save-tooltip[hidden]{display:none!important}
.games-save-tooltip::after{content:"";position:absolute;left:var(--games-save-tooltip-arrow-left,50%);bottom:-12px;transform:translateX(-50%);width:22px;height:22px;background:inherit;border-right:1px solid rgba(var(--recreation-burgundy-rgb),.18);border-bottom:1px solid rgba(var(--recreation-burgundy-rgb),.18);box-shadow:3px 5px 10px -10px rgba(var(--recreation-shadow-rgb),.35);rotate:45deg}
.games-save-tooltip.is-below::after{top:-12px;bottom:auto;border-right:none;border-bottom:none;border-left:1px solid rgba(var(--recreation-burgundy-rgb),.18);border-top:1px solid rgba(var(--recreation-burgundy-rgb),.18)}
body[data-app="recreation"] .games-modal__panel{background:linear-gradient(135deg,rgba(244,197,108,.985) 0%,rgba(233,148,85,.975) 50%,rgba(204,105,75,.965) 100%)!important;color:var(--games-ink)!important}
body[data-app="recreation"] .games-modal__body{color:var(--recreation-ink)!important;-webkit-text-fill-color:var(--recreation-ink)!important}
body[data-app="recreation"] .games-modal__close{background:linear-gradient(180deg,rgba(244,197,108,.98),rgba(204,105,75,.94))!important}
body[data-app="recreation"] .sitewide-info-popover,
body[data-app="recreation"] .baseline-info-popover,
body[data-app="recreation"] .bl-info-popover,
body[data-app="recreation"] [data-bl-info-popover],
body[data-app="recreation"] [role="tooltip"]{background:linear-gradient(135deg,rgba(244,197,108,.985) 0%,rgba(233,148,85,.975) 50%,rgba(204,105,75,.965) 100%)!important;color:var(--games-ink,var(--recreation-ink))!important;border:1px solid rgba(var(--recreation-burgundy-rgb),.18)!important;box-shadow:0 24px 48px -30px rgba(var(--recreation-shadow-rgb),.56)!important}
body[data-app="recreation"] .sitewide-info-popover *,
body[data-app="recreation"] .baseline-info-popover *,
body[data-app="recreation"] .bl-info-popover *,
body[data-app="recreation"] [data-bl-info-popover] *,
body[data-app="recreation"] [role="tooltip"] *{color:inherit!important;-webkit-text-fill-color:currentColor!important}
/* Explicit, per-game browser-progress import. Guest progress is never copied silently. */
.games-browser-import{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
}
.games-browser-import>p{margin:0}
.games-browser-import-actions{display:flex;flex-wrap:wrap;gap:8px}
.games-browser-import-actions .action{min-height:42px}

/* Initial route authority: URL state is applied before first paint and handed
   to the live router without creating/removing temporary stylesheets. */
html[data-initial-section] body[data-app="recreation"] main.wrap > .section{display:none!important}
html[data-initial-section="hub"] body[data-app="recreation"] main.wrap > #hub,
html[data-initial-section="games"] body[data-app="recreation"] main.wrap > #games{display:block!important}
