/* ==========================================================================
   play time games - mobile chrome stylesheet
   Palette: #E0FFFF / #5D5D5D / #273746 / #E9ECEF / #BDC3C7 / #ADD8E6
   Voice: tech headings + open body, near-square tool corners, grouped cover
   cards, compact metric rhythm, restrained fades, light-rounded CTA groups.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --framef4cd7-ink: #273746;
  --framef4cd7-ink-deep: #1d2933;
  --framef4cd7-ink-panel: #223140;
  --framef4cd7-steel: #5D5D5D;
  --framef4cd7-frost: #E0FFFF;
  --framef4cd7-mist: #E9ECEF;
  --framef4cd7-silver: #BDC3C7;
  --framef4cd7-sky: #ADD8E6;

  --framef4cd7-line: rgba(173, 216, 230, 0.22);
  --framef4cd7-line-soft: rgba(189, 195, 199, 0.16);
  --framef4cd7-line-hard: rgba(173, 216, 230, 0.4);

  --framef4cd7-font-head: "Rajdhani", "Arial Narrow", Arial, sans-serif;
  --framef4cd7-font-body: "Nunito Sans", "Segoe UI", Arial, sans-serif;

  --framef4cd7-bar-h: 60px;
  --framef4cd7-rail-h: 58px;

  --framef4cd7-r-tiny: 2px;   /* near-square tool corners */
  --framef4cd7-r-tool: 3px;
  --framef4cd7-r-cta: 9px;    /* light-rounded CTA corners */
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #273746;
  background: color-mix(in srgb, #273746 74%, #000000);
  color: var(--framef4cd7-mist);
  font-family: var(--framef4cd7-font-body);
  font-size: 14px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
  margin: 0;
}

a {
  color: var(--framef4cd7-sky);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, p {
  margin: 0;
  overflow-wrap: break-word;
}

:focus-visible {
  outline: 2px solid var(--framef4cd7-sky);
  outline-offset: 2px;
  border-radius: var(--framef4cd7-r-tool);
}

.framef4cd7-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.framef4cd7-skip {
  position: absolute;
  left: 10px;
  top: -48px;
  z-index: 90;
  padding: 10px 14px;
  background: var(--framef4cd7-frost);
  color: var(--framef4cd7-ink);
  font-family: var(--framef4cd7-font-head);
  font-weight: 700;
  border-radius: var(--framef4cd7-r-cta);
  transition: top 0.2s ease;
}

.framef4cd7-skip:focus { top: 8px; }

/* ---------- phone canvas shell ---------- */
.framef4cd7-shell {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 52% at 50% 0%, rgba(173, 216, 230, 0.08), transparent 62%),
    linear-gradient(180deg, #2b3d4e 0%, var(--framef4cd7-ink) 34%, var(--framef4cd7-ink) 100%);
  overflow-x: clip;
}

/* ---------- top action bar (logo-dominant) ---------- */
.framef4cd7-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 60;
  background: rgba(29, 41, 51, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--framef4cd7-line);
}

.framef4cd7-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: var(--framef4cd7-bar-h);
  padding: 8px 10px;
}

.framef4cd7-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--framef4cd7-frost);
}

.framef4cd7-brand:hover { text-decoration: none; }

.framef4cd7-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--framef4cd7-line-hard);
  border-radius: var(--framef4cd7-r-tool);
  background: var(--framef4cd7-ink-panel);
  object-fit: cover;
}

.framef4cd7-brand-name {
  font-family: var(--framef4cd7-font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: lowercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.framef4cd7-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* ---------- buttons (light-rounded text CTA group) ---------- */
.framef4cd7-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  font-family: var(--framef4cd7-font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--framef4cd7-r-cta);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}

.framef4cd7-btn:active { transform: translateY(1px); }

.framef4cd7-btn-solid {
  background: var(--framef4cd7-frost);
  color: var(--framef4cd7-ink);
}

.framef4cd7-btn-solid:hover {
  background: #ffffff;
  text-decoration: none;
}

.framef4cd7-btn-ghost {
  background: rgba(173, 216, 230, 0.06);
  color: var(--framef4cd7-sky);
  border-color: var(--framef4cd7-line-hard);
}

.framef4cd7-btn-ghost:hover {
  background: rgba(173, 216, 230, 0.16);
  text-decoration: none;
}

.framef4cd7-btn-lg {
  flex: 1 1 0;
  min-height: 46px;
  font-size: 15px;
}

.framef4cd7-btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 13px;
}

/* ---------- compact route panel (menu) ---------- */
.framef4cd7-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--framef4cd7-line);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(173, 216, 230, 0.06);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.framef4cd7-menu-btn:hover,
.framef4cd7-menu-btn:focus-visible { background: rgba(173, 216, 230, 0.16); }

.framef4cd7-menu-btn svg {
  width: 20px;
  height: 20px;
  color: var(--framef4cd7-frost);
}

.framef4cd7-routes {
  display: none;
  border-top: 1px solid var(--framef4cd7-line-soft);
  background: rgba(29, 41, 51, 0.99);
  padding: 10px 12px 14px;
}

.framef4cd7-routes.is-open { display: block; }

.framef4cd7-route-group + .framef4cd7-route-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--framef4cd7-line-soft);
}

.framef4cd7-route-tag {
  font-family: var(--framef4cd7-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--framef4cd7-steel);
  margin-bottom: 4px;
}

.framef4cd7-route-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.framef4cd7-route-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: var(--framef4cd7-r-tool);
  color: var(--framef4cd7-mist);
  font-size: 13px;
  font-weight: 600;
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.framef4cd7-route-list a:hover {
  background: rgba(173, 216, 230, 0.1);
  text-decoration: none;
}

.framef4cd7-route-list a[aria-current="page"] {
  color: var(--framef4cd7-frost);
  border-left-color: var(--framef4cd7-sky);
  background: rgba(173, 216, 230, 0.12);
}

/* ---------- main canvas ---------- */
.framef4cd7-main {
  padding: calc(var(--framef4cd7-bar-h) + 12px) 12px 0;
}

/* ---------- hero ---------- */
.framef4cd7-hero {
  padding: 6px 2px 4px;
}

.framef4cd7-hero-title {
  font-family: var(--framef4cd7-font-head);
  font-size: 25px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--framef4cd7-frost);
}

.framef4cd7-hero-lede {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-hero-lede strong { color: var(--framef4cd7-mist); }

.framef4cd7-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.framef4cd7-metric-chip {
  flex: 1 1 30%;
  min-width: 96px;
  border: 1px solid var(--framef4cd7-line-soft);
  border-left: 3px solid var(--framef4cd7-sky);
  border-radius: var(--framef4cd7-r-tool);
  padding: 7px 9px;
  background: rgba(34, 49, 64, 0.55);
}

.framef4cd7-metric-chip b {
  display: block;
  font-family: var(--framef4cd7-font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--framef4cd7-frost);
  line-height: 1.2;
}

.framef4cd7-metric-chip span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--framef4cd7-steel);
}

.framef4cd7-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* ---------- promo carousel ---------- */
.framef4cd7-carousel {
  position: relative;
  margin: 16px 0 4px;
  border: 1px solid var(--framef4cd7-line);
  border-radius: var(--framef4cd7-r-tool);
  overflow: hidden;
  background: var(--framef4cd7-ink-panel);
  aspect-ratio: 43 / 18;
}

.framef4cd7-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--framef4cd7-ink-deep);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.framef4cd7-slide.is-live {
  opacity: 1;
  visibility: visible;
}

.framef4cd7-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framef4cd7-slide-note {
  position: absolute;
  left: 0;
  right: 34%;
  bottom: 0;
  display: block;
  padding: 22px 12px 10px;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(20, 29, 38, 0.92) 62%);
}

.framef4cd7-slide-note b {
  display: block;
  font-family: var(--framef4cd7-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--framef4cd7-frost);
}

.framef4cd7-slide-note span {
  display: block;
  font-size: 11.5px;
  color: var(--framef4cd7-silver);
  line-height: 1.35;
}

.framef4cd7-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(29, 41, 51, 0.55);
  color: var(--framef4cd7-frost);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.framef4cd7-carousel-arrow:hover { background: rgba(29, 41, 51, 0.85); }

.framef4cd7-carousel-arrow svg { width: 16px; height: 16px; }

.framef4cd7-carousel-prev { left: 0; border-radius: 0 var(--framef4cd7-r-tool) var(--framef4cd7-r-tool) 0; }
.framef4cd7-carousel-next { right: 0; border-radius: var(--framef4cd7-r-tool) 0 0 var(--framef4cd7-r-tool); }

.framef4cd7-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.framef4cd7-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--framef4cd7-silver);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.framef4cd7-dot.is-live {
  background: var(--framef4cd7-sky);
  border-color: var(--framef4cd7-sky);
  transform: scale(1.15);
}

/* ---------- category quick rail ---------- */
.framef4cd7-cat-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.framef4cd7-cat-rail::-webkit-scrollbar { display: none; }

.framef4cd7-cat-rail a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  font-family: var(--framef4cd7-font-head);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--framef4cd7-mist);
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(34, 49, 64, 0.6);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.framef4cd7-cat-rail a:hover {
  border-color: var(--framef4cd7-line-hard);
  color: var(--framef4cd7-frost);
  text-decoration: none;
}

/* ---------- grouped cover-card decks ---------- */
.framef4cd7-deck,
.framef4cd7-panel {
  margin: 14px 0;
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(34, 49, 64, 0.4);
}

.framef4cd7-deck-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px 8px;
  border-bottom: 1px solid var(--framef4cd7-line-soft);
  background: linear-gradient(180deg, rgba(173, 216, 230, 0.07), rgba(173, 216, 230, 0));
  border-radius: var(--framef4cd7-r-tool) var(--framef4cd7-r-tool) 0 0;
}

.framef4cd7-deck-head h2 {
  font-family: var(--framef4cd7-font-head);
  font-size: 18.5px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--framef4cd7-frost);
}

.framef4cd7-deck-count {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 3px 8px;
  font-family: var(--framef4cd7-font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--framef4cd7-sky);
  border: 1px solid var(--framef4cd7-line);
  border-radius: var(--framef4cd7-r-tiny);
  background: rgba(173, 216, 230, 0.08);
  white-space: nowrap;
}

.framef4cd7-deck-note {
  padding: 10px 12px 4px;
  font-size: 13px;
  color: var(--framef4cd7-silver);
}

/* game grid: 4 columns at 320px, 5 columns from 375px */
.framef4cd7-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 7px;
  padding: 10px 12px 14px;
}

.framef4cd7-game {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(173, 216, 230, 0.2);
}

.framef4cd7-game-cover {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  background: var(--framef4cd7-ink-panel);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.framef4cd7-game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framef4cd7-game:hover .framef4cd7-game-cover,
.framef4cd7-game:focus-visible .framef4cd7-game-cover {
  border-color: var(--framef4cd7-sky);
  transform: translateY(-2px);
}

.framef4cd7-game:active .framef4cd7-game-cover { transform: scale(0.97); }

.framef4cd7-game-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--framef4cd7-mist);
  text-align: center;
  min-height: 29px;
}

/* ---------- content panels ---------- */
.framef4cd7-panel { padding: 12px 13px 15px; }

.framef4cd7-panel h2 {
  font-family: var(--framef4cd7-font-head);
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--framef4cd7-frost);
}

.framef4cd7-panel-intro {
  margin-top: 8px;
  font-size: 13px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-panel-intro strong { color: var(--framef4cd7-mist); }

/* steps */
.framef4cd7-steps {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.framef4cd7-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: start;
}

.framef4cd7-step-n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  font-family: var(--framef4cd7-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--framef4cd7-sky);
  border: 1px solid var(--framef4cd7-line-hard);
  border-radius: var(--framef4cd7-r-tiny);
  background: rgba(173, 216, 230, 0.08);
}

.framef4cd7-step h3 {
  font-family: var(--framef4cd7-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--framef4cd7-frost);
  line-height: 1.25;
}

.framef4cd7-step p {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-panel-tail {
  margin-top: 12px;
  padding: 9px 11px;
  border-left: 3px solid var(--framef4cd7-sky);
  background: rgba(173, 216, 230, 0.06);
  border-radius: var(--framef4cd7-r-tiny);
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

/* achievements metric tiles */
.framef4cd7-metric-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.framef4cd7-metric-tile {
  padding: 10px 11px;
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(34, 49, 64, 0.62);
}

.framef4cd7-metric-tile em {
  display: block;
  font-style: normal;
  font-family: var(--framef4cd7-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--framef4cd7-steel);
}

.framef4cd7-metric-tile b {
  display: block;
  margin-top: 3px;
  font-family: var(--framef4cd7-font-head);
  font-size: 17.5px;
  font-weight: 700;
  color: var(--framef4cd7-sky);
  line-height: 1.15;
}

.framef4cd7-metric-tile span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--framef4cd7-silver);
}

/* promotion rows */
.framef4cd7-promo-rows {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.framef4cd7-promo-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--framef4cd7-line-soft);
  border-left: 3px solid var(--framef4cd7-sky);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(34, 49, 64, 0.62);
}

.framef4cd7-promo-row h3 {
  font-family: var(--framef4cd7-font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--framef4cd7-frost);
}

.framef4cd7-promo-row p {
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-promo-row .framef4cd7-btn { justify-self: start; }

/* recap list */
.framef4cd7-recap {
  margin-top: 12px;
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  overflow: hidden;
}

.framef4cd7-recap li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 9px 11px;
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-recap li + li { border-top: 1px solid var(--framef4cd7-line-soft); }

.framef4cd7-recap li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  background: var(--framef4cd7-sky);
  border-radius: var(--framef4cd7-r-tiny);
}

.framef4cd7-recap b { color: var(--framef4cd7-mist); }

/* fact tiles */
.framef4cd7-fact-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.framef4cd7-fact {
  padding: 10px 11px;
  border: 1px solid var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  background: rgba(34, 49, 64, 0.62);
}

.framef4cd7-fact b {
  display: block;
  font-family: var(--framef4cd7-font-head);
  font-size: 19px;
  font-weight: 700;
  color: var(--framef4cd7-frost);
  line-height: 1.1;
}

.framef4cd7-fact span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--framef4cd7-silver);
}

.framef4cd7-fact-outro {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

/* ---------- homepage extended footer ---------- */
.framef4cd7-sitefoot {
  margin-top: 18px;
  border-top: 1px solid var(--framef4cd7-line);
  background: rgba(29, 41, 51, 0.55);
}

.framef4cd7-ext {
  padding: 16px 13px 12px;
}

.framef4cd7-ext-brand {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.framef4cd7-ext-brand img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--framef4cd7-line-hard);
  border-radius: var(--framef4cd7-r-tool);
  background: var(--framef4cd7-ink-panel);
  object-fit: cover;
}

.framef4cd7-ext-brand p {
  font-size: 12.5px;
  color: var(--framef4cd7-silver);
}

.framef4cd7-ext-heading {
  margin-top: 16px;
  font-family: var(--framef4cd7-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--framef4cd7-steel);
}

/* two-column page directory */
.framef4cd7-ext-dir {
  margin-top: 6px;
  columns: 2;
  column-gap: 14px;
}

.framef4cd7-ext-dir li {
  break-inside: avoid;
}

.framef4cd7-ext-dir a {
  display: block;
  padding: 7px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--framef4cd7-mist);
  border-bottom: 1px solid var(--framef4cd7-line-soft);
}

.framef4cd7-ext-dir a:hover { color: var(--framef4cd7-frost); }

/* promotion action cluster */
.framef4cd7-ext-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.framef4cd7-ext-actions .framef4cd7-btn {
  width: 100%;
  min-height: 44px;
  font-size: 13px;
  padding: 6px 8px;
  letter-spacing: 0.2px;
}

.framef4cd7-ext-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 2px;
}

.framef4cd7-ext-links button {
  background: none;
  border: 0;
  padding: 6px 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--framef4cd7-sky);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.framef4cd7-ext-links button:hover { color: var(--framef4cd7-frost); }

.framef4cd7-ext-disclaimer {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px dashed var(--framef4cd7-line-soft);
  border-radius: var(--framef4cd7-r-tool);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--framef4cd7-steel);
}

/* legal line */
.framef4cd7-legal {
  padding: 12px 13px 14px;
  border-top: 1px solid var(--framef4cd7-line-soft);
  text-align: center;
}

.framef4cd7-legal p {
  font-size: 11.5px;
  letter-spacing: 0.4px;
  color: var(--framef4cd7-steel);
}

/* ---------- bottom navigation rail ---------- */
.framef4cd7-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(29, 41, 51, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--framef4cd7-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.framef4cd7-rail-indicator {
  position: absolute;
  top: 0;
  left: 8%;
  width: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--framef4cd7-sky), var(--framef4cd7-frost));
  border-radius: 0 0 2px 2px;
  transition: left 0.35s cubic-bezier(0.22, 0.9, 0.36, 1), width 0.35s cubic-bezier(0.22, 0.9, 0.36, 1);
}

.framef4cd7-rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--framef4cd7-rail-h);
  padding: 6px 2px 7px;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--framef4cd7-steel);
  transition: color 0.2s ease, transform 0.2s ease;
}

.framef4cd7-rail-item svg {
  width: 22px;
  height: 22px;
}

.framef4cd7-rail-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.framef4cd7-rail-item:hover { color: var(--framef4cd7-silver); }

a.framef4cd7-rail-item:hover { text-decoration: none; }

.framef4cd7-rail-item.is-active {
  color: var(--framef4cd7-sky);
  transform: translateY(-2px);
}

.framef4cd7-rail-item.is-active .framef4cd7-rail-label { color: var(--framef4cd7-frost); }

/* keep main content and footer clear of the fixed rail */
.framef4cd7-main {
  padding-bottom: calc(var(--framef4cd7-rail-h) + 22px + env(safe-area-inset-bottom, 0px));
}

.framef4cd7-sitefoot {
  padding-bottom: calc(var(--framef4cd7-rail-h) + 6px + env(safe-area-inset-bottom, 0px));
}

/* ---------- restrained reveal ---------- */
html.framef4cd7-js .framef4cd7-reveal:not(.is-on) {
  opacity: 0;
  transform: translateY(12px);
}

.framef4cd7-reveal {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- width adaptations ---------- */
@media (min-width: 375px) {
  .framef4cd7-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .framef4cd7-hero-title { font-size: 27px; }
  .framef4cd7-deck-head h2 { font-size: 19.5px; }
}

@media (min-width: 430px) {
  body { background: color-mix(in srgb, #273746 68%, #000000); }

  .framef4cd7-shell {
    border-left: 1px solid var(--framef4cd7-line-soft);
    border-right: 1px solid var(--framef4cd7-line-soft);
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.5);
  }

  .framef4cd7-hero-title { font-size: 29px; }
  .framef4cd7-panel-intro,
  .framef4cd7-deck-note { font-size: 13.5px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .framef4cd7-reveal,
  .framef4cd7-slide,
  .framef4cd7-rail-indicator,
  .framef4cd7-game-cover,
  .framef4cd7-btn,
  .framef4cd7-rail-item {
    transition: none;
  }

  html.framef4cd7-js .framef4cd7-reveal:not(.is-on) {
    opacity: 1;
    transform: none;
  }
}
