/* MiniBreak shell.css — shared chrome + components.
   Design tokens: dark arcade theme, mobile-first. */

:root {
  --bg: #14141F;
  --surface: #1F1F30;
  --surface-2: #26263B;
  --text: #F5F1E8;
  --muted: #A8A8BE;
  --primary: #FF5C38;
  --primary-dark: #E04A2A;
  --secondary: #FFC93C;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 60px;
  --max-w: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--secondary); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(20, 20, 31, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-2);
}
.site-header .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand .wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.main-nav a:hover { background: var(--surface); }

/* ---------- Layout ---------- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  flex: 1;
}
.section { padding: 40px 0; }
.section-head {
  font-size: 1.5rem;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 56px 16px 40px;
}
.hero .wordmark-big {
  font-size: clamp(2.4rem, 9vw, 4rem);
  font-weight: 900;
  letter-spacing: 1px;
  margin: 0 0 8px;
}
.hero .tagline {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 28px;
}
.hero .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--muted);
}
.btn-ghost:hover { border-color: var(--text); }

/* ---------- Games grid ---------- */
/* ---------- Modern Arcade Game Grid (mobile-first) ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

.game-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--surface-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.game-card:active {
  transform: scale(0.97);
  border-color: var(--primary);
}
.game-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
}
.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.game-card .body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.game-card h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 700;
}
.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.game-card .btn {
  margin-top: 6px;
  align-self: stretch;
  text-align: center;
  padding: 10px 12px;
  font-size: 0.9rem;
  touch-action: manipulation;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 640px) {
  .game-card .body { padding: 16px; }
  .game-card h3 { font-size: 1.1rem; }
  .game-card p {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
  }
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #14141F;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge.live { background: var(--primary); color: #fff; }

/* CSS-only tile art for coming-soon games (no images needed) */
.tile-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.tile-art-2048 {
  background: linear-gradient(135deg, #2A2A42, #1F1F30);
  gap: 6px;
}
.tile-art-2048 .mini-tiles {
  display: grid;
  grid-template-columns: repeat(2, 44px);
  gap: 8px;
}
.tile-art-2048 .mini-tiles span {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #14141F;
}
.tile-art-2048 .mini-tiles span:nth-child(1) { background: #EEE4DA; }
.tile-art-2048 .mini-tiles span:nth-child(2) { background: #EDE0C8; }
.tile-art-2048 .mini-tiles span:nth-child(3) { background: #F2B179; color: #fff; }
.tile-art-2048 .mini-tiles span:nth-child(4) { background: #F65E3B; color: #fff; }
.tile-art-reaction {
  background: radial-gradient(circle at 50% 50%, #3A2A42, #1F1F30 70%);
}
.tile-art-reaction .ring {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.75; }
}
.tile-art-word {
  background: linear-gradient(135deg, #2A2A42, #1F1F30);
  gap: 10px;
}
.tile-art-word span {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--secondary);
  color: #14141F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.4rem;
  transform: rotate(-6deg);
}
.tile-art-word span:nth-child(2) { transform: rotate(4deg) translateY(-6px); }
.tile-art-word span:nth-child(3) { transform: rotate(-3deg); }
.game-card.soon { opacity: 0.92; }

/* ---------- Why strip ---------- */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .why-list { grid-template-columns: repeat(3, 1fr); }
}
.why-list li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--surface-2);
}
.why-list strong { display: block; margin-bottom: 4px; font-size: 1.05rem; }
.why-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Ad placeholder (no live ad code) ---------- */
.ad-slot {
  border: 2px dashed var(--muted);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 32px 0;
  position: relative;
}
.ad-slot .ad-label {
  position: absolute;
  top: -12px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Legal / prose pages ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 56px;
}
.prose h1 { font-size: 1.9rem; margin: 0 0 8px; }
.prose .lede { color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 20px; }

/* ---------- Contact form ---------- */
.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px;
  min-height: 52px;
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--surface-2);
  margin-top: 40px;
}
.site-footer .inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.site-footer .soon-line { color: var(--muted); font-size: 0.95rem; margin: 0; }
.site-footer .legal-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .legal-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 12px 4px;
  font-size: 0.95rem;
}
.site-footer .legal-links a:hover { color: var(--text); }
.site-footer .copy { color: var(--muted); font-size: 0.85rem; margin: 0; }
.site-footer .linklike {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 0.95rem; padding: 12px 4px; font-family: inherit;
}
.site-footer .linklike:hover { color: var(--text); }
.site-footnav .linklike {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: inherit; padding: 0; font-family: inherit; text-decoration: none;
}
.site-footnav .linklike:hover { color: var(--text); }

/* ---------- Share sheet ---------- */
.mb-share-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: flex-end; justify-content: center;
}
.mb-share-sheet {
  width: 100%; max-width: 430px;
  background: #201913; color: var(--text);
  border-radius: 18px 18px 0 0;
  padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(251, 191, 36, 0.25);
}
.mb-share-row {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  color: var(--text); font-size: 1.05rem; font-family: inherit;
  padding: 14px 16px; border-radius: 12px;
}
.mb-share-row:hover { background: rgba(255, 255, 255, 0.07); }
.mb-share-cancel { text-align: center; color: #fbbf24; font-weight: 700; }
.mb-share-preview {
  display: block; width: 148px; height: 148px; object-fit: cover;
  margin: 6px auto 10px; border-radius: 14px;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.mb-share-preview[hidden] { display: none; }
.mb-share-primary {
  background: linear-gradient(180deg, #ff9d2e, #f97316);
  color: #2a1200; font-weight: 800; text-align: center;
}
.mb-share-primary:hover { background: linear-gradient(180deg, #ffab47, #fb8a2e); }
.mb-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10000;
  transform: translateX(-50%) translateY(16px);
  background: #2b241d; color: #fff;
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 12px 20px; border-radius: 999px;
  font-size: 0.95rem; white-space: nowrap; max-width: 92vw;
  opacity: 0; transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.mb-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tile-art-reaction .ring { animation: none; }
}

/* ---- Ad slots + footer consent link ---- */
.mb-cookie-settings { font-size: 13px; color: var(--muted); }

/* ---- Game about/content section (static SEO text below each game) ---- */
.game-about{max-width:46rem;margin:2.5rem auto;padding:0 1.25rem;line-height:1.7;font-size:1rem;opacity:.94}
.game-about h2{font-size:1.45rem;margin:0 0 .8rem;letter-spacing:.01em}
.game-about h3{font-size:1.12rem;margin:1.4rem 0 .55rem}
.game-about p{margin:.65rem 0}
.game-about ul{margin:.65rem 0;padding-left:1.35rem}
.game-about li{margin:.32rem 0}

/* ---- Cross-game navigation: More games row + homepage search ---- */
.more-games{max-width:72rem;width:100%;margin:2.5rem auto;padding:0 1.25rem;box-sizing:border-box}
.more-games h2{font-size:1.35rem;margin:0 0 .9rem}
.more-games-row{display:flex;gap:.8rem;overflow-x:auto;padding-bottom:.6rem;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}.more-games-row::-webkit-scrollbar{height:6px}.more-games-row::-webkit-scrollbar-thumb{background:rgba(255,255,255,.22);border-radius:3px}.more-games-row{scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent}
.mg-card{flex:0 0 7.5rem;display:block;scroll-snap-align:start;text-decoration:none;color:inherit;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,.12);touch-action:manipulation}
.mg-card img{width:7.5rem;height:7.5rem;object-fit:cover;border-radius:.9rem;display:block}
.mg-card span{display:block;margin-top:.4rem;font-size:.85rem;line-height:1.25;opacity:.9}
#game-search{max-width:46rem;margin:1.5rem auto 0;padding:0 1.25rem}
#gs-input{width:100%;padding:.7rem 1rem;font-size:1rem;border-radius:2rem;border:1px solid rgba(128,128,128,.35);background:rgba(128,128,128,.08);color:inherit}
#gs-input::placeholder{opacity:.55}
.gs-chips{display:flex;gap:.5rem;margin-top:.7rem;overflow-x:auto;padding-bottom:.3rem}
.gs-chip{flex:0 0 auto;padding:.42rem .95rem;border-radius:2rem;border:1px solid rgba(128,128,128,.35);background:transparent;color:inherit;font-size:.88rem;cursor:pointer}
.gs-chip.on{background:#f5b301;border-color:#f5b301;color:#1a1a1a;font-weight:600}
#gs-empty{display:none;text-align:center;opacity:.6;margin:2rem 0}

/* ---------- SEO FAQ blocks + screen-reader-only headings ---------- */
.mb-faq{max-width:72rem;width:100%;margin:0 auto 2.5rem;padding:0 1.25rem;box-sizing:border-box}
.mb-faq h2{font-size:1.35rem;margin:0 0 .9rem;color:#F5F1E8}
.mb-faq h3{margin:1.1em 0 .3em;font-size:1.02rem}
.mb-faq p{margin:0 0 .6em;opacity:.85;line-height:1.55}
.mb-sronly{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
