/* ============================================================
   Classic Game Zone - mobile viewport stylesheet
   Canvas: 320-430px phone frame, centered on wide screens.
   Palette: #0C0C0C base / #F4A460 accent.
   Class prefix: viewdf62a-
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --viewdf62a-ink-base: #0C0C0C;
  --viewdf62a-ink-deep: #060606;
  --viewdf62a-ink-panel: #141414;
  --viewdf62a-ink-raise: #1B1B1B;
  --viewdf62a-ink-line: #2B2B2B;
  --viewdf62a-ink-line-soft: #222222;
  --viewdf62a-sand: #F4A460;
  --viewdf62a-sand-bright: #FFC98F;
  --viewdf62a-sand-deep: #C77F42;
  --viewdf62a-paper: #EFE6DA;
  --viewdf62a-paper-dim: #B7A894;
  --viewdf62a-paper-faint: #8F8271;
  --viewdf62a-font-head: "Trebuchet MS", "Segoe UI", "DejaVu Sans", Verdana, sans-serif;
  --viewdf62a-font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --viewdf62a-edge: 10px;
  --viewdf62a-radius: 3px;
  --viewdf62a-radius-tile: 2px;
  --viewdf62a-topbar-h: 92px;
  --viewdf62a-tabbar-h: 62px;
  --viewdf62a-press: translateY(1px);
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--viewdf62a-ink-deep); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--viewdf62a-font-body);
  background: var(--viewdf62a-ink-base);
  color: var(--viewdf62a-paper);
  font-size: 14px;
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  border-inline: 1px solid var(--viewdf62a-ink-line-soft);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3 { font-family: var(--viewdf62a-font-head); font-weight: 700; line-height: 1.3; }

:focus-visible {
  outline: 2px solid var(--viewdf62a-sand);
  outline-offset: 2px;
}

.viewdf62a-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- top bar : edge-aligned functional header ---------- */
.viewdf62a-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 430px;
  background: var(--viewdf62a-ink-base);
  border-bottom: 2px solid var(--viewdf62a-sand);
  z-index: 50;
}

.viewdf62a-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--viewdf62a-edge);
}

.viewdf62a-topbar-row + .viewdf62a-topbar-row {
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
}

.viewdf62a-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  color: var(--viewdf62a-paper);
}

.viewdf62a-brand-logo {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius-tile);
  background: var(--viewdf62a-ink-raise);
}

.viewdf62a-brand-name {
  font-family: var(--viewdf62a-font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewdf62a-menubtn {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius-tile);
  background: var(--viewdf62a-ink-raise);
}

.viewdf62a-menubtn:active { transform: var(--viewdf62a-press); }

.viewdf62a-menubtn-box {
  display: grid;
  gap: 4px;
  width: 16px;
}

.viewdf62a-menubtn-bar {
  height: 2px;
  background: var(--viewdf62a-sand);
  border-radius: 1px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.viewdf62a-topbar.viewdf62a-is-open .viewdf62a-menubtn-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.viewdf62a-topbar.viewdf62a-is-open .viewdf62a-menubtn-bar:nth-child(2) { opacity: 0; }
.viewdf62a-topbar.viewdf62a-is-open .viewdf62a-menubtn-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.viewdf62a-topbar-actions {
  gap: 6px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.viewdf62a-btn-register,
.viewdf62a-btn-login {
  flex: 1 1 0;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--viewdf62a-radius);
}

.viewdf62a-btn-register {
  background: var(--viewdf62a-sand);
  color: #161009;
  border: 1px solid var(--viewdf62a-sand-bright);
}

.viewdf62a-btn-login {
  background: transparent;
  color: var(--viewdf62a-sand);
  border: 1px solid var(--viewdf62a-sand-deep);
}

.viewdf62a-btn-register:active,
.viewdf62a-btn-login:active { transform: var(--viewdf62a-press); }

/* ---------- expandable nav panel ---------- */
.viewdf62a-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--viewdf62a-ink-panel);
  border-bottom: 2px solid var(--viewdf62a-sand);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.viewdf62a-topbar.viewdf62a-is-open .viewdf62a-nav { max-height: 560px; }

.viewdf62a-nav-group { padding: 6px 0 2px; }

.viewdf62a-nav-group + .viewdf62a-nav-group { border-top: 1px solid var(--viewdf62a-ink-line-soft); }

.viewdf62a-nav-label {
  padding: 6px var(--viewdf62a-edge) 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewdf62a-paper-faint);
}

.viewdf62a-nav-list { list-style: none; }

.viewdf62a-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 0 var(--viewdf62a-edge);
  font-size: 13.5px;
  color: var(--viewdf62a-paper);
  border-bottom: 1px solid var(--viewdf62a-ink-line-soft);
}

.viewdf62a-nav-link:last-child { border-bottom: 0; }

.viewdf62a-nav-link::after {
  content: "";
  width: 6px; height: 6px;
  flex: 0 0 auto;
  border-top: 1.5px solid var(--viewdf62a-sand-deep);
  border-right: 1.5px solid var(--viewdf62a-sand-deep);
  transform: rotate(45deg);
}

.viewdf62a-nav-link:active { background: var(--viewdf62a-ink-raise); }

.viewdf62a-nav-link[aria-current="page"] {
  color: var(--viewdf62a-sand);
  background: var(--viewdf62a-ink-raise);
  font-weight: 700;
}

/* ---------- main canvas ---------- */
.viewdf62a-main {
  padding: calc(var(--viewdf62a-topbar-h) + 6px) 0 0;
}

.viewdf62a-section {
  padding: 18px var(--viewdf62a-edge) 6px;
}

.viewdf62a-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewdf62a-sand);
  margin-bottom: 6px;
}

.viewdf62a-kicker::before {
  content: "";
  width: 10px; height: 10px;
  flex: 0 0 auto;
  background: var(--viewdf62a-sand);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.viewdf62a-section h2 {
  font-size: 18px;
  color: var(--viewdf62a-paper);
  margin-bottom: 8px;
}

/* ---------- intro / H1 ---------- */
.viewdf62a-intro {
  padding: 14px var(--viewdf62a-edge) 4px;
  border-bottom: 1px solid var(--viewdf62a-ink-line-soft);
  background:
    linear-gradient(180deg, rgba(244,164,96,0.10) 0%, rgba(244,164,96,0) 100%),
    var(--viewdf62a-ink-base);
}

.viewdf62a-intro h1 {
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--viewdf62a-paper);
  margin-bottom: 8px;
}

.viewdf62a-lede {
  color: var(--viewdf62a-paper-dim);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.viewdf62a-factstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.viewdf62a-factstrip li {
  font-size: 11px;
  color: var(--viewdf62a-paper-dim);
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius-tile);
  padding: 3px 7px;
  background: var(--viewdf62a-ink-panel);
}

/* ---------- full-width CTA ---------- */
.viewdf62a-cta {
  display: block;
  width: 100%;
  min-height: 46px;
  background: var(--viewdf62a-sand);
  color: #161009;
  border: 1px solid var(--viewdf62a-sand-bright);
  border-radius: var(--viewdf62a-radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--viewdf62a-font-head);
  text-align: center;
}

.viewdf62a-cta:active { transform: var(--viewdf62a-press); filter: brightness(1.08); }

.viewdf62a-cta-ghost {
  display: block;
  width: 100%;
  min-height: 42px;
  background: transparent;
  color: var(--viewdf62a-sand);
  border: 1px solid var(--viewdf62a-sand-deep);
  border-radius: var(--viewdf62a-radius);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.viewdf62a-cta-ghost:active { transform: var(--viewdf62a-press); }

/* ---------- hero carousel ---------- */
.viewdf62a-hero {
  margin: 12px var(--viewdf62a-edge) 4px;
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius);
  background: var(--viewdf62a-ink-panel);
  overflow: hidden;
}

.viewdf62a-viewport { overflow: hidden; }

.viewdf62a-track {
  display: flex;
  transition: transform 0.35s ease;
}

.viewdf62a-slide { flex: 0 0 100%; }

.viewdf62a-slide-btn {
  display: block;
  width: 100%;
  text-align: left;
  position: relative;
}

.viewdf62a-slide-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--viewdf62a-ink-raise);
}

.viewdf62a-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 10px 10px;
  background: linear-gradient(180deg, rgba(12,12,12,0) 0%, rgba(12,12,12,0.92) 78%);
}

.viewdf62a-slide-tag {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--viewdf62a-sand-bright);
  margin-bottom: 2px;
}

.viewdf62a-slide-title {
  display: block;
  font-family: var(--viewdf62a-font-head);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--viewdf62a-paper);
}

.viewdf62a-slide-cta {
  display: inline-block;
  margin-top: 7px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #161009;
  background: var(--viewdf62a-sand);
  border-radius: var(--viewdf62a-radius-tile);
}

.viewdf62a-slide-btn:active .viewdf62a-slide-cta { filter: brightness(1.1); }

.viewdf62a-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 8px 0 9px;
  background: var(--viewdf62a-ink-panel);
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
}

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

.viewdf62a-dot::after {
  content: "";
  width: 14px; height: 3px;
  border-radius: 1px;
  background: var(--viewdf62a-ink-line);
}

.viewdf62a-dot.viewdf62a-is-on::after { background: var(--viewdf62a-sand); }

/* ---------- game categories ---------- */
.viewdf62a-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 4px;
}

.viewdf62a-cat-count {
  font-size: 11px;
  font-weight: 700;
  color: var(--viewdf62a-sand);
  border: 1px solid var(--viewdf62a-sand-deep);
  border-radius: var(--viewdf62a-radius-tile);
  padding: 1px 6px;
}

.viewdf62a-cat-fact {
  font-size: 12px;
  color: var(--viewdf62a-paper-dim);
  border-left: 3px solid var(--viewdf62a-sand-deep);
  padding: 2px 0 2px 8px;
  margin-bottom: 10px;
}

.viewdf62a-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

/* game card : image over bottom name bar */
.viewdf62a-gcard {
  display: flex;
  flex-direction: column;
  background: var(--viewdf62a-ink-panel);
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius);
  padding: 4px 4px 0;
  overflow: hidden;
  text-align: center;
}

.viewdf62a-gcard:active {
  transform: var(--viewdf62a-press);
  border-color: var(--viewdf62a-sand-deep);
}

.viewdf62a-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--viewdf62a-radius-tile);
  background: var(--viewdf62a-ink-raise);
}

.viewdf62a-gcard-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 3px 2px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--viewdf62a-paper-dim);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- content modules ---------- */
.viewdf62a-mod {
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius);
  background: var(--viewdf62a-ink-panel);
  padding: 12px var(--viewdf62a-edge) 14px;
  margin: 12px var(--viewdf62a-edge) 0;
}

.viewdf62a-mod > p { color: var(--viewdf62a-paper-dim); font-size: 13px; margin-bottom: 10px; }

.viewdf62a-mod h2 { margin-bottom: 6px; }

.viewdf62a-mod-summary {
  font-size: 12.5px;
  color: var(--viewdf62a-sand-bright);
  border: 1px dashed var(--viewdf62a-sand-deep);
  border-radius: var(--viewdf62a-radius-tile);
  padding: 6px 8px;
  margin-bottom: 10px;
}

/* numbered steps */
.viewdf62a-steps { list-style: none; counter-reset: viewdf62a-step; }

.viewdf62a-steps li {
  counter-increment: viewdf62a-step;
  position: relative;
  padding: 8px 0 8px 38px;
  border-bottom: 1px solid var(--viewdf62a-ink-line-soft);
  font-size: 13px;
  color: var(--viewdf62a-paper-dim);
}

.viewdf62a-steps li:last-child { border-bottom: 0; }

.viewdf62a-steps li::before {
  content: counter(viewdf62a-step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 10px;
  width: 26px; height: 26px;
  display: grid;
  place-items: center;
  font-family: var(--viewdf62a-font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--viewdf62a-sand);
  border: 1px solid var(--viewdf62a-sand-deep);
  border-radius: var(--viewdf62a-radius-tile);
}

.viewdf62a-steps strong { color: var(--viewdf62a-paper); font-weight: 700; }

/* promo cards */
.viewdf62a-promo-card {
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius);
  background: var(--viewdf62a-ink-base);
  padding: 10px;
  margin-bottom: 10px;
}

.viewdf62a-promo-card:last-child { margin-bottom: 12px; }

.viewdf62a-promo-card h3 {
  font-size: 14px;
  color: var(--viewdf62a-paper);
  margin-bottom: 4px;
}

.viewdf62a-promo-card p {
  font-size: 12.5px;
  color: var(--viewdf62a-paper-dim);
  margin-bottom: 10px;
}

/* trick rows with tags */
.viewdf62a-trick {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--viewdf62a-ink-line-soft);
}

.viewdf62a-trick:last-child { border-bottom: 0; }

.viewdf62a-tag {
  flex: 0 0 auto;
  min-width: 46px;
  text-align: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--viewdf62a-sand);
  border: 1px solid var(--viewdf62a-sand-deep);
  border-radius: var(--viewdf62a-radius-tile);
  padding: 3px 5px;
}

.viewdf62a-trick p { font-size: 12.5px; color: var(--viewdf62a-paper-dim); }

.viewdf62a-trick strong { color: var(--viewdf62a-paper); font-weight: 700; }

/* scenario rows */
.viewdf62a-scene {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--viewdf62a-ink-line-soft);
}

.viewdf62a-scene:last-child { border-bottom: 0; }

.viewdf62a-scene-tag {
  flex: 0 0 74px;
  font-family: var(--viewdf62a-font-head);
  font-size: 11px;
  font-weight: 700;
  color: #161009;
  background: var(--viewdf62a-sand);
  border-radius: var(--viewdf62a-radius-tile);
  padding: 3px 5px;
  text-align: center;
  height: fit-content;
}

.viewdf62a-scene p { font-size: 12.5px; color: var(--viewdf62a-paper-dim); }

.viewdf62a-scene strong { color: var(--viewdf62a-paper); font-weight: 700; }

/* term list */
.viewdf62a-term { padding: 8px 0; border-bottom: 1px solid var(--viewdf62a-ink-line-soft); }

.viewdf62a-term:last-child { border-bottom: 0; }

.viewdf62a-term dt {
  font-family: var(--viewdf62a-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--viewdf62a-sand);
  margin-bottom: 2px;
}

.viewdf62a-term dd { font-size: 12.5px; color: var(--viewdf62a-paper-dim); }

.viewdf62a-note {
  font-size: 11.5px;
  color: var(--viewdf62a-paper-faint);
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
  padding-top: 9px;
  margin-top: 2px;
}

/* ---------- extended footer (home only) ---------- */
.viewdf62a-extfoot {
  margin-top: 16px;
  padding: 14px var(--viewdf62a-edge) 16px;
  border-top: 2px solid var(--viewdf62a-sand);
  background: var(--viewdf62a-ink-panel);
}

.viewdf62a-ext-title {
  font-family: var(--viewdf62a-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--viewdf62a-paper);
  margin-bottom: 8px;
}

.viewdf62a-dir-group { margin-bottom: 10px; }

.viewdf62a-dir-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--viewdf62a-paper-faint);
  margin-bottom: 5px;
}

.viewdf62a-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.viewdf62a-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--viewdf62a-paper-dim);
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius-tile);
  background: var(--viewdf62a-ink-base);
}

.viewdf62a-chip:active { border-color: var(--viewdf62a-sand-deep); color: var(--viewdf62a-sand); }

.viewdf62a-brandblurb {
  font-size: 12px;
  color: var(--viewdf62a-paper-dim);
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
  padding-top: 10px;
  margin-bottom: 12px;
}

.viewdf62a-shortcut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  color: var(--viewdf62a-paper);
  background: var(--viewdf62a-ink-base);
  border: 1px solid var(--viewdf62a-ink-line);
  border-left: 3px solid var(--viewdf62a-sand);
  border-radius: var(--viewdf62a-radius);
}

.viewdf62a-shortcut:active {
  transform: var(--viewdf62a-press);
  border-color: var(--viewdf62a-sand-deep);
  color: var(--viewdf62a-sand-bright);
}

.viewdf62a-shortcut::after {
  content: "";
  width: 7px; height: 7px;
  flex: 0 0 auto;
  border-top: 2px solid var(--viewdf62a-sand);
  border-right: 2px solid var(--viewdf62a-sand);
  transform: rotate(45deg);
}

.viewdf62a-disclaimer {
  font-size: 11px;
  line-height: 1.5;
  color: var(--viewdf62a-paper-faint);
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
  padding-top: 10px;
}

/* ---------- common footer ---------- */
.viewdf62a-foot {
  padding: 14px var(--viewdf62a-edge) calc(var(--viewdf62a-tabbar-h) + 14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--viewdf62a-ink-line-soft);
  text-align: center;
}

.viewdf62a-foot-copy {
  font-size: 11.5px;
  color: var(--viewdf62a-paper-faint);
}

.viewdf62a-foot-copy strong { color: var(--viewdf62a-paper-dim); font-weight: 700; }

/* ---------- bottom tab bar : brand accent band ---------- */
.viewdf62a-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  margin: 0 auto;
  max-width: 430px;
  height: calc(var(--viewdf62a-tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #101010;
  border-top: 2px solid var(--viewdf62a-sand);
  z-index: 60;
}

.viewdf62a-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  color: var(--viewdf62a-paper-faint);
}

.viewdf62a-tab:active { transform: scale(0.94); }

.viewdf62a-tab-tile {
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  background: var(--viewdf62a-ink-raise);
  border: 1px solid var(--viewdf62a-ink-line);
  border-radius: var(--viewdf62a-radius-tile);
  transition: transform 0.15s ease, background 0.15s ease;
}

.viewdf62a-tab-tile svg { width: 16px; height: 16px; stroke: var(--viewdf62a-sand); }

.viewdf62a-tab-label { font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; }

.viewdf62a-tab.viewdf62a-is-active { color: var(--viewdf62a-paper); }

.viewdf62a-tab.viewdf62a-is-active .viewdf62a-tab-tile {
  transform: translateY(-2px);
  background: var(--viewdf62a-sand);
  border-color: var(--viewdf62a-sand-bright);
}

.viewdf62a-tab.viewdf62a-is-active .viewdf62a-tab-tile svg { stroke: #161009; }

.viewdf62a-tab.viewdf62a-is-active .viewdf62a-tab-label { color: var(--viewdf62a-sand-bright); }

/* ---------- breakpoints ---------- */
@media (min-width: 375px) {
  .viewdf62a-intro h1 { font-size: 23px; }
  .viewdf62a-section h2 { font-size: 19px; }
  .viewdf62a-gcard-bar { font-size: 10.5px; }
}

@media (min-width: 430px) {
  .viewdf62a-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .viewdf62a-intro h1 { font-size: 24px; }
}

/* ---------- motion budget : essential feedback only ---------- */
@media (prefers-reduced-motion: reduce) {
  .viewdf62a-track { transition: none; }
  .viewdf62a-nav { transition: none; }
  .viewdf62a-tab-tile { transition: none; }
  .viewdf62a-menubtn-bar { transition: none; }
}
