@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --ink: #1e3228;
  --ink-soft: #3d5a4a;
  --mist: #eef7f2;
  --paper: #fbf8f3;
  --leaf: #3f8f6b;
  --leaf-deep: #2d6b50;
  --lemon: #e4c04a;
  --apricot: #e8925c;
  --berry: #c45c7a;
  --sky: #7eb8c9;
  --line: rgba(30, 50, 40, 0.1);
  --shadow: 0 18px 40px rgba(30, 50, 40, 0.1);
  --radius: 1.25rem;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(228, 192, 74, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(126, 184, 201, 0.2), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 40%, #f3f0ea 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-deep); text-decoration: none; transition: color .2s; }
a:hover { color: var(--apricot); }
ul { list-style: none; }
button, input, textarea, select { font: inherit; }

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

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: .85rem 0;
  backdrop-filter: blur(14px);
  background: rgba(251, 248, 243, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--lemon), var(--apricot));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(232, 146, 92, 0.35);
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; fill: #fff; }

.nav-desk {
  display: none;
  gap: 1.75rem;
}

.nav-desk a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}

.nav-desk a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--leaf);
  transform: scaleX(0);
  transition: transform .22s;
  transform-origin: left;
}

.nav-desk a:hover { color: var(--ink); }
.nav-desk a:hover::after,
.nav-desk a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desk a[aria-current="page"] { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.45rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(45, 107, 80, 0.28);
}

.btn-primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(45, 107, 80, 0.36); }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn-secondary:hover { color: var(--ink); border-color: var(--leaf); }

.btn-lemon {
  background: linear-gradient(135deg, var(--lemon), #f0d06a);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(228, 192, 74, 0.35);
}

.btn-lemon:hover { color: var(--ink); }

.header-cta { display: none; }

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(30, 50, 40, 0.35);
  backdrop-filter: blur(4px);
}

.nav-drawer.open { display: block; }

.nav-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 90vw);
  height: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: 1.25rem 1.35rem 2rem;
  box-shadow: -12px 0 40px rgba(0,0,0,.12);
  animation: slideIn .28s ease;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.nav-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-top: .25rem;
}

.nav-drawer-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.nav-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.nav-drawer-links a {
  display: flex;
  align-items: center;
  padding: 1rem 0.15rem;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-drawer-links a:last-child { border-bottom: none; }

.nav-drawer-cta {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  text-align: center;
}

@media (min-width: 900px) {
  .nav-desk { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ----- Hero full-bleed ----- */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 40, 32, 0.35) 0%, rgba(20, 40, 32, 0.55) 45%, rgba(20, 40, 32, 0.72) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 2.5rem, 720px);
  padding: 5rem 0 4rem;
  animation: fadeUp .8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: .85rem;
  text-shadow: 0 4px 24px rgba(0,0,0,.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  opacity: .95;
}

.hero p {
  font-size: 1.05rem;
  opacity: .9;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.hero .btn-lemon {
  font-size: 1.05rem;
  padding: .95rem 2rem;
  animation: pulseSoft 2.4s ease-in-out infinite;
}

@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 10px 24px rgba(228, 192, 74, 0.35); }
  50% { box-shadow: 0 14px 32px rgba(228, 192, 74, 0.55); }
}

.hero-scallop {
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 48px;
  z-index: 3;
  color: var(--mist);
}

/* ----- Sections ----- */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section-tight { padding: 3rem 0; }

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: .65rem;
}

.section-head h2,
.page-banner h1,
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}

.section-head p { color: var(--ink-soft); }

/* Platter strip */
.platter-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 700px) {
  .platter-strip { grid-template-columns: repeat(4, 1fr); }
}

.platter-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .25s;
}

.platter-item:hover { transform: translateY(-4px); }

.platter-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--leaf-deep);
  margin-bottom: .25rem;
}

.platter-item span { font-size: .88rem; color: var(--ink-soft); }

/* Zigzag games */
.menu-board {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.menu-row {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .3s ease;
}

.menu-row:hover { transform: translateY(-3px); }

.menu-row:nth-child(even) .menu-media { order: 1; }

@media (min-width: 800px) {
  .menu-row {
    grid-template-columns: 1.05fr 1fr;
  }
  .menu-row:nth-child(even) {
    grid-template-columns: 1fr 1.05fr;
  }
  .menu-row:nth-child(even) .menu-media { order: 0; }
  .menu-row:nth-child(even) .menu-copy { order: -1; }
}

.menu-media {
  min-height: 220px;
  overflow: hidden;
}

.menu-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform .5s ease;
}

.menu-row:hover .menu-media img { transform: scale(1.04); }

.menu-copy { padding: 1.75rem 1.75rem 2rem; }

.game-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--leaf-deep);
  margin-bottom: .7rem;
}

.menu-copy h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: .55rem;
}

.menu-copy p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: .98rem;
}

/* Feature ribbons */
.ribbon-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .ribbon-grid { grid-template-columns: repeat(3, 1fr); }
}

.ribbon-card {
  position: relative;
  background: linear-gradient(160deg, #fff 0%, var(--mist) 100%);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ribbon-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(228, 192, 74, 0.2);
}

.ribbon-card .step {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--apricot);
  line-height: 1;
  margin-bottom: .75rem;
}

.ribbon-card h3 {
  font-size: 1.15rem;
  margin-bottom: .45rem;
}

.ribbon-card p { color: var(--ink-soft); font-size: .94rem; }

/* Soft band */
.band {
  background: linear-gradient(120deg, var(--leaf-deep), var(--leaf) 55%, #5aa882);
  color: #fff;
  border-radius: 2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(45, 107, 80, 0.25);
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin-bottom: .6rem;
}

.band p { opacity: .92; margin-bottom: 1.4rem; max-width: 36rem; margin-inline: auto; }

/* About split */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}

.split-visual {
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-visual img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.split-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin-bottom: .85rem;
}

.split-copy p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.check-list { margin-top: 1.25rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .65rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: .45rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--leaf);
}

/* FAQ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: .75rem;
  overflow: hidden;
}

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

.faq-btn::after {
  content: '+';
  font-size: 1.35rem;
  color: var(--leaf-deep);
  transition: transform .2s;
}

.faq-item.open .faq-btn::after { content: '–'; }

.faq-body {
  display: none;
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
  font-size: .96rem;
}

.faq-item.open .faq-body { display: block; }

/* Page banner */
.page-banner {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 50%, rgba(228, 192, 74, 0.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(126, 184, 201, 0.15), transparent 35%);
}

.page-banner p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* Games grid */
.games-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
}

.game-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s;
}

.game-card:hover { transform: translateY(-4px); }

.game-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.game-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: .45rem;
}

.game-card-body p {
  color: var(--ink-soft);
  font-size: .94rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .contact-layout { grid-template-columns: .9fr 1.1fr; align-items: start; }
}

.contact-card,
.form-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-card h2,
.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: .75rem;
}

.contact-card p { color: var(--ink-soft); margin-bottom: 1.25rem; }

.detail {
  margin-bottom: 1.1rem;
}

.detail strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: .25rem;
}

.detail span, .detail a {
  color: var(--ink-soft);
  font-size: .98rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: .85rem;
  border: 1.5px solid var(--line);
  background: var(--mist);
  color: var(--ink);
  transition: border-color .2s, background .2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: #fff;
}

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

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 50, 40, 0.45);
  display: none;
  place-items: center;
  padding: 1.5rem;
  backdrop-filter: blur(4px);
}

.popup-overlay.open { display: grid; }

.popup {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.2);
  animation: fadeUp .35s ease;
}

.popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--leaf), var(--sky));
  display: grid;
  place-items: center;
}

.popup-icon svg { width: 28px; height: 28px; fill: #fff; }

.popup h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: .5rem;
}

.popup p { color: var(--ink-soft); margin-bottom: 1.35rem; }

/* Prose / policies */
.prose {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 820px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .prose { padding: 2.5rem 2.5rem; }
}

.prose h2 {
  margin-top: 1.75rem;
  margin-bottom: .65rem;
  font-size: 1.35rem;
}

.prose h2:first-child { margin-top: 0; }

.prose p, .prose li {
  color: var(--ink-soft);
  margin-bottom: .85rem;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a { text-decoration: underline; }

/* Game play page */
.game-shell {
  padding: 1.25rem 0 3.5rem;
}

@media (min-width: 700px) {
  .game-shell { padding: 2rem 0 4rem; }
}

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .85rem 1rem;
  margin-bottom: 1rem;
}

.game-toolbar h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  margin-top: .2rem;
}

.game-stats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
}

.stat-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .82rem;
  font-weight: 600;
}

.game-stage {
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .85rem;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (min-width: 600px) {
  .game-stage {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }
}

.game-stage canvas,
.game-board-host {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.game-hint {
  text-align: center;
  color: var(--ink-soft);
  margin-top: .85rem;
  font-size: .88rem;
  line-height: 1.45;
  padding: 0 .25rem;
}

/* Match-3 */
.match-board {
  display: grid;
  gap: clamp(3px, 1.2vw, 5px);
  margin: 0 auto;
  width: min(100%, 420px);
  aspect-ratio: 1;
  background: var(--mist);
  padding: clamp(6px, 1.5vw, 10px);
  border-radius: 1rem;
}

.match-cell {
  border-radius: clamp(6px, 1.5vw, 10px);
  border: none;
  cursor: pointer;
  font-size: clamp(.65rem, 2.6vw, .95rem);
  font-weight: 700;
  color: #fff;
  transition: transform .12s, box-shadow .12s;
  display: grid;
  place-items: center;
  user-select: none;
  min-height: 0;
  min-width: 0;
  touch-action: manipulation;
}

.match-cell:hover { transform: scale(1.04); }
.match-cell.selected {
  box-shadow: 0 0 0 3px var(--ink);
  transform: scale(1.06);
}
.match-cell.pop { animation: popCell .28s ease; }

@keyframes popCell {
  50% { transform: scale(0.3); opacity: .3; }
}

/* Memory */
.memory-board {
  display: grid;
  gap: clamp(8px, 2vw, 12px);
  margin: 0 auto;
  width: min(100%, 420px);
  grid-template-columns: repeat(4, 1fr);
}

.memory-card {
  aspect-ratio: 1;
  border: none;
  border-radius: clamp(10px, 2.5vw, 14px);
  background: linear-gradient(145deg, var(--leaf), var(--leaf-deep));
  color: #fff;
  font-weight: 700;
  font-size: clamp(.85rem, 3.2vw, 1.1rem);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(45, 107, 80, 0.2);
  transition: transform .15s, background .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.memory-card:hover { transform: translateY(-2px); }
.memory-card.flipped,
.memory-card.matched {
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.memory-card.matched {
  opacity: .92;
  cursor: default;
}

/* Miner */
.miner-board {
  display: grid;
  gap: clamp(2px, .8vw, 4px);
  margin: 0 auto;
  width: min(100%, 400px);
}

.miner-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: clamp(4px, 1.2vw, 6px);
  background: #c4b49a;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(.7rem, 2.8vw, .85rem);
  color: var(--ink);
  transition: background .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  min-height: 0;
}

.miner-cell:hover:not(.open):not(.flag) { filter: brightness(1.05); }
.miner-cell.open { background: #ebe3d4; cursor: default; }
.miner-cell.gem { background: #7eb8c9; color: #fff; }
.miner-cell.danger { background: var(--berry); color: #fff; }
.miner-cell.flag { background: var(--lemon); }

/* Connect four */
.c4-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(4px, 1.2vw, 6px);
  width: min(100%, 420px);
  margin: 0 auto;
  background: var(--leaf-deep);
  padding: clamp(8px, 2vw, 12px);
  border-radius: 1rem;
}

.c4-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  border: none;
  background: #1a3d30;
  cursor: pointer;
  transition: transform .1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-width: 0;
  min-height: 0;
}

.c4-cell:hover { transform: scale(1.05); }
.c4-cell.p1 { background: var(--apricot); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.c4-cell.p2 { background: var(--sky); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); }
.c4-cell.win { outline: 3px solid var(--lemon); outline-offset: 1px; }

.c4-turn {
  text-align: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--ink);
  color: rgba(255,255,255,.82);
  padding: 3.5rem 0 1.5rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 28' preserveAspectRatio='none'%3E%3Cpath fill='%231e3228' d='M0 28V14c80 14 160-14 240 0s160 14 240 0 160-14 240 0 160 14 240 0 160-14 240 0v14z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.foot-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.site-footer .logo { color: #fff; margin-bottom: .85rem; }
.site-footer .logo-mark {
  background: linear-gradient(145deg, var(--lemon), var(--apricot));
}

.foot-about p {
  font-size: .92rem;
  line-height: 1.55;
  opacity: .8;
  max-width: 280px;
}

.foot-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .85rem;
}

.foot-col a {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: .92rem;
  padding: .28rem 0;
}

.foot-col a:hover { color: var(--lemon); }

.foot-addr {
  font-size: .9rem;
  line-height: 1.65;
  opacity: .8;
}

.foot-addr a { display: inline; color: rgba(255,255,255,.85); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .82rem;
  opacity: .65;
}

/* Cookie bar */
.cookie-bar {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 150;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  border: 1px solid var(--line);
  display: none;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-bar.show { display: flex; }

.cookie-bar p {
  flex: 1;
  font-size: .88rem;
  color: var(--ink-soft);
  min-width: 200px;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
