/* Gemensam stil för de fristående textsidorna (landningssidor för Google,
   t.ex. /reducera-stryktipset/). De laddar INTE appens css/js – sidorna ska
   vara lätta, gå att läsa utan JavaScript och inte beröras av appens
   byggstämpel. Färger och former är kopierade från css/01-base.css så att
   sidorna känns som samma produkt ("lugn precision"). */

:root {
  --navy-950: #0a1830;
  --navy-900: #0f2140;
  --navy-700: #1e3f66;
  --paper: #f6f5f1;
  --paper-raised: #ffffff;
  --paper-line: #e2e1da;
  --hairline: #efeee9;
  --ink: #1a1d24;
  --ink-soft: #565a63;
  --ink-faint: #8b8e95;
  --green-500: #1f9d5c;
  --green-600: #17864b;
  --p-stryk: #2c5490;
  --p-stryk-ink: #234368;
  --p-stryk-wash: #eef2f9;
  --accent: var(--p-stryk);
  --accent-ink: var(--p-stryk-ink);
  --accent-wash: var(--p-stryk-wash);
  --shadow-sm: 0 1px 2px rgba(15, 33, 64, 0.04), 0 2px 8px rgba(15, 33, 64, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 33, 64, 0.05), 0 8px 24px rgba(15, 33, 64, 0.08);
  --radius-md: 14px;
  --radius-lg: 18px;
}

/* Produktfärgen per sida (samma som produktkorten i css/01-base.css).
   Stryktipsets blå är standard ovan; övriga sidor sätter klassen på <body>. */
body.g-europa { --accent: #1f8a57; --accent-ink: #176b43; --accent-wash: #ecf6f1; }
body.g-topp   { --accent: #cf941f; --accent-ink: #8a6110; --accent-wash: #fbf3e2; }
body.g-power  { --accent: #c0392b; --accent-ink: #9a2c20; --accent-wash: #fbeeec; }

* { box-sizing: border-box; }

html {
  background:
    radial-gradient(1200px 600px at 20% -10%, #edf2fa 0%, transparent 55%),
    radial-gradient(900px 700px at 100% 110%, #f3efe6 0%, transparent 60%),
    var(--paper);
  background-attachment: fixed;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.04rem;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--accent-ink); }

/* --- Sidhuvud: loggan + ordmärket, länkar till appen ------------------- */
.g-header {
  background: #fcfcfa;
  border-bottom: 1px solid var(--hairline);
}
.g-header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.7rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  text-decoration: none;
  color: #005237;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}
.g-brand img { width: 2.1rem; height: auto; }
/* ".se" i loggans grågröna – samma sidhuvud som appen (2026-11-02). */
.g-brand .tld { color: #778f84; }
.g-header-cta {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy-700);
  white-space: nowrap;
}

/* --- Brödsmulor ------------------------------------------------------- */
.g-crumbs {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.9rem 16px 0;
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.g-crumbs a { color: var(--ink-soft); }

/* --- Innehåll ---------------------------------------------------------- */
main {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.4rem 16px 2.5rem;
}

.g-hero {
  margin: 0.8rem 0 2rem;
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: #fff;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
/* Produktfärgen som en tunn rygg till vänster, samma idé som produktkorten. */
.g-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--accent);
}
.g-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.g-hero p {
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
}
.g-hero-meta {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.g-btn {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(23, 134, 75, 0.28);
}
.g-btn:hover { filter: brightness(1.05); }
.g-btn:focus-visible { outline: 3px solid #ffe08a; outline-offset: 2px; }

main h2 {
  margin: 2.4rem 0 0.6rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--navy-900);
}
main h3 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.1rem;
  color: var(--navy-900);
}
main p { margin: 0 0 1rem; }
main ul { padding-left: 1.2rem; }
main li { margin-bottom: 0.35rem; }

/* Numrerade steg som kort, likt välkomstvyns fyra steg i appen. */
.g-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1rem 0 1.4rem;
  display: grid;
  gap: 0.7rem;
}
.g-steps > li {
  counter-increment: step;
  position: relative;
  padding: 0.9rem 1rem 0.9rem 3.3rem;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0;
}
.g-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.g-steps strong { display: block; color: var(--navy-900); }

/* Skärmbilder: vilar på pappret som appens kort. */
.g-figure {
  margin: 1.2rem auto 1.6rem;
  max-width: 440px;
}
.g-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.g-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  text-align: center;
}

/* Faktaruta, t.ex. räkneexemplet. */
.g-note {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--accent-wash);
  border-left: 4px solid var(--accent);
}
.g-note p:last-child { margin-bottom: 0; }

.g-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.2rem;
  font-size: 0.95rem;
  background: var(--paper-raised);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.g-table th,
.g-table td {
  padding: 0.55rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--hairline);
}
.g-table th:first-child,
.g-table td:first-child { text-align: left; }
/* Belopp som "32 805 kr" ska inte brytas mitt i på mobilen. */
.g-table td:not(:first-child) { white-space: nowrap; }
.g-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: #fafaf7;
}
.g-table tr:last-child td { border-bottom: none; }

/* Vanliga frågor: <details> fungerar utan JavaScript. */
.g-faq details {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.6rem;
}
.g-faq summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 650;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 0.75rem;
  font-size: 1.2rem;
  color: var(--ink-faint);
}
.g-faq details[open] summary::after { content: "–"; }
.g-faq details > div { padding: 0 1rem 0.4rem; }

.g-cta-end {
  margin: 2.6rem 0 0;
  padding: 1.4rem;
  text-align: center;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.g-cta-end p { margin-bottom: 1rem; color: var(--ink-soft); }

.g-related {
  margin-top: 1.6rem;
  font-size: 0.95rem;
}

/* --- Odds- och strecksidorna (/stryktipset m.fl., functions/_lib) ------- */
/* Förklaringen ovanför tabellerna (ersatte 2026-11-06 en rad med
   exempelsiffror som lästes som riktiga värden). */
.o-hint {
  margin: 1.4rem 0 0.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.o-hint b { color: var(--ink); }
.o-hint-hi {
  padding: 0.05rem 0.4rem;
  border-radius: 5px;
  background: #edf7f1;
  color: var(--green-600);
  font-weight: 700;
}
.o-draw h2 { margin-bottom: 0.15rem; }
.o-close { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.o-updated { font-size: 0.8rem; color: var(--ink-faint); }
.o-table { table-layout: fixed; }
.o-table th:nth-child(n+2) { width: 19%; text-align: center; }
.o-table td { vertical-align: middle; }
.o-match {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.o-match small {
  display: block;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}
.o-nr {
  display: inline-block;
  min-width: 1.3rem;
  color: var(--ink-faint);
  font-weight: 700;
}
.g-table td.o-cell {
  text-align: center;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.o-cell span { display: block; }
.o-dist { font-weight: 700; }
.o-odds { font-size: 0.78rem; color: var(--ink-soft); }
.o-val { font-size: 0.78rem; color: var(--ink-faint); }
.o-cell.o-hi { background: #edf7f1; }
.o-cell.o-hi .o-val { color: var(--green-600); font-weight: 700; }
.o-cell.o-lo .o-val { color: #a0533f; }
.o-cell.o-best { box-shadow: inset 0 0 0 2px var(--green-500); border-radius: 8px; }
.o-rest { padding-left: 1.1rem; font-size: 0.95rem; }

/* --- Sidfot: 18+ och stödlänkar, som appens sidfot --------------------- */
.g-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px 2rem;
}
.g-rg {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding-top: 0.9rem;
  border-top: 1px solid var(--paper-line);
}
.g-age {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--ink-soft);
  line-height: 1;
}
.g-rg p,
.g-contact {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.g-rg a,
.g-contact a { color: var(--ink-soft); }
.g-contact { margin-top: 0.7rem; }

@media (max-width: 560px) {
  .g-rg { flex-direction: column; gap: 0.45rem; }
  .g-hero { padding: 1.4rem 1.1rem 1.3rem 1.4rem; }
  .g-table { font-size: 0.88rem; }
  .g-table th, .g-table td { padding: 0.5rem 0.5rem; }
}

/* --- Omgångsarkivet (/stryktipset/facit m.fl., functions/_lib/facit-page.js)
   Mer show än de andra guidesidorna: brickorna i rätt rad poppar in en i
   taget, staplarna växer fram och skrällarna lyser i guld/korall (samma
   gränser och färgidé som fliken Facit i appen). Allt är ren CSS – sidan
   fungerar likadant utan JavaScript, och rörelserna stängs av för den som
   valt "minska rörelse" i telefonen. */

.f-hero {
  background:
    radial-gradient(420px 220px at 105% -10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(360px 200px at -10% 120%, rgba(233, 185, 73, 0.18), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
/* Ett ljusskimmer som drar över heroet en gång när sidan laddas. */
.f-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.09) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: f-sheen 1.6s 0.5s ease-out forwards;
  pointer-events: none;
}
.f-kicker {
  margin: 0 0 0.45rem !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 45%, #fff) !important;
}
.f-hero .f-when { font-size: 0.88rem; color: rgba(255, 255, 255, 0.62); margin-bottom: 1.1rem; }
.f-btn-light { background: #fff; color: var(--navy-900); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }

/* Rätt rad: brickor som poppar in en i taget. */
.f-row { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.f-row b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  animation: f-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  animation-delay: calc(0.25s + var(--i) * 0.06s);
}
/* Matchnumret ovanför varje bricka, så att man kan rätta mot raden. */
.f-row { row-gap: 1.15rem; padding-top: 1rem; }
.f-row b { position: relative; }
.f-row b::before {
  content: attr(data-n);
  position: absolute;
  top: -1.05rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}
.f-row-mini { row-gap: 0.9rem; padding-top: 0.85rem; }
.f-row-mini b::before { top: -0.9rem; font-size: 0.58rem; color: var(--ink-faint); }
.f-row b.f-t-upset {
  background: linear-gradient(180deg, #f3cd6c, #e2a93a);
  border-color: transparent;
  color: #3a2a06;
  box-shadow: 0 0 18px rgba(233, 185, 73, 0.55);
}
.f-row b.f-t-big {
  background: linear-gradient(180deg, #f08a73, #d9573f);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(232, 112, 90, 0.6);
}
.f-prelim {
  display: inline-block;
  margin: 1rem 0 0 !important;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
}

/* Sifferkort under heroet. */
.f-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: -0.8rem 0 1.4rem;
}
.f-stat {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  animation: f-rise 0.5s ease-out both;
  animation-delay: calc(0.6s + var(--i) * 0.08s);
}
.f-stat b {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.f-stat:first-child b { color: var(--green-600); }
.f-stat span { font-size: 0.8rem; color: var(--ink-soft); }
.f-summary { color: var(--ink-soft); }

/* Omgångens största skräll. */
.f-spot {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.4rem 0 0.4rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff8e6, #fbefd2);
  border: 1px solid #f0dca8;
  box-shadow: 0 10px 28px rgba(226, 169, 58, 0.18);
}
.f-spot-big {
  background: linear-gradient(135deg, #fff1ed, #fadcd4);
  border-color: #f2c2b6;
  box-shadow: 0 10px 28px rgba(217, 87, 63, 0.18);
}
.f-spot-num {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3cd6c, #e2a93a);
  color: #3a2a06;
  box-shadow: 0 0 0 6px rgba(233, 185, 73, 0.2);
  animation: f-pulse 2.4s 1.2s ease-in-out infinite;
}
.f-spot-big .f-spot-num {
  background: linear-gradient(180deg, #f08a73, #d9573f);
  color: #fff;
  box-shadow: 0 0 0 6px rgba(217, 87, 63, 0.18);
}
/* Talet och procenttecknet på samma baslinje, mitt i cirkeln (procenttecknet
   flyttar talet lite åt vänster, så det knuffas tillbaka med lika mycket). */
.f-spot-num span { display: inline-flex; align-items: baseline; line-height: 1; margin-left: 0.3rem; }
.f-spot-num b { font-size: 1.9rem; line-height: 1; font-weight: 850; }
.f-spot-num small { font-size: 0.9rem; font-weight: 700; margin-left: 1px; }
.f-spot p { margin: 0; }
.f-spot-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6110;
}
.f-spot-big .f-spot-kicker { color: #9a2c20; }
.f-spot-teams { font-size: 1.1rem; font-weight: 750; color: var(--navy-900); line-height: 1.3; }
.f-spot-teams span { white-space: nowrap; color: var(--ink-soft); font-weight: 650; }
.f-spot-text { font-size: 0.9rem; color: var(--ink-soft); }

/* Staplar som växer fram. */
.f-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.f-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, #fff), var(--accent));
  transform-origin: left;
  animation: f-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(0.3s + var(--i, 0) * 0.05s);
}

/* Utdelningstrappan. */
.f-pay, .f-matches, .f-cards { list-style: none; padding: 0; margin: 0.6rem 0 1.2rem; }
.f-pay li, .f-matches li, .f-cards li { margin: 0; }
.f-pay {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.f-pay li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hairline);
}
.f-pay li:last-child { border-bottom: none; }
.f-pay-c {
  flex: none;
  width: 2.7rem;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
  color: var(--accent-ink);
}
.f-pay-c small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}
.f-pay-main { flex: 1; min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 0.6rem; align-items: baseline; }
.f-pay-amt { font-weight: 750; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: var(--navy-900); }
.f-pay-win { font-size: 0.8rem; color: var(--ink-faint); text-align: right; white-space: nowrap; }
.f-pay-main .f-bar { grid-column: 1 / -1; grid-row: 2; }
.f-pay li:first-child .f-pay-amt { color: var(--green-600); font-size: 1.2rem; }
.f-pay li:first-child .f-bar i { background: linear-gradient(90deg, #5cc48c, var(--green-500)); }

/* Matcherna som rader med stapel och tecken. */
.f-matches {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.f-m {
  border-bottom: 1px solid var(--hairline);
  animation: f-rise 0.45s ease-out both;
  animation-delay: calc(0.2s + var(--i) * 0.035s);
}
.f-m:last-child { border-bottom: none; }
/* Raden är en <summary> – tryck fäller ut alla tre tecknen. */
.f-m summary,
.f-m-off {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
}
.f-m summary { cursor: pointer; list-style: none; position: relative; }
.f-m summary::-webkit-details-marker { display: none; }
.f-m summary:hover { background: rgba(15, 33, 64, 0.025); }
.f-m details[open] summary .f-tile { transform: scale(1.08); }
.f-tile { transition: transform 0.2s ease; }
.f-detail {
  display: grid;
  gap: 0.25rem;
  margin: 0 0.9rem 0.8rem 3.1rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: #fafaf7;
  border: 1px solid var(--hairline);
  animation: f-rise 0.25s ease-out both;
}
.f-d {
  display: grid;
  grid-template-columns: 1.6rem 1fr 1fr 1fr;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.f-d b { text-align: center; font-weight: 800; color: var(--ink-soft); }
.f-d-head { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.f-d-won { background: var(--accent-wash); font-weight: 700; }
.f-d-won b { color: var(--accent-ink); }
.f-m-upset .f-d-won { background: #f9ecc8; }
.f-m-big .f-d-won { background: #f9dcd4; }
.f-d-hi { color: var(--green-600); font-weight: 700; }

/* Raden i siffror. */
.f-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}
.f-facts div {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
}
.f-facts dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.f-facts dd { margin: 0.15rem 0 0; font-weight: 650; color: var(--navy-900); line-height: 1.4; }
.f-m-nr {
  flex: none;
  width: 1.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-align: center;
}
.f-m-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.f-m-teams { font-weight: 650; font-size: 0.95rem; line-height: 1.3; color: var(--navy-900); }
.f-m-score { white-space: nowrap; color: var(--ink-soft); font-weight: 600; margin-left: 0.15rem; }
.f-m-meta { font-size: 0.75rem; color: var(--ink-faint); }
.f-m-main .f-bar { margin-top: 0.2rem; }
.f-m-side { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: 3rem; }
.f-m-side span { font-size: 0.78rem; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.f-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-weight: 850;
}
.f-m-upset { background: linear-gradient(90deg, #fffaf0, transparent 70%); }
.f-m-upset .f-tile { background: linear-gradient(180deg, #f3cd6c, #e2a93a); color: #3a2a06; box-shadow: 0 0 12px rgba(233, 185, 73, 0.45); }
.f-m-upset .f-bar i { background: linear-gradient(90deg, #f3cd6c, #e2a93a); }
.f-m-big { background: linear-gradient(90deg, #fff4f1, transparent 70%); }
.f-m-big .f-tile { background: linear-gradient(180deg, #f08a73, #d9573f); color: #fff; box-shadow: 0 0 12px rgba(217, 87, 63, 0.45); }
.f-m-big .f-bar i { background: linear-gradient(90deg, #f08a73, #d9573f); }
.f-m-off { opacity: 0.55; }

.f-hint { font-size: 0.85rem; color: var(--ink-soft); }
.f-key { padding: 0.05rem 0.4rem; border-radius: 5px; font-weight: 700; }
.f-key-upset { background: #f6e3b0; color: #6b4c0c; }
.f-key-big { background: #f8d3c9; color: #8a2a1d; }

/* Föregående/nästa som två knappar. */
.f-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 1.6rem 0 0.6rem; }
.f-nav-btn {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--navy-900);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.f-nav-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.f-nav-next { text-align: right; }
.f-nav-btn:hover, .f-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.f-all { text-align: center; font-size: 0.95rem; }

/* Översikten: ett kort per omgång. */
.f-cards { display: grid; gap: 0.7rem; }
.f-cards li { animation: f-rise 0.45s ease-out both; animation-delay: calc(0.15s + var(--i) * 0.05s); }
.f-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.f-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
}
.f-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.f-card-title { font-weight: 800; font-size: 1.05rem; color: var(--navy-900); }
.f-card-pay { font-weight: 800; color: var(--green-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.f-card-meta { font-size: 0.78rem; color: var(--ink-faint); }
.f-row-mini { column-gap: 3px; }
.f-row-mini b {
  width: 1.45rem;
  height: 1.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--accent-wash);
  border: none;
  color: var(--accent-ink);
  animation: none;
}
.f-row-mini b.f-t-upset, .f-row-mini b.f-t-big { box-shadow: none; }

@keyframes f-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.6); }
  to { opacity: 1; transform: none; }
}
@keyframes f-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes f-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes f-sheen {
  to { transform: translateX(100%); }
}
@keyframes f-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 560px) {
  /* Bara sidledes – avståndet mellan raderna behövs för matchnumren. */
  .f-row { column-gap: 4px; }
  .f-row b { width: 1.7rem; height: 2rem; font-size: 0.92rem; border-radius: 8px; }
  /* 13 brickor ska rymmas på en rad även på 360 px. */
  .f-row-mini { column-gap: 2px; flex-wrap: nowrap; }
  .f-row-mini b { width: 1.2rem; height: 1.45rem; font-size: 0.72rem; border-radius: 5px; }
  .f-stats { grid-template-columns: 1fr 1fr; }
  .f-stat b { font-size: 1.15rem; }
  .f-spot { padding: 1rem; gap: 0.8rem; }
  .f-spot-num { width: 3.9rem; height: 3.9rem; }
  .f-spot-num b { font-size: 1.55rem; }
  .f-m summary, .f-m-off { padding: 0.65rem 0.7rem; gap: 0.55rem; }
  .f-detail { margin: 0 0.7rem 0.75rem 2.35rem; padding: 0.5rem; }
  .f-d { font-size: 0.8rem; gap: 0.25rem; grid-template-columns: 1.3rem 0.8fr 0.8fr 1.1fr; }
  .f-d-head { font-size: 0.6rem; letter-spacing: 0.02em; }
  .f-m-nr { width: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .f-hero::after { display: none; }
  .f-row b, .f-stat, .f-bar i, .f-m, .f-cards li, .f-spot-num { animation: none; }
}
