/* =====================================================================
   PTG Gaming - surface stylesheet
   Canvas: mobile-first phone frame, 320px up to 430px, centered on wide
   screens. Site: ptggaming.cfd
   Palette: #0A0A0A base / #F5DEB3 ink / #DEB887 accent / #6C757D muted
   Direction: geometric headings over neutral body text, pill buttons on
   square cards, light floating plate game tiles, fact-first sections,
   colour-only state changes, compact icon+text CTAs.
   Class + variable prefix: frame86405-
   ===================================================================== */

:root {
  --frame86405-coal: #0A0A0A;
  --frame86405-coal-2: #131311;
  --frame86405-coal-3: #1C1A16;
  --frame86405-wheat: #F5DEB3;
  --frame86405-sand: #DEB887;
  --frame86405-slate: #6C757D;
  --frame86405-slate-lt: #9AA0A6;
  --frame86405-line: #292620;
  --frame86405-line-soft: #201e19;
  --frame86405-head-font: "Avenir Next", "Segoe UI", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
  --frame86405-body-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --frame86405-rail-h: 58px;
  --frame86405-shell-w: 430px;
}

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

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

body {
  margin: 0;
  background: #050504;
  color: var(--frame86405-wheat);
  font-family: var(--frame86405-body-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a { color: var(--frame86405-sand); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--frame86405-head-font);
  color: var(--frame86405-wheat);
  margin: 0;
  line-height: 1.25;
  letter-spacing: .2px;
}

p { margin: 0 0 10px; }

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

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--frame86405-sand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- phone shell ---------- */
.frame86405-shell {
  position: relative;
  width: 100%;
  max-width: var(--frame86405-shell-w); /* 430px phone canvas cap */
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame86405-coal);
  box-shadow: 0 0 0 1px #1a1815, 0 0 42px rgba(0, 0, 0, .8);
  padding-bottom: calc(var(--frame86405-rail-h) + 26px + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}

.frame86405-main { padding: 14px 12px 6px; }

/* ---------- top bar ---------- */
.frame86405-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 8px 10px;
  background: rgba(10, 10, 10, .97);
  border-bottom: 1px solid var(--frame86405-line);
}

.frame86405-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 0;
}

.frame86405-brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  border: 1px solid var(--frame86405-line);
  object-fit: cover;
  flex: none;
}

.frame86405-brand-name {
  font-family: var(--frame86405-head-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--frame86405-wheat);
  letter-spacing: .4px;
  white-space: nowrap;
}

.frame86405-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

/* compact icon+text CTAs, pill shaped */
.frame86405-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .3px;
  border: 1px solid var(--frame86405-sand);
  color: var(--frame86405-sand);
  background: transparent;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.frame86405-btn--solid {
  background: var(--frame86405-sand);
  color: #17130b;
  border-color: var(--frame86405-sand);
}

.frame86405-btn:active {
  background: var(--frame86405-wheat);
  color: #17130b;
  box-shadow: 0 0 10px rgba(222, 184, 135, .35); /* restrained glow feedback */
}

.frame86405-btn svg { width: 13px; height: 13px; flex: none; }

/* menu trigger: containerized symbol block */
.frame86405-menubtn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--frame86405-line);
  background: var(--frame86405-coal-3);
  display: grid;
  gap: 4px;
  place-items: center;
  transition: border-color .18s ease, background-color .18s ease;
}

.frame86405-menubtn span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: var(--frame86405-wheat);
  transition: background-color .18s ease;
}

.frame86405-menubtn:active {
  border-color: var(--frame86405-sand);
  background: #241f17;
}

.frame86405-menubtn[aria-expanded="true"] {
  border-color: var(--frame86405-sand);
  background: #241f17;
}

.frame86405-menubtn[aria-expanded="true"] span { background: var(--frame86405-sand); }

/* ---------- layered dropdown menu ---------- */
.frame86405-drawer {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame86405-shell-w);
  z-index: 39;
  background: #0d0c0a;
  border-bottom: 1px solid var(--frame86405-line);
  box-shadow: 0 14px 26px rgba(0, 0, 0, .6);
  display: none;
  padding: 6px 12px 14px;
}

.frame86405-drawer.frame86405-is-open { display: block; }

.frame86405-drawer-group + .frame86405-drawer-group {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--frame86405-line-soft);
}

.frame86405-drawer-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--frame86405-slate);
  padding: 6px 2px 4px;
}

.frame86405-drawer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}

.frame86405-drawer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--frame86405-wheat);
  font-size: 13px;
  background: transparent;
  transition: background-color .18s ease, color .18s ease;
}

.frame86405-drawer-link i {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--frame86405-line);
  background: var(--frame86405-coal-3);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
  color: var(--frame86405-sand);
  transition: color .18s ease, border-color .18s ease;
}

.frame86405-drawer-link:active,
.frame86405-drawer-link:hover {
  background: #1a1712;
  color: var(--frame86405-sand);
}

.frame86405-drawer-link:active i,
.frame86405-drawer-link:hover i {
  color: var(--frame86405-wheat);
  border-color: var(--frame86405-sand);
}

/* ---------- intro block ---------- */
.frame86405-intro { padding: 6px 2px 2px; }

.frame86405-intro h1 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .2px;
}

.frame86405-intro .frame86405-lead {
  color: var(--frame86405-slate-lt);
  font-size: 13px;
  margin: 9px 0 12px;
}

.frame86405-trustrow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.frame86405-trust {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid var(--frame86405-line);
  border-radius: 999px;
  background: var(--frame86405-coal-2);
  color: var(--frame86405-slate-lt);
  font-size: 11px;
  letter-spacing: .2px;
}

.frame86405-trust i {
  font-style: normal;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frame86405-sand);
  flex: none;
}

/* ---------- showcase carousel ---------- */
.frame86405-showcase {
  position: relative;
  margin: 14px 0 4px;
  border: 1px solid var(--frame86405-line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--frame86405-coal-2);
}

.frame86405-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .4s ease;
}

.frame86405-slide.frame86405-is-on { opacity: 1; position: relative; }

.frame86405-showcase {
  height: clamp(168px, 47vw, 214px);
}

.frame86405-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame86405-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 7px;
  z-index: 2;
}

.frame86405-dot {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}

.frame86405-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(245, 222, 179, .38);
  transition: background-color .18s ease;
}

.frame86405-dot.frame86405-is-on::before { background: var(--frame86405-sand); }

/* ---------- category chip rail ---------- */
.frame86405-catbar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 12px 2px 6px;
  scrollbar-width: none;
}

.frame86405-catbar::-webkit-scrollbar { display: none; }

.frame86405-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--frame86405-line);
  background: var(--frame86405-coal-2);
  color: var(--frame86405-slate-lt);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.frame86405-chip i {
  font-style: normal;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--frame86405-slate);
  flex: none;
  transition: background-color .18s ease;
}

.frame86405-chip:active,
.frame86405-chip:hover {
  color: var(--frame86405-sand);
  border-color: var(--frame86405-sand);
  background: #1a1712;
}

.frame86405-chip:active i,
.frame86405-chip:hover i { background: var(--frame86405-sand); }

/* ---------- section scaffolding ---------- */
.frame86405-section { margin-top: 22px; }

.frame86405-sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--frame86405-sand);
  padding-left: 10px;
}

.frame86405-sec-title { font-size: 16.5px; font-weight: 700; }

.frame86405-sec-count {
  flex: none;
  font-size: 10.5px;
  color: var(--frame86405-slate);
  border: 1px solid var(--frame86405-line);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: .6px;
}

.frame86405-sec-note {
  margin: 7px 0 4px;
  padding-left: 13px;
  color: var(--frame86405-slate-lt);
  font-size: 12px;
}

.frame86405-related {
  margin: 8px 0 4px;
  padding-left: 13px;
  font-size: 11.5px;
  color: var(--frame86405-slate);
}

.frame86405-related a { color: var(--frame86405-sand); border-bottom: 1px dotted rgba(222, 184, 135, .5); }

/* ---------- game grid + tiles ---------- */
.frame86405-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  padding: 6px 0 2px;
}

/* light floating plate tile: square card, slim top light */
.frame86405-tile {
  position: relative;
  display: block;
  text-align: center;
  padding: 5px 5px 6px;
  background: linear-gradient(180deg, #1b1814 0%, #121110 100%);
  border: 1px solid var(--frame86405-line);
  border-radius: 6px;
  transition: border-color .18s ease, background-color .18s ease;
}

.frame86405-tile::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 34px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(245, 222, 179, .07), rgba(245, 222, 179, 0));
  pointer-events: none;
}

.frame86405-tile:active,
.frame86405-tile:hover {
  border-color: var(--frame86405-sand);
  background: linear-gradient(180deg, #241f18 0%, #14120e 100%);
}

.frame86405-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  background: var(--frame86405-coal-3);
}

.frame86405-tile-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 5px;
  min-height: 26px;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--frame86405-wheat);
  letter-spacing: .1px;
}

/* ---------- winners feed ---------- */
.frame86405-feed {
  margin-top: 10px;
  border: 1px solid var(--frame86405-line);
  border-radius: 8px;
  background: var(--frame86405-coal-2);
  padding: 2px 12px;
}

.frame86405-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--frame86405-line);
}

.frame86405-feed-row:last-child { border-bottom: 0; }

.frame86405-feed-badge {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid var(--frame86405-line);
  background: var(--frame86405-coal-3);
  display: grid;
  place-items: center;
  color: var(--frame86405-sand);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--frame86405-head-font);
}

.frame86405-feed-info { min-width: 0; flex: 1; }

.frame86405-feed-player {
  font-size: 12.5px;
  color: var(--frame86405-wheat);
  font-weight: 600;
}

.frame86405-feed-game {
  font-size: 11px;
  color: var(--frame86405-slate);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame86405-feed-amount {
  flex: none;
  text-align: right;
  font-family: var(--frame86405-head-font);
  font-size: 13px;
  font-weight: 700;
  color: var(--frame86405-sand);
}

.frame86405-feed-time {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: var(--frame86405-slate);
}

.frame86405-feed-note {
  padding: 8px 2px 10px;
  font-size: 10.5px;
  color: var(--frame86405-slate);
}

/* ---------- numbered steps ---------- */
.frame86405-steps { margin-top: 10px; }

.frame86405-step {
  display: flex;
  gap: 11px;
  padding: 10px 0;
  border-bottom: 1px solid var(--frame86405-line-soft);
}

.frame86405-step:last-child { border-bottom: 0; }

.frame86405-step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--frame86405-sand);
  color: var(--frame86405-sand);
  display: grid;
  place-items: center;
  font-family: var(--frame86405-head-font);
  font-size: 12px;
  font-weight: 700;
}

.frame86405-step b { display: block; font-size: 13px; color: var(--frame86405-wheat); }

.frame86405-step p { margin: 3px 0 0; font-size: 12px; color: var(--frame86405-slate-lt); }

/* ---------- checklist / takeaways ---------- */
.frame86405-takes { margin-top: 10px; }

.frame86405-take {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--frame86405-line-soft);
}

.frame86405-take:last-child { border-bottom: 0; }

.frame86405-take svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--frame86405-sand);
}

.frame86405-take p { margin: 0; font-size: 12.5px; color: var(--frame86405-slate-lt); }

.frame86405-take b { color: var(--frame86405-wheat); font-weight: 600; }

/* ---------- entity relation map ---------- */
.frame86405-relmap { margin-top: 10px; }

.frame86405-rel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 0;
  border-bottom: 1px solid var(--frame86405-line-soft);
}

.frame86405-rel:last-child { border-bottom: 0; }

.frame86405-rel-key {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--frame86405-wheat);
}

.frame86405-rel-key i {
  font-style: normal;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--frame86405-sand);
}

.frame86405-rel p { margin: 0; font-size: 12px; color: var(--frame86405-slate-lt); }

/* ---------- plain prose blocks ---------- */
.frame86405-copy { margin-top: 8px; }

.frame86405-copy p { font-size: 13px; color: var(--frame86405-slate-lt); }

.frame86405-copy p b { color: var(--frame86405-wheat); font-weight: 600; }

.frame86405-copy a { border-bottom: 1px dotted rgba(222, 184, 135, .55); }

.frame86405-checklist { margin: 8px 0 0; }

.frame86405-checklist li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 12.5px;
  color: var(--frame86405-slate-lt);
}

.frame86405-checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--frame86405-sand);
}

/* ---------- extended footer (home only) ---------- */
.frame86405-xfooter {
  margin-top: 26px;
  border-top: 1px solid var(--frame86405-line);
  background: #0c0b09;
  padding: 16px 14px 6px;
}

.frame86405-xf-brand { margin-bottom: 14px; }

.frame86405-xf-brand h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.frame86405-xf-brand p {
  margin: 0;
  font-size: 12px;
  color: var(--frame86405-slate-lt);
}

.frame86405-xf-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--frame86405-slate);
  margin: 0 0 8px;
}

.frame86405-xf-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.frame86405-xf-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--frame86405-line);
  background: var(--frame86405-coal-3);
  color: var(--frame86405-wheat);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.frame86405-xf-cta svg {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--frame86405-sand);
  transition: color .18s ease;
}

.frame86405-xf-cta:active,
.frame86405-xf-cta:hover {
  border-color: var(--frame86405-sand);
  color: var(--frame86405-sand);
  background: #241f17;
  box-shadow: 0 0 10px rgba(222, 184, 135, .28);
}

.frame86405-xf-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.frame86405-xf-dir a {
  min-height: 34px;
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--frame86405-slate-lt);
  border-bottom: 1px dotted var(--frame86405-line);
  transition: color .18s ease;
}

.frame86405-xf-dir a:active,
.frame86405-xf-dir a:hover { color: var(--frame86405-sand); }

.frame86405-xf-note {
  border-left: 2px solid var(--frame86405-sand);
  padding: 2px 0 2px 10px;
  font-size: 11px;
  color: var(--frame86405-slate);
  margin-bottom: 12px;
}

/* ---------- guide page: linear setup map ---------- */
.frame86405-guide-map {
  margin-top: 10px;
  border: 1px solid var(--frame86405-line);
  border-radius: 8px;
  background: var(--frame86405-coal-2);
  overflow: hidden;
}

.frame86405-guide-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--frame86405-line-soft);
}

.frame86405-guide-row:last-child { border-bottom: 0; }

.frame86405-guide-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--frame86405-sand);
  border-radius: 6px;
  color: var(--frame86405-sand);
  font-family: var(--frame86405-head-font);
  font-size: 12px;
  font-weight: 700;
}

.frame86405-guide-row h3 { font-size: 13px; }
.frame86405-guide-row p { margin: 4px 0 0; font-size: 12px; color: var(--frame86405-slate-lt); }

.frame86405-fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.frame86405-fact {
  padding: 10px;
  border: 1px solid var(--frame86405-line);
  border-radius: 6px;
  background: #171510;
}

.frame86405-fact b { display: block; color: var(--frame86405-sand); font-size: 12px; }
.frame86405-fact span { display: block; margin-top: 3px; color: var(--frame86405-slate-lt); font-size: 11px; }

/* ---------- tips page: diagnostic cards and open terms ---------- */
.frame86405-tip-lab {
  margin-top: 10px;
  border-left: 3px solid var(--frame86405-sand);
  padding-left: 12px;
}

.frame86405-tip-case {
  margin-top: 9px;
  padding: 11px 12px;
  border: 1px solid var(--frame86405-line);
  border-radius: 7px;
  background: linear-gradient(135deg, #191711, #100f0d);
}

.frame86405-tip-case h3 { font-size: 13px; }
.frame86405-tip-case p { margin: 5px 0 0; font-size: 12px; color: var(--frame86405-slate-lt); }
.frame86405-tip-case strong { color: var(--frame86405-wheat); }

.frame86405-tip-details {
  margin-top: 8px;
  border-bottom: 1px solid var(--frame86405-line-soft);
}

.frame86405-tip-details summary {
  padding: 10px 0;
  color: var(--frame86405-sand);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
}

.frame86405-tip-details p { padding: 0 0 9px; color: var(--frame86405-slate-lt); font-size: 12px; }

/* ---------- common footer ---------- */
.frame86405-foot {
  padding: 14px 14px 6px;
  border-top: 1px solid var(--frame86405-line-soft);
  text-align: center;
  font-size: 11px;
  color: var(--frame86405-slate);
  letter-spacing: .4px;
}

/* ---------- mobile bottom rail ---------- */
.frame86405-rail {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame86405-shell-w);
  z-index: 45;
  display: flex;
  height: calc(var(--frame86405-rail-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #0c0b09;
  border-top: 1px solid var(--frame86405-line);
}

.frame86405-rail-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 7px 3px;
  border-radius: 12px;
  color: var(--frame86405-slate-lt);
  font-size: 10px;
  letter-spacing: .3px;
  transition: color .18s ease, background-color .18s ease;
}

/* active state: background support block */
.frame86405-rail-item.frame86405-is-on {
  background: rgba(222, 184, 135, .14);
  color: var(--frame86405-sand);
}

.frame86405-rail-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1px solid var(--frame86405-line);
  background: #16140f;
  display: grid;
  place-items: center;
  transition: border-color .18s ease, background-color .18s ease;
}

.frame86405-rail-ico svg { width: 13px; height: 13px; }

.frame86405-rail-item:active { color: var(--frame86405-sand); }

.frame86405-rail-item:active .frame86405-rail-ico {
  border-color: var(--frame86405-sand);
  background: #241f17;
}

.frame86405-rail-item.frame86405-is-on .frame86405-rail-ico {
  border-color: rgba(222, 184, 135, .55);
  background: #241f17;
}

/* ---------- wider phones inside the 430px canvas ---------- */
@media (min-width: 375px) {
  .frame86405-intro h1 { font-size: 25px; }
  .frame86405-tile-name { font-size: 11px; }
  .frame86405-xf-dir { gap: 4px 20px; }
}

@media (min-width: 396px) {
  /* 375-430px band keeps a denser 5-column game grid */
  .frame86405-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 430px) {
  .frame86405-main { padding-left: 16px; padding-right: 16px; }
  .frame86405-intro h1 { font-size: 26px; }
  .frame86405-xf-promos { gap: 10px; }
}

/* ---------- very small phones ---------- */
@media (max-width: 339px) {
  .frame86405-btn { padding: 6px 9px; font-size: 11.5px; }
  .frame86405-brand-name { font-size: 15px; }
  .frame86405-intro h1 { font-size: 20px; }
}

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