/* Cult Hero — "sticker album" look: 90s football sticker albums. Paper, navy ink, red and gold,
   condensed shirt-number type (Anton), cards like stickers with a hard offset shadow. */
:root {
  --paper: #f2e8d2;
  --card: #fffaf0;
  --ink: #13294b;        /* navy */
  --muted: #56667f;
  --red: #d7263d;
  --gold: #f2b705;
  --line: #13294b;
  --soft: rgba(19, 41, 75, 0.12);
  --display: 'Anton', 'Arial Narrow', Impact, sans-serif;
  /* kept for old names used in the script */
  --lime: var(--red);
  --lime-ink: #fffaf0;
  --warn: var(--red);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--paper);
  overflow: hidden; overscroll-behavior: none; -webkit-user-select: none; user-select: none;
}
input { -webkit-user-select: text; user-select: text; }
button { font: inherit; cursor: pointer; border: 0; touch-action: manipulation; color: inherit; }

#pitch { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* paper grain + a soft light spot, over the line-drawn pitch */
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(255,255,255,0.55), transparent 45%),
    repeating-linear-gradient(0deg, rgba(19,41,75,0.022) 0 2px, transparent 2px 4px),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(120, 90, 40, 0.10)); }
#ui { position: relative; z-index: 2; height: 100%; max-width: 480px; margin: 0 auto; }
.screen { position: absolute; inset: 0; padding: 16px; padding-top: max(16px, env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.hidden { display: none !important; }

/* sticker: card on paper with a hard navy shadow */
.mode, .how, .card, .board, .rrow, .arow { background: var(--card); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--line); }

/* ---------- menu ---------- */
.home { color: var(--muted); text-decoration: none; font-weight: 800; font-size: 14px; }
.brand { text-align: center; margin: 5vh 0 2vh; }
.brand h1 { font-family: var(--display); font-weight: 400; font-size: 84px; margin: 0; line-height: 0.92; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.brand h1 span { color: var(--red); display: block; }
.brand p { color: var(--muted); font-size: 16px; line-height: 1.45; margin: 14px 0 0; font-weight: 600; }
.brand p b { color: var(--ink); }
.mode { text-align: left; color: var(--ink); border-radius: 18px; padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; animation: rise 0.5s ease both; position: relative; }
.mode:nth-of-type(2) { animation-delay: 0.06s; } .mode:nth-of-type(3) { animation-delay: 0.12s; }
.mode .t { font-family: var(--display); font-size: 27px; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.mode .d { color: var(--muted); font-size: 14px; font-weight: 600; grid-column: 1; }
.mode .b { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--red); font-weight: 900; font-size: 14px; text-align: right; }
.mode:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--line); }
.mode.daily { background: var(--red); color: var(--card); }
.mode.daily .d { color: #ffe0e4; }
.mode.daily .b { color: var(--gold); }
.mode.daily::after { content: 'Á HVERJUM DEGI'; position: absolute; top: -12px; right: 14px; background: var(--gold); color: var(--ink);
  font: 900 11px Inter, sans-serif; letter-spacing: 0.06em; padding: 3px 8px; border: 2px solid var(--ink); transform: rotate(3deg); }
html[lang="en"] .mode.daily::after { content: 'EVERY DAY'; }
.how { border-radius: 16px; padding: 12px 16px; color: var(--muted); font-size: 14px; line-height: 1.5; box-shadow: 4px 4px 0 var(--line); }
.how summary { color: var(--ink); font-weight: 900; cursor: pointer; }
.how b, .how i { color: var(--ink); }
.tiers { display: grid; gap: 6px; margin-top: 8px; }
.tier { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; }
.tier i { width: 20px; height: 20px; border-radius: 4px; display: block; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.tier b { color: var(--ink); }
.sound, .langbtn { position: absolute; top: max(12px, env(safe-area-inset-top)); background: var(--card); color: var(--ink); border-radius: 999px; height: 42px; border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.sound { right: 16px; width: 42px; font-size: 18px; }
.langbtn { right: 66px; min-width: 42px; padding: 0 10px; font: 900 14px Inter, sans-serif; }
.footlink { color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; margin: 4px 0 12px; }

/* ---------- HUD ---------- */
.hud { display: flex; flex-direction: column; gap: 6px; }
.squares { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; }
.squares span { width: 30px; height: 30px; border-radius: 5px; background: #e9dfc8; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); transition: background 0.3s, transform 0.3s; transform: rotate(-2deg); }
.squares span:nth-child(even) { transform: rotate(2deg); }
.squares span.now { box-shadow: 0 0 0 2.5px var(--red); }
.squares span.pop { animation: pop 0.5s ease; }
.squares.big span { width: 40px; height: 40px; }
.hudrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hudrow .score { flex: 1; text-align: center; }
.hudrow .cards { min-width: 70px; text-align: right; }
.quit { background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font: 900 13px Inter, sans-serif; box-shadow: 2px 2px 0 var(--ink); min-width: 70px; }
.quit:active { transform: translate(2px, 2px); box-shadow: none; }
/* the header (with the quit button) stays clickable above the goal/VAR overlays */
.hud { position: relative; z-index: 5; }
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(19,41,75,0.35); animation: rise 0.15s ease both; }
.mbox { width: 100%; max-width: 360px; background: var(--card); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mbox p { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.4; color: var(--ink); }
.mbox input { font: 800 17px Inter, sans-serif; padding: 12px; border-radius: 12px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); -webkit-user-select: text; user-select: text; }
.mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mbtns .ghost, .mbtns .shoot { padding: 12px; font-size: 16px; }
.score { font-family: var(--display); font-size: 34px; color: var(--red); }
.score::after { content: ' stig'; font-family: Inter, sans-serif; font-size: 14px; color: var(--muted); font-weight: 800; }
html[lang="en"] .score::after { content: ' pts'; }
.cards { font-size: 22px; letter-spacing: 2px; }

/* ---------- prompt card ---------- */
.card { margin-top: auto; margin-bottom: auto; border-radius: 22px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 6px 6px 0 var(--line); }
.card.enter { animation: cardIn 0.45s cubic-bezier(.2,.9,.3,1.2) both; }
.card.shake { animation: shake 0.4s ease; }
.meta { display: flex; justify-content: space-between; align-items: center; }
.diff { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 999px; border: 2px solid var(--ink); background: var(--gold); color: var(--ink); }
.diff[data-d="Auðvelt"] { background: #9be3a8; } .diff[data-d="Miðlungs"] { background: var(--gold); }
.diff[data-d="Erfitt"] { background: #ffab5e; } .diff[data-d="Mjög erfitt"] { background: var(--red); color: var(--card); }
.num { color: var(--muted); font-weight: 800; font-size: 13px; }
.prompt { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.prompt .cond { font-family: var(--display); font-size: 31px; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.01em; }
.clock { position: relative; width: 78px; height: 78px; align-self: center; }
.clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 9; }
.clock .track { stroke: var(--soft); }
.clock .ring { stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 0; transition: stroke 0.3s; }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 30px; }
.clock.hurry .ring { stroke: var(--red); }
.clock.hurry span { color: var(--red); animation: beat 1s ease infinite; }
#answer { width: 100%; font: inherit; font-size: 20px; font-weight: 800; padding: 14px 16px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); outline: none; }
#answer::placeholder { color: #a3adbd; }
#answer:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215,38,61,0.15); }
.btns { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }
.pass { background: var(--card); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 14px; padding: 14px; font-weight: 900; font-size: 17px; }
.shoot { background: var(--ink); color: var(--card); border-radius: 14px; padding: 15px; font-weight: 900; font-size: 19px; box-shadow: 0 5px 0 var(--red); }
.shoot:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--red); }
button:disabled { opacity: 0.4; }

/* ---------- daily + leaderboard ---------- */
.board { width: 100%; border-radius: 18px; padding: 14px 16px; text-align: left; }
.board h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 400; font-size: 24px; text-transform: uppercase; letter-spacing: 0.02em; }
.board h3 span#boardCount { color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.nameform { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 10px; }
.nameform input { min-width: 0; background: #fff; color: var(--ink); border: 2.5px solid var(--ink); border-radius: 12px; padding: 11px 12px; font: 800 16px Inter, sans-serif; }
.nameform .shoot { padding: 10px 14px; font-size: 15px; box-shadow: 0 4px 0 var(--red); }
.boardlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.boardlist li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; font-weight: 800; border-bottom: 1.5px dashed var(--soft); }
.boardlist li.me { background: #ffe9a8; border-bottom-color: transparent; }
.boardlist .r { color: var(--muted); }
.boardlist .sq { font-size: 11px; letter-spacing: -1px; }
.boardlist .s { font-family: var(--display); font-size: 19px; color: var(--red); }
.boardme { margin: 8px 0 0; color: var(--muted); font-weight: 800; font-size: 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 -4px 10px; padding: 2px 4px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; background: var(--card); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; font: 900 13px Inter, sans-serif; }
.tab.on { background: var(--ink); color: var(--card); }
.tab.add { color: var(--red); border-style: dashed; border-color: var(--red); }
.leaguebar { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: -4px 0 8px; }
.leaguebar:empty { display: none; }
.leaguebar b { color: var(--ink); letter-spacing: 0.08em; }
.leaguebar .link { padding: 0; font-size: 13px; color: var(--red); }
.gcrowd { color: var(--muted); font-size: 14px; font-weight: 800; max-width: 320px; text-align: center; }
.gcrowd:empty { display: none; }
.streak { color: #e0661b; }
.mode.daily .streak { color: var(--gold); }
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 12px; }
.sgrid div { background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; }
.sgrid b { color: var(--red); font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.sgrid span { font-size: 12px; font-weight: 700; }
.sbar { display: grid; grid-template-columns: 112px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; margin: 3px 0; }
.sbar i { display: block; height: 11px; border-radius: 3px; min-width: 2px; box-shadow: 0 0 0 1.5px var(--ink); }
.sbar b { color: var(--ink); text-align: right; }
.archive { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.arow { display: grid; grid-template-columns: 44px 1fr auto; gap: 8px; align-items: center; color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 800 14px Inter, sans-serif; text-align: left; border-width: 2px; box-shadow: 3px 3px 0 var(--line); }
.arow b { color: var(--red); }
.rrow .same { display: block; color: var(--red); font-size: 12px; font-weight: 800; }
.rrow .same:empty { display: none; }
.msg { min-height: 22px; margin: 0; text-align: center; font-weight: 800; color: var(--red); }
.msg .appeal { font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 10px; margin-left: 4px; cursor: pointer; }
.msg .sugg { font: inherit; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; margin: 0 2px; cursor: pointer; }

/* ---------- overlays ---------- */
.ready { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ready span { font-family: var(--display); font-size: 170px; color: var(--red); text-shadow: 6px 6px 0 var(--ink); animation: count 1s ease both; }
.var { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(19,41,75,0.25); }
/* VAR stays a TV screen */
.screenbox { background: #0d1117; border: 3px solid var(--ink); border-radius: 16px; padding: 22px 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 6px 6px 0 var(--ink); animation: rise 0.25s ease both; }
.vt { font-family: var(--display); font-size: 50px; letter-spacing: 0.12em; color: #fff; }
.vs { color: #b8c2d4; font-weight: 700; }
.bars { display: flex; gap: 6px; height: 26px; align-items: flex-end; }
.bars i { width: 8px; background: var(--gold); border-radius: 2px; animation: bar 0.9s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: 0.15s; } .bars i:nth-child(3) { animation-delay: 0.3s; } .bars i:nth-child(4) { animation-delay: 0.45s; }
.goal { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 50%, rgba(242,232,210,0.92), rgba(242,232,210,0.6) 70%); }
/* tier name in its colour, outlined in navy so even the pale ones read on paper */
.gname { font-family: var(--display); font-size: 64px; line-height: 1; text-transform: uppercase; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); animation: slam 0.6s cubic-bezier(.2,1.4,.4,1) both; }
.gpts { font-family: var(--display); font-size: 44px; color: var(--red); animation: rise 0.4s 0.25s ease both; }
.gline { font-weight: 900; color: var(--ink); animation: rise 0.4s 0.35s ease both; }
.gplayer { color: var(--muted); font-weight: 800; animation: rise 0.4s 0.45s ease both; }
.gtap { margin-top: 26px; color: var(--muted); font-size: 13px; font-weight: 700; animation: rise 0.4s 1s ease both; }
/* Until the rarity meter stops, only the meter and the sticker show; then the rest. */
.goal:not(.reveal) :is(.gname, .gpts, .gline, .gplayer, .gbar, .gcrowd, .combo, .gtap) { visibility: hidden; animation: none; }
.goal.nomatch :is(.meter, .sticker, .gbar) { display: none; }
.meter { position: relative; width: min(320px, 86vw); height: 34px; margin-bottom: 6px; animation: rise 0.3s ease both; }
.mtrack { position: absolute; inset: 8px 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mtrack span { border-radius: 4px; background: #e9dfc8; box-shadow: 0 0 0 1.5px var(--ink); transition: background 0.12s, transform 0.12s; }
.mtrack span.on { background: var(--c); }
.mtrack span.stop { transform: scaleY(1.5); box-shadow: 0 0 0 2.5px var(--ink), 0 0 14px var(--c); animation: beat 0.6s ease 2; }
.mball { position: absolute; top: 50%; left: 8%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink);
  background-image: radial-gradient(circle at 50% 50%, var(--ink) 0 3.5px, transparent 4px); transition: left 0.16s cubic-bezier(.3,1.4,.5,1); z-index: 1; }
.sticker { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 10px 18px 9px; min-width: 200px; max-width: 86vw;
  background: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 0 0 5px var(--tc, var(--gold)) inset, 5px 5px 0 var(--ink);
  transform: rotate(-3deg); animation: slap 0.45s 0.1s cubic-bezier(.2,1.5,.4,1) both; }
.sname { font-family: var(--display); font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--ink); }
.stier { font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
/* shiny "holo" sticker for the deep answers */
.holo::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.75;
  background: linear-gradient(115deg, transparent 20%, #ff9de2 32%, #9df3ff 42%, #fff7a0 52%, #b5ffa8 60%, transparent 72%); background-size: 250% 100%; animation: holo 1.8s linear infinite; }
.gpts.bump { animation: pop 0.4s ease; }
.gbar { position: relative; width: min(300px, 82vw); height: 26px; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); overflow: hidden; animation: rise 0.4s 0.5s ease both; }
.gbar.hidden { display: none; }
.gbar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold); transition: width 0.9s cubic-bezier(.2,.8,.2,1) 0.6s; }
.gbar span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 900; color: var(--ink); }
.combo { font-family: var(--display); font-size: 26px; color: #e0661b; text-transform: uppercase; -webkit-text-stroke: 1px var(--ink); animation: pop 0.5s 0.6s ease both; }
.combo:empty { display: none; }
.ycard { position: absolute; left: 50%; top: 18%; width: 74px; height: 104px; margin-left: -37px; border-radius: 8px; background: var(--gold); border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink); pointer-events: none; z-index: 4; }
.ycard.red { background: var(--red); }
.ycard.flip { animation: flipup 0.7s cubic-bezier(.2,1.3,.4,1) both; }
#answer.wrong { animation: wrongflash 0.6s ease; }
.clock.panic { animation: beat 0.5s ease infinite; }
.clock.panic .ring { stroke-width: 11; }
#game.jolt { animation: shake 0.45s ease; }
#game.quake { animation: quake 0.6s ease; }

/* ---------- gloss on the result (same layout, more shine) ---------- */
/* light rays behind the better goals, turning slowly */
.rays { position: absolute; left: 50%; top: 42%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; pointer-events: none; opacity: 0; transition: opacity 0.6s ease;
  background: repeating-conic-gradient(from 0deg, rgba(255,210,63,0.26) 0deg 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0 18%, transparent 55%); mask: radial-gradient(circle, #000 0 18%, transparent 55%); animation: spin 40s linear infinite; }
.goal.reveal:not(.nomatch)[data-tier="3"] .rays { opacity: 0.6; }
.goal.reveal:not(.nomatch)[data-tier="4"] .rays, .goal.reveal:not(.nomatch)[data-tier="5"] .rays { opacity: 1; }
.goal.reveal[data-tier="5"] .rays { background: repeating-conic-gradient(from 0deg, rgba(255,79,163,0.22) 0deg 6deg, rgba(255,210,63,0.22) 6deg 12deg, transparent 12deg 22deg); animation-duration: 22s; }
.goal > :not(.rays) { position: relative; }
.goal { overflow: hidden; } /* the rays are bigger than the screen */
/* the tier name: glossy fill with a highlight on top and one shine sweeping across */
.gname { color: var(--ink); background-image: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.95) 48%, transparent 58%), linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 46%), linear-gradient(currentColor, currentColor);
  background-size: 260% 100%, 100% 100%, 100% 100%; background-position: 130% 0, 0 0, 0 0; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(4px 4px 0 var(--ink)); animation: slam2 0.55s cubic-bezier(.2,.9,.3,1.1) both; }
.goal.reveal .gname { animation: slam2 0.55s cubic-bezier(.2,.9,.3,1.1) both, shine 1.1s 0.45s ease-out both; }
/* the sticker: glossy card, a glare that passes once, sparkles on the shiny ones */
.sticker { background: linear-gradient(165deg, #ffffff 0%, #ffffff 52%, #eef1f6 100%); }
.goal .sticker::before { content: ''; position: absolute; inset: -20% -60%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,0.95) 50%, transparent 58%); transform: translateX(-70%); animation: glare 1s 0.35s ease-out both; }
.goal .sticker.holo::after { opacity: 0.9; animation-duration: 1.4s; }
.goal .sticker.holo { box-shadow: 0 0 0 5px var(--tc) inset, 5px 5px 0 var(--ink), 0 0 26px color-mix(in srgb, var(--tc) 60%, transparent); }
/* the meter: glassy segments and a shiny ball */
.mtrack span { background-image: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0) 60%); }
.mtrack span.on { background-color: var(--c); }
.mtrack span.stop { animation: none; transform: scaleY(1.45); box-shadow: 0 0 0 2.5px var(--ink), 0 0 16px var(--c), 0 0 4px #fff inset; }
.mball { background: radial-gradient(circle at 34% 30%, #fff 0 22%, #eef2f8 46%, #c4cedd 100%); box-shadow: 0 3px 6px rgba(19,41,75,0.35); }
.mball::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 3px, transparent 3.5px); }
/* points glow */
.goal .gpts { text-shadow: 0 0 18px rgba(242,183,5,0.55), 3px 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
/* "12% nefndu hann", Krillion style: the number first, the bar shows how common he is */
.gbar { height: 34px; width: min(320px, 86vw); box-shadow: 3px 3px 0 var(--ink); }
.gbar i { background: linear-gradient(180deg, #ffe27a, var(--gold)); }
.gbar.est i { background: repeating-linear-gradient(-45deg, #ffe27a 0 8px, #f7d25a 8px 16px); }
.gbar span { font-size: 13px; font-weight: 800; gap: 0; display: flex; align-items: center; justify-content: center; }
.gbar span b { font-family: var(--display); font-weight: 400; font-size: 21px; margin-right: 6px; letter-spacing: 0.01em; }
.gplayer:empty { display: none; }
@keyframes slam2 { 0% { transform: scale(1.7) translateY(-8px); opacity: 0; } 60% { transform: scale(0.96) rotate(-2deg); opacity: 1; } 100% { transform: rotate(-2deg); } }
@keyframes shine { from { background-position: 130% 0, 0 0, 0 0; } to { background-position: -30% 0, 0 0, 0 0; } }
@keyframes glare { from { transform: translateX(-70%); } to { transform: translateX(70%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- report ---------- */
#report { align-items: center; text-align: center; }
.rk { margin: 4vh 0 0; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.rscore { margin: 0; font-family: var(--display); font-size: 104px; line-height: 1; color: var(--red); text-shadow: 5px 5px 0 var(--ink); }
.rsub { margin: 0; color: var(--muted); font-weight: 800; }
.rlist { width: 100%; display: flex; flex-direction: column; gap: 10px; }
#rSquares:empty { display: none; }
/* ---------- reminder button and first-visit intro ---------- */
.remind { font: 800 15px Inter, sans-serif; color: var(--ink); background: var(--card); border: 2.5px dashed var(--ink); border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; }
.remind.on { border-style: solid; background: #e7f6ea; }
.remind[hidden] { display: none; }
.modal.onboard { overflow-y: auto; align-items: start; padding-block: max(16px, env(safe-area-inset-top)) 16px; }
.onboard .obox { max-width: 380px; gap: 10px; margin: auto; padding: 16px; animation: cardIn 0.4s cubic-bezier(.2,.9,.3,1.1) both; }
.obrow { padding: 6px 10px !important; gap: 3px 10px !important; }
.obname { font-size: 17px !important; }
.obtitle { font-family: var(--display); font-size: 30px !important; text-transform: uppercase; line-height: 1; margin: 0; }
.obq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); }
.obq b { font-family: var(--display); font-weight: 400; font-size: 22px; color: #fff; background: var(--red); border: 2.5px solid var(--ink); border-radius: 8px; padding: 0 10px; transform: rotate(-2deg); }
.obrows { display: flex; flex-direction: column; gap: 8px; }
.obrow { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 8px 10px; background: #fff; border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: inset 4px 0 0 var(--tc); animation: rise 0.4s ease both; }
.obname { font-family: var(--display); font-size: 19px; text-transform: uppercase; }
.obtier { justify-self: end; font: 900 13px Inter, sans-serif; text-transform: uppercase; background: var(--tc); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 7px; }
.obtier b { color: var(--red); }
.obmeter { grid-column: 1 / -1; height: 7px; border-radius: 99px; background: #e9dfc8; overflow: hidden; }
.obmeter i { display: block; height: 100%; background: var(--tc); border-radius: 99px; transform-origin: left; animation: grow 0.7s ease-out both; }
.obwhy { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.obline { font-size: 15px !important; font-weight: 600 !important; line-height: 1.45; }
.obshow { margin-top: 10px; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Íslenski boltinn ---------- */
.brand .variant { display: inline-block; margin: 8px 0 0; padding: 4px 12px; font: 900 15px Inter, sans-serif; color: var(--card); background: #0048e0;
  border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.mode.switch { text-decoration: none; background: #e4ecff; padding: 12px 16px; box-shadow: 4px 4px 0 var(--line); }
.mode.switch .t { font-size: 21px; }
.credit { margin: 0; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }

/* ---------- side games ---------- */
.minih { margin: 6px 0 -4px; font-family: var(--display); font-weight: 400; font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink); }
.minis { display: grid; gap: 10px; }
.mode.mini { padding: 12px 16px; box-shadow: 4px 4px 0 var(--line); }
.mode.mini .t { font-size: 22px; }
.mode.mini:nth-child(1) { background: #fff3c4; } .mode.mini:nth-child(2) { background: #dfeaff; } .mode.mini:nth-child(3) { background: #ffe3d1; }
.mcard { gap: 12px; }
.mclock { font-family: var(--display); font-size: 24px; color: var(--ink); min-width: 64px; text-align: right; }
.mclock.hurry { color: var(--red); animation: beat 0.8s ease infinite; }
.mlabel { margin: 0; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; text-align: center; }
.pair { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.tchip { font-family: var(--display); font-size: 26px; line-height: 1.05; text-transform: uppercase; background: var(--gold); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
  padding: 6px 12px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); animation: slap 0.4s cubic-bezier(.2,1.5,.4,1) both; }
.tchip.red { background: var(--red); color: var(--card); transform: rotate(2deg); --r: 2deg; animation-delay: 0.12s; }
.amp { font-weight: 900; color: var(--muted); }
.chainrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; font-size: 12px; font-weight: 800; color: var(--muted); min-height: 16px; }
.chainrow span { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 8px; color: var(--ink); }
.chainrow i { font-style: normal; }
.mform { display: flex; flex-direction: column; gap: 10px; }
.mform input { width: 100%; font: inherit; font-size: 20px; font-weight: 800; padding: 14px 16px; border-radius: 14px; border: 2.5px solid var(--ink); background: #fff; color: var(--ink); outline: none; }
.mform input:focus { border-color: var(--red); }
.mform input.wrong { animation: wrongflash 0.6s ease; }
.mform .btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.msg.ok { color: #1f8a4c; }
.clues { margin: 0; padding: 0 0 0 24px; display: flex; flex-direction: column; gap: 8px; font-weight: 800; font-size: 17px; text-align: left; }
.clues li.new { animation: slap 0.4s cubic-bezier(.2,1.5,.4,1) both; --r: 0deg; color: var(--red); }
.hlrow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.hlpick { background: none; border: 0; padding: 0; cursor: pointer; }
.hlpick .sticker { min-width: 0; width: 100%; animation: none; transform: rotate(-2deg); transition: transform 0.15s; }
.hlpick:nth-child(3) .sticker { transform: rotate(2deg); }
.hlpick:active .sticker { transform: scale(0.96); }
.hlpick .sname { font-size: 20px; }
.hlpick .hlg { font-family: var(--display); font-size: 22px; color: var(--red); letter-spacing: 0; }
.hlpick.win .sticker { box-shadow: 0 0 0 5px #5fe08a inset, 5px 5px 0 var(--ink); animation: pop 0.45s ease; }
.hlpick.lose .sticker { box-shadow: 0 0 0 5px var(--red) inset, 5px 5px 0 var(--ink); animation: shake 0.4s ease; }
.hlpick:disabled { opacity: 1; }
.mpop { position: absolute; left: 0; right: 0; top: 22%; display: grid; place-items: center; pointer-events: none; z-index: 6; }
.mpop .sticker { animation: slap 0.35s cubic-bezier(.2,1.5,.4,1) both; }
.mover { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mover .rk { margin: 0; }

/* the album page: one sticker per answer */
.album { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; padding: 12px; border-radius: 14px;
  background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(19,41,75,0.05) 22px 23px), #efe3c6; border: 2.5px dashed rgba(19,41,75,0.35); }
.album:empty { display: none; }
.stk { position: relative; overflow: hidden; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 8px 7px 6px; text-align: left;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 0 0 0 4px var(--tc) inset, 3px 3px 0 var(--ink); transform: rotate(var(--r)); }
.stk b { font-family: var(--display); font-weight: 400; font-size: 15px; line-height: 1.05; text-transform: uppercase; color: var(--ink); overflow-wrap: anywhere; }
.stk span { font-size: 10px; font-weight: 800; color: var(--muted); line-height: 1.2; }
.stk em { position: absolute; top: 7px; right: 8px; font-style: normal; font-family: var(--display); font-size: 18px; color: var(--red); }
.stk.empty { background: transparent; border-style: dashed; box-shadow: none; opacity: 0.7; }
.stk.empty b { font-size: 30px; color: var(--muted); }
.stk.wait { visibility: hidden; }
.stk.slap { animation: slap 0.4s cubic-bezier(.2,1.5,.4,1) both; }
.stamp { font-family: var(--display); font-size: 30px; text-transform: uppercase; color: var(--red); border: 4px solid var(--red); border-radius: 10px; padding: 4px 16px;
  transform: rotate(-8deg); letter-spacing: 0.05em; opacity: 0.85; animation: stamp 0.4s cubic-bezier(.2,1.6,.4,1) both; margin: -4px 0 4px; }
.stamp.hidden { display: none; }
.rrow { border-radius: 14px; padding: 10px 14px; display: grid; grid-template-columns: 16px 1fr auto; gap: 2px 10px; text-align: left; align-items: center; animation: rise 0.4s ease both; border-width: 2.5px; box-shadow: 4px 4px 0 var(--line); }
.rrow i { width: 16px; height: 16px; border-radius: 3px; grid-row: 1 / 3; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--ink); }
.rrow .q { color: var(--muted); font-size: 12px; font-weight: 700; }
.rrow .a { font-weight: 900; }
.rrow .p { grid-row: 1 / 3; grid-column: 3; font-family: var(--display); font-size: 24px; color: var(--red); }
.rbtns { width: 100%; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 6px; }
.ghost { background: var(--card); color: var(--ink); border-radius: 14px; padding: 14px; font-weight: 900; font-size: 17px; border: 2.5px solid var(--ink); }
.link { background: none; color: var(--muted); font-weight: 800; text-decoration: underline; padding: 8px; }
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); background: var(--ink); color: var(--card); font-weight: 800; padding: 12px 18px; border-radius: 999px; z-index: 9; box-shadow: 3px 3px 0 var(--red); max-width: 90vw; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(0.94) rotate(-1deg); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }
@keyframes beat { 50% { transform: scale(1.15); } }
@keyframes count { 0% { transform: scale(2.2); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.8); opacity: 0; } }
@keyframes slap { from { transform: scale(1.8) rotate(12deg); opacity: 0; } 70% { transform: scale(0.95) rotate(var(--r, -3deg)); opacity: 1; } to { transform: rotate(var(--r, -3deg)); } }
@keyframes holo { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes flipup { from { transform: translateY(120px) rotateX(80deg) rotate(-20deg); opacity: 0; } 60% { opacity: 1; } to { transform: rotate(8deg); } }
@keyframes wrongflash { 0%, 100% { background: #fff; } 25% { background: #ffd6db; } }
@keyframes quake { 0%, 100% { transform: none; } 15% { transform: translate(-8px, 4px) rotate(-0.6deg); } 35% { transform: translate(7px, -5px) rotate(0.5deg); } 55% { transform: translate(-5px, 3px); } 75% { transform: translate(3px, -2px); } }
@keyframes stamp { from { transform: scale(2.6) rotate(-8deg); opacity: 0; } to { transform: rotate(-8deg); opacity: 0.85; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
@keyframes slam { from { transform: scale(2.4) rotate(-6deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
@keyframes bar { 0%, 100% { height: 6px; } 50% { height: 26px; } }

/* "Betri en 82% í dag" under the score */
.rpct { margin: 0; font: 900 16px Inter, sans-serif; color: var(--ink); background: var(--gold); border: 2.5px solid var(--ink); border-radius: 999px; padding: 6px 14px; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-1deg); animation: pop 0.5s 0.4s ease both; }
.rpct:empty { display: none; }

/* Why Always Me? in the menu */
.mode.wamlink { text-decoration: none; background: #ffe066; padding: 12px 16px; box-shadow: 4px 4px 0 var(--line); }
.mode.wamlink .t { font-size: 23px; }
#avBox .avgrid { margin-top: 8px; }
/* account box (account.js) */
.accBody { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.accBody p { margin: 0; }
.accGoogle { min-height: 44px; display: flex; justify-content: center; }
.accRow { display: flex; gap: 8px; }
.accRow button { flex: 1; }
#accBox[hidden] { display: none; }
