/* ============================================================
   ti5.click — canvas stylesheet
   Prefix contract: every class and variable uses "c353c4-".
   Palette: #ADFF2F accent on #212F3D ground.
   Direction: geometric headings + neutral body, low-radius
   zoned sections, pure-image game cards, scenario-branched
   info rhythm, state-color-only motion, full-width CTAs.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --c353c4-ground: #212F3D;
  --c353c4-deep: #1A2530;
  --c353c4-deeper: #16202A;
  --c353c4-panel: #24333F;
  --c353c4-accent: #ADFF2F;
  --c353c4-accent-soft: rgba(173, 255, 47, 0.55);
  --c353c4-accent-ghost: rgba(173, 255, 47, 0.12);
  --c353c4-ink-on-accent: #1C2A12;
  --c353c4-line: rgba(173, 255, 47, 0.20);
  --c353c4-line-dim: rgba(157, 181, 197, 0.16);
  --c353c4-text: #D5E2E9;
  --c353c4-muted: #9BB0BF;
  --c353c4-faint: #76899A;
  --c353c4-alert: #FFB84D;
  --c353c4-head-font: "Trebuchet MS", "Segoe UI", Verdana, Geneva, sans-serif;
  --c353c4-body-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --c353c4-radius: 4px;
  --c353c4-canvas-max: 460px;
  --c353c4-topbar-h: 56px;
  --c353c4-bnav-h: 58px;
}

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

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

body {
  margin: 0;
  background: var(--c353c4-deeper);
  color: var(--c353c4-text);
  font-family: var(--c353c4-body-font);
  font-size: 14px;
  line-height: 1.62;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--c353c4-head-font);
  color: var(--c353c4-accent);
  line-height: 1.24;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
}

h1 { font-size: 25px; }
h2 { font-size: 19px; }
h3 { font-size: 15px; color: var(--c353c4-text); }

p { margin: 0 0 10px; }

a {
  color: var(--c353c4-accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--c353c4-accent);
  outline-offset: 2px;
  border-radius: var(--c353c4-radius);
}

::selection {
  background: var(--c353c4-accent);
  color: var(--c353c4-ink-on-accent);
}

/* ---------- phone canvas ---------- */
.c353c4-canvas {
  position: relative;
  max-width: var(--c353c4-canvas-max);
  margin: 0 auto;
  background: var(--c353c4-ground);
  min-height: 100vh;
}

@media (min-width: 520px) {
  .c353c4-canvas {
    border-inline: 1px solid var(--c353c4-line-dim);
  }
}

/* ---------- fixed top action bar ---------- */
.c353c4-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--c353c4-deep);
  border-bottom: 1px solid var(--c353c4-line);
}

.c353c4-topbar-in {
  max-width: var(--c353c4-canvas-max);
  margin: 0 auto;
  min-height: var(--c353c4-topbar-h);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

/* brand zone: logo image + plain site name only */
.c353c4-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 40px;
}

.c353c4-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 1px solid var(--c353c4-line);
  border-radius: var(--c353c4-radius);
  background: var(--c353c4-deeper);
  padding: 2px;
  flex: none;
}

.c353c4-brand-name {
  font-family: var(--c353c4-head-font);
  font-size: 21px;
  font-weight: 700;
  color: var(--c353c4-accent);
  letter-spacing: 1.5px;
}

/* action zone: register / login / menu */
.c353c4-act {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: var(--c353c4-radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: 1px solid transparent;
}

.c353c4-act-register {
  background: var(--c353c4-accent);
  color: var(--c353c4-ink-on-accent);
  border-color: var(--c353c4-accent);
}

.c353c4-act-register:active {
  background: #C7FF66;
  border-color: #C7FF66;
}

.c353c4-act-login {
  background: transparent;
  color: var(--c353c4-accent);
  border-color: var(--c353c4-accent-soft);
}

.c353c4-act-login:active {
  background: var(--c353c4-accent-ghost);
  border-color: var(--c353c4-accent);
}

.c353c4-menu-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  color: var(--c353c4-text);
}

.c353c4-menu-btn:active,
.c353c4-menu-btn[aria-expanded="true"] {
  color: var(--c353c4-accent);
  border-color: var(--c353c4-accent);
}

.c353c4-menu-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- layered dropdown menu ---------- */
.c353c4-drop {
  position: fixed;
  top: calc(var(--c353c4-topbar-h) + 4px);
  left: 0;
  right: 0;
  z-index: 55;
  display: none;
  padding: 0 10px;
}

.c353c4-drop.c353c4-is-open {
  display: block;
}

.c353c4-drop-in {
  max-width: calc(var(--c353c4-canvas-max) - 20px);
  margin: 0 auto;
  background: var(--c353c4-deep);
  border: 1px solid var(--c353c4-line);
  border-radius: var(--c353c4-radius);
  padding: 8px 0 10px;
}

.c353c4-drop-layer {
  padding: 6px 12px 2px;
  border-bottom: 1px solid var(--c353c4-line-dim);
}

.c353c4-drop-layer:last-child {
  border-bottom: 0;
}

.c353c4-drop-tag {
  font-family: var(--c353c4-head-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c353c4-faint);
  margin: 4px 0 4px;
}

.c353c4-drop-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: var(--c353c4-radius);
  color: var(--c353c4-text);
  font-size: 13.5px;
}

.c353c4-drop-link span {
  color: var(--c353c4-faint);
  font-size: 11px;
}

.c353c4-drop-link:hover,
.c353c4-drop-link:focus-visible,
.c353c4-drop-link:active {
  background: var(--c353c4-accent-ghost);
  color: var(--c353c4-accent);
  text-decoration: none;
}

/* ---------- main column ---------- */
.c353c4-main {
  padding-top: calc(var(--c353c4-topbar-h) + 10px);
  /* keep clear of the fixed bottom band */
  padding-bottom: calc(var(--c353c4-bnav-h) + env(safe-area-inset-bottom, 0px) + 26px);
}

.c353c4-wrap {
  padding: 0 12px;
}

/* ---------- hero ---------- */
.c353c4-hero {
  padding: 14px 12px 4px;
}

.c353c4-hero-kicker {
  display: inline-block;
  font-family: var(--c353c4-head-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c353c4-ground);
  background: var(--c353c4-accent);
  border-radius: var(--c353c4-radius);
  padding: 3px 8px;
  margin-bottom: 10px;
}

.c353c4-hero-lead {
  color: var(--c353c4-muted);
  margin: 6px 0 14px;
  max-width: 42ch;
}

.c353c4-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.c353c4-hero-meta li {
  font-size: 11px;
  color: var(--c353c4-muted);
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  padding: 3px 8px;
}

/* ---------- promo carousel ---------- */
.c353c4-carousel {
  position: relative;
  margin: 0 12px 12px;
  border: 1px solid var(--c353c4-line);
  border-radius: var(--c353c4-radius);
  overflow: hidden;
  background: var(--c353c4-deep);
}

.c353c4-slide {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: var(--c353c4-deeper);
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
}

.c353c4-slide.c353c4-is-on {
  opacity: 1;
  visibility: visible;
  position: relative;
}

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

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

.c353c4-dot {
  width: 22px;
  height: 6px;
  min-height: 6px;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--c353c4-accent-soft);
  background: rgba(22, 32, 42, 0.65);
}

.c353c4-dot.c353c4-is-on {
  background: var(--c353c4-accent);
  border-color: var(--c353c4-accent);
}

/* ---------- full-width CTA ---------- */
.c353c4-cta {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  margin: 0 0 6px;
  background: var(--c353c4-accent);
  color: var(--c353c4-ink-on-accent);
  border: 1px solid var(--c353c4-accent);
  border-radius: var(--c353c4-radius);
  font-family: var(--c353c4-head-font);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
}

.c353c4-cta:active {
  background: #C7FF66;
  border-color: #C7FF66;
}

.c353c4-cta-ghost {
  background: transparent;
  color: var(--c353c4-accent);
  border-color: var(--c353c4-accent-soft);
}

.c353c4-cta-ghost:active {
  background: var(--c353c4-accent-ghost);
}

/* ---------- category jump strip ---------- */
.c353c4-jump {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 12px 12px;
  scrollbar-width: none;
}

.c353c4-jump::-webkit-scrollbar {
  display: none;
}

.c353c4-jump a {
  flex: none;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c353c4-muted);
}

.c353c4-jump a:hover,
.c353c4-jump a:active {
  color: var(--c353c4-accent);
  border-color: var(--c353c4-accent);
  text-decoration: none;
}

/* ---------- zoned section frame ---------- */
.c353c4-zone {
  border-top: 1px solid var(--c353c4-line);
  padding: 18px 12px 20px;
}

.c353c4-zone-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.c353c4-zone-no {
  font-family: var(--c353c4-head-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--c353c4-faint);
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  padding: 2px 6px;
  flex: none;
}

.c353c4-zone h2 {
  margin: 0;
}

.c353c4-zone-note {
  color: var(--c353c4-muted);
  font-size: 13px;
  margin: 6px 0 14px;
  max-width: 46ch;
}

/* ---------- game grid: pure image cards ---------- */
.c353c4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 8px;
}

.c353c4-gcard {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  min-width: 0;
}

.c353c4-gcard-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  background: var(--c353c4-deep);
}

.c353c4-gcard:hover .c353c4-gcard-img,
.c353c4-gcard:active .c353c4-gcard-img {
  border-color: var(--c353c4-accent);
}

.c353c4-gcard-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--c353c4-muted);
  min-height: 2.7em;
  word-break: break-word;
}

.c353c4-gcard:hover .c353c4-gcard-name,
.c353c4-gcard:active .c353c4-gcard-name {
  color: var(--c353c4-accent);
}

/* ---------- info modules ---------- */

/* fact ledger (RTP reading rows) */
.c353c4-ledger {
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  background: var(--c353c4-deep);
  padding: 4px 12px;
  margin: 12px 0;
}

.c353c4-ledger-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--c353c4-line-dim);
}

.c353c4-ledger-row:last-child {
  border-bottom: 0;
}

.c353c4-ledger-key {
  font-family: var(--c353c4-head-font);
  font-size: 12px;
  font-weight: 700;
  color: var(--c353c4-accent);
  letter-spacing: 0.4px;
}

.c353c4-ledger-val {
  font-size: 12.5px;
  color: var(--c353c4-muted);
}

/* scenario branches */
.c353c4-branch {
  border-inline-start: 2px solid var(--c353c4-accent-soft);
  padding: 2px 0 2px 12px;
  margin: 0 0 12px;
}

.c353c4-branch-tag {
  display: block;
  font-family: var(--c353c4-head-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--c353c4-accent);
  margin-bottom: 2px;
}

.c353c4-branch p {
  margin: 0;
  font-size: 13px;
  color: var(--c353c4-muted);
}

/* activity feed */
.c353c4-feed {
  margin: 12px 0;
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  overflow: hidden;
}

.c353c4-feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--c353c4-deep);
  border-bottom: 1px solid var(--c353c4-line-dim);
  font-size: 12.5px;
}

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

.c353c4-feed-who {
  color: var(--c353c4-text);
  font-weight: 600;
  min-width: 64px;
}

.c353c4-feed-what {
  color: var(--c353c4-muted);
  flex: 1;
  min-width: 0;
}

.c353c4-feed-amt {
  font-family: var(--c353c4-head-font);
  color: var(--c353c4-accent);
  font-weight: 700;
  white-space: nowrap;
}

/* accordion Q&A */
.c353c4-faq {
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  background: var(--c353c4-deep);
  margin: 0 0 8px;
}

.c353c4-faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 12px;
  font-family: var(--c353c4-head-font);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c353c4-text);
  cursor: pointer;
}

.c353c4-faq summary::-webkit-details-marker {
  display: none;
}

.c353c4-faq summary::after {
  content: "+";
  font-size: 17px;
  color: var(--c353c4-accent);
  flex: none;
}

.c353c4-faq[open] summary {
  color: var(--c353c4-accent);
  border-bottom: 1px solid var(--c353c4-line-dim);
}

.c353c4-faq[open] summary::after {
  content: "\2013";
}

.c353c4-faq-body {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--c353c4-muted);
}

.c353c4-faq-body p {
  margin: 0;
}

/* two-column shortlists */
.c353c4-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.c353c4-duo-col {
  border: 1px solid var(--c353c4-line-dim);
  border-top: 2px solid var(--c353c4-accent-soft);
  border-radius: var(--c353c4-radius);
  background: var(--c353c4-deep);
  padding: 10px 12px;
}

.c353c4-duo-col h3 {
  font-family: var(--c353c4-head-font);
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c353c4-accent);
  margin: 0 0 8px;
}

.c353c4-duo-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c353c4-duo-col li {
  font-size: 12.5px;
  color: var(--c353c4-muted);
  padding: 5px 0 5px 14px;
  position: relative;
  border-bottom: 1px solid var(--c353c4-line-dim);
}

.c353c4-duo-col li:last-child {
  border-bottom: 0;
}

.c353c4-duo-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--c353c4-accent-soft);
}

/* numbered steps */
.c353c4-steps {
  margin: 12px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: c353c4step;
}

.c353c4-steps li {
  counter-increment: c353c4step;
  position: relative;
  padding: 0 0 12px 38px;
  font-size: 13px;
  color: var(--c353c4-muted);
}

.c353c4-steps li::before {
  content: counter(c353c4step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  width: 27px;
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--c353c4-head-font);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--c353c4-accent);
  border: 1px solid var(--c353c4-accent-soft);
  border-radius: var(--c353c4-radius);
}

.c353c4-steps strong {
  color: var(--c353c4-text);
}

/* ---------- extended footer (homepage only) ---------- */
.c353c4-xfoot {
  border-top: 2px solid var(--c353c4-accent);
  background: var(--c353c4-deep);
  padding: 16px 12px 18px;
}

.c353c4-xfoot h2 {
  font-size: 16px;
}

.c353c4-xpromo {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}

.c353c4-xpromo::-webkit-scrollbar {
  display: none;
}

.c353c4-xpromo button {
  flex: none;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--c353c4-ground);
  border: 1px solid var(--c353c4-accent-soft);
  border-radius: var(--c353c4-radius);
  color: var(--c353c4-accent);
  font-size: 12px;
  font-weight: 600;
  max-width: 210px;
  text-align: left;
}

.c353c4-xpromo button:active {
  background: var(--c353c4-accent);
  color: var(--c353c4-ink-on-accent);
}

.c353c4-xbrand {
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  padding: 10px 12px;
  margin: 12px 0;
  font-size: 12.5px;
  color: var(--c353c4-muted);
}

.c353c4-xbrand p {
  margin: 0;
}

.c353c4-xdir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
}

.c353c4-xdir a {
  display: block;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--c353c4-line-dim);
  border-radius: var(--c353c4-radius);
  color: var(--c353c4-text);
  font-size: 12px;
  font-weight: 600;
}

.c353c4-xdir a span {
  display: block;
  color: var(--c353c4-faint);
  font-size: 10.5px;
  font-weight: 400;
}

.c353c4-xdir a:hover,
.c353c4-xdir a:active {
  border-color: var(--c353c4-accent);
  color: var(--c353c4-accent);
  text-decoration: none;
}

.c353c4-xnote {
  font-size: 11px;
  color: var(--c353c4-faint);
  border-top: 1px solid var(--c353c4-line-dim);
  padding-top: 10px;
  margin: 0;
}

/* ---------- common footer ---------- */
.c353c4-copy {
  padding: 14px 12px 10px;
  border-top: 1px solid var(--c353c4-line-dim);
  text-align: center;
  font-size: 11.5px;
  color: var(--c353c4-faint);
}

/* ---------- fixed bottom band ---------- */
.c353c4-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--c353c4-deep);
  border-top: 2px solid var(--c353c4-accent);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.c353c4-bnav-in {
  max-width: var(--c353c4-canvas-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.c353c4-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--c353c4-bnav-h);
  padding: 7px 2px 6px;
  background: transparent;
  border: 0;
  color: var(--c353c4-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.c353c4-bnav-item svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.c353c4-bnav-item:active {
  color: var(--c353c4-accent);
}

/* active state: contrast inversion on the accent band */
.c353c4-bnav-item.c353c4-is-here {
  background: var(--c353c4-accent);
  color: var(--c353c4-ink-on-accent);
}

.c353c4-bnav-item.c353c4-is-here:hover {
  text-decoration: none;
}

/* ---------- responsive tracks ---------- */

/* 375px and up: same 4-column game track, roomier gutters */
@media (min-width: 375px) {
  .c353c4-grid {
    gap: 12px 10px;
  }
  h1 { font-size: 27px; }
  .c353c4-zone-note,
  .c353c4-hero-lead {
    font-size: 13.5px;
  }
}

/* 430px and up: widen the game track to five columns */
@media (min-width: 430px) {
  .c353c4-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .c353c4-ledger-row {
    grid-template-columns: 104px 1fr;
  }
}

/* keep long names controlled on the narrowest phones */
@media (max-width: 359px) {
  .c353c4-grid {
    gap: 8px 6px;
  }
  .c353c4-gcard-name {
    font-size: 10px;
  }
  h1 { font-size: 23px; }
}

/* respect reduced-motion preferences: color states only */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
