:root {
  --bg: #FFF8F5;
  --surface: #FDF1EC;
  --card: #FFFFFF;
  --text: #2B1E1A;
  --muted: #6F5B56;
  --primary: #6B3A1E;
  --accent: #F3A7C5;
  --accent-strong: #D56F9B;
  --border: #EBDCD6;
  --board-bg: #D9A5B5;
  --cell-bg: rgba(255, 255, 255, 0.42);
  --btn-bg: #F3E2E7;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(43, 30, 26, 0.06);
  --shadow-md: 0 12px 32px rgba(107, 58, 30, 0.08);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body.theme-taylor {
  --primary: #5B3A7A;
  --accent-strong: #8D62B8;
  --board-bg: #8D62B8;
}

body.theme-doge {
  --primary: #5D4E42;
  --accent-strong: #A68A6E;
  --board-bg: #A68A6E;
}

body.theme-christmas {
  --primary: #9B2226;
  --accent-strong: #2D6A4F;
  --board-bg: #9B2226;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
a:hover { color: var(--accent-strong); }
button, input, textarea { font-family: inherit; }

.site-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 960px; }
.site-main { flex: 1 0 auto; padding: 24px 0 64px; }

/* Frosted Header */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-link { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand-logo {
  border-radius: 12px;
  width: 42px;
  height: 42px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.nav-link:hover { background: var(--surface); color: var(--primary); }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.nav-pill:hover { background: var(--accent-strong); color: #FFFFFF; }
.nav-short { display: none; }

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-title { font-size: 18px; }
.footer-copy { margin: 0; font-size: 14px; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 600; }

/* Cards & Sections */
.section-block { margin-top: 48px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.section-title {
  font-family: var(--font-display);
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--primary);
  text-align: center;
}
.breadcrumb { margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover { background: var(--accent-strong); color: #FFFFFF; transform: translateY(-1px); }
.btn-primary:focus-visible, .btn-secondary:focus-visible, .lb-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}
.btn-secondary:hover, .btn-secondary[data-gf-liked] {
  background: var(--accent);
  border-color: var(--accent-strong);
  color: var(--text);
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-link { background: none; border: none; color: var(--primary); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.btn-link:hover { text-decoration: underline; }


/* 2048 Game Stage */
.game-stage-card {
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px rgba(107, 58, 30, 0.08);
}
.game-stage-card.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  border-top: none;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--bg);
}
.container_cup { width: 500px; max-width: 100%; margin: 0 auto; }
.above-game {
  display: grid;
  grid-template-columns: 118px 1fr 118px;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.center-header { text-align: center; }
.game-intro-title {
  font-family: var(--font-display);
  margin: 0 0 8px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--primary);
}
.restart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease;
}
.restart-button:hover { background: var(--accent); transform: translateY(-1px); }
.score-box {
  position: relative;
  background: var(--board-bg);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 26px 8px 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.score-box::after {
  content: attr(data-label);
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.score-addition {
  position: absolute;
  left: 0;
  right: 0;
  top: 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  animation: move-up 600ms ease-in forwards;
}
@keyframes move-up {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-28px); opacity: 0; }
}

.game-container {
  position: relative;
  width: 500px;
  height: 500px;
  padding: 15px;
  background: var(--board-bg);
  border-radius: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12), var(--shadow-sm);
  touch-action: none;
  user-select: none;
  outline: none;
}
.game-container:focus-visible { box-shadow: 0 0 0 3px var(--primary); }
.grid-container { position: relative; z-index: 1; }
.grid-row { display: flex; gap: 15px; margin-bottom: 15px; }
.grid-row:last-child { margin-bottom: 0; }
.grid-cell {
  width: 106.25px;
  height: 106.25px;
  border-radius: 10px;
  background: var(--cell-bg);
}
.tile-container { position: absolute; inset: 15px; z-index: 2; pointer-events: none; }
.tile {
  position: absolute;
  width: 106.25px;
  height: 106.25px;
  transition: transform 110ms ease-in-out;
}
.tile-inner {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(43, 30, 26, 0.14);
}
.tile-inner img { width: 100%; height: 100%; object-fit: cover; }
.tile-new .tile-inner { animation: tile-appear 180ms ease backwards; }
.tile-merged .tile-inner { animation: tile-pop 190ms ease backwards; }
@keyframes tile-appear {
  0% { opacity: 0; transform: scale(0.3); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes tile-pop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.tile-pos-0-0 { transform: translate(0px, 0px); }
.tile-pos-1-0 { transform: translate(121.25px, 0px); }
.tile-pos-2-0 { transform: translate(242.5px, 0px); }
.tile-pos-3-0 { transform: translate(363.75px, 0px); }
.tile-pos-0-1 { transform: translate(0px, 121.25px); }
.tile-pos-1-1 { transform: translate(121.25px, 121.25px); }
.tile-pos-2-1 { transform: translate(242.5px, 121.25px); }
.tile-pos-3-1 { transform: translate(363.75px, 121.25px); }
.tile-pos-0-2 { transform: translate(0px, 242.5px); }
.tile-pos-1-2 { transform: translate(121.25px, 242.5px); }
.tile-pos-2-2 { transform: translate(242.5px, 242.5px); }
.tile-pos-3-2 { transform: translate(363.75px, 242.5px); }
.tile-pos-0-3 { transform: translate(0px, 363.75px); }
.tile-pos-1-3 { transform: translate(121.25px, 363.75px); }
.tile-pos-2-3 { transform: translate(242.5px, 363.75px); }
.tile-pos-3-3 { transform: translate(363.75px, 363.75px); }

.game-message {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(255, 248, 245, 0.92);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.game-message.is-open { display: flex; }
.game-message.game-won { background: rgba(107, 58, 30, 0.9); color: #FFFFFF; }
.game-message p { font-family: var(--font-display); margin: 0 0 10px; font-size: 40px; font-weight: 800; line-height: 1.15; }
.rank-status { font-size: 15px; font-weight: 600; margin-bottom: 20px; min-height: 22px; }
.game-message .lower { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.keep-playing-button, .retry-button, .leaderboard-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.keep-playing-button { display: none; background: #FFFFFF; color: var(--primary); }
.game-message.game-won .keep-playing-button { display: inline-flex; }
.retry-button { background: var(--primary); color: #FFFFFF; }
.leaderboard-cta-btn { background: var(--accent); color: var(--text); }
.leaderboard-cta-btn:hover { color: var(--text); opacity: 0.92; }

.game-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.toolbar-hint { font-size: 14px; color: var(--muted); }
.toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-msg { font-size: 13px; color: var(--primary); font-weight: 600; }

.player-name-bar {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
}
.player-name-label { font-weight: 600; color: var(--muted); }
.player-name-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.player-name-form input {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  width: 200px;
}
.name-save-msg { font-size: 13px; font-weight: 600; color: var(--primary); }

/* Similar Games Deck */
.similar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent-strong); }
.game-card-thumb { overflow: hidden; border-radius: 14px; border: 1px solid var(--border); }
.game-card-thumb img { width: 168px; height: 168px; object-fit: cover; transition: transform 0.25s ease; }
.game-card:hover .game-card-thumb img { transform: scale(1.05); }
.game-card-title { font-family: var(--font-display); margin: 0; font-size: 20px; font-weight: 700; color: var(--primary); }
.game-card-desc { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.game-card-btn { width: 100%; }

/* Editorial About Split */
.about-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.about-media img { width: 100%; border-radius: 14px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.about-body p { margin: 0 0 16px; max-width: 70ch; }
.about-body p:last-child { margin-bottom: 0; }

/* Tables & Leaderboard */
.table-scroll { overflow-x: auto; }
.values-table, .lb-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.values-table th, .values-table td, .lb-table th, .lb-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.values-table th, .lb-table th {
  background: var(--surface);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--primary);
}
.values-table tbody tr:hover, .lb-table tbody tr:hover { background: var(--bg); }
.values-table .num-col, .lb-table .num-col { text-align: right; font-weight: 700; color: var(--primary); }
.tile-cell { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.tile-cell img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.val-cell { font-weight: 700; color: var(--muted); width: 84px; }

.country-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rank-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
}
.rank-top { background: var(--accent); color: var(--text); }

/* How to Play Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.step-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--primary); }
.step-card p { margin: 0; font-size: 14px; color: var(--muted); text-align: left; }
.step-img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }

/* Features Bento */
.features-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}
.feature-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--primary); }
.feature-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px 20px;
  transition: border-color 0.16s ease;
}
.faq-item[open] { background: var(--card); border-color: var(--accent-strong); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 70ch; }

/* Leaderboard Header */
.leaderboard-header {
  text-align: center;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 40px rgba(107, 58, 30, 0.08);
}
.leaderboard-header h1 { font-family: var(--font-display); margin: 0 0 8px; font-size: 34px; font-weight: 800; color: var(--primary); }
.leaderboard-subtitle { margin: 0 0 22px; color: var(--muted); }
.lb-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.lb-tab {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lb-tab.is-active { background: var(--primary); color: #FFFFFF; border-color: var(--primary); }
.lb-my-rank {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.lb-row-me { background: rgba(243, 167, 197, 0.24) !important; font-weight: 700; }
.lb-empty { text-align: center !important; color: var(--muted); padding: 28px !important; }
.lb-cta-wrap { text-align: center; margin-top: 24px; }

/* Comments */
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.comments-head .section-title { margin: 0; text-align: left; }
.comments-count-pill { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.form-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent-strong); background: var(--card); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.form-msg { margin: 0; font-size: 14px; color: var(--primary); font-weight: 600; }
.comment-reply-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; }
.comment-form[data-gf-replying] .comment-reply-bar { display: flex !important; }
.comments-list[data-gf-empty]::before {
  content: "No comments yet. Be the first to share your high score or cupcake tips!";
  display: block;
  text-align: center;
  color: var(--muted);
  padding: 20px;
  background: var(--surface);
  border-radius: 12px;
}
.comment-item, .comment-reply-item {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
}
.comment-replies { margin-top: 12px; padding-left: 18px; border-left: 2px solid var(--border); }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.comment-author { color: var(--text); font-size: 14px; }
.owner-badge { background: var(--primary); color: #FFFFFF; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.comment-text { margin: 0 0 8px; white-space: pre-wrap; word-break: break-word; }

/* Prose (Legal) */
.prose h1 { font-family: var(--font-display); margin: 0 0 8px; font-size: 34px; font-weight: 800; color: var(--primary); }
.prose h2 { font-family: var(--font-display); margin: 28px 0 10px; font-size: 22px; font-weight: 700; color: var(--primary); }
.prose p, .prose li { max-width: 70ch; }
.legal-updated { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
}

@media (max-width: 760px) {
  .nav-link { display: none; }
}

@media (max-width: 640px) {
  .site-wrap { padding: 0 16px; }
  .brand-title { font-size: 18px; }
  .nav-full { display: none; }
  .nav-short { display: inline; }
  .card { padding: 18px; }
  .section-title { font-size: 24px; }
  .similar-grid, .features-grid, .about-layout { grid-template-columns: 1fr; }
  .container_cup { width: 328px; }
  .above-game { grid-template-columns: 84px 1fr 84px; gap: 6px; }
  .game-intro-title { font-size: 18px; }
  .score-box { font-size: 16px; padding: 24px 4px 5px; }
  .game-container { width: 328px; height: 328px; padding: 10px; }
  .grid-row { gap: 10px; margin-bottom: 10px; }
  .grid-cell, .tile { width: 69.5px; height: 69.5px; }
  .tile-container { inset: 10px; }
  .tile-pos-0-0 { transform: translate(0px, 0px); }
  .tile-pos-1-0 { transform: translate(79.5px, 0px); }
  .tile-pos-2-0 { transform: translate(159px, 0px); }
  .tile-pos-3-0 { transform: translate(238.5px, 0px); }
  .tile-pos-0-1 { transform: translate(0px, 79.5px); }
  .tile-pos-1-1 { transform: translate(79.5px, 79.5px); }
  .tile-pos-2-1 { transform: translate(159px, 79.5px); }
  .tile-pos-3-1 { transform: translate(238.5px, 79.5px); }
  .tile-pos-0-2 { transform: translate(0px, 159px); }
  .tile-pos-1-2 { transform: translate(79.5px, 159px); }
  .tile-pos-2-2 { transform: translate(159px, 159px); }
  .tile-pos-3-2 { transform: translate(238.5px, 159px); }
  .tile-pos-0-3 { transform: translate(0px, 238.5px); }
  .tile-pos-1-3 { transform: translate(79.5px, 238.5px); }
  .tile-pos-2-3 { transform: translate(159px, 238.5px); }
  .tile-pos-3-3 { transform: translate(238.5px, 238.5px); }
  .game-message p { font-size: 30px; }
  .toolbar-actions { width: 100%; }
  .toolbar-actions .btn-secondary { flex: 1 1 auto; }
}
