/* ==========================================================================
   igov.click  -  layers-adaptive-b1d1d7.css
   Mobile-first stylesheet for the igov phone canvas (320 - 430 px).
   Design language: deep slate canvas, lemon text, amber accent,
   stroke-led surfaces, restrained radii, sliding focus indicators.
   All classes and variables carry the framed1d7d- prefix.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --framed1d7d-canvas: #273746;            /* page canvas (deep slate)   */
  --framed1d7d-canvas-deep: #1c2935;       /* behind the canvas          */
  --framed1d7d-surface: #2f4254;           /* raised tiles and panels    */
  --framed1d7d-surface-lift: #375063;      /* pressed / hover surface    */
  --framed1d7d-ink: #fffacd;               /* lemon primary text         */
  --framed1d7d-ink-soft: rgba(255, 250, 205, 0.82);
  --framed1d7d-ink-faint: rgba(255, 250, 205, 0.60);
  --framed1d7d-flare: #ffb347;             /* amber accent               */
  --framed1d7d-flare-deep: #e89a28;        /* pressed amber              */
  --framed1d7d-flare-veil: rgba(255, 179, 71, 0.14);
  --framed1d7d-line: rgba(255, 250, 205, 0.16);
  --framed1d7d-line-strong: rgba(255, 250, 205, 0.32);
  --framed1d7d-radius-s: 5px;
  --framed1d7d-radius-m: 8px;
  --framed1d7d-radius-l: 12px;
  --framed1d7d-topbar-h: 116px;            /* two-layer fixed header     */
  --framed1d7d-strip-h: 54px;              /* sticky category strip      */
  --framed1d7d-bnav-h: 64px;               /* fixed bottom navigation    */
  --framed1d7d-font: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 2. Base and reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--framed1d7d-font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.68;
  color: var(--framed1d7d-ink);
  background:
    radial-gradient(1200px 500px at 50% -160px, #33475a 0%, transparent 70%),
    var(--framed1d7d-canvas-deep);
  min-height: 100vh;
  min-height: 100svh;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a { color: var(--framed1d7d-flare); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { list-style-position: inside; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--framed1d7d-ink);
}

p { overflow-wrap: break-word; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--framed1d7d-ink);
  outline-offset: 2px;
  border-radius: var(--framed1d7d-radius-s);
}

::selection { background: var(--framed1d7d-flare); color: #273746; }

/* ---------- 3. Phone canvas (max 430 px, centered on wide screens) ------ */
.framed1d7d-page {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--framed1d7d-canvas);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  overflow-x: clip;
}

.framed1d7d-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--framed1d7d-flare);
  color: #273746;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: var(--framed1d7d-radius-m);
}
.framed1d7d-skip:focus { left: 12px; top: 12px; }

main.framed1d7d-main {
  padding-top: calc(var(--framed1d7d-topbar-h) + 12px);
  padding-bottom: calc(var(--framed1d7d-bnav-h) + 30px + env(safe-area-inset-bottom));
}

/* ---------- 4. Fixed two-layer header ---------- */
.framed1d7d-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 90;
  background: rgba(31, 42, 54, 0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--framed1d7d-line-strong);
}

/* Brand layer: real logo image + site name only */
.framed1d7d-brandrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 6px;
}

.framed1d7d-logo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--framed1d7d-radius-m);
  border: 1px solid var(--framed1d7d-line-strong);
  background: var(--framed1d7d-surface);
  object-fit: cover;
}

.framed1d7d-brandname {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--framed1d7d-ink);
  line-height: 1;
}
.framed1d7d-brandname::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--framed1d7d-flare);
}

/* Action layer: Login (outlined) + Register (solid) + menu trigger */
.framed1d7d-actionrow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 4px 14px 10px;
}

.framed1d7d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--framed1d7d-radius-m);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  text-decoration: none;
}
.framed1d7d-btn:active { transform: scale(0.97); }
.framed1d7d-btn:hover { text-decoration: none; }

.framed1d7d-btn--solid {
  background: var(--framed1d7d-flare);
  color: #22303d;
  border: 1.5px solid var(--framed1d7d-flare);
}
.framed1d7d-btn--solid:active { background: var(--framed1d7d-flare-deep); border-color: var(--framed1d7d-flare-deep); }

.framed1d7d-btn--ghost {
  background: transparent;
  color: var(--framed1d7d-flare);
  border: 1.5px solid var(--framed1d7d-flare);
}
.framed1d7d-btn--ghost:active { background: var(--framed1d7d-flare-veil); }

.framed1d7d-actionrow .framed1d7d-btn { flex: 1 1 auto; }

.framed1d7d-menubtn {
  flex: 0 0 46px;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1.5px solid var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-m);
  color: var(--framed1d7d-ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.framed1d7d-menubtn:active { border-color: var(--framed1d7d-flare); color: var(--framed1d7d-flare); }
.framed1d7d-menubtn span {
  display: block;
  width: 18px;
  border-top: 2px solid currentColor;
}
.framed1d7d-menubtn span + span { border-top-width: 2px; width: 14px; }
.framed1d7d-menubtn span + span + span { width: 18px; }

/* ---------- 5. Sectioned menu overlay (page-style) ---------- */
.framed1d7d-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  max-width: 430px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(24, 34, 45, 0.985);
  overflow-y: auto;
  padding: 14px 18px calc(30px + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.framed1d7d-menu.framed1d7d-menu--open { opacity: 1; visibility: visible; }

.framed1d7d-menuhead {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0 12px;
  background: linear-gradient(rgba(24, 34, 45, 1) 78%, rgba(24, 34, 45, 0));
  border-bottom: 1px solid var(--framed1d7d-line);
}
.framed1d7d-menuhead img { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--framed1d7d-line-strong); }
.framed1d7d-menuhead-title { font-size: 17px; font-weight: 800; }

.framed1d7d-menuclose {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-m);
  color: var(--framed1d7d-ink-soft);
  font-size: 18px;
  line-height: 1;
}
.framed1d7d-menuclose:active { border-color: var(--framed1d7d-flare); color: var(--framed1d7d-flare); }

.framed1d7d-menusec { margin-top: 18px; }
.framed1d7d-menusec-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--framed1d7d-flare);
  padding-bottom: 6px;
}
.framed1d7d-menulinks {
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-m);
  overflow: hidden;
  background: rgba(47, 66, 84, 0.45);
}
.framed1d7d-menulinks a,
.framed1d7d-menulinks button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--framed1d7d-ink);
  border-bottom: 1px solid var(--framed1d7d-line);
  text-decoration: none;
}
.framed1d7d-menulinks a:last-child,
.framed1d7d-menulinks button:last-child { border-bottom: 0; }
.framed1d7d-menulinks a:active,
.framed1d7d-menulinks button:active { background: var(--framed1d7d-flare-veil); color: var(--framed1d7d-flare); }
.framed1d7d-menulinks i {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: auto;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--framed1d7d-flare);
  opacity: 0.75;
}
.framed1d7d-menulinks em {
  font-style: normal;
  font-size: 11px;
  color: var(--framed1d7d-ink-faint);
  font-weight: 500;
}
.framed1d7d-menuexit {
  margin-top: 22px;
  width: 100%;
}

/* ---------- 6. Hero ---------- */
.framed1d7d-hero { padding: 4px 16px 4px; }

.framed1d7d-hero h1 {
  font-size: clamp(25px, 7.4vw, 31px);
  margin-bottom: 10px;
}
.framed1d7d-hero h1 b {
  color: var(--framed1d7d-flare);
  font-weight: 800;
}

.framed1d7d-hero-lead {
  font-size: 14px;
  color: var(--framed1d7d-ink-soft);
  max-width: 40ch;
}

.framed1d7d-hero-cta {
  display: flex;
  gap: 10px;
  margin: 14px 0 12px;
}
.framed1d7d-hero-cta .framed1d7d-btn { flex: 1 1 0; }

.framed1d7d-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.framed1d7d-trust li {
  list-style: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--framed1d7d-ink-faint);
  border: 1px solid var(--framed1d7d-line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 250, 205, 0.03);
}
.framed1d7d-trust li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--framed1d7d-flare);
  vertical-align: 1px;
}

/* ---------- 7. Promo carousel ---------- */
.framed1d7d-carousel {
  position: relative;
  margin: 14px 16px 0;
  border: 1px solid var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-l);
  overflow: hidden;
  background: var(--framed1d7d-surface);
}

.framed1d7d-track {
  display: flex;
  width: 100%;
  transition: transform 0.45s cubic-bezier(0.33, 0.9, 0.35, 1);
}

.framed1d7d-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 179, 71, 0.25);
}
.framed1d7d-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.framed1d7d-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, rgba(21, 30, 40, 0) 0%, rgba(21, 30, 40, 0.88) 58%);
  text-align: left;
}
.framed1d7d-slide strong {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--framed1d7d-ink);
  line-height: 1.3;
}
.framed1d7d-slide small {
  font-size: 11.5px;
  color: var(--framed1d7d-ink-soft);
  font-weight: 500;
}
.framed1d7d-slide small b { color: var(--framed1d7d-flare); font-weight: 700; }

.framed1d7d-dots {
  position: absolute;
  bottom: 9px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.framed1d7d-dot {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 205, 0.32);
  transition: background-color 0.25s ease, width 0.25s ease;
}
.framed1d7d-dot--on { background: var(--framed1d7d-flare); width: 30px; }

/* ---------- 8. Sticky category strip with sliding indicator ---------- */
.framed1d7d-catstrip {
  position: sticky;
  top: var(--framed1d7d-topbar-h);
  z-index: 60;
  margin-top: 16px;
  background: rgba(39, 55, 70, 0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--framed1d7d-line);
  border-bottom: 1px solid var(--framed1d7d-line-strong);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.framed1d7d-catstrip::-webkit-scrollbar { display: none; }

.framed1d7d-stripinner {
  position: relative;
  display: flex;
  gap: 4px;
  padding: 9px 10px;
  min-width: max-content;
}

.framed1d7d-chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--framed1d7d-ink-soft);
  transition: color 0.2s ease;
}
.framed1d7d-chip:active { color: var(--framed1d7d-flare); }
.framed1d7d-chip--on { color: var(--framed1d7d-flare); font-weight: 800; }

/* the sliding focus indicator under the active chip */
.framed1d7d-chipbar {
  position: absolute;
  z-index: 0;
  top: 9px;
  height: 36px;
  border: 1px solid var(--framed1d7d-flare);
  border-radius: 999px;
  background: var(--framed1d7d-flare-veil);
  transition: left 0.3s cubic-bezier(0.35, 0.9, 0.3, 1),
    width 0.3s cubic-bezier(0.35, 0.9, 0.3, 1);
  will-change: left, width;
}

/* ---------- 9. Game arena sections ---------- */
.framed1d7d-arena {
  padding: 24px 16px 4px;
  scroll-margin-top: calc(var(--framed1d7d-topbar-h) + var(--framed1d7d-strip-h) + 8px);
}

.framed1d7d-arena-head {
  display: flex;
  align-items: baseline;
  gap: 9px;
  border-bottom: 1px solid var(--framed1d7d-line-strong);
  padding-bottom: 7px;
  margin-bottom: 9px;
}
.framed1d7d-arena-no {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--framed1d7d-flare);
  border: 1px solid var(--framed1d7d-flare);
  border-radius: var(--framed1d7d-radius-s);
  padding: 1px 6px;
  white-space: nowrap;
}
.framed1d7d-arena-head h2 {
  font-size: 18.5px;
}

.framed1d7d-arena-info {
  font-size: 12.8px;
  line-height: 1.66;
  color: var(--framed1d7d-ink-soft);
  margin: 4px 0 13px;
  max-width: 58ch;
}
.framed1d7d-arena-info a { font-weight: 700; }
.framed1d7d-arena-info b { color: var(--framed1d7d-ink); }

/* ---------- 10. Game grid + horizontal icon/name bar tiles ---------- */
.framed1d7d-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px 7px;
}

.framed1d7d-tile {
  display: flex;
  flex-direction: column;
  background: var(--framed1d7d-surface);
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-m);
  overflow: hidden;
  text-align: center;
  -webkit-tap-highlight-color: rgba(255, 179, 71, 0.2);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.framed1d7d-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #22303d;
  transition: transform 0.22s ease;
}
.framed1d7d-tile b {
  /* the horizontal icon/name bar */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 31px;
  padding: 4px 4px 5px;
  border-top: 1px solid var(--framed1d7d-line);
  background: rgba(255, 250, 205, 0.045);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--framed1d7d-ink-soft);
  overflow-wrap: anywhere;
  transition: color 0.18s ease;
}
.framed1d7d-tile:active {
  border-color: var(--framed1d7d-flare);
  background: var(--framed1d7d-surface-lift);
}
.framed1d7d-tile:active img { transform: scale(1.05); }
.framed1d7d-tile:active b { color: var(--framed1d7d-flare); }

/* ---------- 11. Winner feed (latest results) ---------- */
.framed1d7d-feed {
  padding: 26px 16px 6px;
}
.framed1d7d-feed-head h2 { font-size: 18.5px; margin-bottom: 4px; }
.framed1d7d-feed-info {
  font-size: 12.8px;
  color: var(--framed1d7d-ink-soft);
  margin-bottom: 12px;
  max-width: 58ch;
}

.framed1d7d-feedrow {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 16px 10px;
  margin: 0 -16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.framed1d7d-feedrow::-webkit-scrollbar { display: none; }

.framed1d7d-feedcard {
  flex: 0 0 148px;
  scroll-snap-align: start;
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-m);
  background: var(--framed1d7d-surface);
  padding: 9px 10px;
  font-size: 11px;
  color: var(--framed1d7d-ink-soft);
}
.framed1d7d-feedcard strong {
  display: block;
  font-size: 12px;
  color: var(--framed1d7d-ink);
  font-weight: 700;
}
.framed1d7d-feedcard em {
  font-style: normal;
  display: block;
  margin-top: 3px;
  color: var(--framed1d7d-ink-faint);
}
.framed1d7d-feedcard output,
.framed1d7d-feedcard .framed1d7d-feedamt {
  display: block;
  margin-top: 5px;
  font-size: 15px;
  font-weight: 800;
  color: var(--framed1d7d-flare);
  letter-spacing: 0.01em;
}

/* ---------- 12. Play styles comparison rows ---------- */
.framed1d7d-styles { padding: 26px 16px 6px; }
.framed1d7d-styles h2 { font-size: 18.5px; margin-bottom: 5px; }
.framed1d7d-styles-info {
  font-size: 12.8px;
  color: var(--framed1d7d-ink-soft);
  margin-bottom: 13px;
  max-width: 58ch;
}

.framed1d7d-stylerow {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-m);
  background: rgba(47, 66, 84, 0.5);
  padding: 11px 12px;
  margin-bottom: 8px;
}
.framed1d7d-stylerow h3 {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--framed1d7d-flare);
  padding-top: 2px;
}
.framed1d7d-stylerow p {
  font-size: 12.3px;
  line-height: 1.6;
  color: var(--framed1d7d-ink-soft);
}
.framed1d7d-stylerow p b { color: var(--framed1d7d-ink); }

/* ---------- 13. Answer panels, fact rows and steps ---------- */
.framed1d7d-brief {
  margin: 26px 16px 0;
  border: 1px solid var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-l);
  background:
    linear-gradient(160deg, rgba(255, 179, 71, 0.09), rgba(255, 179, 71, 0) 46%),
    var(--framed1d7d-surface);
  padding: 15px 15px 8px;
}
.framed1d7d-brief h2 { font-size: 19px; margin-bottom: 7px; }
.framed1d7d-brief > p {
  font-size: 13.2px;
  color: var(--framed1d7d-ink-soft);
  margin-bottom: 10px;
}
.framed1d7d-brief > p b,
.framed1d7d-brief li b { color: var(--framed1d7d-ink); }

.framed1d7d-facts { margin: 6px 0 10px; }
.framed1d7d-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  border: 1px solid var(--framed1d7d-line);
  border-left: 3px solid var(--framed1d7d-flare);
  border-radius: var(--framed1d7d-radius-s);
  padding: 8px 10px;
  margin-bottom: 7px;
  background: rgba(255, 250, 205, 0.03);
}
.framed1d7d-fact strong { font-size: 12.5px; font-weight: 800; color: var(--framed1d7d-ink); }
.framed1d7d-fact span { font-size: 12px; color: var(--framed1d7d-ink-soft); line-height: 1.58; }

.framed1d7d-steps {
  margin: 8px 0 10px;
  counter-reset: framed1d7dstep;
}
.framed1d7d-steps li {
  list-style: none;
  counter-increment: framed1d7dstep;
  position: relative;
  padding: 0 0 10px 40px;
  font-size: 12.8px;
  line-height: 1.62;
  color: var(--framed1d7d-ink-soft);
}
.framed1d7d-steps li::before {
  content: counter(framed1d7dstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--framed1d7d-flare);
  border-radius: 50%;
  color: var(--framed1d7d-flare);
  font-size: 12.5px;
  font-weight: 800;
}
.framed1d7d-steps li::after {
  content: "";
  position: absolute;
  left: 13.5px;
  top: 32px;
  bottom: 2px;
  width: 1px;
  background: var(--framed1d7d-line-strong);
}
.framed1d7d-steps li:last-child::after { display: none; }
.framed1d7d-steps li b { color: var(--framed1d7d-ink); }

.framed1d7d-note {
  border: 1px dashed var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-m);
  padding: 9px 11px;
  font-size: 11.8px;
  line-height: 1.6;
  color: var(--framed1d7d-ink-faint);
  margin: 4px 0 10px;
}

/* ---------- 14. Extended homepage footer ---------- */
.framed1d7d-xfoot {
  margin-top: 30px;
  border-top: 1px solid var(--framed1d7d-line-strong);
  padding: 18px 16px 6px;
  background:
    linear-gradient(180deg, rgba(28, 41, 53, 0.6), rgba(28, 41, 53, 0) 120px);
}
.framed1d7d-xfoot > h2 { font-size: 18px; margin-bottom: 12px; }

.framed1d7d-promoacts { margin-bottom: 16px; }
.framed1d7d-promoacts .framed1d7d-btn {
  width: 100%;
  margin-bottom: 8px;
  justify-content: flex-start;
  text-align: left;
}
.framed1d7d-promoacts .framed1d7d-btn::after {
  content: "\2192";
  margin-left: auto;
  font-weight: 800;
}

.framed1d7d-brandblurb {
  font-size: 12.3px;
  line-height: 1.66;
  color: var(--framed1d7d-ink-soft);
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-m);
  padding: 11px 12px;
  margin-bottom: 16px;
  background: rgba(47, 66, 84, 0.4);
}
.framed1d7d-brandblurb b { color: var(--framed1d7d-ink); }

.framed1d7d-directory-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--framed1d7d-flare);
  margin-bottom: 8px;
}
.framed1d7d-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 16px;
}
.framed1d7d-directory a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-s);
  padding: 8px 9px;
  background: rgba(255, 250, 205, 0.028);
  min-height: 44px;
  text-decoration: none;
}
.framed1d7d-directory a:active { border-color: var(--framed1d7d-flare); text-decoration: none; }
.framed1d7d-directory strong {
  font-size: 11.8px;
  font-weight: 700;
  color: var(--framed1d7d-flare);
  line-height: 1.3;
}
.framed1d7d-directory span {
  font-size: 10.3px;
  color: var(--framed1d7d-ink-faint);
  line-height: 1.35;
}

.framed1d7d-disclaim {
  font-size: 11.2px;
  line-height: 1.62;
  color: var(--framed1d7d-ink-faint);
  border: 1px dashed var(--framed1d7d-line-strong);
  border-radius: var(--framed1d7d-radius-m);
  padding: 10px 11px;
}

/* ---------- 15. Universal footer ---------- */
.framed1d7d-unifoot {
  text-align: center;
  padding: 16px 16px 8px;
  border-top: 1px solid var(--framed1d7d-line);
  font-size: 11px;
  color: var(--framed1d7d-ink-faint);
}
.framed1d7d-unifoot b { color: var(--framed1d7d-ink-soft); font-weight: 700; }

/* ---------- 16. Fixed five-role bottom navigation ---------- */
.framed1d7d-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(28, 40, 52, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--framed1d7d-line-strong);
}

.framed1d7d-bnavitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  padding: 4px 2px;
  border-radius: 10px;
  color: var(--framed1d7d-ink-faint);
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.1;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.framed1d7d-bnavitem svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}
.framed1d7d-bnavitem:active { color: var(--framed1d7d-flare); }
.framed1d7d-bnavitem:active svg { transform: translateY(-1px); }
.framed1d7d-bnavitem:hover { text-decoration: none; }

/* current page: background support block + label emphasis */
.framed1d7d-bnavitem--on {
  background: var(--framed1d7d-flare-veil);
  color: var(--framed1d7d-flare);
}

/* ---------- 17. Reveal micro-motion (JS adds, content visible without JS) -- */
.framed1d7d-arena,
.framed1d7d-feed,
.framed1d7d-styles,
.framed1d7d-brief,
.framed1d7d-xfoot {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.framed1d7d-pre { opacity: 0; transform: translateY(10px); }

/* ---------- 18. Breakpoints ---------- */
/* 396 px and up: five game columns */
@media (min-width: 396px) {
  .framed1d7d-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .framed1d7d-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .framed1d7d-feedcard { flex-basis: 158px; }
}

/* Very narrow phones: keep everything inside a 320 px canvas */
@media (max-width: 339px) {
  .framed1d7d-grid { gap: 8px 5px; }
  .framed1d7d-tile b { font-size: 10px; }
  .framed1d7d-hero-cta { flex-direction: column; }
  .framed1d7d-stylerow { grid-template-columns: 1fr; }
}

/* Landscape phones: trim the fixed chrome so content breathes */
@media (max-height: 430px) and (orientation: landscape) {
  :root { --framed1d7d-topbar-h: 104px; }
  .framed1d7d-brandrow { padding-top: 6px; padding-bottom: 2px; }
  .framed1d7d-actionrow { padding-bottom: 6px; }
}

/* ---------- 19. Accessibility ---------- */
.framed1d7d-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .framed1d7d-pre { opacity: 1; transform: none; }
}

@media print {
  .framed1d7d-topbar,
  .framed1d7d-bnav,
  .framed1d7d-catstrip { display: none; }
  main.framed1d7d-main { padding-top: 0; padding-bottom: 0; }
}

/* ---------- 20. Editorial pages: quiet reading rhythm, distinct from lobby ---------- */
.framed1d7d-reading {
  padding: 4px 16px 24px;
}
.framed1d7d-kicker {
  display: inline-block;
  margin: 3px 0 10px;
  padding: 4px 8px;
  border-left: 3px solid var(--framed1d7d-flare);
  color: var(--framed1d7d-flare);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.framed1d7d-reading h1 {
  font-size: clamp(26px, 7.5vw, 32px);
  margin-bottom: 11px;
}
.framed1d7d-reading h1 span { color: var(--framed1d7d-flare); }
.framed1d7d-intro {
  color: var(--framed1d7d-ink-soft);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 18px;
}
.framed1d7d-rule {
  border: 0;
  border-top: 1px solid var(--framed1d7d-line-strong);
  margin: 17px 0 20px;
}
.framed1d7d-article {
  border-left: 1px solid var(--framed1d7d-line-strong);
  padding-left: 13px;
  margin: 0 0 22px;
}
.framed1d7d-article h2 {
  font-size: 19px;
  margin-bottom: 7px;
}
.framed1d7d-article h3 {
  color: var(--framed1d7d-flare);
  font-size: 14px;
  margin: 13px 0 4px;
}
.framed1d7d-article p,
.framed1d7d-article li {
  color: var(--framed1d7d-ink-soft);
  font-size: 13px;
  line-height: 1.68;
}
.framed1d7d-article p { margin-bottom: 9px; }
.framed1d7d-article ul,
.framed1d7d-article ol { padding-left: 18px; margin: 7px 0 10px; }
.framed1d7d-article li { margin-bottom: 6px; padding-left: 3px; }
.framed1d7d-article li::marker { color: var(--framed1d7d-flare); }
.framed1d7d-callout {
  margin: 14px 0 20px;
  padding: 13px 13px 11px;
  border: 1px solid var(--framed1d7d-flare);
  border-radius: var(--framed1d7d-radius-s);
  background: var(--framed1d7d-flare-veil);
}
.framed1d7d-callout h2 { font-size: 17px; margin-bottom: 6px; }
.framed1d7d-callout p { color: var(--framed1d7d-ink-soft); font-size: 12.8px; line-height: 1.65; }
.framed1d7d-callout a { font-weight: 700; }
.framed1d7d-ledger {
  display: grid;
  gap: 8px;
  margin: 9px 0 18px;
}
.framed1d7d-ledger-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-s);
  background: rgba(47, 66, 84, 0.48);
}
.framed1d7d-ledger-item strong { color: var(--framed1d7d-flare); font-size: 12px; }
.framed1d7d-ledger-item span { color: var(--framed1d7d-ink-soft); font-size: 12px; line-height: 1.56; }
.framed1d7d-cta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 20px;
}
.framed1d7d-cta-line .framed1d7d-btn { flex: 1 1 135px; min-height: 42px; }
.framed1d7d-helpnav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 8px 0 20px;
}
.framed1d7d-helpnav a {
  padding: 9px 10px;
  border: 1px solid var(--framed1d7d-line);
  border-radius: var(--framed1d7d-radius-s);
  color: var(--framed1d7d-flare);
  font-size: 11.5px;
  font-weight: 700;
}
.framed1d7d-helpnav a:hover { border-color: var(--framed1d7d-flare); text-decoration: none; }
.framed1d7d-faqdeck { margin: 2px 0 22px; }
.framed1d7d-faqitem {
  border-top: 1px solid var(--framed1d7d-line-strong);
  padding: 3px 0;
}
.framed1d7d-faqitem:last-child { border-bottom: 1px solid var(--framed1d7d-line-strong); }
.framed1d7d-faqitem summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 25px 12px 0;
  position: relative;
  color: var(--framed1d7d-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}
.framed1d7d-faqitem summary::-webkit-details-marker { display: none; }
.framed1d7d-faqitem summary::after {
  content: "+";
  position: absolute;
  right: 3px;
  top: 10px;
  color: var(--framed1d7d-flare);
  font-size: 20px;
  font-weight: 400;
}
.framed1d7d-faqitem[open] summary::after { content: "-"; }
.framed1d7d-faqanswer {
  padding: 0 4px 12px 0;
  color: var(--framed1d7d-ink-soft);
  font-size: 12.8px;
  line-height: 1.68;
}
.framed1d7d-faqanswer p { margin-bottom: 8px; }
.framed1d7d-faqanswer p:last-child { margin-bottom: 0; }
.framed1d7d-faqanswer a { font-weight: 700; }
.framed1d7d-qindex {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}
.framed1d7d-qindex::-webkit-scrollbar { display: none; }
.framed1d7d-qindex a {
  flex: 0 0 auto;
  border: 1px solid var(--framed1d7d-line-strong);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--framed1d7d-ink-soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.framed1d7d-qindex a:hover { color: var(--framed1d7d-flare); text-decoration: none; }
@media (max-width: 339px) {
  .framed1d7d-ledger-item { grid-template-columns: 1fr; gap: 3px; }
  .framed1d7d-helpnav { grid-template-columns: 1fr; }
}
