/* Realternate — broadsheet news design. System fonts only, no external requests. */
:root {
  --ink: #131313;
  --ink-2: #444;
  --ink-3: #777;
  --paper: #fdfcf9;
  --rule: #d8d4cb;
  --accent: #b31b1b;          /* newsroom red */
  --hl: #ffe9a8;              /* highlight for the chosen team */
  --badge-bg: #23212b;
  --badge-fg: #ffd166;
  --serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); line-height: 1.55; }
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* utility bar */
.utility { background: var(--badge-bg); color: #eee; font-family: var(--sans); font-size: 12.5px; }
.utility-in { display: flex; align-items: center; gap: 10px; padding: 7px 20px; flex-wrap: wrap; }
.u-brand { font-weight: 800; letter-spacing: .18em; color: var(--badge-fg); }
.u-hint { color: #aaa; }
.switcher { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.sw-flags { display: flex; gap: 4px; }
.sw-flag { text-decoration: none; font-size: 19px; line-height: 1; padding: 4px 7px; border-radius: 7px;
  border: 1px solid transparent; opacity: .55; filter: saturate(.6); }
.sw-flag:hover { opacity: 1; filter: none; }
.sw-flag.active { opacity: 1; filter: none; border-color: var(--badge-fg); background: rgba(255,209,102,.12); }
.sw-toggle { display: flex; border: 1px solid #4a4756; border-radius: 999px; overflow: hidden; }
.sw-lang { text-decoration: none; color: #bbb; padding: 3px 11px; font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; }
.sw-lang:hover { color: var(--badge-fg); }
.sw-lang.active { background: var(--badge-fg); color: #1c1a24; }

/* masthead */
.masthead { text-align: center; padding: 26px 0 10px; border-bottom: 1px solid var(--ink); }
.badge { display: inline-block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em;
  background: var(--badge-bg); color: var(--badge-fg); padding: 4px 12px; border-radius: 3px; margin-bottom: 12px; }
.brand { font-size: clamp(44px, 8vw, 76px); font-weight: 700; letter-spacing: .04em; line-height: 1; }

/* Wordmark: ONE hollow liquid frame slides through REAL -> ALTERNATE -> REALTERNATE
   (measured by a tiny script; the slide is a CSS transition). Text stays ink; the
   5px border wobbles gently and cycles the palette very slowly. */
.brand { position: relative; isolation: isolate; }
.brand-blob { position: absolute; z-index: -1; top: 0; left: 0; width: 0; height: 0;
  box-sizing: border-box; background: transparent; border: 5px solid #e91ec4; border-radius: .14em;
  opacity: 0;
  animation: blob-color 28s linear infinite, blob-wobble 12s ease-in-out infinite alternate; }
/* transitions arm only AFTER the first placement, so the frame appears already wrapping REAL */
.brand-blob.blob-anim {
  transition: left 1.8s cubic-bezier(.6, 0, .3, 1), width 1.8s cubic-bezier(.6, 0, .3, 1),
              top 1.8s cubic-bezier(.6, 0, .3, 1), height 1.8s cubic-bezier(.6, 0, .3, 1); }
.brand.blob-on .brand-blob { opacity: 1; }
.brand .b-re, .brand .b-al, .brand .b-ter, .brand .b-news { color: var(--ink); }
@keyframes blob-color {
  0%   { border-color: #e91ec4; }
  25%  { border-color: #ff6a3d; }
  50%  { border-color: #2996d9; }
  75%  { border-color: #8a2be2; }
  100% { border-color: #e91ec4; }
}
@keyframes blob-wobble {
  from { transform: rotate(-.25deg) scaleY(1.025) skewX(-2.5deg); }
  to   { transform: rotate(.2deg) scaleY(.985) skewX(-1deg); }
}
/* utility-bar brand has no blob element; keep it flat gold */
.u-brand { position: static; }
.u-brand span { color: var(--badge-fg); }
.tagline { font-style: italic; color: var(--ink-2); margin-top: 6px; }
.dateline { font-family: var(--sans); font-size: 12px; color: var(--ink-3); margin-top: 8px;
  text-transform: uppercase; letter-spacing: .08em; }

/* nav */
.mainnav { border-bottom: 3px double var(--ink); font-family: var(--sans); }
.mainnav .wrap { display: flex; gap: 26px; justify-content: center; padding: 10px 20px; }
.mainnav a { text-decoration: none; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.mainnav a:hover { color: var(--accent); }
.nav-arch { opacity: .45; }

/* ticker */
.ticker { border-bottom: 1px solid var(--rule); background: #f4f1ea; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tick 45s linear infinite; }
.ticker-inner { padding: 7px 30px 7px 20px; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); }
.ticker-inner b { color: var(--accent); }
.tick-sep { color: var(--ink-3); margin: 0 6px; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-inner[aria-hidden] { display: none; }
}

/* team stripe — reality colors under the nav */
.team-stripe { height: 5px; background: var(--rule); }
body[data-reality="brazil"] .team-stripe { background: linear-gradient(90deg, #009739 0%, #009739 42%, #fedd00 58%, #fedd00 100%); }
body[data-reality="germany"] .team-stripe { background: linear-gradient(90deg, #111 0%, #111 34%, #d00 44%, #d00 62%, #ffcc00 72%, #ffcc00 100%); }

/* hero — full-bleed poster lead */
.hero { padding: 0 0 26px; border-bottom: 1px solid var(--rule); }
.kicker { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: 10px; }
.hero-poster { position: relative; overflow: hidden; background: #0e0e12;
  width: 100vw; left: 50%; transform: translateX(-50%); }
.hero-poster img { width: 100%; height: clamp(500px, 62vw, 800px); object-fit: cover; object-position: 50% 28%; display: block; }
.hero-overlay { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,14,.22) 0%, rgba(10,10,14,.05) 26%, rgba(10,10,14,.45) 55%, rgba(10,10,14,.88) 78%, rgba(12,12,16,.97) 100%); }
.hero-poster-text { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 1140px; padding: 0 20px 30px; }
.hero-poster-text .kicker { color: var(--badge-fg); }
.hero-poster-text h1 { font-size: clamp(28px, 3.9vw, 50px); line-height: 1.05; font-weight: 800;
  color: #fff; max-width: 21ch; margin-bottom: 12px; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.standfirst { font-size: 18px; line-height: 1.45; color: rgba(255,255,255,.88); font-style: italic; max-width: 68ch; margin: 0; }
.hero-credit { font-family: var(--sans); font-size: 10.5px; color: var(--ink-3); padding: 8px 2px 0; }
.hero-credit a { color: var(--ink-3); }
.hero-body { margin-top: 22px; columns: 2; column-gap: 44px; column-rule: 1px solid var(--rule); }
.hero-body p { margin-bottom: 12px; font-size: 16.5px; break-inside: avoid; }
.hero-body p:first-child::first-letter { float: left; font-size: 58px; line-height: .82;
  padding: 6px 10px 0 0; font-weight: 700; color: var(--accent); }
figcaption { font-family: var(--sans); font-size: 11px; color: var(--ink-3); padding-top: 6px; line-height: 1.5; }
figcaption a { color: var(--ink-3); }

/* sections */
.section-title { font-family: var(--sans); font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; border-bottom: 2px solid var(--ink); padding: 22px 0 8px; margin-bottom: 18px; }
.section-title::before { content: '■ '; color: var(--accent); font-size: 10px; vertical-align: 2px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 8px; }
.card h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--ink-2); }
.card-img { margin-bottom: 10px; }
.card-img img { width: 100%; height: 300px; object-fit: cover; object-position: 50% 22%; }
.card .kicker { margin-bottom: 6px; }
.card-foot { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); margin-top: 8px;
  display: flex; gap: 10px; align-items: baseline; }
.src { color: var(--ink-3); }

/* bracket */
.bracket-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.bracket-col { display: flex; flex-direction: column; }
.bracket-col h3 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-3); margin-bottom: 10px; }
.bracket-matches { display: flex; flex-direction: column; flex: 1; justify-content: space-around; gap: 12px; }
.match { border: 1px solid var(--rule); background: #fff; padding: 10px 12px; }
.match.done { border-left: 3px solid var(--accent); }
.match-teams { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; }
.team { flex: 1; }
.team:last-child { text-align: right; }
.team.win { font-weight: 800; }
.team.hl { background: var(--hl); padding: 0 4px; }
.vs { font-family: var(--sans); font-weight: 800; font-size: 14px; }
.ko-time { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pens { font-family: var(--sans); font-size: 11px; color: var(--ink-3); font-weight: 400; }
.match-meta { font-family: var(--sans); font-size: 10.5px; color: var(--ink-3); margin-top: 6px;
  text-transform: uppercase; letter-spacing: .04em; }

/* two-col panels */
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.gtable { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13.5px; }
.gtable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); border-bottom: 1px solid var(--ink); padding: 4px 6px; }
.gtable td { padding: 7px 6px; border-bottom: 1px solid var(--rule); }
.gtable td.pos { color: var(--ink-3); width: 20px; }
.gtable td.tname { font-weight: 600; }
.gtable td.pts { font-weight: 800; }
.gtable tr.hl td { background: var(--hl); }
.road { list-style: none; }
.road li { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.road-label { font-family: var(--sans); font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--accent); min-width: 92px; padding-top: 3px; }

/* footer */
footer { margin-top: 44px; border-top: 3px double var(--ink); background: #f4f1ea; }
footer .wrap { padding: 22px 20px 30px; }
.parody { display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
  font-family: var(--sans); font-size: 13px; font-weight: 700; font-style: italic; color: var(--ink-2); }
.parody img { width: 96px; height: 48px; object-fit: contain; }
.disclaimer { font-family: var(--sans); font-size: 12.5px; color: var(--ink-2); max-width: 760px; margin-bottom: 10px; }
.fineprint { font-family: var(--sans); font-size: 11px; color: var(--ink-3); max-width: 760px; }

/* betting ad unit */
.betslip { position: relative; margin: 30px 0 6px; border-radius: 14px; padding: 22px 26px 16px;
  background: linear-gradient(115deg, #3b0a63 0%, #7b1fa2 34%, #e91e63 68%, #ff9800 100%);
  color: #fff; font-family: var(--sans); overflow: hidden; }
.bet-ad { position: absolute; top: 12px; right: 14px; font-size: 9.5px; font-weight: 800;
  letter-spacing: .14em; padding: 2px 7px; border: 1px solid rgba(255,255,255,.55);
  border-radius: 3px; color: rgba(255,255,255,.85); }
.bet-brand { font-size: 13px; font-weight: 900; letter-spacing: .26em; opacity: .9; margin-bottom: 12px; }
.bet-main { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.bet-info { flex: 1 1 260px; }
.bet-matchlabel { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.bet-match { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; letter-spacing: -.01em; margin: 4px 0 6px; }
.bet-prop { font-size: 13px; font-weight: 600; opacity: .9; }
.bet-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.bet-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35);
  border-radius: 10px; padding: 10px 16px; text-align: center; min-width: 86px; backdrop-filter: blur(2px); }
.bet-team { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.bet-odds { display: block; font-size: 24px; font-weight: 900; margin-top: 2px; }
.bet-cta { background: #fff; color: #6a1b9a; font-weight: 900; font-size: 13px; letter-spacing: .04em;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap; }
.bet-fine { margin-top: 14px; font-size: 10.5px; opacity: .75; letter-spacing: .03em; }
@media (max-width: 640px) { .bet-cta { width: 100%; text-align: center; } }

/* memorial footer — inverted */
.memorial { margin-top: 56px; background: #0e0e12; color: #e8e6e0; padding: 44px 0 52px; }
.memorial .wrap { max-width: 1140px; }
.mem-head h2 { font-size: 34px; font-weight: 800; letter-spacing: .02em; }
.mem-head h2::before { content: '■ '; color: var(--accent); font-size: 14px; vertical-align: 6px; }
.mem-sub { font-style: italic; color: #9a978f; margin: 4px 0 22px; }
.mem-years { font-family: var(--sans); font-size: 15px; font-weight: 800; letter-spacing: .12em;
  border-top: 1px solid #2b2b33; border-bottom: 1px solid #2b2b33; padding: 12px 0; }
.mem-years-label { font-size: 11px; color: #9a978f; text-transform: uppercase; margin-right: 14px; letter-spacing: .14em; }
.mem-star { color: var(--badge-fg); }
.mem-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 26px 0 30px; }
.mem-v { font-size: 44px; font-weight: 800; line-height: 1; color: var(--badge-fg); }
.mem-l { font-family: var(--sans); font-size: 12.5px; color: #b5b2aa; margin-top: 6px; line-height: 1.45; }
.mem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.mem-card img { width: 100%; height: 230px; object-fit: cover; object-position: 50% 18%; }
.mem-card figcaption { color: #7a776f; }
.mem-card figcaption a { color: #7a776f; }
.mem-card h3 { font-size: 19px; margin: 10px 0 6px; color: #f2f0ea; }
.mem-card p { font-size: 14px; color: #c9c6be; line-height: 1.55; }
.mem-epitaph { margin-top: 30px; font-style: italic; color: #9a978f; font-size: 14.5px;
  border-top: 1px solid #2b2b33; padding-top: 16px; }
/* sponsor block — 3D timeline loop */
.sponsor { color: var(--ink); text-align: center; padding: 80px 0 90px; background: #fff; }
.loop-band { display: block; width: 100%; height: 120px; margin: 44px 0 48px; pointer-events: none; }
.sponsor-kicker { font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .26em; color: #6a1b9a; margin-bottom: 10px; }
.sponsor-title { font-family: var(--sans); font-size: clamp(19px, 2.2vw, 24px); font-weight: 800;
  letter-spacing: .01em; line-height: 1.1; color: var(--ink); margin: 0; }
.sponsor p { font-family: var(--sans); font-size: 16px; color: var(--ink-2); max-width: 560px; margin: 14px auto 0; line-height: 1.6; }
.sponsor p.sponsor-contactline { font-family: var(--sans); font-size: 13.5px; color: var(--ink-3); margin: 0 auto 32px; }
.sponsor-cta { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 800; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: none;
  padding: 15px 34px; background: var(--ink); border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease; }
.sponsor-cta:hover { background: transparent; color: var(--ink); }
@media (max-width: 640px) {
  .sponsor { padding: 80px 20px 90px; }
}
@media (max-width: 900px) {
  .mem-stats { grid-template-columns: 1fr 1fr; }
  .mem-cards { grid-template-columns: 1fr; }
}

/* archive */
.archlist { list-style: none; padding: 20px 0; font-family: var(--sans); }
.archlist li { padding: 6px 0; border-bottom: 1px solid var(--rule); }

/* mobile menu */
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid #4a4756;
  color: #ddd; border-radius: 7px; font-size: 17px; line-height: 1; padding: 5px 11px; cursor: pointer; }
.mobile-menu { display: none; background: var(--badge-bg); border-top: 1px solid #3a3746;
  padding: 14px 20px 18px; }
.mm-hint { font-family: var(--sans); color: #aaa; font-size: 12px; margin-bottom: 10px; }
.mm-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-family: var(--sans); }
.mm-nav a { color: #ddd; text-decoration: none; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .07em; }
@media (max-width: 640px) {
  .u-hint, .utility-in .switcher { display: none; }
  .menu-btn { display: block; }
  .mobile-menu.open { display: block; }
  .mainnav { display: none; }
  .utility-in { flex-wrap: nowrap; }
}

/* responsive */
@media (max-width: 900px) {
  .hero-body { columns: 1; }
  .hero-poster-text { padding: 0 18px 18px; }
  .hero-poster img { height: clamp(460px, 110vw, 640px); }
  .cards { grid-template-columns: 1fr 1fr; }
  .bracket-grid { grid-template-columns: 1fr; }
  .bracket-matches { justify-content: flex-start; }
  .bracket-col { margin-bottom: 18px; }
  .twocol { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .mainnav .wrap { gap: 14px; flex-wrap: wrap; }
}
