/* =====================================================================
   Tongits Go - display-adaptive-bf1afc.css
   Mobile-first PH gaming portal. Phone canvas 320-430px.
   Palette: #1B263B base | #95A5A6 mute | #9370DB mid | #D8BFD8 soft | #800080 deep
   Direction: rounded titles + compact body | round buttons + square cards |
              outlined tile cards | question-driven rhythm | state-color motion |
              segmented action buttons
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --frameafce5-base: #1B263B;
  --frameafce5-base-700: #131b2b;
  --frameafce5-base-800: #0e1422;
  --frameafce5-mute: #95A5A6;
  --frameafce5-mid: #9370DB;
  --frameafce5-soft: #D8BFD8;
  --frameafce5-deep: #800080;
  --frameafce5-ink: #f3ecf6;
  --frameafce5-line: rgba(216, 191, 216, 0.22);
  --frameafce5-line-strong: rgba(216, 191, 216, 0.45);
  --frameafce5-tile: rgba(147, 112, 219, 0.10);
  --frameafce5-tile-hover: rgba(147, 112, 219, 0.22);
  --frameafce5-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  --frameafce5-radius-pill: 999px;
  --frameafce5-radius-btn: 14px;
  --frameafce5-radius-card: 4px;
  --frameafce5-header-h: 58px;
  --frameafce5-bottomnav-h: 64px;
  --frameafce5-font-round: "Quicksand", "Nunito", "Varela Round", system-ui, sans-serif;
  --frameafce5-font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --frameafce5-safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  font-family: var(--frameafce5-font-body);
  background: var(--frameafce5-base-800);
  color: var(--frameafce5-ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--frameafce5-soft); text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--frameafce5-soft);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4 {
  font-family: var(--frameafce5-font-round);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
  margin: 0 0 0.5em;
  color: #ffffff;
}

p { margin: 0 0 0.9em; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin: 0 0 0.4em; }

/* ---------- Phone canvas ---------- */
.frameafce5-canvas {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background:
    radial-gradient(1200px 320px at 50% -40px, rgba(147, 112, 219, 0.30), transparent 70%),
    linear-gradient(180deg, var(--frameafce5-base) 0%, var(--frameafce5-base-700) 38%, var(--frameafce5-base-800) 100%);
  min-height: 100vh;
  box-shadow: var(--frameafce5-shadow);
  overflow: hidden;
}

.frameafce5-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--frameafce5-deep);
  color: #fff;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.frameafce5-skip:focus { left: 0; }

/* ---------- Top brand bar ---------- */
.frameafce5-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--frameafce5-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.96) 0%, rgba(27, 38, 59, 0.92) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--frameafce5-line);
}

.frameafce5-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}
.frameafce5-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--frameafce5-mid);
  box-shadow: 0 2px 0 rgba(216, 191, 216, 0.25);
  flex: 0 0 auto;
}
.frameafce5-brand b {
  font-family: var(--frameafce5-font-round);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.frameafce5-brand b span { color: var(--frameafce5-soft); }

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

.frameafce5-btn {
  font-family: var(--frameafce5-font-round);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  border-radius: var(--frameafce5-radius-pill);
  padding: 9px 16px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color .15s ease, color .15s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.frameafce5-btn:active { transform: translateY(1px); }

.frameafce5-btn--primary {
  background: linear-gradient(135deg, var(--frameafce5-deep) 0%, #5a005a 100%);
  color: #fff;
  box-shadow: 0 2px 0 rgba(216, 191, 216, 0.18) inset, 0 4px 12px rgba(128, 0, 128, 0.35);
}
.frameafce5-btn--primary:active { background: linear-gradient(135deg, #5a005a 0%, #3d003d 100%); }

.frameafce5-btn--ghost {
  background: transparent;
  color: var(--frameafce5-soft);
  border: 1px solid var(--frameafce5-line-strong);
}
.frameafce5-btn--ghost:active { background: rgba(147, 112, 219, 0.18); color: #fff; }

.frameafce5-btn--block { width: 100%; }

.frameafce5-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--frameafce5-line);
  background: rgba(147, 112, 219, 0.12);
  color: var(--frameafce5-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, color .15s ease;
}
.frameafce5-iconbtn:active { background: rgba(147, 112, 219, 0.30); color: #fff; }
.frameafce5-iconbtn svg { width: 20px; height: 20px; }

/* ---------- Side drawer ---------- */
.frameafce5-scrim {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s;
  z-index: 80;
}
.frameafce5-scrim.is-open { opacity: 1; visibility: visible; }

.frameafce5-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 84%;
  max-width: 320px;
  background: linear-gradient(180deg, #16203a 0%, #0e1422 100%);
  border-left: 1px solid var(--frameafce5-line-strong);
  transform: translateX(105%);
  transition: transform .22s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: -18px 0 38px rgba(0, 0, 0, 0.45);
}
.frameafce5-drawer.is-open { transform: translateX(0); }

.frameafce5-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--frameafce5-line);
}
.frameafce5-drawer-head img { width: 32px; height: 32px; border-radius: 8px; }
.frameafce5-drawer-head b { font-family: var(--frameafce5-font-round); color: #fff; font-size: 16px; }

.frameafce5-drawer-body {
  padding: 10px 12px 24px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.frameafce5-drawer-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--frameafce5-mute);
  margin: 14px 8px 6px;
}
.frameafce5-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--frameafce5-ink);
  font-size: 14.5px;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease;
}
.frameafce5-drawer-link:active { background: rgba(147, 112, 219, 0.20); border-color: var(--frameafce5-line); }
.frameafce5-drawer-link svg { width: 18px; height: 18px; color: var(--frameafce5-soft); flex: 0 0 auto; }
.frameafce5-drawer-link span { flex: 1 1 auto; min-width: 0; }
.frameafce5-drawer-foot {
  padding: 14px 16px;
  border-top: 1px solid var(--frameafce5-line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Hero carousel ---------- */
.frameafce5-hero {
  margin: 12px 0 4px;
  padding: 0 12px;
}
.frameafce5-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--frameafce5-line);
  background: #0c1220;
}
.frameafce5-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.frameafce5-slide {
  flex: 0 0 100%;
  position: relative;
  cursor: pointer;
}
.frameafce5-slide img {
  width: 100%;
  height: 178px;
  object-fit: cover;
  display: block;
}
.frameafce5-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px 12px;
  background: linear-gradient(180deg, rgba(8, 12, 22, 0) 0%, rgba(8, 12, 22, 0.85) 70%);
  color: #fff;
}
.frameafce5-slide-cap b {
  font-family: var(--frameafce5-font-round);
  font-size: 16px;
  display: block;
  letter-spacing: 0.3px;
}
.frameafce5-slide-cap small {
  font-size: 12px;
  color: var(--frameafce5-soft);
  display: block;
  margin-top: 2px;
}

.frameafce5-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}
.frameafce5-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(216, 191, 216, 0.35);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .15s ease, width .15s ease;
}
.frameafce5-dot.is-active { background: var(--frameafce5-mid); width: 18px; border-radius: 4px; }

/* ---------- Section rhythm ---------- */
.frameafce5-main { padding: 6px 12px 24px; }

.frameafce5-section { margin: 22px 0 0; }
.frameafce5-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--frameafce5-line-strong);
}
.frameafce5-section-head h2 {
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.2px;
}
.frameafce5-section-head .frameafce5-kicker {
  display: block;
  font-family: var(--frameafce5-font-body);
  font-size: 11px;
  color: var(--frameafce5-mid);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-bottom: 4px;
}
.frameafce5-section-head a {
  font-size: 12px;
  color: var(--frameafce5-soft);
  white-space: nowrap;
  border-bottom: 1px dotted var(--frameafce5-soft);
}

/* ---------- Game grid + outlined tile cards ---------- */
.frameafce5-cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  margin: 0 0 6px;
  scrollbar-width: none;
}
.frameafce5-cat-tabs::-webkit-scrollbar { display: none; }
.frameafce5-cat-tab {
  font-family: var(--frameafce5-font-round);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: var(--frameafce5-radius-pill);
  background: rgba(147, 112, 219, 0.10);
  color: var(--frameafce5-soft);
  border: 1px solid var(--frameafce5-line);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.frameafce5-cat-tab:active { background: rgba(147, 112, 219, 0.25); }
.frameafce5-cat-tab.is-active {
  background: var(--frameafce5-deep);
  color: #fff;
  border-color: var(--frameafce5-deep);
}

.frameafce5-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.frameafce5-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 7px;
  background: var(--frameafce5-tile);
  border: 1px solid var(--frameafce5-line);
  border-radius: var(--frameafce5-radius-card);
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
}
.frameafce5-game:active {
  transform: translateY(1px);
  background: var(--frameafce5-tile-hover);
  border-color: var(--frameafce5-mid);
}
.frameafce5-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--frameafce5-line);
  background: #0c1220;
}
.frameafce5-game-name {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--frameafce5-ink);
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 26px;
  word-break: break-word;
}

.frameafce5-cat-block { margin: 18px 0 0; }
.frameafce5-cat-block:first-of-type { margin-top: 4px; }
.frameafce5-cat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--frameafce5-font-round);
  font-size: 16px;
  color: #fff;
  margin: 0 0 10px;
}
.frameafce5-cat-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--frameafce5-mid) 0%, var(--frameafce5-deep) 100%);
  border-radius: 2px;
}
.frameafce5-cat-title small {
  font-family: var(--frameafce5-font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--frameafce5-mute);
  margin-left: auto;
}

/* ---------- Segmented CTA ---------- */
.frameafce5-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 4px;
}
.frameafce5-segmented .frameafce5-btn { width: 100%; padding: 12px 10px; min-height: 44px; }
.frameafce5-seg-icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------- Info modules ---------- */
.frameafce5-card {
  background: rgba(147, 112, 219, 0.06);
  border: 1px solid var(--frameafce5-line);
  border-radius: var(--frameafce5-radius-card);
  padding: 14px;
  margin: 10px 0;
}
.frameafce5-card h3 {
  font-size: 15px;
  margin: 0 0 8px;
  color: #fff;
}
.frameafce5-card p { font-size: 13.5px; color: var(--frameafce5-ink); margin: 0 0 8px; }
.frameafce5-card p:last-child { margin-bottom: 0; }

.frameafce5-card--question > h3::before {
  content: "Q.";
  display: inline-block;
  color: var(--frameafce5-mid);
  font-family: var(--frameafce5-font-round);
  margin-right: 6px;
  font-weight: 700;
}

.frameafce5-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
}
.frameafce5-proscons div {
  padding: 10px;
  border-radius: var(--frameafce5-radius-card);
  border: 1px solid var(--frameafce5-line);
  background: rgba(147, 112, 219, 0.06);
}
.frameafce5-proscons h4 {
  font-size: 13px;
  margin: 0 0 6px;
  font-family: var(--frameafce5-font-round);
}
.frameafce5-proscons.pros h4 { color: #b6e3c6; }
.frameafce5-proscons.cons h4 { color: #f3b4b4; }
.frameafce5-proscons ul { margin: 0; padding-left: 1.05em; font-size: 12.5px; }

.frameafce5-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 8px 0 0;
}
.frameafce5-highlight {
  padding: 10px;
  border: 1px solid var(--frameafce5-line);
  border-left: 3px solid var(--frameafce5-mid);
  border-radius: var(--frameafce5-radius-card);
  background: rgba(147, 112, 219, 0.05);
}
.frameafce5-highlight b { font-family: var(--frameafce5-font-round); font-size: 13.5px; color: #fff; display: block; }
.frameafce5-highlight span { font-size: 12px; color: var(--frameafce5-mute); }

.frameafce5-achievements {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}
.frameafce5-achievements li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid var(--frameafce5-line);
  border-radius: var(--frameafce5-radius-card);
  background: rgba(147, 112, 219, 0.05);
}
.frameafce5-ach-mark {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--frameafce5-mid), var(--frameafce5-deep));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--frameafce5-font-round);
  font-weight: 700;
  font-size: 13px;
}
.frameafce5-ach-text b { font-family: var(--frameafce5-font-round); font-size: 13.5px; color: #fff; display: block; }
.frameafce5-ach-text span { font-size: 12px; color: var(--frameafce5-mute); }

.frameafce5-intro {
  font-size: 14px;
  color: var(--frameafce5-ink);
  margin: 4px 0 6px;
}
.frameafce5-intro a {
  color: var(--frameafce5-soft);
  border-bottom: 1px dotted var(--frameafce5-soft);
}

/* ---------- Inline links inside content ---------- */
.frameafce5-body a {
  color: var(--frameafce5-soft);
  border-bottom: 1px dotted var(--frameafce5-soft);
}
.frameafce5-body a:active { color: #fff; }

/* ---------- Extended footer (homepage) ---------- */
.frameafce5-extended {
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--frameafce5-line-strong);
}
.frameafce5-extended-block { margin: 0 0 16px; }
.frameafce5-extended-block h4 {
  font-size: 13px;
  color: var(--frameafce5-mid);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin: 0 0 8px;
  font-family: var(--frameafce5-font-round);
}
.frameafce5-extended-block p { font-size: 12.5px; color: var(--frameafce5-mute); margin: 0 0 8px; }
.frameafce5-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.frameafce5-promo-grid button {
  font-family: var(--frameafce5-font-round);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  border-radius: var(--frameafce5-radius-btn);
  border: 1px solid var(--frameafce5-line-strong);
  background: rgba(147, 112, 219, 0.10);
  color: var(--frameafce5-soft);
  cursor: pointer;
  min-height: 40px;
  transition: background-color .15s ease, color .15s ease;
}
.frameafce5-promo-grid button:active { background: var(--frameafce5-deep); color: #fff; border-color: var(--frameafce5-deep); }

.frameafce5-directory {
  columns: 2;
  column-gap: 12px;
  font-size: 12.5px;
}
.frameafce5-directory a {
  display: block;
  padding: 4px 0;
  color: var(--frameafce5-ink);
  break-inside: avoid;
  border-bottom: 1px dotted transparent;
}
.frameafce5-directory a:active { color: var(--frameafce5-soft); }

.frameafce5-disclaimer {
  font-size: 11.5px;
  color: var(--frameafce5-mute);
  line-height: 1.5;
  padding: 10px;
  border: 1px solid var(--frameafce5-line);
  border-radius: var(--frameafce5-radius-card);
  background: rgba(0, 0, 0, 0.18);
}

/* ---------- Footer copyright ---------- */
.frameafce5-footer {
  padding: 14px 12px calc(14px + var(--frameafce5-safe-bottom));
  text-align: center;
  border-top: 1px solid var(--frameafce5-line);
  margin-top: 18px;
}
.frameafce5-footer small {
  font-size: 11.5px;
  color: var(--frameafce5-mute);
  display: block;
}
.frameafce5-footer .frameafce5-brand-line {
  font-family: var(--frameafce5-font-round);
  color: var(--frameafce5-soft);
  font-size: 13px;
  margin-bottom: 4px;
}

/* ---------- Bottom nav ---------- */
.frameafce5-bottomnav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(var(--frameafce5-bottomnav-h) + var(--frameafce5-safe-bottom));
  padding-bottom: var(--frameafce5-safe-bottom);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.94) 0%, rgba(8, 12, 22, 0.98) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--frameafce5-line-strong);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 70;
}
.frameafce5-navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  color: var(--frameafce5-mute);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--frameafce5-font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, transform .10s ease;
  text-decoration: none;
  min-height: 44px;
}
.frameafce5-navitem:active { transform: translateY(1px); }
.frameafce5-navitem span { white-space: nowrap; }

.frameafce5-navtile {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(147, 112, 219, 0.14);
  border: 1px solid var(--frameafce5-line);
  color: var(--frameafce5-soft);
  transition: background-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.frameafce5-navtile svg { width: 16px; height: 16px; }

.frameafce5-navitem.is-active { color: #fff; }
.frameafce5-navitem.is-active .frameafce5-navtile {
  background: linear-gradient(135deg, var(--frameafce5-mid), var(--frameafce5-deep));
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(128, 0, 128, 0.35);
}
.frameafce5-navitem--promo .frameafce5-navtile {
  background: linear-gradient(135deg, var(--frameafce5-deep), #4d004d);
  color: #fff;
  border-color: transparent;
}

/* ---------- Spacer so content isn't hidden behind fixed bottom nav ---------- */
.frameafce5-bottom-spacer {
  height: calc(var(--frameafce5-bottomnav-h) + var(--frameafce5-safe-bottom) + 6px);
}

/* ---------- Helpers ---------- */
.frameafce5-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive: 360px+ a touch more breathing room ---------- */
@media (min-width: 360px) {
  .frameafce5-grid { gap: 9px; }
  .frameafce5-game-name { font-size: 11.5px; }
  .frameafce5-section-head h2 { font-size: 19px; }
}

/* 375-430px: keep 4 columns but slightly larger tiles, more padding */
@media (min-width: 375px) {
  body { font-size: 15.5px; }
  .frameafce5-hero { padding: 0 14px; }
  .frameafce5-main { padding: 8px 14px 26px; }
  .frameafce5-grid { gap: 10px; }
  .frameafce5-game { padding: 9px 5px 8px; }
  .frameafce5-slide img { height: 196px; }
}

@media (min-width: 414px) {
  .frameafce5-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; }
  .frameafce5-promo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Desktop: center the phone canvas, do not stretch */
@media (min-width: 540px) {
  body { background: #060912; }
  .frameafce5-canvas { margin-top: 0; min-height: 100vh; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
