/* /traffic-escape/ — page frame around the Traffic Escape stage (port of the Pocket Games title).
   The stage itself (lot, HUD, lobby card) lives in /traffic-escape/traffic-escape.css?v=e0811e5f and keeps the
   app's own parkside palette as game art; the frame here reads site tokens. Shared by all locales. */

.te-play { display: grid; gap: var(--space-3); text-align: center; }
.te-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--text);
}
:lang(zh) .te-h1, :lang(ja) .te-h1 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-3); line-height: 1.15; }
:lang(ru) .te-h1, :lang(hi) .te-h1 { line-height: 1.15; }
:lang(ar) .te-h1 { line-height: 1.4; letter-spacing: 0; }
.te-h1-sub { max-inline-size: 60ch; margin: 0 auto; color: var(--text-muted); text-wrap: pretty; }

/* Mode tabs (the play shell mirrors them as chips on the cover; the lobby card has its own toggle). */
.te-mode-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.te-mode-tab {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-block-size: var(--tap); padding-inline: var(--space-4);
  border-radius: var(--radius-pill, 999px); border: 1px solid var(--border);
  background: var(--surface-1); color: var(--text-muted);
  font-family: var(--font-body); font-weight: 600; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.te-mode-tab:hover { color: var(--text); background: var(--surface-2); }
.te-mode-tab[aria-selected="true"] { color: var(--text); border-color: color-mix(in oklab, var(--accent) 60%, transparent); background: color-mix(in oklab, var(--accent) 16%, var(--surface-1)); }
.te-mode-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.te-play .arcade-rank { text-align: start; }
.te-lb-cta { display: flex; justify-content: center; }
