/* ===========================================================================
   ODDSLIGAEN — "Klistermærke-album" design system
   Panini/fanzine sports look: warm cream paper, halftone dots, hard black
   outlines, offset drop-shadows, sticker cards, chunky Anton display type.
   =========================================================================== */

:root {
  /* paper + ink */
  --paper:    #f7efde;
  --paper-2:  #f1e7d0;
  --card:     #fffdf7;
  --ink:      #1c160e;
  --ink-2:    #4f4636;
  --muted:    #8a7d63;
  --faint:    #b3a888;
  --line:     #e0d4b8;

  /* sticker palette */
  --red:      #d83a2f;
  --red-d:    #b22a20;
  --blue:     #1f5fb0;
  --green:    #1f7a45;
  --green-d:  #155f34;
  --yellow:   #f2b417;
  --purple:   #7a4bb0;

  /* semantic */
  --win:      var(--green);
  --draw:     var(--yellow);
  --loss:     var(--red);
  --gold:     var(--yellow);

  /* geometry — hard outlines + offset shadows */
  --bw:       2.5px;          /* border weight */
  --r:        12px;
  --r-lg:     16px;
  --sh:       4px 4px 0 var(--ink);
  --sh-sm:    3px 3px 0 var(--ink);
  --sh-lg:    6px 6px 0 var(--ink);

  --maxw:     1080px;

  --disp: "Anton", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(180,150,90,.10) 1.4px, transparent 1.4px);
  background-size: 14px 14px;
  overflow-x: hidden;
}
#root { min-height: 100vh; max-width: 100vw; overflow-x: hidden; }

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--yellow); }

.tnum { font-variant-numeric: tabular-nums; }

/* display type helper */
.disp { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }

/* ---- typographic helpers ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.h1 { font-family: var(--disp); font-size: clamp(34px, 6vw, 54px); line-height: .9; text-transform: uppercase; letter-spacing: .01em; margin: 0; }
.lead { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* sticker section title — ink block, slight tilt */
.sec-title {
  display: inline-block;
  font-family: var(--disp); font-size: clamp(22px, 3.4vw, 30px);
  text-transform: uppercase; letter-spacing: .02em;
  background: var(--ink); color: var(--paper);
  padding: 6px 16px; border-radius: 8px;
  transform: rotate(-1deg);
}

/* ====================================================================
   App shell + nav
   ==================================================================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.nav { position: sticky; top: 0; z-index: 40; background: var(--paper);
  border-bottom: var(--bw) solid var(--ink); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }

/* brand: badge logo + wordmark */
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; }
.badge-logo {
  width: 42px; height: 48px; flex: none;
  background: var(--green); border: var(--bw) solid var(--ink);
  border-radius: 7px 7px 13px 13px;
  display: grid; place-items: center; text-align: center; line-height: .82;
  color: #fff; font-family: var(--disp); font-size: 11px;
  transform: rotate(-4deg); box-shadow: var(--sh-sm);
}
.badge-logo.lg { width: 64px; height: 74px; font-size: 16px; }
.brand .word { font-family: var(--disp); font-size: 24px; text-transform: uppercase; letter-spacing: .01em; }
.brand .word em { font-style: normal; color: var(--red); }

.nav-links { display: flex; gap: 8px; margin-left: 10px; flex-wrap: nowrap; align-items: center; }
.nav-link {
  font-family: var(--disp); font-size: 14px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--ink); background: var(--card);
  border: var(--bw) solid var(--ink); border-radius: 8px;
  padding: 7px 13px; box-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap; transition: transform .08s, box-shadow .08s;
}
.nav-link:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.nav-link:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.nav-link.active { background: var(--ink); color: var(--paper); }
.nav-spacer { flex: 1; }

.nav-user {
  display: flex; align-items: center; gap: 9px;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 5px 14px 5px 5px; box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--disp); font-size: 14px; text-transform: uppercase; letter-spacing: .02em;
}
.nav-user .crest.xs { width: 24px; height: 24px; font-size: 9px; }
.nav-burger { display: none; width: 44px; height: 40px; border: var(--bw) solid var(--ink);
  background: var(--card); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink); place-items: center; }

.page { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 80px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .titles { display: flex; flex-direction: column; gap: 10px; }

/* ====================================================================
   Crest (team sticker avatar)
   ==================================================================== */
.crest {
  flex: none;
  border: var(--bw) solid var(--ink); border-radius: 8px;
  display: grid; place-items: center; color: #fff;
  font-family: var(--disp); font-size: 13px; letter-spacing: .02em;
}
.crest.xs { width: 28px; height: 28px; font-size: 10px; border-width: 2px; border-radius: 6px; }
.crest.sm { width: 38px; height: 38px; font-size: 13px; }
.crest.md { width: 50px; height: 50px; font-size: 17px; }
.crest.lg { width: 72px; height: 72px; font-size: 26px; border-radius: 11px; }
.crest.xl { width: 100%; height: 150px; font-size: 64px; border-radius: 12px; }

/* ====================================================================
   Sticker cards + buttons
   ==================================================================== */
.sticker {
  background: var(--card);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}
.sticker.pad { padding: 20px; }
.sticker.dashed { border-style: dashed; }
.sticker.tilt { transform: rotate(-1.4deg); }
.sticker.tilt-r { transform: rotate(1.2deg); }

/* tilt toggle: neutralise all rotations */
body.no-tilt .sticker.tilt,
body.no-tilt .sticker.tilt-r,
body.no-tilt .slot,
body.no-tilt .champ-card,
body.no-tilt .sec-title,
body.no-tilt .badge-logo,
body.no-tilt .star { transform: none !important; }

/* colored sticker variants */
.sticker.green  { background: var(--green);  color: #fff; }
.sticker.red    { background: var(--red);    color: #fff; }
.sticker.blue   { background: var(--blue);   color: #fff; }
.sticker.yellow { background: var(--yellow); color: var(--ink); }
.sticker.ink    { background: var(--ink);    color: var(--paper); }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-family: var(--disp); font-size: 20px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--disp); font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  border: var(--bw) solid var(--ink); border-radius: 10px;
  padding: 11px 18px; box-shadow: var(--sh-sm);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px,-1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--green); color: #fff; }
.btn-yellow  { background: var(--yellow); color: var(--ink); }
.btn-red     { background: var(--red); color: #fff; }
.btn-ghost   { background: var(--card); color: var(--ink); }
.btn-block   { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* pills / tags */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--disp); font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
  border: 2px solid var(--ink); border-radius: 999px; padding: 3px 11px; background: var(--card);
}
.pill.green  { background: var(--green); color: #fff; }
.pill.yellow { background: var(--yellow); color: var(--ink); }
.pill.red    { background: var(--red); color: #fff; }
.pill.ink    { background: var(--ink); color: var(--paper); }

/* star burst badge */
.star {
  width: 58px; height: 58px; flex: none;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
  color: var(--ink); font-family: var(--disp); font-size: 13px; line-height: .82;
  display: grid; place-items: center; text-align: center;
  transform: rotate(12deg); box-shadow: 2px 2px 0 var(--ink);
}

/* ====================================================================
   Form pills (V/U/T)
   ==================================================================== */
.form-row { display: inline-flex; gap: 4px; }
.frm {
  width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 5px;
  display: grid; place-items: center; color: #fff;
  font-family: var(--disp); font-size: 11px;
}
.frm.lg { width: 26px; height: 26px; font-size: 14px; border-radius: 6px; }
.frm.W { background: var(--green); }
.frm.D { background: var(--yellow); color: var(--ink); }
.frm.L { background: var(--red); }

/* money */
.money-pos { color: var(--green); font-weight: 700; }
.money-neg { color: var(--red); font-weight: 700; }

.odds {
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 6px;
  padding: 1px 7px;
}

/* ====================================================================
   Stat stickers (tiles)
   ==================================================================== */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  padding: 16px 18px; box-shadow: var(--sh);
}
.tile.green  { background: var(--green);  color: #fff; }
.tile.red    { background: var(--red);    color: #fff; }
.tile.blue   { background: var(--blue);   color: #fff; }
.tile.yellow { background: var(--yellow); color: var(--ink); }
.tile .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.tile .v { font-family: var(--disp); font-size: 40px; line-height: .92; margin-top: 9px; }
.tile .v.sm { font-size: 26px; }
.tile .w { font-size: 12.5px; margin-top: 7px; opacity: .92; }

/* ====================================================================
   Standings — album slots
   ==================================================================== */
.album { display: flex; flex-direction: column; gap: 10px; }
.slot {
  display: grid; grid-template-columns: 44px 50px 1fr auto auto 50px; align-items: center; gap: 14px;
  background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r);
  padding: 9px 14px; box-shadow: var(--sh-sm);
}
.slot.me { background: var(--yellow); }
.slot .slotpos { font-family: var(--disp); font-size: 28px; text-align: center; color: var(--ink); }
.slot.top .slotpos { color: var(--green); }
.slot.bot .slotpos { color: var(--red); }
.slot .sname { font-family: var(--disp); font-size: 20px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .smeta { display: flex; gap: 16px; }
.slot .smeta .b { text-align: right; }
.slot .smeta .bl { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot .smeta .bv { font-family: var(--disp); font-size: 19px; line-height: 1; }
.slot .bv.mut { color: var(--muted); }
.slot .spts {
  font-family: var(--disp); font-size: 26px; color: var(--paper); background: var(--ink);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 9px;
}
.slot.me .spts { background: var(--ink); }
@media (max-width: 680px) {
  .leader-hero { display: none !important; }
  .slot { grid-template-columns: 28px 36px 1fr 40px; gap: 8px; padding: 8px 12px; }
  .slot .smeta, .slot .hide-sm { display: none; }
  .slot .slotpos { font-size: 20px; }
  .slot .sname { font-size: 15px; }
  .slot .spts { width: 36px; height: 36px; font-size: 18px; border-radius: 7px; }
}

/* table (used where a real table reads better) */
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  text-align: right; padding: 0 12px 6px; font-weight: 600; white-space: nowrap;
}
.tbl thead th.l { text-align: left; }
.tbl tbody td {
  background: var(--card); padding: 10px 12px;
  text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tbl tbody td.l { text-align: left; }
.tbl tbody tr { border-top: 2px solid transparent; }
.tbl tbody tr + tr { border-top: 1px solid oklch(0.88 0.01 60); }
.tbl tbody tr td:first-child { border-left: var(--bw) solid var(--ink); border-radius: var(--r) 0 0 var(--r); }
.tbl tbody tr td:last-child  { border-right: var(--bw) solid var(--ink); border-radius: 0 var(--r) var(--r) 0; }
.tbl tbody tr:first-child td { border-top: var(--bw) solid var(--ink); }
.tbl tbody tr:last-child  td { border-bottom: var(--bw) solid var(--ink); }
.tbl tbody tr.me td { background: var(--yellow); }

/* ====================================================================
   Match cards (rounds)
   ==================================================================== */
.match { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); box-shadow: var(--sh-sm); overflow: hidden; }
.match + .match { margin-top: 12px; }
.match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 14px 16px; }
.match-side { display: flex; align-items: center; gap: 11px; min-width: 0; }
.match-side.right { justify-content: flex-end; text-align: right; }
.match-side .nm { font-family: var(--disp); font-size: 17px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-score { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-size: 22px; }
.match-score .vs { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.win-name { color: var(--green); }
.match-foot { border-top: 2px dashed var(--ink); background: var(--paper-2); max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.match.open .match-foot { max-height: 760px; }
.coupon-grid { display: grid; grid-template-columns: 1fr 1fr; }
.coupon { padding: 15px 16px; }
.coupon + .coupon { border-left: 2px dashed var(--ink); }
.coupon h4 { font-family: var(--disp); font-size: 14px; text-transform: uppercase; margin: 0 0 10px; }
.bet { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1.5px dashed var(--line); font-size: 13px; }
.bet:last-of-type { border-bottom: 0; }
.bet .pick { color: var(--ink-2); }
.proof {
  margin-top: 10px; border: 2px dashed var(--ink); border-radius: 8px; height: 92px;
  display: grid; place-items: center; color: var(--muted); font-family: var(--mono); font-size: 11px;
  background: repeating-linear-gradient(45deg, #fffdf7 0 10px, #f4ecda 10px 20px);
}
.expander { width: 100%; text-align: left; font-family: var(--disp); font-size: 13px; text-transform: uppercase;
  color: var(--ink); padding: 9px 16px; border-top: 2px solid var(--ink); background: var(--paper-2);
  display: flex; align-items: center; gap: 7px; }
.expander:hover { background: var(--yellow); }

/* round nav */
.roundbar { display: flex; align-items: center; gap: 10px; }
.rb-btn { width: 40px; height: 40px; border: var(--bw) solid var(--ink); background: var(--card); border-radius: 9px;
  display: grid; place-items: center; font-family: var(--disp); font-size: 20px; box-shadow: 2px 2px 0 var(--ink); }
.rb-btn:hover:not(:disabled) { background: var(--yellow); }
.rb-btn:disabled { opacity: .35; box-shadow: none; cursor: default; }

/* deadline banner */
.deadline { display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--green); color: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 18px 22px; }
.deadline > div { flex: none; }
.deadline .dl-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; white-space: nowrap; }
.deadline .dl-v { font-family: var(--disp); font-size: 24px; white-space: nowrap; }
.countdown { font-family: var(--mono); font-weight: 600; }

/* ====================================================================
   Fines
   ==================================================================== */
.kitty { background: var(--red); color: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  box-shadow: var(--sh); padding: 24px; }
.kitty .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.kitty .v { font-family: var(--disp); font-size: 56px; line-height: .9; margin-top: 6px; }
.fine-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1.5px dashed var(--line); }
.fine-row:last-child { border-bottom: 0; }
.fine-reason { font-size: 13px; color: var(--muted); }
.fine-amt { font-family: var(--disp); font-size: 18px; }
.paid { font-family: var(--disp); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border: 2px solid var(--ink); border-radius: 6px; padding: 2px 8px; }
.paid.yes { background: var(--green); color: #fff; }
.paid.no  { background: var(--red); color: #fff; }

/* leaderboard list */
.lb-item { display: grid; grid-template-columns: 26px auto 1fr auto; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1.5px dashed var(--line); }
.lb-item:last-child { border-bottom: 0; }
.lb-rank { font-family: var(--disp); font-size: 18px; color: var(--muted); }
.lb-rank.g1 { color: var(--yellow); -webkit-text-stroke: 1px var(--ink); }
.lb-name { font-family: var(--disp); font-size: 16px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-val { font-family: var(--disp); font-size: 18px; }

/* ====================================================================
   Hall of Fame
   ==================================================================== */
.champ-card { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh); position: relative; }
.champ-card.king { background: var(--yellow); }
.champ-year { font-family: var(--mono); font-size: 12px; color: var(--ink-2); font-weight: 600; }
.champ-name { font-family: var(--disp); font-size: 20px; text-transform: uppercase; line-height: .95; margin-top: 8px; }
.record { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.record:last-child { border-bottom: 0; }
.record .rk { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.record .rv { font-family: var(--disp); font-size: 22px; color: var(--green); }
.record .rwho { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; margin-top: 4px; }

/* ====================================================================
   Login
   ==================================================================== */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: 100%; max-width: 460px; background: var(--card); border: var(--bw) solid var(--ink); border-radius: 20px; padding: 36px; box-shadow: var(--sh-lg); }
.auth-tabs { display: flex; gap: 8px; margin: 26px 0 6px; }
.auth-tab { flex: 1; font-family: var(--disp); font-size: 15px; text-transform: uppercase; letter-spacing: .03em;
  background: var(--card); color: var(--ink); border: var(--bw) solid var(--ink); border-radius: 9px; padding: 9px; box-shadow: 2px 2px 0 var(--ink); }
.auth-tab.active { background: var(--ink); color: var(--paper); }
.field { margin-top: 18px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.input { width: 100%; margin-top: 8px; padding: 13px 15px; background: var(--paper); border: var(--bw) solid var(--ink); border-radius: 10px; font-size: 15px; color: var(--ink); outline: none; }
.input::placeholder { color: var(--faint); }
.input:focus { box-shadow: 3px 3px 0 var(--ink); }

/* footer */
.footer { margin-top: auto; border-top: var(--bw) solid var(--ink); background: var(--paper-2); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-inner .fnote { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.spark { display: block; }

/* grid helper */
.grid { display: grid; gap: 16px; }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: 73px; left: 0; right: 0; background: var(--paper);
    border-bottom: var(--bw) solid var(--ink); padding: 14px 20px; }
  .nav-burger { display: grid; }
  .nav-spacer { display: none; }
}
@media (max-width: 720px) {
  .coupon-grid { grid-template-columns: 1fr; }
  .coupon + .coupon { border-left: 0; border-top: 2px dashed var(--ink); }
}

/* Min side — kollaps til én kolonne på mobil */
@media (max-width: 700px) {
  .me-grid-outer,
  .me-grid-tiles,
  .me-grid-side,
  .fines-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  /* Bødekasse */
  .fine-row { grid-template-columns: auto 1fr auto; gap: 10px; }
  .fine-row .paid { font-size: 10px; padding: 2px 6px; }

  /* Deadline-banner */
  .deadline { gap: 14px; padding: 14px 16px; }
  .deadline .dl-v { font-size: 18px; }

  /* Match-kort */
  .match-row { gap: 8px; padding: 10px 12px; }
  .match-side .nm { font-size: 13px; }
  .match-score { font-size: 17px; gap: 6px; }

  /* Runde-navigator */
  .roundbar { gap: 6px; }

  /* Kitty-boks */
  .kitty .v { font-size: 40px; }

  /* Tiles (min side) */
  .tile { min-width: 0; }
}

/* ---- Screenshot upload ---- */
.proof { cursor: default; transition: background .15s; }
.proof:hover { background: var(--paper-2); }

/* ====================================================================
   Rundeoversigt
   ==================================================================== */
.ro-page { max-width: 1280px; }
.ro-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Kampkort */
.ro-match { background: var(--card); border: var(--bw) solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }

/* Kampoverskrift */
.ro-match-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
.ro-match-teams { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.ro-team-name { font-family: var(--disp); font-size: 14px; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ro-divider { color: rgba(255,255,255,0.5); font-size: 12px; }
.ro-result-badge { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 20px; white-space: nowrap; flex-shrink: 0; }

/* Spillersektioner */
.ro-players { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--bw) solid var(--ink); }
.ro-player-section { padding: 10px 12px; }
.ro-player-section + .ro-player-section { border-left: 1.5px dashed var(--ink); }
.ro-player-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.ro-player-name { font-family: var(--disp); font-size: 12px; text-transform: uppercase; color: var(--ink-2); }
.ro-no-bets { font-style: italic; font-size: 12px; color: var(--muted); padding: 4px 0; }

/* Bet-tabel */
.ro-bet-head { display: flex; font-family: var(--mono); font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 3px 0 4px; border-bottom: 1px solid var(--line); gap: 4px; }
.ro-bet-row  { display: flex; font-size: 11px; padding: 3px 0; border-bottom: 1px dashed var(--line); gap: 4px; align-items: center; }
.ro-bet-row:last-of-type { border-bottom: 0; }
.ro-fixture  { font-size: 11px; font-weight: 600; display: block; }
.ro-col-sign   { width: 28px; text-align: center; font-family: var(--mono); font-weight: 700; color: var(--blue); flex-shrink: 0; }
.ro-col-amt    { width: 44px; text-align: right; font-family: var(--mono); font-size: 10px; flex-shrink: 0; }
.ro-col-odds   { width: 34px; text-align: right; font-family: var(--mono); font-size: 10px; flex-shrink: 0; }
.ro-col-payout { width: 44px; text-align: right; font-family: var(--disp); font-size: 12px; flex-shrink: 0; }
.ro-total { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-family: var(--mono); margin-top: 6px; padding-top: 5px; border-top: 1.5px solid var(--ink); color: var(--muted); flex-wrap: wrap; gap: 4px; }

@media (max-width: 860px) {
  .ro-grid { grid-template-columns: 1fr; }
  .ro-players { grid-template-columns: 1fr; }
  .ro-player-section + .ro-player-section { border-left: 0; border-top: 1.5px dashed var(--ink); }
}

@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  .ro-no-print { display: none !important; }
  .nav, .footer, .page-head { display: none !important; }
  .ro-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ro-match { box-shadow: none; break-inside: avoid; }
  .ro-page { max-width: 100%; }
  body { background: white !important; background-image: none !important; }
  .ro-match-head { color: #fff !important; }
  .ro-player-section { border: 1px solid #ddd; }
}

/* ---- Admin: ingen tilt på sektionstitler ---- */
.page-admin .sec-title { transform: none !important; }

/* ---- Nedrykningszone ---- */
.slot.bot { background: oklch(0.96 0.03 20); }
.slot.me.bot { background: var(--yellow); } /* me overskriver bot */
.tbl tr.rel-zone { background: oklch(0.96 0.03 20); }
.tbl tr.me.rel-zone td { background: var(--yellow); }

/* ---- Admin ---- */
.admin-link { opacity: .65; font-size: 11px !important; padding: 5px 9px !important; }
.admin-link.active { opacity: 1; }
.bet-label {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 4px;
}
.admin-input {
  width: 100%; box-sizing: border-box;
  border: var(--bw) solid var(--ink); background: var(--paper);
  font-family: var(--body); font-size: 14px; padding: 8px 10px;
  outline: none; border-radius: 0;
}
.admin-input:focus { box-shadow: var(--sh); }
