/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

:root {
  --bg: #f7f2ea;
  --surface: #ffffff;
  --surface-muted: #efe7dc;
  --surface-strong: #f4ede3;
  --text: #1f1a16;
  --text-muted: #6c6258;
  --accent: #0d6b5b;
  --accent-dark: #09473c;
  --accent-soft: #d9eee7;
  --border: #ddcfbf;
  --danger: #a72b2b;
  --success: #1f7a45;
  --shadow: 0 14px 30px rgba(31, 26, 22, 0.08);
  --shadow-strong: 0 24px 50px rgba(31, 26, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body.site-shell {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(13, 107, 91, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(190, 150, 86, 0.14), transparent 24%),
    linear-gradient(180deg, #f5efe7 0%, #fcfaf7 100%);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
}

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

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 35%),
    radial-gradient(circle at bottom right, rgba(13, 107, 91, 0.08), transparent 22%);
}

.admin-header {
  background: rgba(255, 251, 245, 0.86);
}

.admin-header__inner {
  min-height: 104px;
}

.site-branding__eyebrow {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header .shell,
.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.site-branding__name {
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.site-branding__tag {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 36rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-pill,
.inline-form .nav-pill {
  border: 1px solid rgba(31, 26, 22, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 20px rgba(31, 26, 22, 0.05);
}

.nav-pill:hover {
  color: var(--accent-dark);
  border-color: rgba(13, 107, 91, 0.2);
}

.nav-pill--soft {
  background: rgba(239, 231, 220, 0.82);
}

.nav-pill--primary {
  background: var(--accent);
  color: #fff;
}

.nav-pill--primary:hover {
  color: #fff;
}

.nav-pill--ghost {
  background: transparent;
}

.inline-form {
  margin: 0;
}

.page-content {
  padding: 2rem 0 4rem;
}

.admin-page-content {
  position: relative;
  z-index: 1;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-family: Arial, sans-serif;
}

.flash--notice {
  border-color: rgba(31, 122, 69, 0.2);
  color: var(--success);
}

.flash--alert {
  border-color: rgba(167, 43, 43, 0.2);
  color: var(--danger);
}

.panel,
.article-card,
.auth-card,
.admin-table,
.empty-state,
.article-content,
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel--spacious {
  padding: 2rem;
}

.hero-card,
.auth-card,
.article-content,
.empty-state {
  padding: 2rem;
}

.hero-card {
  margin-bottom: 2rem;
  box-shadow: var(--shadow-strong);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.admin-hero__stats {
  display: flex;
  align-items: stretch;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.stat-chip {
  min-width: 132px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 107, 91, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f6f0e7 100%);
}

.stat-chip strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.stat-chip span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card h1,
.article-content h1,
.auth-card h1,
.page-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.hero-card p,
.article-card p,
.article-content p,
.auth-card p,
.empty-state p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.section-copy,
.lead-copy {
  color: var(--text-muted);
  font-size: 1rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  overflow: hidden;
}

.article-card__body {
  padding: 1.5rem;
}

.article-card__meta,
.article-meta {
  color: var(--text-muted);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.9rem;
}

.article-content,
.prose,
.briefing-main,
.briefing-archive-item,
.hero-card,
.panel {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content a,
.prose a,
.briefing-main a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content img,
.prose img,
.briefing-main img {
  max-width: 100%;
  height: auto;
}

.button,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(13, 107, 91, 0.2);
}

.button--secondary {
  background: var(--surface-muted);
  color: var(--text);
}

.button--secondary:hover {
  color: var(--text);
  background: #e6dacb;
}

.button--danger {
  background: var(--danger);
}

.stack {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(13, 107, 91, 0.45);
  box-shadow: 0 0 0 4px rgba(13, 107, 91, 0.1);
  background: #fff;
}

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

.field__hint {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.admin-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.88);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(244, 237, 227, 0.72);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--surface-muted);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag--success {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.prose p {
  margin: 0 0 1rem;
}

.prose pre,
.prose code {
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.actions--compact .button,
.actions--compact button {
  padding: 0.65rem 0.95rem;
  font-size: 0.88rem;
}

.auth-card--elevated {
  max-width: 640px;
  margin: 3rem auto 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 242, 234, 0.96) 100%);
  box-shadow: var(--shadow-strong);
}

.auth-card__copy {
  margin-bottom: 1.5rem;
}

.preview-media {
  margin: 0 0 1.5rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(320px, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.game-hero--arcade {
  align-items: start;
}

.game-hero__copy,
.game-hero__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-strong);
}

.game-hero__copy {
  padding: 2rem;
}

.game-hero__panel {
  padding: 1rem;
  background:
    radial-gradient(circle at top, rgba(13, 107, 91, 0.12), transparent 25%),
    linear-gradient(180deg, #fff 0%, #f7efe3 100%);
}

.game-hero__panel--stack {
  padding: 1.2rem;
}

.game-selector {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0;
}

.game-selector__button {
  justify-content: flex-start;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  border: 1px solid rgba(31, 26, 22, 0.08);
  box-shadow: none;
}

.game-selector__button.is-active {
  background: var(--accent);
  color: #fff;
}

.game-pane {
  display: none;
}

.game-pane.is-active {
  display: block;
}

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

.game-pane__header h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1.6rem 0;
}

.game-stat {
  padding: 1rem;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(31, 26, 22, 0.08);
  text-align: center;
}

.game-stat span {
  display: block;
  color: var(--text-muted);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.75rem;
  line-height: 1;
}

.game-board {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(31, 26, 22, 0.08);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.95), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.65), transparent 14%),
    linear-gradient(180deg, #9ad7ff 0%, #dff3ff 46%, #f9efe5 100%);
}

.game-board::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(13, 107, 91, 0.05) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(13, 107, 91, 0.18),
      rgba(13, 107, 91, 0.18) 18px,
      rgba(255, 255, 255, 0.2) 18px,
      rgba(255, 255, 255, 0.2) 36px
    );
}

.game-board__overlay {
  position: absolute;
  inset: 20px;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: var(--text);
  text-align: center;
}

.game-board__overlay strong {
  font-size: 1.8rem;
}

.game-board__overlay--hidden {
  display: none;
}

.target {
  position: absolute;
  z-index: 3;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #fff8d6 0%, #ffd25e 32%, #f68a2c 66%, #cf4b1d 100%);
  box-shadow: 0 14px 22px rgba(207, 75, 29, 0.28);
}

.target::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
}

.target--hidden {
  display: none;
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.memory-tile {
  min-height: 150px;
  border-radius: 24px;
  border: 0;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.memory-tile:hover {
  transform: translateY(-2px);
}

.memory-tile--1 { background: linear-gradient(180deg, #ffd7a8, #ff9f57); }
.memory-tile--2 { background: linear-gradient(180deg, #b7f0eb, #46c1b3); }
.memory-tile--3 { background: linear-gradient(180deg, #cbd0ff, #7684ff); }
.memory-tile--4 { background: linear-gradient(180deg, #ffe0ef, #ef77a7); }

.memory-tile.is-lit {
  transform: scale(0.97);
  filter: brightness(1.22);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.8), var(--shadow-strong);
}

.landing-board {
  margin-top: 1rem;
  padding: 2rem 1.25rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #fefefe 0%, #f2ebe1 100%);
  border: 1px solid rgba(31, 26, 22, 0.08);
}

.landing-track {
  position: relative;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9d2c8 0%, #f6f1ea 100%);
  overflow: hidden;
}

.landing-track__target {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  width: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(13, 107, 91, 0.28), rgba(13, 107, 91, 0.55));
}

.landing-track__marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffbb70 0%, #e26b22 100%);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(226, 107, 34, 0.28);
}

.game-note {
  margin: 1rem 0 0;
  color: var(--text-muted);
}

.travel-dash-board {
  position: relative;
  min-height: 520px;
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(31, 26, 22, 0.08);
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.9), transparent 20%),
    linear-gradient(180deg, #8fd7ff 0%, #dff4ff 48%, #f7efe3 100%);
}

.travel-dash-hud {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 5;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 0.92rem;
}

.travel-dash-sky {
  position: absolute;
  inset: 0 0 38% 0;
  background:
    radial-gradient(circle at 22% 30%, rgba(255, 255, 255, 0.75), transparent 10%),
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, 0.7), transparent 13%);
}

.travel-dash-road {
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 86%;
  height: 78%;
  transform: translateX(-50%) perspective(900px) rotateX(68deg);
  transform-origin: bottom center;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  background:
    linear-gradient(180deg, rgba(70, 74, 92, 0.92) 0%, rgba(33, 36, 46, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.travel-dash-road::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.2) 0 1%,
      transparent 1% 33%,
      rgba(255, 255, 255, 0.2) 33% 34%,
      transparent 34% 66%,
      rgba(255, 255, 255, 0.2) 66% 67%,
      transparent 67% 99%,
      rgba(255, 255, 255, 0.2) 99% 100%
    );
}

.travel-dash-road::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0 20px,
      transparent 20px 54px
    );
  opacity: 0.34;
}

.travel-dash-lane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
}

.travel-dash-lane:nth-child(1) { left: 33.3%; }
.travel-dash-lane:nth-child(2) { left: 66.6%; }
.travel-dash-lane:nth-child(3) { display: none; }
.travel-dash-lane:nth-child(4) { display: none; }

.travel-dash-items {
  position: absolute;
  inset: 0;
}

.travel-dash-item {
  position: absolute;
  bottom: 14%;
  width: 76px;
  height: 76px;
  opacity: 0.25;
  transform: translate(-50%, 0) scale(0.35);
}

.travel-dash-item--ticket::before,
.travel-dash-item--obstacle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
}

.travel-dash-item--ticket::before {
  background:
    linear-gradient(135deg, #fff6d0 0%, #ffd15d 55%, #f29f1f 100%);
  box-shadow: 0 10px 22px rgba(242, 159, 31, 0.3);
}

.travel-dash-item--ticket::after {
  content: "T";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7d4b02;
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.travel-dash-item--obstacle::before {
  background:
    linear-gradient(180deg, #ff887d 0%, #c2382f 100%);
  box-shadow: 0 10px 20px rgba(194, 56, 47, 0.28);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.travel-dash-player {
  position: absolute;
  bottom: 6%;
  width: 84px;
  height: 110px;
  z-index: 4;
  transition: left 0.18s ease;
}

.travel-dash-player.lane-left { left: 20%; }
.travel-dash-player.lane-center { left: 50%; }
.travel-dash-player.lane-right { left: 80%; }

.travel-dash-player__body {
  position: absolute;
  inset: 0;
  border-radius: 28px 28px 22px 22px;
  background:
    linear-gradient(180deg, #ffffff 0%, #14a07c 34%, #0d6b5b 100%);
  box-shadow: 0 18px 28px rgba(13, 107, 91, 0.28);
}

.travel-dash-player__body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 38px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
}

.travel-dash-player__body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 54px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.travel-dash-player__shadow {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 76px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  filter: blur(3px);
}

.race-canvas-shell {
  margin-top: 1rem;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(31, 26, 22, 0.08);
  box-shadow: var(--shadow-strong);
  background: linear-gradient(180deg, #0e1f35 0%, #18385f 100%);
}

#race-canvas {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
}

.football-panel {
  padding: 1.1rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 25%),
    linear-gradient(180deg, #10223d 0%, #0a1627 100%);
}

.football-pitch {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, #1c4f2f 0%, #2b7a46 32%, #3fa55f 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.football-crowd {
  position: absolute;
  inset: 0 0 auto 0;
  height: 24%;
  background:
    radial-gradient(circle at 10% 50%, #1d2d44 0 10px, transparent 11px),
    radial-gradient(circle at 20% 30%, #823329 0 8px, transparent 9px),
    radial-gradient(circle at 35% 52%, #d1b36a 0 9px, transparent 10px),
    radial-gradient(circle at 52% 36%, #3f6aa0 0 8px, transparent 9px),
    radial-gradient(circle at 70% 50%, #8f2d56 0 10px, transparent 11px),
    radial-gradient(circle at 86% 35%, #ef8354 0 8px, transparent 9px),
    linear-gradient(180deg, #10223d 0%, #1a304f 100%);
}

.football-goal {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 68%;
  height: 45%;
  transform: translateX(-50%);
  border: 8px solid #f7fafc;
  border-bottom-width: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.goal-net {
  position: absolute;
  inset: 0;
}

.goal-net--vertical {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 34px
  );
}

.goal-net--horizontal {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 28px
  );
}

.football-keeper {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 120px;
  height: 140px;
  transform: translateX(-50%);
  transition: left 0.28s ease;
}

.football-keeper.keeper-left { left: 26%; }
.football-keeper.keeper-center { left: 50%; }
.football-keeper.keeper-right { left: 74%; }

.football-keeper__body {
  position: absolute;
  inset: 18px 24px 0;
  border-radius: 22px 22px 14px 14px;
  background: linear-gradient(180deg, #f6ad55 0%, #dd6b20 100%);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.18);
}

.football-keeper__body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #f4c095;
}

.football-keeper__glove {
  position: absolute;
  top: 36px;
  width: 28px;
  height: 22px;
  border-radius: 999px;
  background: #f7fafc;
}

.football-keeper__glove--left { left: 4px; transform: rotate(-16deg); }
.football-keeper__glove--right { right: 4px; transform: rotate(16deg); }

.football-ball {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0%, #f4f4f4 60%, #d9d9d9 100%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
  transition: left 0.38s ease, bottom 0.52s ease, transform 0.52s ease;
}

.football-ball::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 999px;
  border: 3px solid rgba(17, 24, 39, 0.2);
}

.football-ball.ball-left { left: 26%; }
.football-ball.ball-center { left: 50%; }
.football-ball.ball-right { left: 74%; }

.football-ball.ball-shot {
  bottom: 56%;
  transform: translateX(-50%) scale(0.8);
}

.football-targets {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  z-index: 4;
}

.football-target {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #10223d;
}

.football-target:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
}

.briefing-separator {
  display: inline-block;
  margin: 0 0.45rem;
}

.briefing-summary-card,
.briefing-body-card {
  margin-top: 1rem;
}

.briefing-sidebar .article-card {
  position: sticky;
  top: 100px;
}

.briefing-archive-item + .briefing-archive-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.briefing-archive-item p {
  margin: 0.35rem 0 0.5rem;
}

.game-instructions h3 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .site-header .shell,
  .site-footer .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card,
  .auth-card,
  .article-content,
  .empty-state,
  .panel--spacious {
    padding: 1.4rem;
  }

  .admin-table {
    overflow-x: auto;
  }

  .admin-header__inner {
    min-height: auto;
  }

  .game-hero {
    grid-template-columns: 1fr;
  }

  .game-stats {
    grid-template-columns: 1fr;
  }

  .game-board {
    min-height: 360px;
  }

  .memory-board {
    grid-template-columns: 1fr 1fr;
  }

  .travel-dash-board {
    min-height: 420px;
  }

  .football-pitch {
    min-height: 420px;
  }

  .football-targets {
    flex-wrap: wrap;
    width: calc(100% - 2rem);
    justify-content: center;
  }

  .briefing-layout {
    grid-template-columns: 1fr;
  }

  .briefing-sidebar .article-card {
    position: static;
  }
}
