/* ===========================================================
   PlayBox · Bento Grid · 50_football_GM260909
   base.css — shared design tokens, header, footer, ad classes,
   bento grid primitives. Page-specific layouts live in
   index.css / category.css / details.css / play.css /
   legal-base.css.
   =========================================================== */

:root {
  --ft-cream: #f5f1e8;
  --ft-cream-deep: #ece4d2;
  --ft-ink: #1a1a1a;
  --ft-ink-soft: #3a3a3a;
  --ft-navy: #2a4a8a;
  --ft-brass: #f7d774;
  --ft-rose: #c8536e;
  --ft-olive: #2f6b3a;
  --ft-terra: #d57f3a;
  --ft-mute: #6c6357;
  --ft-line: #d8cfb9;
  --ft-accent-active: #2a4a8a;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--ft-cream);
  color: var(--ft-ink);
  font-family: "Inter", "PingFang SC", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

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

button { font: inherit; cursor: pointer; }

.ft-page { background: var(--ft-cream); color: var(--ft-ink); }

.ft-shell { width: min(100% - 32px, 1280px); margin-inline: auto; }

/* ---------- Header ---------- */

.ft-header {
  padding: 22px 0 14px;
  border-bottom: 1.5px solid var(--ft-ink);
  background: var(--ft-cream);
}

.ft-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  -webkit-box-align: center;
  -webkit-align-items: center;
     -moz-box-align: center;
          align-items: center;
}

.ft-brand {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ft-ink);
}

.ft-brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--ft-ink);
  color: var(--ft-brass);
  display: grid; place-items: center;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.ft-brand-text {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ft-ink);
}

.ft-brand-text em {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ft-mute);
  margin-top: 4px;
}

.ft-nav {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  gap: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  justify-self: center;
}

.ft-nav a {
  color: var(--ft-ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  -webkit-transition: border-color 0.15s ease;
  transition: border-color 0.15s ease;
}

.ft-nav a:hover { border-bottom-color: var(--ft-navy); color: var(--ft-navy); }

.ft-search {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex; -webkit-box-align: center; -webkit-align-items: center; -moz-box-align: center; align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--ft-ink);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  max-width: 360px;
}

.ft-search-input {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
     -moz-box-flex: 1;
          flex: 1; background: transparent; border: 0; outline: none;
  padding: 8px 8px; font-size: 13px; color: var(--ft-ink);
  min-width: 0;
}

.ft-search-input::-webkit-input-placeholder { color: #9b9488; }

.ft-search-input::-moz-placeholder { color: #9b9488; }

.ft-search-input::placeholder { color: #9b9488; }

.ft-search-trigger {
  border: 0;
  background: var(--ft-ink);
  color: var(--ft-cream);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 11px;
  cursor: pointer;
}

/* ---------- Ad visual classes (JS dynamically applies .ft-ad-*) ----- */

.ft-ad-frame {
  display: block;
  width: 100%;
  margin: 16px auto;
  text-align: center;
}

.ft-ad-tag {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 6px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ft-mute);
  font-weight: 700;
  text-align: center;
}

.ft-ad-slot {
  max-width: 300px;
  min-height: 250px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 1.5px dashed var(--ft-ink);
  border-radius: 14px;
  color: var(--ft-ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- Section head ---------- */

.ft-section { padding: 28px 0 4px; }

.ft-section-head {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
     -moz-box-align: baseline;
          align-items: baseline;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  border-bottom: 1.5px solid var(--ft-ink);
  padding-bottom: 12px;
}

.ft-section-head .ft-section-id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ft-mute);
  text-transform: uppercase;
}

.ft-section-head h2 {
  margin: 4px 0 0;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ft-ink);
}

.ft-section-head .ft-section-sub {
  font-size: 12px;
  color: var(--ft-mute);
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.ft-section-see {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ft-ink);
  text-decoration: none;
  white-space: nowrap;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
}

.ft-section-see::after { content: " →"; }

.ft-section-see:hover { color: var(--ft-navy); }

.ft-section-meta {
  font-size: 11px;
  color: var(--ft-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

/* ---------- Bento grid + tile primitives ---------- */

.ft-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 80px;
  gap: 14px;
}

.ft-bento.is-card { grid-auto-rows: 96px; }

.ft-bento.is-tight { grid-auto-rows: 72px; }

.ft-tile {
  cursor: pointer;
  position: relative;
  background: #ffffff;
  border: 1.5px solid var(--ft-ink);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ft-ink);
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  -webkit-transition: box-shadow 0.15s ease, -webkit-transform 0.15s ease;
  transition: box-shadow 0.15s ease, -webkit-transform 0.15s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease, -webkit-transform 0.15s ease;
}

.ft-tile:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 26, 26, 0.12);
}

.ft-tile-thumb {
  position: relative;
  background: var(--ft-ink);
  overflow: hidden;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
     -moz-box-flex: 1;
          flex: 1 1 auto;
  min-height: 0;
}

.ft-tile-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.ft-tile-info {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
     -moz-box-flex: 0;
          flex: 0 0 auto;
  padding: 8px 10px;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
     -moz-box-orient: vertical;
     -moz-box-direction: normal;
          flex-direction: column;
  gap: 2px;
  background: #ffffff;
}

.ft-tile-name {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ft-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.ft-tile-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ft-mute);
  font-weight: 600;
}

/* span classes for the 6-col bento */

.ft-span-1x1 { grid-column: span 1; grid-row: span 1; }

.ft-span-2x1 { grid-column: span 2; grid-row: span 1; }

.ft-span-3x1 { grid-column: span 3; grid-row: span 1; }

.ft-span-6x1 { grid-column: span 6; grid-row: span 1; }

.ft-span-2x2 { grid-column: span 2; grid-row: span 2; }

.ft-span-3x2 { grid-column: span 3; grid-row: span 2; }

.ft-span-3x3 { grid-column: span 3; grid-row: span 3; }

.ft-span-4x3 { grid-column: span 4; grid-row: span 3; }

.ft-span-4x4 { grid-column: span 4; grid-row: span 4; }

/* feature (hero main) variant — dark, brass-gold tag */

.ft-tile.is-feature { background: var(--ft-ink); color: var(--ft-cream); border-color: var(--ft-ink); }

.ft-tile.is-feature .ft-tile-info { background: var(--ft-ink); }

.ft-tile.is-feature .ft-tile-name { color: var(--ft-cream); font-size: 18px; }

.ft-tile.is-feature .ft-tile-cat { color: var(--ft-brass); }

.ft-tile.is-feature .ft-tile-num { color: var(--ft-ink); }

/* wide (6x1) variant — gradient text overlay on thumb */

.ft-tile.ft-wide .ft-tile-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: -webkit-gradient(linear, left top, left bottom, from(transparent), to(rgba(0,0,0,0.85)));
  background: -webkit-linear-gradient(top, transparent 0%, rgba(0,0,0,0.85) 100%);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.85) 100%);
}

.ft-tile.ft-wide .ft-tile-name { color: var(--ft-cream); font-size: 15px; }

.ft-tile.ft-wide .ft-tile-cat { color: var(--ft-brass); }

/* hero main variant — large overlay text on the 4x4 dark card */

.ft-hero-main::after {
  content: "";
  position: absolute; inset: 0;
  background: -webkit-gradient(linear, left top, left bottom, color-stop(30%, rgba(0,0,0,0.0)), to(rgba(0,0,0,0.75)));
  background: -webkit-linear-gradient(top, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.75) 100%);
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 30%, rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

.ft-hero-main-info {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  color: var(--ft-cream);
  z-index: 2;
}

.ft-hero-main-info .ft-hero-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--ft-brass);
  color: var(--ft-ink);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: 999px;
}

.ft-hero-main-info h3 {
  margin: 14px 0 6px;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ft-cream);
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}

.ft-hero-main-info p {
  margin: 0;
  font-size: 13px;
  color: var(--ft-cream);
  opacity: 0.92;
}

/* Tile FT-### mono badge */

.ft-tile-num {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(245, 241, 232, 0.92);
  border: 1.5px solid var(--ft-ink);
  border-radius: 8px;
  padding: 2px 6px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ft-ink);
  font-weight: 700;
  z-index: 2;
}

/* ---------- Footer ---------- */

.ft-footer {
  background: var(--ft-ink);
  color: var(--ft-cream);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.ft-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.ft-footer h5 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ft-brass);
}

.ft-footer p, .ft-footer a {
  font-size: 13px;
  color: #d4cdbe;
  text-decoration: none;
  display: block;
  margin: 6px 0;
}

.ft-footer a:hover { color: var(--ft-brass); }

.ft-footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #3a3a3a;
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
     -moz-box-pack: justify;
          justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9b9488;
}

/* ---------- 1050 breakpoint (tablet) ---------- */

@media (max-width: 1050px) {
  .ft-header-inner {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .ft-nav {
    grid-column: 1 / -1;
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
       -moz-box-ordinal-group: 4;
            order: 3;
    -webkit-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
       -moz-box-pack: start;
            justify-content: flex-start;
    gap: 16px;
    justify-self: start;
  }
  .ft-search { max-width: 280px; }
  .ft-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .ft-footer-grid > .ft-footer-col:last-child { grid-column: 1 / -1; }
}

/* ---------- 480 breakpoint (mobile) ---------- */

@media (max-width: 480px) {
  .ft-header { padding: 16px 0 12px; }
  .ft-header-inner { grid-template-columns: 1fr; gap: 10px; }
  .ft-nav { grid-column: auto; -webkit-box-ordinal-group: 1; -webkit-order: 0; -moz-box-ordinal-group: 1; order: 0; }
  .ft-search { max-width: none; }

  .ft-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 96px;
    gap: 10px;
  }
  .ft-bento.is-card,
  .ft-bento.is-tight { grid-auto-rows: 92px; }

  /* Mobile preview: only first 6 children of Casual/Puzzle grids are surfaced */
  .ft-bento#ftBentoCasualGrid > :nth-child(n+7),
  .ft-bento#ftBentoPuzzleGrid > :nth-child(n+7) { display: none; }

  .ft-span-2x1 { grid-column: span 2; grid-row: span 1; }
  .ft-span-3x1, .ft-span-6x1 { grid-column: span 2; grid-row: span 1; }
  .ft-span-2x2 { grid-column: span 1; grid-row: span 2; }
  .ft-span-3x2, .ft-span-3x3 { grid-column: span 2; grid-row: span 2; }
  .ft-span-4x3, .ft-span-4x4 { grid-column: span 2; grid-row: span 3; }

  .ft-tile.is-feature .ft-tile-name { font-size: 14px; }
  .ft-hero-main-info h3 { font-size: 22px; }
  .ft-footer-grid { grid-template-columns: 1fr 1fr; }
  .ft-footer-bottom { -webkit-box-orient: vertical; -webkit-box-direction: normal; -webkit-flex-direction: column; -moz-box-orient: vertical; -moz-box-direction: normal; flex-direction: column; gap: 6px; }
}

/* category.css — page-specific styling for the category page.
   Layout primitives live in base.css. */

.ft-category-main { padding-top: 12px; }

.ft-category-banner {
  padding: 14px 0 18px;
}

.ft-category-stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 1.5px solid var(--ft-ink);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 800;
  background: var(--ft-brass);
  color: var(--ft-ink);
}

.ft-category-banner h2 {
  margin: 10px 0 4px;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.ft-category-banner h2 em {
  font-style: italic;
  color: var(--ft-navy);
  font-weight: 800;
}

.ft-category-subline {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ft-mute);
  letter-spacing: 0.04em;
}

.ft-category-tabs {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-flex-wrap: wrap;
          flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0 18px;
  border-bottom: 1.5px solid var(--ft-ink);
}

.ft-category-tab {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid var(--ft-ink);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ft-ink);
  background: var(--ft-cream);
  text-decoration: none;
  -webkit-transition: background 0.15s ease, color 0.15s ease;
  transition: background 0.15s ease, color 0.15s ease;
}

.ft-category-tab:hover {
  background: var(--ft-ink);
  color: var(--ft-cream);
}

.ft-category-tab.is-active {
  background: var(--ft-ink);
  color: var(--ft-brass);
}

.ft-category-body { padding: 18px 0 4px; }

.ft-category-grid { margin-bottom: 8px; }

.ft-category-empty {
  text-align: center;
  padding: 60px 0;
}

.ft-category-empty h3 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.ft-category-empty p {
  margin: 0 0 18px;
  color: var(--ft-mute);
}

.ft-loadmore-wrap {
  display: -webkit-box;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
     -moz-box-pack: center;
          justify-content: center;
  padding: 16px 0 24px;
}

.ft-loadmore-btn {
  border: 1.5px solid var(--ft-ink);
  background: var(--ft-cream);
  color: var(--ft-ink);
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  cursor: pointer;
}

.ft-loadmore-btn:hover { background: var(--ft-ink); color: var(--ft-cream); }

.ft-loadmore-btn:disabled { background: var(--ft-mute); color: var(--ft-cream); cursor: not-allowed; }

@media (max-width: 480px) {
  .ft-category-banner { padding: 8px 0 12px; }
  .ft-category-tabs { gap: 6px; padding: 8px 0 12px; }
  .ft-category-tab { padding: 5px 10px; font-size: 10px; }
}

