/* ============================================================
   wmc group - wmcgroup.click
   Mobile-first stylesheet: 320-430px canvas, centered phone
   shell on wide screens. All classes use prefix surfaced3f19-
   Palette: #00CED1 #20B2AA #2C2C2C #00BFFF #0000CD #FAFAFA
   ============================================================ */

:root {
  --surfaced3f19-teal: #00CED1;
  --surfaced3f19-sea: #20B2AA;
  --surfaced3f19-ink: #2C2C2C;
  --surfaced3f19-sky: #00BFFF;
  --surfaced3f19-blue: #0000CD;
  --surfaced3f19-paper: #FAFAFA;
  --surfaced3f19-bg: #2C2C2C;
  --surfaced3f19-panel: rgba(0, 206, 209, 0.07);
  --surfaced3f19-line: rgba(0, 206, 209, 0.24);
  --surfaced3f19-dim: rgba(250, 250, 250, 0.72);
  --surfaced3f19-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Courier New", monospace;
  --surfaced3f19-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --surfaced3f19-top-h: 56px;
  --surfaced3f19-bnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surfaced3f19-bg);
  color: var(--surfaced3f19-paper);
  font-family: var(--surfaced3f19-sans);
  font-size: 15px;
  line-height: 1.62;
  min-height: 100vh;
}

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

a { color: var(--surfaced3f19-sky); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--surfaced3f19-sky);
  outline-offset: 2px;
}

/* Phone canvas shell: stays centered on desktop, fluid on phones */
.surfaced3f19-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.06), rgba(0, 0, 205, 0.08) 55%, rgba(44, 44, 44, 0.4));
  box-shadow: 0 0 0 1px rgba(0, 206, 209, 0.16);
  overflow-x: hidden;
}

/* ============ Top bar: asymmetric brand header ============ */
.surfaced3f19-topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: var(--surfaced3f19-top-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 12px;
  background: rgba(44, 44, 44, 0.97);
  border-bottom: 1px solid var(--surfaced3f19-line);
  z-index: 60;
}

.surfaced3f19-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-width: 0;
  /* asymmetric brand block: accent spine + logo */
  padding-left: 8px;
  border-left: 4px solid var(--surfaced3f19-teal);
}

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

.surfaced3f19-brand-name {
  font-family: var(--surfaced3f19-mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  color: var(--surfaced3f19-paper);
}

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

/* Square, high-contrast CTAs */
.surfaced3f19-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--surfaced3f19-teal);
  border-radius: 2px;
  font-family: var(--surfaced3f19-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.08s ease;
}

.surfaced3f19-btn:active { transform: translateY(1px) scale(0.985); filter: brightness(1.12); }

.surfaced3f19-btn-hot {
  background: var(--surfaced3f19-teal);
  color: var(--surfaced3f19-ink);
}

.surfaced3f19-btn-blue {
  background: var(--surfaced3f19-blue);
  border-color: var(--surfaced3f19-blue);
  color: var(--surfaced3f19-paper);
}

.surfaced3f19-btn-ghost {
  background: transparent;
  color: var(--surfaced3f19-teal);
}

.surfaced3f19-burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 2px;
  color: var(--surfaced3f19-teal);
  cursor: pointer;
}

.surfaced3f19-burger svg { width: 22px; height: 22px; }

/* ============ Side drawer menu ============ */
.surfaced3f19-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 205, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
  z-index: 70;
}

.surfaced3f19-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(80vw, 318px);
  background: #232727;
  background: linear-gradient(180deg, rgba(0, 206, 209, 0.1), rgba(44, 44, 44, 0.98) 30%);
  border-right: 1px solid var(--surfaced3f19-line);
  transform: translateX(-102%);
  transition: transform 0.24s ease;
  z-index: 80;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.surfaced3f19-is-open .surfaced3f19-drawer { transform: translateX(0); }
.surfaced3f19-is-open .surfaced3f19-scrim { opacity: 1; visibility: visible; }

.surfaced3f19-drawer-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--surfaced3f19-line);
}

.surfaced3f19-drawer-head img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--surfaced3f19-line);
}

.surfaced3f19-drawer-head span {
  font-family: var(--surfaced3f19-mono);
  font-weight: 700;
  margin-right: auto;
}

.surfaced3f19-drawer-close {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 2px;
  color: var(--surfaced3f19-paper);
  cursor: pointer;
}

.surfaced3f19-drawer-close svg { width: 18px; height: 18px; }

.surfaced3f19-drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
}

.surfaced3f19-drawer-list li { margin: 0; }

.surfaced3f19-drawer-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 16px;
  color: var(--surfaced3f19-paper);
  border-left: 3px solid transparent;
  font-size: 14.5px;
}

.surfaced3f19-drawer-list a:hover,
.surfaced3f19-drawer-list a:active {
  background: var(--surfaced3f19-panel);
  border-left-color: var(--surfaced3f19-sea);
  text-decoration: none;
}

.surfaced3f19-drawer-list .surfaced3f19-is-here {
  border-left-color: var(--surfaced3f19-teal);
  background: var(--surfaced3f19-panel);
  color: var(--surfaced3f19-teal);
  font-weight: 700;
}

.surfaced3f19-drawer-cta {
  margin: 10px 14px 18px;
  width: calc(100% - 28px);
}

.surfaced3f19-drawer-note {
  padding: 0 16px 18px;
  font-size: 11.5px;
  color: var(--surfaced3f19-dim);
}

/* ============ Main column ============ */
.surfaced3f19-main {
  padding: calc(var(--surfaced3f19-top-h) + 12px) 12px calc(var(--surfaced3f19-bnav-h) + 34px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.surfaced3f19-h1 {
  font-family: var(--surfaced3f19-mono);
  font-size: 21px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--surfaced3f19-paper);
}

.surfaced3f19-h1 em {
  font-style: normal;
  color: var(--surfaced3f19-teal);
}

.surfaced3f19-lead {
  margin: 0;
  font-size: 14.5px;
  color: var(--surfaced3f19-dim);
}

.surfaced3f19-lead strong { color: var(--surfaced3f19-paper); }

/* ============ Promo carousel ============ */
.surfaced3f19-carousel {
  position: relative;
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 8px;
  overflow: hidden;
  background: #262b2b;
}

.surfaced3f19-slide {
  position: relative;
  aspect-ratio: 5 / 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.surfaced3f19-slide.surfaced3f19-on {
  opacity: 1;
  visibility: visible;
}

.surfaced3f19-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.surfaced3f19-slide-txt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 12px;
  background: linear-gradient(180deg, rgba(44, 44, 44, 0), rgba(0, 0, 205, 0.78));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.surfaced3f19-slide-txt strong {
  font-family: var(--surfaced3f19-mono);
  font-size: 15.5px;
  color: var(--surfaced3f19-paper);
}

.surfaced3f19-slide-txt span {
  font-size: 12.5px;
  color: rgba(250, 250, 250, 0.88);
  line-height: 1.45;
}

.surfaced3f19-slide-txt .surfaced3f19-btn {
  align-self: flex-start;
  min-height: 40px;
  padding: 8px 14px;
  margin-top: 2px;
}

.surfaced3f19-dots {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: flex;
  gap: 6px;
  z-index: 5;
}

.surfaced3f19-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid var(--surfaced3f19-paper);
  background: transparent;
  cursor: pointer;
}

.surfaced3f19-dot.surfaced3f19-on {
  background: var(--surfaced3f19-teal);
  border-color: var(--surfaced3f19-teal);
}

/* ============ Quick stats strip ============ */
.surfaced3f19-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.surfaced3f19-strip div {
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 8px;
  background: var(--surfaced3f19-panel);
  padding: 8px 6px;
  text-align: center;
}

.surfaced3f19-strip b {
  display: block;
  font-family: var(--surfaced3f19-mono);
  font-size: 15px;
  color: var(--surfaced3f19-teal);
}

.surfaced3f19-strip small {
  font-size: 10.5px;
  color: var(--surfaced3f19-dim);
  line-height: 1.3;
  display: block;
}

/* ============ Sections ============ */
.surfaced3f19-sect { display: flex; flex-direction: column; gap: 12px; }

.surfaced3f19-h2 {
  font-family: var(--surfaced3f19-mono);
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  padding-left: 10px;
  border-left: 4px solid var(--surfaced3f19-sea);
  color: var(--surfaced3f19-paper);
}

.surfaced3f19-h3 {
  font-size: 14.5px;
  margin: 14px 0 6px;
  color: var(--surfaced3f19-sky);
}

.surfaced3f19-p { margin: 0; font-size: 14.5px; color: var(--surfaced3f19-dim); }
.surfaced3f19-p strong { color: var(--surfaced3f19-paper); }

/* Scenario branch cards (info rhythm: scenario -> answer) */
.surfaced3f19-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.surfaced3f19-branch-item {
  border: 1px solid var(--surfaced3f19-line);
  border-left: 4px solid var(--surfaced3f19-blue);
  border-radius: 8px;
  background: var(--surfaced3f19-panel);
  padding: 10px 12px;
}

.surfaced3f19-branch-item b {
  display: block;
  font-family: var(--surfaced3f19-mono);
  font-size: 13px;
  color: var(--surfaced3f19-teal);
  margin-bottom: 3px;
}

.surfaced3f19-branch-item p { margin: 0; font-size: 13.5px; color: var(--surfaced3f19-dim); }

/* Category head row */
.surfaced3f19-cat-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.surfaced3f19-cat-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.surfaced3f19-cat-links a { color: var(--surfaced3f19-sky); }

.surfaced3f19-count {
  font-family: var(--surfaced3f19-mono);
  font-size: 11px;
  color: var(--surfaced3f19-teal);
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 2px;
  padding: 1px 6px;
}

/* ============ Game grid: pure image card + short name ============ */
.surfaced3f19-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.surfaced3f19-gcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(0, 206, 209, 0.14);
  border-radius: 8px;
  background: rgba(250, 250, 250, 0.03);
  padding: 5px;
  cursor: pointer;
  text-align: center;
}

.surfaced3f19-gcard img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.surfaced3f19-gname {
  font-size: 11px;
  line-height: 1.3;
  color: var(--surfaced3f19-paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  word-break: break-word;
}

/* ============ Winners board ============ */
.surfaced3f19-board {
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 8px;
  overflow: hidden;
}

.surfaced3f19-board table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.surfaced3f19-board th {
  font-family: var(--surfaced3f19-mono);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-align: left;
  color: var(--surfaced3f19-teal);
  background: rgba(0, 0, 205, 0.35);
  padding: 8px 10px;
}

.surfaced3f19-board td {
  padding: 8px 10px;
  border-top: 1px solid rgba(0, 206, 209, 0.12);
  color: var(--surfaced3f19-dim);
}

.surfaced3f19-board td.surfaced3f19-num {
  font-family: var(--surfaced3f19-mono);
  color: var(--surfaced3f19-paper);
  white-space: nowrap;
}

/* ============ Term list ============ */
.surfaced3f19-terms { display: grid; gap: 8px; margin: 0; }

.surfaced3f19-terms dt {
  font-family: var(--surfaced3f19-mono);
  font-size: 13px;
  color: var(--surfaced3f19-teal);
}

.surfaced3f19-terms dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--surfaced3f19-dim);
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(0, 206, 209, 0.18);
}

.surfaced3f19-terms dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* ============ Step list (mobile access) ============ */
.surfaced3f19-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  counter-reset: surfaced3f19-step;
}

.surfaced3f19-steps li {
  counter-increment: surfaced3f19-step;
  position: relative;
  padding: 8px 10px 8px 42px;
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 8px;
  background: var(--surfaced3f19-panel);
  font-size: 13.5px;
  color: var(--surfaced3f19-dim);
}

.surfaced3f19-steps li::before {
  content: counter(surfaced3f19-step, decimal-leading-zero);
  position: absolute;
  left: 10px;
  top: 10px;
  font-family: var(--surfaced3f19-mono);
  font-size: 13px;
  color: var(--surfaced3f19-ink);
  background: var(--surfaced3f19-teal);
  border-radius: 2px;
  padding: 1px 5px;
}

/* ============ Extended footer (home only) ============ */
.surfaced3f19-fext {
  border: 1px solid var(--surfaced3f19-line);
  border-radius: 8px;
  background: rgba(0, 0, 205, 0.14);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.surfaced3f19-fext-h {
  font-family: var(--surfaced3f19-mono);
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--surfaced3f19-teal);
  margin: 0 0 8px;
}

.surfaced3f19-fext-dir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.surfaced3f19-fext-dir a {
  font-size: 12.5px;
  color: var(--surfaced3f19-paper);
  border-bottom: 1px dotted rgba(0, 206, 209, 0.35);
  padding: 4px 0;
  display: block;
}

.surfaced3f19-fext-brand { font-size: 13px; color: var(--surfaced3f19-dim); margin: 0; }

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

.surfaced3f19-fext-promos .surfaced3f19-btn { width: 100%; min-height: 42px; padding: 8px 6px; font-size: 11.5px; text-align: center; }

.surfaced3f19-fext-note {
  font-size: 11.5px;
  color: var(--surfaced3f19-dim);
  border-top: 1px solid rgba(0, 206, 209, 0.18);
  padding-top: 10px;
  margin: 0;
}

/* ============ Common footer ============ */
.surfaced3f19-foot {
  text-align: center;
  padding: 0 12px 14px;
  font-family: var(--surfaced3f19-mono);
  font-size: 11.5px;
  color: var(--surfaced3f19-dim);
}

/* ============ Mobile bottom nav: center raised ============ */
.surfaced3f19-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(var(--surfaced3f19-bnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  background: rgba(34, 38, 38, 0.98);
  border-top: 1px solid var(--surfaced3f19-line);
  z-index: 50;
}

.surfaced3f19-bnav-item {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: transparent;
  border: 0;
  color: var(--surfaced3f19-dim);
  cursor: pointer;
  padding: 6px 2px 4px;
  font-family: inherit;
}

.surfaced3f19-bnav-item svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surfaced3f19-bnav-item span {
  font-size: 10px;
  letter-spacing: 0.2px;
  opacity: 0;
  max-height: 1.3em;
  transform: translateY(3px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* label reveal micro-interaction: always-on for active, on-press for others */
.surfaced3f19-bnav-item:active span,
.surfaced3f19-bnav-item:focus-visible span { opacity: 1; transform: translateY(0); }

.surfaced3f19-bnav-item.surfaced3f19-is-on {
  color: var(--surfaced3f19-teal);
}

.surfaced3f19-bnav-item.surfaced3f19-is-on span {
  opacity: 1;
  transform: translateY(0);
  font-weight: 700;
}

.surfaced3f19-bnav-item.surfaced3f19-is-on svg {
  fill: rgba(0, 206, 209, 0.22);
  stroke: var(--surfaced3f19-teal);
}

.surfaced3f19-bnav-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: end;
}

.surfaced3f19-bnav-center button {
  position: relative;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--surfaced3f19-teal);
  background: linear-gradient(160deg, var(--surfaced3f19-teal), var(--surfaced3f19-blue));
  color: var(--surfaced3f19-paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 205, 0.5);
  transition: transform 0.08s ease, filter 0.08s ease;
}

.surfaced3f19-bnav-center button:active { transform: translateY(1px) scale(0.96); filter: brightness(1.15); }

.surfaced3f19-bnav-center svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--surfaced3f19-paper);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.surfaced3f19-bnav-center span {
  font-family: var(--surfaced3f19-mono);
  font-size: 8.5px;
  letter-spacing: 0.3px;
}

/* ============ Utility ============ */
.surfaced3f19-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============ Breakpoints ============ */
/* Comfortable phones: keep 4 game columns, slightly larger text */
@media (min-width: 375px) {
  .surfaced3f19-gname { font-size: 11.5px; }
  .surfaced3f19-h1 { font-size: 23px; }
  .surfaced3f19-h2 { font-size: 18px; }
}

/* Literal 430 breakpoint: widen game grid to 5 tracks */
@media (min-width: 430px) {
  .surfaced3f19-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .surfaced3f19-fext-promos .surfaced3f19-btn { font-size: 12px; }
  .surfaced3f19-h1 { font-size: 24px; }
  .surfaced3f19-lead,
  .surfaced3f19-p { font-size: 15px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .surfaced3f19-slide,
  .surfaced3f19-drawer,
  .surfaced3f19-scrim,
  .surfaced3f19-bnav-item span,
  .surfaced3f19-btn,
  .surfaced3f19-bnav-center button {
    transition: none;
  }
}
