/* ==========================================================================
   gt99 apk - responsive-46d3de-chrome.css
   Mobile-first stylesheet for gt99apk.click (320-430px canvas, centered shell).
   Class prefix .... frame3de38-
   Variable prefix . --frame3de38-*
   Palette ......... ink #0F0F23 (background) / sun #FFEB3B (accent text)
   Direction ....... stroke-led restrained radius, compact square game
                     catalog, fact-summary-then-expand rhythm, square CTAs,
                     icon micro-state motion only.
   ========================================================================== */

:root {
  --frame3de38-ink: #0f0f23;
  --frame3de38-ink-deep: #07070f;
  --frame3de38-panel: #181830;
  --frame3de38-panel-2: #1f1f3d;
  --frame3de38-line: #2d2d55;
  --frame3de38-line-hot: #57578f;
  --frame3de38-sun: #ffeb3b;
  --frame3de38-sun-dim: #cfc22f;
  --frame3de38-text: #efeff8;
  --frame3de38-mute: #ababca;
  --frame3de38-good: #86e2a8;
  --frame3de38-shell-max: 480px;
  --frame3de38-hit: 44px;
  --frame3de38-topbar-h: 56px;
  --frame3de38-tabbar-h: 64px;
  --frame3de38-gap: 12px;
  --frame3de38-radius: 4px;
  --frame3de38-font: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI",
    "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---- base ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--frame3de38-ink-deep);
  color: var(--frame3de38-text);
  font-family: var(--frame3de38-font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* centered phone canvas on wide screens */
.frame3de38-shell {
  position: relative;
  max-width: var(--frame3de38-shell-max);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--frame3de38-ink);
  box-shadow: 0 0 0 1px var(--frame3de38-line);
}

main.frame3de38-main {
  display: block;
  padding: calc(var(--frame3de38-topbar-h) + 10px) var(--frame3de38-gap)
    calc(var(--frame3de38-tabbar-h) + 26px);
}

.frame3de38-lede {
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 21px;
  margin: 0 0 8px;
}

h2 {
  font-size: 17.5px;
  margin: 0 0 8px;
}

h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

p {
  margin: 0 0 10px;
}

a {
  color: var(--frame3de38-sun);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 235, 59, 0.35);
}

a:visited {
  color: var(--frame3de38-sun);
}

a:hover {
  border-bottom-color: var(--frame3de38-sun);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--frame3de38-sun);
  outline-offset: 2px;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 235, 59, 0.18);
}

/* generic square-corner high-contrast CTA */
.frame3de38-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--frame3de38-hit);
  padding: 10px 16px;
  border: 1px solid var(--frame3de38-sun);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-sun);
  color: var(--frame3de38-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: transform 0.08s ease, background 0.12s ease, color 0.12s ease;
}

.frame3de38-cta:active {
  transform: scale(0.96);
  background: var(--frame3de38-sun-dim);
  border-color: var(--frame3de38-sun-dim);
}

.frame3de38-cta--ghost {
  background: transparent;
  color: var(--frame3de38-sun);
}

.frame3de38-cta--ghost:active {
  background: rgba(255, 235, 59, 0.12);
}

/* ---- top brand bar ---------------------------------------------------- */

.frame3de38-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame3de38-shell-max);
  height: var(--frame3de38-topbar-h);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: rgba(15, 15, 35, 0.96);
  border-bottom: 1px solid var(--frame3de38-line);
  backdrop-filter: blur(6px);
}

.frame3de38-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.frame3de38-brand img {
  width: 34px;
  height: 34px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: var(--frame3de38-radius);
  object-fit: cover;
  flex: 0 0 auto;
}

.frame3de38-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--frame3de38-text);
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame3de38-brand-name b {
  color: var(--frame3de38-sun);
  font-weight: 800;
}

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

.frame3de38-reg {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--frame3de38-sun);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-sun);
  color: var(--frame3de38-ink);
  font-size: 13px;
  font-weight: 800;
}

.frame3de38-log {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: var(--frame3de38-radius);
  background: transparent;
  color: var(--frame3de38-text);
  font-size: 13px;
  font-weight: 700;
}

.frame3de38-reg:active,
.frame3de38-log:active {
  transform: scale(0.95);
}

.frame3de38-reg:active {
  background: var(--frame3de38-sun-dim);
}

.frame3de38-log:active {
  background: var(--frame3de38-panel-2);
}

.frame3de38-menubtn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-panel);
  color: var(--frame3de38-sun);
}

.frame3de38-menubtn:active {
  background: var(--frame3de38-panel-2);
  transform: scale(0.94);
}

/* ---- slide-up route sheet --------------------------------------------- */

.frame3de38-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(7, 7, 15, 0.66);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.frame3de38-backdrop.frame3de38-backdrop-on {
  opacity: 1;
  pointer-events: auto;
}

.frame3de38-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 102%);
  width: 100%;
  max-width: var(--frame3de38-shell-max);
  max-height: 78vh;
  overflow-y: auto;
  z-index: 50;
  background: var(--frame3de38-panel);
  border: 1px solid var(--frame3de38-line-hot);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  transition: transform 0.26s ease;
}

.frame3de38-sheet.frame3de38-sheet-open {
  transform: translate(-50%, 0);
}

.frame3de38-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.frame3de38-sheet-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--frame3de38-sun);
  letter-spacing: 0.3px;
}

.frame3de38-sheet-close {
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-ink);
  color: var(--frame3de38-text);
  font-size: 16px;
  font-weight: 700;
}

.frame3de38-sheet-close:active {
  transform: scale(0.92);
}

.frame3de38-sheet-group {
  margin: 0 0 10px;
}

.frame3de38-sheet-group > h3 {
  color: var(--frame3de38-mute);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.6px;
  border-left: 3px solid var(--frame3de38-sun);
  padding-left: 8px;
  margin: 0 0 6px;
}

.frame3de38-sheet-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.frame3de38-sheet-links a {
  display: flex;
  align-items: center;
  min-height: var(--frame3de38-hit);
  padding: 8px 10px;
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-ink);
  color: var(--frame3de38-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.frame3de38-sheet-links a:active {
  border-color: var(--frame3de38-sun);
  background: var(--frame3de38-panel-2);
  transform: scale(0.97);
}

.frame3de38-sheet-quick {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.frame3de38-sheet-quick .frame3de38-cta {
  flex: 1 1 50%;
}

/* ---- hero carousel ----------------------------------------------------- */

.frame3de38-hero {
  margin: 0 0 16px;
}

.frame3de38-hero-clip {
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 6px;
  overflow: hidden;
  background: var(--frame3de38-panel);
}

.frame3de38-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.frame3de38-hero-track::-webkit-scrollbar {
  display: none;
}

.frame3de38-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--frame3de38-panel-2);
  aspect-ratio: 20 / 9;
  overflow: hidden;
}

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

.frame3de38-slide-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 26px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(7, 7, 15, 0.92) 22%,
    rgba(7, 7, 15, 0) 100%
  );
  text-align: left;
}

.frame3de38-slide-copy strong {
  color: var(--frame3de38-sun);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}

.frame3de38-slide-copy em {
  color: var(--frame3de38-text);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.frame3de38-slide:active img {
  transform: scale(1.02);
}

.frame3de38-hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.frame3de38-dot {
  width: 34px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
}

.frame3de38-dot::before {
  content: "";
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--frame3de38-line-hot);
  transition: background 0.18s ease, width 0.18s ease;
}

.frame3de38-dot.frame3de38-dot-on::before {
  background: var(--frame3de38-sun);
  width: 26px;
}

.frame3de38-dot:active::before {
  background: var(--frame3de38-sun-dim);
}

/* ---- quick route chips -------------------------------------------------- */

.frame3de38-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin: 0 0 16px;
  scrollbar-width: none;
}

.frame3de38-chips::-webkit-scrollbar {
  display: none;
}

.frame3de38-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 999px;
  background: var(--frame3de38-panel);
  color: var(--frame3de38-text);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.frame3de38-chip b {
  color: var(--frame3de38-sun);
  margin-right: 4px;
}

.frame3de38-chip:active {
  background: var(--frame3de38-panel-2);
  transform: scale(0.96);
}

/* ---- intro block -------------------------------------------------------- */

.frame3de38-intro {
  border: 1px solid var(--frame3de38-line);
  border-left: 4px solid var(--frame3de38-sun);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-panel);
  padding: 14px 12px;
  margin: 0 0 18px;
}

.frame3de38-intro p {
  font-size: 14px;
  color: var(--frame3de38-text);
}

.frame3de38-intro .frame3de38-kicker {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 8px;
  border: 1px solid var(--frame3de38-sun);
  border-radius: 3px;
  color: var(--frame3de38-sun);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

/* ---- game catalog sections ---------------------------------------------- */

.frame3de38-cat {
  margin: 0 0 22px;
}

.frame3de38-cat-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px solid var(--frame3de38-sun);
  padding-bottom: 5px;
  margin-bottom: 6px;
}

.frame3de38-cat-head h2 {
  margin: 0;
  font-size: 16.5px;
}

.frame3de38-cat-count {
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 3px;
  color: var(--frame3de38-sun);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.frame3de38-cat-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--frame3de38-mute);
}

.frame3de38-cat-note a {
  font-weight: 700;
}

.frame3de38-cat-more {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.frame3de38-cat-more a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px dashed var(--frame3de38-line-hot);
  border-radius: 3px;
  background: rgba(255, 235, 59, 0.05);
  color: var(--frame3de38-sun);
  font-size: 12px;
  font-weight: 700;
}

.frame3de38-cat-more a:active {
  background: var(--frame3de38-panel-2);
  transform: scale(0.97);
}

/* compact square game catalog grid: 4 columns on 320-429px */
.frame3de38-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 6px;
}

.frame3de38-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  padding: 5px 4px 7px;
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-panel);
  text-align: center;
  transition: border-color 0.15s ease, transform 0.08s ease;
}

.frame3de38-tile:active {
  border-color: var(--frame3de38-sun);
  background: var(--frame3de38-panel-2);
  transform: scale(0.95);
}

.frame3de38-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--frame3de38-line);
  border-radius: 3px;
  background: var(--frame3de38-ink);
}

.frame3de38-tile-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: 2.5em;
  color: var(--frame3de38-text);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

/* ---- content module cards ------------------------------------------------ */

.frame3de38-mod {
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-panel);
  padding: 14px 12px;
  margin: 0 0 16px;
}

.frame3de38-mod-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 8px;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 3px;
  color: var(--frame3de38-mute);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.frame3de38-mod p {
  font-size: 13.5px;
  color: var(--frame3de38-text);
}

.frame3de38-factfirst {
  border-left: 3px solid var(--frame3de38-sun);
  padding-left: 10px;
  color: var(--frame3de38-sun);
  font-weight: 700;
  font-size: 13.5px;
  margin: 0 0 10px;
}

/* expandable details: fact summary first, details on demand */
.frame3de38-acc {
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-ink);
  margin: 0 0 8px;
}

.frame3de38-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--frame3de38-text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.frame3de38-acc summary::-webkit-details-marker {
  display: none;
}

.frame3de38-acc summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 3px;
  color: var(--frame3de38-sun);
  font-size: 14px;
  font-weight: 800;
}

.frame3de38-acc[open] summary::after {
  content: "\2013";
}

.frame3de38-acc[open] summary {
  color: var(--frame3de38-sun);
}

.frame3de38-acc-body {
  padding: 0 12px 12px;
  font-size: 13px;
  color: var(--frame3de38-mute);
}

.frame3de38-acc-body p {
  margin: 0 0 8px;
}

/* quick fact table */
.frame3de38-facts {
  margin: 0;
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  overflow: hidden;
}

.frame3de38-facts dt {
  padding: 8px 10px 2px;
  background: var(--frame3de38-ink);
  color: var(--frame3de38-mute);
  font-size: 11.5px;
  font-weight: 700;
}

.frame3de38-facts dd {
  margin: 0;
  padding: 0 10px 9px;
  background: var(--frame3de38-ink);
  border-bottom: 1px solid var(--frame3de38-line);
  color: var(--frame3de38-sun);
  font-size: 13.5px;
  font-weight: 700;
}

.frame3de38-facts dd:last-of-type {
  border-bottom: 0;
}

/* ---- homepage extended footer -------------------------------------------- */

.frame3de38-ext {
  border: 1px solid var(--frame3de38-line-hot);
  border-radius: 6px;
  background: var(--frame3de38-panel);
  padding: 14px 12px;
  margin: 20px 0 14px;
}

.frame3de38-ext h2 {
  font-size: 15.5px;
  margin: 0 0 8px;
}

.frame3de38-ext-block {
  margin: 0 0 14px;
}

.frame3de38-ext-block h3 {
  color: var(--frame3de38-sun);
  font-size: 12.5px;
  letter-spacing: 0.4px;
  margin: 0 0 6px;
  border-left: 3px solid var(--frame3de38-sun);
  padding-left: 8px;
}

.frame3de38-dir {
  columns: 2;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3de38-dir li {
  break-inside: avoid;
  margin: 0 0 2px;
}

.frame3de38-dir a {
  display: block;
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: none;
  color: var(--frame3de38-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.frame3de38-dir a::before {
  content: "\203A";
  color: var(--frame3de38-sun);
  font-weight: 800;
  margin-right: 6px;
}

.frame3de38-dir a:active {
  color: var(--frame3de38-sun);
}

.frame3de38-brandnote {
  font-size: 12.5px;
  color: var(--frame3de38-mute);
}

.frame3de38-promos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.frame3de38-promos .frame3de38-cta {
  min-height: 46px;
  font-size: 13px;
  padding: 9px 10px;
}

.frame3de38-promos .frame3de38-cta--wide {
  grid-column: 1 / -1;
}

.frame3de38-ext-note {
  border: 1px dashed var(--frame3de38-line-hot);
  border-radius: var(--frame3de38-radius);
  padding: 9px 10px;
  font-size: 11.5px;
  color: var(--frame3de38-mute);
  line-height: 1.6;
}

/* ---- common footer -------------------------------------------------------- */

footer.frame3de38-foot {
  position: relative;
  padding: 0 var(--frame3de38-gap)
    calc(var(--frame3de38-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.frame3de38-copy {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--frame3de38-line);
  border-radius: var(--frame3de38-radius);
  background: var(--frame3de38-panel);
  color: var(--frame3de38-mute);
  font-size: 12px;
  letter-spacing: 0.3px;
}

/* ---- layered mobile bottom tab bar ---------------------------------------- */

nav.frame3de38-tabbar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame3de38-shell-max);
  height: calc(var(--frame3de38-tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 44;
  display: flex;
  align-items: stretch;
  padding: 0 4px env(safe-area-inset-bottom, 0px);
  background: rgba(15, 15, 35, 0.98);
  border-top: 2px solid var(--frame3de38-sun);
}

.frame3de38-tab {
  position: relative;
  flex: 1 1 20%;
  min-height: var(--frame3de38-hit);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 2px 4px;
  border: 0;
  background: none;
  color: var(--frame3de38-mute);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.15s ease, transform 0.08s ease;
}

.frame3de38-tab svg {
  width: 22px;
  height: 22px;
  transition: transform 0.15s ease;
}

.frame3de38-tab:active {
  transform: translateY(1px);
}

.frame3de38-tab:active svg {
  transform: scale(0.88);
}

/* light active marker: label emphasis + thin marker bar */
.frame3de38-tab.frame3de38-tab-on {
  color: var(--frame3de38-sun);
}

.frame3de38-tab.frame3de38-tab-on::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 3px;
  background: var(--frame3de38-sun);
}

.frame3de38-tab.frame3de38-tab-on svg {
  transform: translateY(-1px);
}

.frame3de38-tab-text {
  display: block;
}

/* text link style used inside body copy */
.frame3de38-inline {
  font-weight: 700;
}

/* ---- 430px breakpoint: wider canvas gets a 5th game column --------------- */

@media (min-width: 430px) {
  .frame3de38-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .frame3de38-tile-name {
    font-size: 11.5px;
  }

  h1 {
    font-size: 22.5px;
  }

  h2 {
    font-size: 18.5px;
  }

  .frame3de38-ext {
    padding: 16px 14px;
  }
}

/* very narrow phones: keep names readable, tighten gaps */
@media (max-width: 349px) {
  .frame3de38-grid {
    gap: 8px 5px;
  }

  .frame3de38-tile-name {
    font-size: 10.5px;
  }

  .frame3de38-brand-name {
    font-size: 15.5px;
  }

  .frame3de38-reg,
  .frame3de38-log {
    padding: 8px 9px;
    font-size: 12px;
  }
}

/* ---- guide-page patterns -------------------------------------------------- */

.frame3de38-guide-lead {
  border: 1px solid var(--frame3de38-line-hot);
  border-top: 4px solid var(--frame3de38-sun);
  border-radius: 6px;
  background: linear-gradient(145deg, var(--frame3de38-panel), var(--frame3de38-ink));
  padding: 15px 13px 12px;
  margin: 0 0 16px;
}

.frame3de38-guide-lead h1 {
  margin-bottom: 9px;
}

.frame3de38-guide-lead p:last-child,
.frame3de38-guide-panel p:last-child {
  margin-bottom: 0;
}

.frame3de38-guide-mark {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--frame3de38-sun);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.frame3de38-steprail {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.frame3de38-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-left: 2px solid var(--frame3de38-line-hot);
  background: var(--frame3de38-panel);
  padding: 10px 10px 10px 8px;
}

.frame3de38-step-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--frame3de38-sun);
  border-radius: 50%;
  color: var(--frame3de38-sun);
  font-weight: 800;
}

.frame3de38-step h2,
.frame3de38-step h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.frame3de38-step p {
  margin: 0;
  color: var(--frame3de38-mute);
  font-size: 13px;
}

.frame3de38-guide-panel {
  border: 1px solid var(--frame3de38-line);
  border-radius: 6px;
  background: var(--frame3de38-panel);
  padding: 14px 12px;
  margin: 0 0 16px;
}

.frame3de38-guide-panel > h2 {
  color: var(--frame3de38-sun);
  font-size: 17px;
  margin-bottom: 9px;
}

.frame3de38-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.frame3de38-checklist li {
  position: relative;
  padding: 8px 8px 8px 27px;
  border-bottom: 1px solid var(--frame3de38-line);
  color: var(--frame3de38-text);
  font-size: 13px;
}

.frame3de38-checklist li:last-child {
  border-bottom: 0;
}

.frame3de38-checklist li::before {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 7px;
  color: var(--frame3de38-sun);
  font-weight: 900;
}

.frame3de38-question {
  border-bottom: 1px solid var(--frame3de38-line);
  padding: 10px 0;
}

.frame3de38-question:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.frame3de38-question h3 {
  color: var(--frame3de38-text);
  margin-bottom: 4px;
}

.frame3de38-question p {
  color: var(--frame3de38-mute);
  font-size: 13px;
}

.frame3de38-question p:last-child {
  margin-bottom: 0;
}

.frame3de38-callout {
  border: 1px dashed var(--frame3de38-sun-dim);
  border-radius: 4px;
  background: rgba(255, 235, 59, 0.06);
  color: var(--frame3de38-text);
  padding: 11px 10px;
  margin: 0 0 14px;
  font-size: 13px;
}

.frame3de38-actionrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 0;
}

.frame3de38-actionrow .frame3de38-cta {
  width: 100%;
  text-align: center;
}

/* The app page uses a comparison board rather than the help-page accordions. */
.frame3de38-app-intro {
  border-right: 5px solid var(--frame3de38-sun);
  border-bottom: 1px solid var(--frame3de38-line-hot);
  background: var(--frame3de38-panel);
  padding: 15px 13px;
  margin: 0 0 17px;
}

.frame3de38-app-intro h1 {
  margin-bottom: 9px;
}

.frame3de38-app-intro p:last-child {
  margin-bottom: 0;
}

.frame3de38-appmap {
  display: grid;
  gap: 8px;
  margin: 0 0 17px;
}

.frame3de38-setting {
  border: 1px solid var(--frame3de38-line);
  background: var(--frame3de38-ink);
  padding: 11px 10px;
}

.frame3de38-setting strong {
  display: block;
  color: var(--frame3de38-sun);
  font-size: 14px;
  margin-bottom: 3px;
}

.frame3de38-setting span {
  display: block;
  color: var(--frame3de38-mute);
  font-size: 12.5px;
}

.frame3de38-compare {
  overflow-x: auto;
  border: 1px solid var(--frame3de38-line-hot);
  margin: 0 0 15px;
}

.frame3de38-compare table {
  width: 100%;
  min-width: 330px;
  border-collapse: collapse;
  font-size: 12px;
}

.frame3de38-compare th,
.frame3de38-compare td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--frame3de38-line);
  text-align: left;
  vertical-align: top;
}

.frame3de38-compare th {
  background: var(--frame3de38-panel-2);
  color: var(--frame3de38-sun);
}

.frame3de38-compare td {
  color: var(--frame3de38-text);
}

.frame3de38-compare tr:last-child td {
  border-bottom: 0;
}

.frame3de38-ledger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--frame3de38-line);
  background: var(--frame3de38-line);
  margin: 0 0 16px;
}

.frame3de38-ledger dt,
.frame3de38-ledger dd {
  margin: 0;
  padding: 9px 8px;
  background: var(--frame3de38-panel);
  font-size: 12.5px;
}

.frame3de38-ledger dt {
  color: var(--frame3de38-mute);
}

.frame3de38-ledger dd {
  color: var(--frame3de38-sun);
  font-weight: 700;
}

/* reduce motion: keep micro-state changes only */
@media (prefers-reduced-motion: reduce) {
  .frame3de38-sheet,
  .frame3de38-backdrop,
  .frame3de38-dot::before,
  .frame3de38-tab svg,
  .frame3de38-slide img {
    transition: none;
  }

  .frame3de38-hero-track {
    scroll-behavior: auto;
  }
}
