/* Fonts loaded non-blocking via <link> in HTML */

:root {
  --pine: #0b3d3d;
  --teal: #1a6b6b;
  --mint: #2ec4b6;
  --aqua: #cbf3f0;
  --cream: #faf7f2;
  --sand: #f0ebe3;
  --coral: #ff6b6b;
  --gold: #ffd166;
  --ink: #1c2b2b;
  --muted: #3a5252;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(11, 61, 61, 0.1);
  --shadow-soft: 0 4px 20px rgba(11, 61, 61, 0.08);
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: Georgia, 'Times New Roman', Times, serif;
  --max: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(46, 196, 182, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(255, 209, 102, 0.1), transparent);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--pine); }

.lead a,
.acc-body-inner a,
.legal-doc a,
.foot-addr a,
.foot-col a,
.about-grid a,
.hero-text a,
p a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.brand,
.nav-list a,
.btn,
.drawer-panel a,
.topbar a,
.site-foot .brand {
  text-decoration: none;
}

.brand,
.brand:hover,
.topbar .brand:hover,
.site-foot .brand:hover {
  color: white;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  color: var(--pine);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header — floating pill, not fixed */
.topbar {
  position: relative;
  z-index: 10;
  padding: 0.85rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--pine);
  color: white;
  padding: 0.65rem 0.65rem 0.65rem 1.25rem;
  border-radius: 100px;
  box-shadow: var(--shadow);
  max-width: var(--max);
  margin-inline: auto;
  width: calc(100% - 2rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: white;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--mint), var(--gold));
  border-radius: 10px;
  display: grid;
  place-items: center;
  transform: rotate(-6deg);
}

.brand-mark svg { width: 18px; height: 18px; fill: white; }

.nav-list {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-list a {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
  color: white;
  background: rgba(255,255,255,0.12);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-glow {
  background: linear-gradient(135deg, var(--mint), #25a99d);
  color: white;
  box-shadow: 0 4px 16px rgba(46, 196, 182, 0.4);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.5);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--pine);
  border: 2px solid var(--aqua);
}

.btn-ghost:hover { background: var(--aqua); }

.btn-light {
  background: white;
  color: var(--pine);
}

.btn-coral {
  background: var(--coral);
  color: white;
}

.menu-btn {
  display: none;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  margin: 4px 0;
  border-radius: 2px;
}

.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 61, 0.6);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.drawer.open { opacity: 1; visibility: visible; }

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--pine);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s;
}

.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-panel ul { list-style: none; margin-top: 3rem; }
.drawer-panel a { color: white; font-size: 1.05rem; display: block; padding: 0.75rem 0; }
.drawer-panel a:hover { color: var(--gold); }
.drawer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero — asymmetric split */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "hero-text hero-visual";
  min-height: 520px;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0 4rem;
}

.hero-text {
  grid-area: hero-text;
  padding-left: max(1rem, calc((100vw - var(--max)) / 2));
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0a5f58;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-text h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-text p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-height: 3rem;
}

.hero-visual {
  grid-area: hero-visual;
  position: relative;
  padding-right: max(1rem, calc((100vw - var(--max)) / 2));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 32px 32px 32px 8px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Sections */
.block { padding: 5rem 0; }
.block-alt { background: var(--sand); }
.block-dark { background: var(--pine); color: white; }
.block-dark h2, .block-dark h3 { color: white; }

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0a5f58;
  margin-bottom: 0.6rem;
}

.block-dark .tag { color: #ffe08a; }

.heading-lg {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.lead {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.block-dark .lead { color: rgba(255, 255, 255, 0.92); }

.center-head { text-align: center; }
.center-head .lead { margin-inline: auto; }

/* Bento games grid */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.bento-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(46, 196, 182, 0.15);
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.bento-card:nth-child(1) { grid-column: span 3; }
.bento-card:nth-child(2) { grid-column: span 3; }
.bento-card:nth-child(3) { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; }

.bento-img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.bento-card:nth-child(3) .bento-img { aspect-ratio: auto; height: 100%; min-height: 200px; }

.bento-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.bento-body h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.bento-body p { font-size: 0.88rem; color: var(--muted); flex: 1; margin-bottom: 1rem; }

.bento-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b83232;
  margin-bottom: 0.5rem;
}

/* Feature tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.tile {
  background: var(--white);
  padding: 2rem 1.75rem;
  border-radius: 20px;
  border-left: 4px solid var(--mint);
  box-shadow: var(--shadow-soft);
}

.tile-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #0a5f58;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.tile h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.tile p { font-size: 0.88rem; color: var(--muted); }

/* Stats ribbon */
.ribbon {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--teal), var(--pine));
  border-radius: 24px;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}

.ribbon-item { text-align: center; color: white; }
.ribbon-val {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
}
.ribbon-label { font-size: 0.82rem; opacity: 0.8; }

/* Steps — horizontal timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--aqua);
}

.tl-step {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}

.tl-dot {
  width: 56px;
  height: 56px;
  background: var(--white);
  border: 3px solid var(--mint);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--pine);
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
}

.tl-step h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.tl-step p { font-size: 0.82rem; color: var(--muted); }

.block-dark .tl-step p { color: rgba(255, 255, 255, 0.9); }

/* FAQ accordion */
.accordion { max-width: 720px; margin-inline: auto; }

.acc-item {
  border-bottom: 1px solid var(--sand);
  padding: 0;
}

.acc-btn {
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--pine);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-btn::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(45deg);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.acc-item.open .acc-btn::after { transform: rotate(-135deg); }

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s;
}

.acc-body-inner {
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.acc-body-inner a { color: #0a5f58; font-weight: 600; }

.acc-item.open .acc-body { max-height: 200px; }

/* Page banner */
.banner {
  background: var(--pine);
  color: white;
  padding: 3.5rem 0;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  margin-bottom: 2rem;
}

.banner h1 { color: white; font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5rem; }
.banner p { color: rgba(255,255,255,0.7); max-width: 500px; margin-inline: auto; }

/* About split */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.about-grid img {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.about-grid p { color: var(--muted); margin-bottom: 1rem; }

.bullets { list-style: none; margin-top: 1.5rem; }
.bullets li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 8px;
  height: 8px;
  background: var(--mint);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
}

.info-card {
  background: var(--pine);
  color: white;
  padding: 2.5rem;
  border-radius: 24px;
}

.info-card h2 { color: white; margin-bottom: 1rem; }
.info-card p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 0.92rem; }

.info-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.info-row strong { display: block; color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.2rem; }
.info-row span, .info-row a { color: rgba(255,255,255,0.85); }
.info-row a:hover { color: var(--gold); }

.form-box {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sand);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--sand);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.92rem;
  background: var(--cream);
  transition: border-color 0.2s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--mint);
}

.field textarea { min-height: 130px; resize: vertical; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 61, 61, 0.55);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  padding: 1.5rem;
}

.modal.show { opacity: 1; visibility: visible; }

.modal-card {
  background: white;
  padding: 2.5rem;
  border-radius: 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s;
}

.modal.show .modal-card { transform: scale(1); }
.modal-card h3 { margin-bottom: 0.5rem; }
.modal-card p { color: var(--muted); margin-bottom: 1.5rem; }

/* Policy */
.legal-doc {
  max-width: 760px;
  margin-inline: auto;
  background: white;
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid var(--sand);
}

.legal-doc h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.6rem; }
.legal-doc a { color: #0a5f58; font-weight: 600; }
.legal-doc ul { padding-left: 1.25rem; }

/* Game page */
.game-zone { padding: 2rem 0 4rem; }

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.game-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.game-stat { font-weight: 700; color: var(--pine); font-size: 1.05rem; }

.game-frame {
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.game-tip {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--aqua);
  border-radius: 16px;
  font-size: 0.88rem;
  color: var(--teal);
}

.game-tip strong { color: var(--pine); }

/* Match-3 game */
.match3-board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(2px, 0.8vw, 4px);
  width: min(100%, 400px);
  margin: 0 auto;
  user-select: none;
  touch-action: manipulation;
}

.match3-cell {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  padding: clamp(2px, 0.6vw, 3px);
  border: 2px solid var(--sand);
  border-radius: clamp(8px, 2vw, 12px);
  background: var(--white);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.match3-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.match3-cell:hover { transform: scale(1.04); border-color: var(--mint); }
.match3-cell.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.45);
  transform: scale(1.05);
}

/* Snake canvas */
.snake-wrap {
  width: min(100%, 400px);
  margin: 0 auto;
}

#snake-canvas {
  border-radius: 12px;
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
}

.snake-controls {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.5rem;
  width: min(100%, 220px);
  margin: 1rem auto 0;
}

.snake-controls button {
  padding: 0.85rem;
  border: none;
  border-radius: 12px;
  background: var(--pine);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.snake-controls button:active { background: var(--teal); }
.snake-controls .snake-up { grid-column: 2; }
.snake-controls .snake-left { grid-column: 1; grid-row: 2; }
.snake-controls .snake-down { grid-column: 2; grid-row: 2; }
.snake-controls .snake-right { grid-column: 3; grid-row: 2; }

/* Memory game */
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 10px);
  width: min(100%, 420px);
  margin: 0 auto;
  touch-action: manipulation;
}

.memory-card {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: none;
  border-radius: clamp(10px, 2.5vw, 14px);
  background: linear-gradient(135deg, var(--teal), var(--pine));
  cursor: pointer;
  font-size: clamp(0.85rem, 4vw, 1.35rem);
  font-weight: 700;
  color: var(--pine);
  transition: transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.memory-card:hover:not(.matched) { transform: scale(1.03); }
.memory-card.flipped { color: var(--pine); }
.memory-card.matched { opacity: 0.3; cursor: default; }

/* Games list (simple grid for games page) */
.games-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.game-tile {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--sand);
  transition: transform 0.3s;
}

.game-tile:hover { transform: translateY(-5px); }
.game-tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.game-tile-body { padding: 1.5rem; }
.game-tile-body h3 { margin-bottom: 0.4rem; }
.game-tile-body p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 600px;
  margin-inline: auto;
  background: var(--pine);
  color: white;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 150;
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 2rem));
  transition: transform 0.4s;
}

.cookie-bar.show { transform: translateY(0); }
.cookie-bar p { font-size: 0.85rem; flex: 1; color: rgba(255,255,255,0.85); }
.cookie-bar a {
  color: #ffe08a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  font-weight: 600;
}
.cookie-bar a:hover { color: #fff; }
.cookie-bar .btn { text-decoration: none; }

/* Footer */
.site-foot {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  margin-top: auto;
  padding-top: 4rem;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.foot-grid .brand { margin-bottom: 1rem; }
.foot-grid p { font-size: 0.88rem; line-height: 1.7; }

.foot-col h4 {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint);
  margin-bottom: 1rem;
}

.foot-col ul { list-style: none; }
.foot-col li { margin-bottom: 0.5rem; }
.foot-col a { color: rgba(255, 255, 255, 0.82); font-size: 0.88rem; }
.foot-col a:hover { color: var(--gold); }

.foot-addr { font-size: 0.88rem; line-height: 1.8; }
.foot-addr a { color: rgba(255, 255, 255, 0.88); }

.foot-end {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-areas: "hero-visual" "hero-text";
    min-height: auto;
    text-align: center;
    gap: 2rem;
    padding: 2rem 0 3rem;
  }
  .hero-text { padding: 0 1rem; }
  .hero-text p { margin-inline: auto; }
  .hero-btns { justify-content: center; }
  .hero-visual { padding: 0 1rem; margin-inline: auto; max-width: 560px; width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .bento-card, .bento-card:nth-child(1), .bento-card:nth-child(2), .bento-card:nth-child(3) {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
  }
  .tiles { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .timeline::before { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .games-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-list { display: none; }
  .topbar-inner .btn-glow { display: none; }
  .menu-btn { display: block; }
  .drawer { display: block; }
  .timeline { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .ribbon { gap: 1.5rem; }
  .game-zone { padding: 1.25rem 0 2.5rem; }
  .game-bar { flex-direction: column; align-items: stretch; }
  .game-bar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .game-bar-actions .btn { width: 100%; justify-content: center; padding: 0.75rem 1rem; font-size: 0.85rem; }
  .game-frame { padding: 0.75rem; border-radius: 16px; }
  .match3-board { width: 100%; max-width: none; }
  .memory-board { width: 100%; max-width: none; }
  .snake-controls { display: grid; }
  .banner { padding: 2.5rem 0; margin-bottom: 1rem; }
}
