/* Switch – Hold eller bytt */

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Mindre sannsynlig at nettleseren «ankrer» rull ved bildelast og skjuler header/progresjon. */
.spill-wrap,
#spill-app {
  overflow-anchor: none;
}

:root {
  --spill-bg-top: #fff8f1;
  --spill-bg-bottom: #f6ede4;
  --spill-surface: rgba(255, 252, 247, 0.94);
  --spill-surface-strong: #fffdf9;
  --spill-border: rgba(207, 177, 150, 0.34);
  --spill-text: #2f2a26;
  --spill-muted: #6f655d;
  --spill-primary: #315c9f;
  --spill-primary-strong: #27497e;
  --spill-accent: #f2b38b;
  --spill-accent-soft: #f9e1d1;
  --spill-shadow: rgba(120, 84, 58, 0.12);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Inter, sans-serif;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--spill-text);
  background: linear-gradient(180deg, var(--spill-bg-top), var(--spill-bg-bottom));
}

/* Diskret admin-knapp – nesten usynlig */
.rebuild-daily-btn-discreet {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.55rem;
  color: #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.rebuild-daily-btn-discreet:hover {
  color: #94a3b8;
}

.spill-wrap {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  padding: 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(242, 179, 139, 0.26), transparent 28%),
    radial-gradient(circle at top right, rgba(49, 92, 159, 0.12), transparent 22%),
    linear-gradient(180deg, var(--spill-bg-top), var(--spill-bg-bottom));
  box-shadow:
    0 24px 60px rgba(90, 67, 48, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  overflow: hidden;
  color: var(--spill-text);
}

.spill-wrap::before,
.spill-wrap::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.spill-wrap::before {
  width: 220px;
  height: 220px;
  top: -120px;
  left: -60px;
  background: rgba(242, 179, 139, 0.16);
}

.spill-wrap::after {
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -150px;
  background: rgba(49, 92, 159, 0.09);
}

.spill-wrap .card {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  background: var(--spill-surface);
  border: 1px solid var(--spill-border);
  border-radius: 30px;
  box-shadow:
    0 20px 48px var(--spill-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  text-align: center;
}

.spill-wrap .card h1,
.spill-wrap .card h2,
.spill-wrap .card h3 {
  color: var(--spill-text);
}

.spill-innhold {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

#spill-round-top {
  display: block;
  height: 1px;
}

.spill-header {
  margin-bottom: 16px;
  display: grid;
  justify-items: center;
}

.spill-header-top {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.spill-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: 0;
  width: 100%;
}

.spill-poeng-badge {
  font-size: 1.35rem;
  font-weight: 800;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--spill-primary) 0%, #5078ba 100%);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(49, 92, 159, 0.22);
}

.spill-progress-wrap {
  position: relative;
  width: min(100%, 620px);
  height: 14px;
  background: rgba(178, 164, 152, 0.22);
  border-radius: 999px;
  margin: 10px auto 0 auto;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(84, 68, 57, 0.12);
}

.spill-progress-segments {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.spill-progress-segment {
  opacity: 0.35;
}

.spill-progress-segment-1 {
  background: linear-gradient(90deg, #ff7f50, #fb7185);
}

.spill-progress-segment-2 {
  background: linear-gradient(90deg, #f59e0b, #facc15);
}

.spill-progress-segment-3 {
  background: linear-gradient(90deg, #22c55e, #2dd4bf);
}

.spill-progress-segment-4 {
  background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.spill-progress-segment-5 {
  background: linear-gradient(90deg, #a855f7, #ec4899);
}

.spill-progress-bar {
  position: relative;
  height: 100%;
  background: linear-gradient(
    90deg,
    #ff7f50 0%,
    #fb7185 20%,
    #f59e0b 20%,
    #facc15 40%,
    #22c55e 40%,
    #2dd4bf 60%,
    #38bdf8 60%,
    #6366f1 80%,
    #a855f7 80%,
    #ec4899 100%
  );
  border-radius: 999px;
  transition: width 0.4s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 6px 16px rgba(99, 102, 241, 0.18);
}

.spill-progress-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.spill-progress-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(168, 190, 227, 0.8);
  color: var(--spill-primary-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.spill-progress-label {
  font-size: 1rem;
  color: var(--spill-muted);
  text-align: center;
}

.spill-streak {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e40af;
}

.spill-badge {
  font-size: 1.2rem;
  padding: 3px 8px;
  background: #dbeafe;
  border-radius: 16px;
  color: #1e3a8a;
}

.spill-lives-header {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 8px 12px;
  background: linear-gradient(135deg, #f6ede4 0%, #fce7d7 100%);
  border-radius: 999px;
  color: #8a4b2b;
}

.spill-lives-out {
  font-size: 1.35rem;
  color: #dc2626;
  font-weight: 600;
}

.spill-start-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 12px 0;
}

.spill-stopp-lenke {
  font-size: 1rem;
  color: var(--spill-muted);
  text-decoration: none;
}

.spill-stopp-lenke:hover {
  color: var(--spill-text);
  text-decoration: underline;
}

.spill-test-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--spill-accent-soft);
  color: #985530;
  border: 1px solid rgba(242, 179, 139, 0.65);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spill-home {
  display: grid;
  gap: 24px;
}

.spill-home-hero {
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}

.spill-home-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.spill-home-pool {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(49, 92, 159, 0.08);
  color: var(--spill-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.spill-home h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-align: center;
}

.spill-home-ingress {
  max-width: 34ch;
  margin: 0 auto;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--spill-muted);
  text-align: center;
}

.spill-home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.spill-home-main {
  display: grid;
  gap: 16px;
  min-width: 0;
  justify-items: center;
  width: 100%;
  max-width: 560px;
}

.spill-home-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.spill-home-image-slot {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(230, 218, 205, 0.5);
}

.spill-home-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(242, 179, 139, 0.2), rgba(207, 177, 150, 0.15));
}

.spill-home-image-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.spill-home-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

button.spill-home-image-credit {
  all: unset !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute;
  top: 6px;
  left: 6px;
  width: 22px !important;
  min-width: 22px !important;
  max-width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  max-height: 22px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.42) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 5 !important;
  box-sizing: border-box;
  text-indent: 0 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18) !important;
  transition: background 0.15s !important;
}

button.spill-home-image-credit:hover {
  background: rgba(0, 0, 0, 0.62) !important;
}

.spill-home-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.spill-home-start,
.spill-badge-summary {
  flex: 0 1 auto;
  white-space: nowrap;
}

.spill-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0 18px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(207, 177, 150, 0.34);
  color: var(--spill-text);
  text-decoration: none;
  font-weight: 700;
}

.spill-link-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.spill-badge-summary {
  width: auto;
  max-width: 100%;
  margin: 0;
  min-height: 0;
  padding: 10px 14px;
  border: 1px solid rgba(168, 190, 227, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(49, 92, 159, 0.08);
  text-align: center;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--spill-primary-strong);
}

.spill-badge-summary:hover {
  transform: translateY(-1px);
}

.spill-badge-summary.empty {
  background:
    linear-gradient(145deg, rgba(255, 251, 247, 0.95), rgba(244, 239, 232, 0.88));
}

.spill-badge-summary-emoji {
  font-size: 2.3rem;
  line-height: 1;
  flex: 0 0 auto;
}

.spill-badge-summary-name {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--spill-primary-strong);
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spill-dagens-beste-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  margin: 0 0 20px 0;
  border: 1px solid rgba(207, 177, 150, 0.34);
  border-radius: 16px;
  background: #fff !important;
  background-image: none !important;
  color: var(--spill-primary-strong);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  flex-wrap: wrap;
  box-shadow: 0 16px 30px rgba(120, 84, 58, 0.08);
}

.spill-dagens-beste-stripe:hover {
  background: #fff !important;
  box-shadow: 0 18px 36px rgba(49, 92, 159, 0.1);
}

.spill-dagens-beste-stripe:active {
  transform: scale(0.99);
}

.spill-dagens-beste-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  color: var(--spill-primary-strong);
}

.spill-dagens-beste-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(242, 179, 139, 0.35), rgba(49, 92, 159, 0.12));
  color: var(--spill-primary-strong);
}

.spill-dagens-beste-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--spill-primary-strong);
}

.spill-dagens-panel {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 0 auto;
  text-align: center;
}

.spill-resultat .spill-dagens-panel {
  margin-top: 24px;
}

.spill-dagens-meta {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(207, 177, 150, 0.28);
  border-radius: 22px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.spill-dagens-meta p {
  margin: 8px 0 0 0;
  color: var(--spill-muted);
}

.spill-leaderboard {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(207, 177, 150, 0.28);
  border-radius: 22px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  box-sizing: border-box;
}

.spill-leaderboard h3 {
  margin: 0 0 10px 0;
  color: var(--spill-text);
  font-size: 1rem;
}

.spill-leaderboard-empty {
  margin: 0;
  color: var(--spill-muted);
}

.spill-leaderboard-list {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  width: 100%;
  max-width: min(100%, 440px);
  text-align: center;
}

.spill-leaderboard-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
  justify-items: center;
  padding: 4px 0;
  border-top: 1px solid rgba(207, 177, 150, 0.2);
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
}

.spill-leaderboard-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.spill-leaderboard-rank {
  color: var(--spill-muted);
  font-weight: 700;
  font-size: 0.75rem;
  justify-self: start;
}

.spill-leaderboard-score-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--spill-text);
  min-width: 0;
  max-width: 100%;
  justify-self: stretch;
}

.spill-leaderboard-score {
  color: var(--spill-primary);
  font-weight: 700;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.spill-leaderboard-mark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid var(--spill-primary);
  background: #edf4ff;
  box-shadow: 0 0 0 2px rgba(49, 92, 159, 0.12);
}

.spill-leaderboard-own {
  min-width: 28px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--spill-primary);
}

.spill-leaderboard-item.mine {
  background: linear-gradient(90deg, rgba(242, 179, 139, 0.18), rgba(255, 255, 255, 0));
  border-radius: 10px;
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
}

.spill-switch-brett {
  width: min(100%, 640px);
  margin: 0 auto;
}

.spill-switch-overskrift {
  margin: 0 0 16px 0;
  font-size: clamp(1.35rem, 3.6vw, 1.75rem);
  font-weight: 800;
  color: var(--spill-text);
  text-align: center;
  letter-spacing: -0.02em;
}

.spill-switch-kolonner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  margin: 0 auto 8px auto;
  overflow: visible;
  box-sizing: border-box;
  align-items: stretch;
}

.spill-switch-kolonne {
  min-width: 0;
  display: flex;
  width: 100%;
}

.spill-switch-kolonne-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  width: 100%;
  padding: 14px 12px 12px;
  border-radius: 22px;
  background:
    linear-gradient(
      165deg,
      rgba(255, 253, 249, 0.98) 0%,
      rgba(248, 241, 233, 0.96) 42%,
      rgba(237, 247, 255, 0.92) 100%
    );
  border: 1px solid var(--spill-border);
  box-shadow:
    0 14px 32px var(--spill-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.spill-switch-kolonne-panel.correct {
  border-color: rgba(22, 163, 74, 0.85);
  box-shadow:
    0 12px 28px rgba(34, 197, 94, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  background: linear-gradient(
    165deg,
    #bbf7d0 0%,
    #86efac 38%,
    #4ade80 78%,
    #22c55e 100%
  );
}

.spill-switch-kolonne-panel.correct .spill-switch-pris-lapp {
  color: #14532d;
  background: linear-gradient(135deg, #d1fae5 0%, #6ee7b7 100%);
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.spill-switch-kolonne-panel.correct .spill-vare-kort--switch {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(34, 197, 94, 0.55);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.12);
}

.spill-switch-kolonne-panel.wrong {
  border-color: rgba(220, 38, 38, 0.62);
  box-shadow:
    0 12px 28px rgba(220, 38, 38, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  background:
    linear-gradient(165deg, #fff1f2 0%, #fff7ed 48%, rgba(255, 252, 247, 0.92) 100%);
}

.spill-switch-pris-lapp {
  text-align: center;
  font-size: clamp(1.3rem, 5vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #8f4d1e;
  padding: 11px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff4de 0%, #f8ddba 100%);
  border: 1px solid rgba(214, 154, 98, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.spill-switch-slot {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.spill-switch-brett.reveal-feil {
  animation: spill-switch-feil-shake 0.5s ease;
}

@keyframes spill-switch-feil-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.spill-switch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: min(100%, 440px);
  margin: 18px auto 6px auto;
  padding: 0 4px;
  box-sizing: border-box;
}

.spill-switch-valg-knapp {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.1s ease, filter 0.15s ease, opacity 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.spill-switch-valg-knapp:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
  filter: brightness(0.88) saturate(0.75);
}

.spill-switch-valg-knapp:not(:disabled):active {
  transform: translateY(3px);
  box-shadow: none !important;
}

.spill-switch-valg-knapp:not(:disabled):hover {
  filter: brightness(1.05);
}

.spill-switch-valg-knapp:focus-visible {
  outline: 3px solid rgba(49, 92, 159, 0.45);
  outline-offset: 2px;
}

.spill-switch-valg-knapp--switch {
  color: #faf5ff;
  border-color: rgba(167, 139, 250, 0.85);
  background: linear-gradient(
    145deg,
    #ddd6fe 0%,
    #a78bfa 28%,
    #7c3aed 58%,
    #5b21b6 92%
  );
  box-shadow:
    0 6px 0 rgba(49, 46, 129, 0.55),
    0 16px 32px rgba(91, 33, 182, 0.42),
    inset 0 2px 0 rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 2px rgba(30, 27, 75, 0.45);
}

.spill-switch-valg-knapp--hold {
  color: #fffbeb;
  border-color: rgba(253, 186, 116, 0.95);
  background: linear-gradient(
    145deg,
    #fed7aa 0%,
    #fb923c 32%,
    #ea580c 68%,
    #c2410c 100%
  );
  box-shadow:
    0 6px 0 rgba(124, 45, 18, 0.52),
    0 16px 32px rgba(234, 88, 12, 0.45),
    inset 0 2px 0 rgba(255, 255, 255, 0.42);
  text-shadow: 0 1px 2px rgba(67, 20, 7, 0.45);
}

.spill-vare-kort--switch {
  cursor: default;
  width: 100%;
  max-width: none;
  min-width: 100%;
  flex: 1 1 100%;
  margin: 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 8px 20px rgba(49, 92, 159, 0.08);
}

.spill-vare-kort--switch:hover {
  transform: none;
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 10px 22px rgba(49, 92, 159, 0.1);
}

.spill-switch-slot .spill-vare-kort.spill-revealed {
  width: 100%;
  max-width: none;
  min-width: 100%;
  flex: 1 1 100%;
  padding: 8px 12px 12px 12px;
  box-sizing: border-box;
}

.spill-switch-slot .spill-vare-bilde-wrap {
  width: 100%;
}

.spill-switch-slot .spill-vare-bilde {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spill-pris-kort {
  display: inline-block;
  min-width: 160px;
  text-align: center;
  padding: 18px 22px;
  margin: 14px auto;
  background: linear-gradient(135deg, #fff4de 0%, #f8ddba 100%);
  border: 1px solid rgba(214, 154, 98, 0.55);
  border-radius: 24px;
  font-size: 2.4rem;
  font-weight: 900;
  color: #8f4d1e;
  box-shadow: 0 16px 32px rgba(180, 116, 58, 0.12);
}

.spill-bilde-kommentar {
  font-size: 1.1rem;
  color: #64748b;
  font-style: italic;
  margin: 0 0 12px 0;
}

.spill-varer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 18px 0;
}

.spill-vare-kort {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.98) 100%);
  border: 1px solid rgba(125, 211, 252, 0.65);
  border-radius: 18px;
  padding: 8px 12px 12px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  width: 260px;
  max-width: 260px;
  flex: 0 0 260px;
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.08);
  overflow: hidden;
}

.spill-vare-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

button.spill-vare-info-btn {
  all: unset !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.92)) !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  margin-top: 0 !important;
  opacity: 0.96 !important;
  filter: none !important;
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 10px 20px rgba(14, 165, 233, 0.3) !important;
  transition: background 0.15s, opacity 0.15s, transform 0.15s !important;
  animation: spill-info-pulse 3.4s ease-in-out infinite !important;
}

button.spill-vare-info-btn:hover {
  background: linear-gradient(135deg, rgba(29, 78, 216, 1), rgba(2, 132, 199, 1)) !important;
  opacity: 1 !important;
  transform: scale(1.08) translateY(-1px) !important;
  filter: none !important;
}

button.spill-vare-foto-btn {
  all: unset !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.45) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  opacity: 0.9 !important;
  transition: background 0.15s, opacity 0.15s !important;
}

button.spill-vare-foto-btn:hover {
  background: rgba(0, 0, 0, 0.65) !important;
  opacity: 1 !important;
}

@keyframes spill-info-pulse {
  0%, 72%, 100% {
    transform: scale(1) translateY(0);
    box-shadow:
      0 0 0 4px rgba(59, 130, 246, 0.15),
      0 10px 20px rgba(14, 165, 233, 0.3);
  }
  78% {
    transform: scale(1.08) translateY(-1px);
    box-shadow:
      0 0 0 7px rgba(56, 189, 248, 0.16),
      0 14px 30px rgba(14, 165, 233, 0.42);
  }
  84% {
    transform: scale(1) translateY(0);
  }
}

.spill-info-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.spill-info-modal {
  background: #fffdf9;
  border-radius: 22px;
  padding: 20px 24px;
  max-width: 360px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: auto;
  border: 1px solid rgba(207, 177, 150, 0.3);
  box-shadow: 0 22px 50px rgba(70, 48, 32, 0.18);
  text-align: center;
  box-sizing: border-box;
}

.spill-info-modal-title {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  color: var(--spill-text);
  text-align: center;
}

.spill-info-modal-body {
  margin: 0 0 16px 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--spill-muted);
  text-align: center;
}

.spill-info-modal-body a {
  display: inline-flex;
  justify-content: center;
}

.spill-info-modal-close {
  width: 100%;
}

.spill-vare-kort:hover {
  transform: translateY(-3px) rotate(-0.2deg);
  border-color: rgba(49, 92, 159, 0.48);
  box-shadow: 0 20px 36px rgba(120, 84, 58, 0.14);
}

.spill-vare-kort.spill-revealed {
  cursor: default;
  width: 320px;
  max-width: 320px;
  flex: 0 0 320px;
  padding: 8px 16px 16px 16px;
}

.spill-vare-kort.correct {
  border: 3px solid #22c55e;
  background: #dcfce7;
  animation: spill-correct 0.5s ease;
}

.spill-vare-kort.wrong {
  border: 3px solid #dc2626;
  background: #fee2e2;
  animation: spill-wrong 0.4s ease;
}


@keyframes spill-correct {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes spill-wrong {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.spill-vare-bilde-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16);
  background: #e2e8f0;
}

.spill-vare-bilde {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.spill-vare-pris-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.spill-vare-foto-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 10px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.4));
}

.spill-vare-foto-overlay a {
  color: #93c5fd;
  text-decoration: none;
}

.spill-vare-foto-overlay a:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.spill-vare-foto-empty {
  opacity: 0.9;
}

.spill-vare-foto-dekorativ {
  font-size: 0.68rem;
}

.spill-bilde-forstørret {
  aspect-ratio: 16 / 10;
  min-height: 140px;
}

.spill-vare-navn {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
  color: var(--spill-text);
}

.spill-vare-butikk {
  font-size: 1rem;
  color: var(--spill-primary);
  margin-top: 3px;
}

.spill-oppgave-tekst {
  font-size: 1.35rem;
  color: var(--spill-muted);
  max-width: 34ch;
  margin: 0 auto 12px auto;
  font-style: italic;
  text-align: center;
}

.spill-runde-verktoy {
  display: flex;
  justify-content: center;
  margin: 10px auto 12px auto;
}

button.spill-streak-help {
  all: unset !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 34px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(207, 177, 150, 0.5) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  color: var(--spill-text) !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(120, 84, 58, 0.08) !important;
  transition: transform 0.12s, background 0.12s, opacity 0.12s !important;
}

button.spill-streak-help:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

button.spill-streak-help:disabled {
  opacity: 0.48 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.spill-feedback {
  margin: 14px 0;
  padding: 12px;
  border-radius: 10px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.spill-feedback.riktig {
  background: #d1fae5;
  border: 1px solid #059669;
  color: #065f46;
}

.spill-feedback.feil {
  background: #fee2e2;
  border: 1px solid #dc2626;
  color: #991b1b;
}

.spill-feedback.spill-oppmuntring {
  background: #eef3fb;
  border: 1px solid #a8bee3;
  color: var(--spill-primary-strong);
}

.spill-level-hint {
  max-width: 34ch;
  margin: 0 auto 10px auto;
  background:
    linear-gradient(135deg, rgba(255, 240, 198, 0.92), rgba(237, 242, 255, 0.92));
  border-color: rgba(224, 163, 68, 0.5);
  color: #7c4a11;
  box-shadow: 0 10px 24px rgba(233, 179, 77, 0.14);
}

.spill-fortsett-dialog {
  text-align: center;
  padding: 32px;
  background: #ecfdf5;
  border: 2px solid #059669;
  border-radius: 16px;
  margin: 24px 0;
}

.spill-fortsett-dialog h3 {
  margin: 0 0 16px 0;
  font-size: 2.2rem;
  color: #065f46;
}

.spill-fortsett-dialog .spill-knapper {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.spill-knapp {
  min-height: 50px;
  max-width: 100%;
  padding: 11px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  box-sizing: border-box;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s, box-shadow 0.12s;
  box-shadow: 0 10px 24px rgba(120, 84, 58, 0.1);
}

.spill-knapp:hover {
  transform: translateY(-1px);
}

.spill-knapp.primær {
  background: linear-gradient(135deg, var(--spill-primary), #5d7fbb);
  color: #fff;
}

.spill-knapp.primær:hover {
  background: linear-gradient(135deg, var(--spill-primary-strong), var(--spill-primary));
}

.spill-knapp.sekundær {
  background: #f7efe6;
  color: var(--spill-text);
}

.spill-knapp.sekundær:hover {
  background: #f1e5d8;
}

.spill-resultat {
  width: min(100%, 760px);
  margin: 24px auto;
  box-sizing: border-box;
  padding: 28px;
  background: var(--spill-surface);
  border: 1px solid var(--spill-border);
  border-radius: 28px;
  box-shadow:
    0 20px 48px var(--spill-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.spill-resultat h2 {
  margin-top: 0;
  color: var(--spill-text);
}

.spill-resultat.spill-stille {
  background:
    radial-gradient(circle at top left, rgba(242, 179, 139, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(248, 241, 233, 0.96));
}

.spill-resultat-hero {
  width: min(100%, 620px);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(249, 239, 228, 0.9));
  border: 1px solid rgba(207, 177, 150, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 32px rgba(120, 84, 58, 0.08);
}

.spill-resultat-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.spill-resultat-title {
  margin: 0;
  text-align: center;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.spill-resultat-ingress {
  max-width: 36ch;
  margin: 14px auto 0 auto;
  text-align: center;
  color: var(--spill-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.spill-resultat-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.spill-resultat-stat {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(207, 177, 150, 0.24);
  text-align: center;
}

.spill-resultat-stat-bonus {
  background: linear-gradient(145deg, rgba(237, 255, 246, 0.95), rgba(245, 255, 236, 0.96));
  border-color: rgba(94, 190, 136, 0.28);
}

.spill-resultat-stat-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--spill-muted);
}

.spill-resultat-stat-value {
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  line-height: 1;
  color: var(--spill-text);
}

.spill-resultat-stat-meta {
  font-size: 0.92rem;
  color: var(--spill-muted);
}

.spill-resultat-kommentar {
  max-width: 44ch;
  margin: 18px auto 24px auto;
  text-align: center;
}

.spill-summary-bonus {
  margin: 14px 0 0 0;
  color: #0f766e;
  font-weight: 700;
  text-align: center;
}

.spill-score-submit {
  width: min(100%, 560px);
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(207, 177, 150, 0.26);
  border-radius: 20px;
}

.spill-score-submit h3 {
  margin-top: 0;
  color: #0f172a;
}

.spill-submit-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.spill-navn-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid #94a3b8;
  border-radius: 10px;
}

.spill-submit-status {
  min-height: 1.5em;
  margin: 10px 0 0 0;
  color: var(--spill-primary);
}

.spill-submit-help {
  margin: 0 0 12px 0;
  color: #475569;
}

.spill-resultat.spill-maal {
  background:
    radial-gradient(circle at top, rgba(255, 221, 156, 0.3), transparent 32%),
    radial-gradient(circle at bottom right, rgba(49, 92, 159, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(243, 251, 243, 0.96));
  border-color: rgba(113, 180, 122, 0.45);
}

.spill-resultat.spill-maal h2 {
  color: #047857;
}

.spill-resultat.spill-maal .spill-resultat-hero {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 127, 0.26), transparent 36%),
    linear-gradient(145deg, rgba(255, 253, 246, 0.99), rgba(235, 248, 239, 0.96));
  border-color: rgba(113, 180, 122, 0.34);
  box-shadow:
    0 22px 48px rgba(132, 101, 47, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.spill-resultat.spill-maal .spill-resultat-title {
  color: #046c4e;
}

.spill-resultat.spill-maal .spill-resultat-stat {
  background: rgba(255, 255, 255, 0.82);
}

.spill-resultat-banner-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.spill-resultat-banner-wrap .spill-dagens-beste-stripe {
  width: auto;
}

.spill-resultat-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.spill-resultat-actions .spill-badge-summary {
  order: -1;
}

.spill-badge-modal-list {
  list-style: none;
  margin: 14px 0 20px 0;
  padding: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.spill-badge-modal-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(100%, 280px);
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8f1e8;
  color: var(--spill-muted);
  text-align: center;
}

.spill-badge-modal-item strong {
  color: var(--spill-text);
}

.spill-badge-modal-item.unlocked {
  background: #fce7d7;
  color: #8a4b2b;
}

.spill-badge-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.spill-badge-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #bae6fd;
  border-radius: 16px;
  font-size: 1.2rem;
}

.spill-poeng-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px 32px;
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 170px;
}

.spill-poeng-modal.riktig {
  background: #22c55e;
  color: #fff;
}

.spill-poeng-modal.feil {
  background: #dc2626;
  color: #fff;
}

.spill-poeng-modal.fade-out {
  opacity: 0;
}

.spill-fireworks-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3200;
}

.spill-firework-burst {
  position: absolute;
  width: 0;
  height: 0;
  transform: translate(-50%, -50%);
}

.spill-firework-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(14px * var(--firework-scale, 1));
  height: calc(14px * var(--firework-scale, 1));
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), var(--firework-color-a));
  transform: translate(-50%, -50%);
  box-shadow: 0 0 22px var(--firework-color-b);
  animation: spill-firework-core 0.72s ease-out forwards;
}

.spill-firework-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(4px * var(--firework-scale, 1));
  height: calc(26px * var(--firework-scale, 1));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), var(--firework-color-a), transparent);
  transform: translate(-50%, -50%) rotate(var(--firework-rotate)) translate(0, 0);
  transform-origin: center top;
  opacity: 0;
  animation: spill-firework-spark 0.92s ease-out forwards;
}

@keyframes spill-firework-core {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

@keyframes spill-firework-spark {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--firework-rotate)) translate(0, 0) scaleY(0.15);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--firework-x)), calc(-50% + var(--firework-y))) rotate(var(--firework-rotate)) scaleY(1);
  }
}

.spill-level-poster-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 28%),
    rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  z-index: 3100;
}

.spill-level-poster {
  width: min(100%, 560px);
  padding: 28px 24px;
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.97));
  border: 1px solid rgba(186, 230, 253, 0.8);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-align: center;
}

.spill-level-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
  color: #1d4ed8;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spill-level-kicker {
  margin: 0 0 8px 0;
  color: #0ea5e9;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spill-level-poster h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #0f172a;
}

.spill-level-subtitle {
  margin: 12px auto 0 auto;
  max-width: 28ch;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #475569;
}

.spill-level-rewards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 22px 0;
}

.spill-level-cart-rail {
  position: relative;
  width: min(100%, 280px);
  height: 44px;
  margin: 18px auto 6px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(49, 92, 159, 0.08), rgba(242, 179, 139, 0.12));
  overflow: hidden;
}

.spill-level-cart-wrap {
  position: absolute;
  left: -40px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
  animation: spill-cart-roll 2.3s cubic-bezier(.25,.8,.25,1) infinite;
}

.spill-level-cart {
  font-size: 1.7rem;
  transform: scaleX(-1);
  filter: drop-shadow(0 8px 12px rgba(49, 92, 159, 0.15));
}

.spill-level-cart-plus {
  font-size: 1.1rem;
  font-weight: 800;
  color: #047857;
  text-shadow: 0 4px 8px rgba(49, 92, 159, 0.12);
}

@keyframes spill-cart-roll {
  0% {
    left: -42px;
    transform: translateY(-50%) rotate(-6deg);
  }
  12% {
    transform: translateY(-50%) rotate(4deg);
  }
  58% {
    left: calc(100% - 54px);
    transform: translateY(-50%) rotate(2deg);
  }
  100% {
    left: calc(100% + 12px);
    transform: translateY(-50%) rotate(8deg);
  }
}

.spill-level-reward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d1fae5, #ecfccb);
  color: #047857;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.18);
}

.spill-loading {
  text-align: center;
  padding: 32px;
  color: #64748b;
  font-size: 1.35rem;
}

.spill-loading-bilde {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #0ea5e9;
  border-radius: 50%;
  animation: spill-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spill-spin {
  to { transform: rotate(360deg); }
}

/* Mobil */
@media (max-width: 600px) {
  .spill-wrap {
    padding: 14px;
    border-radius: 24px;
  }

  .spill-wrap .card h1,
  .spill-wrap h1 {
    font-size: 1.55rem !important;
    line-height: 1.08;
  }

  .spill-wrap .card {
    padding: 18px;
    border-radius: 22px;
  }

  .spill-home {
    gap: 18px;
  }

  .spill-home-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .spill-home-main {
    max-width: none;
  }

  .spill-home-side {
    max-width: none;
  }

  .spill-home-ingress {
    font-size: 1rem;
  }

  .spill-home h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .spill-home-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .spill-home-image-slot {
    aspect-ratio: 1;
  }

  button.spill-home-image-credit {
    width: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    font-size: 0.6rem !important;
    top: 5px;
    left: 5px;
  }

  .spill-home-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .spill-link-btn,
  .spill-home-start {
    width: auto;
  }

  .spill-knapp,
  .spill-link-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.96rem;
  }

  .spill-badge-summary {
    width: auto;
    max-width: calc(100vw - 180px);
    padding: 8px 12px;
    justify-content: center;
  }

  .spill-badge-summary-emoji {
    font-size: 2rem;
  }

  .spill-badge-summary-name {
    max-width: 11ch;
    font-size: 0.88rem;
  }

  .spill-resultat h2 {
    font-size: 1.6rem !important;
  }

  .spill-resultat-hero {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .spill-resultat-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .spill-resultat-ingress {
    font-size: 0.98rem;
  }

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

  .spill-varer-grid {
    flex-direction: row;
    gap: 10px;
    margin: 12px 0;
  }

  .spill-vare-kort {
    flex: 1;
    min-width: 0;
    max-width: none;
    padding: 8px;
  }

  .spill-vare-kort.spill-revealed {
    flex: 1;
    max-width: none;
    padding: 8px;
  }

  .spill-vare-navn {
    font-size: 0.95rem;
    margin-top: 4px;
  }

  .spill-vare-butikk {
    font-size: 0.85rem;
    margin-top: 2px;
  }

  .spill-vare-pris-overlay {
    font-size: 1.2rem;
    padding: 6px 8px;
  }

  button.spill-vare-info-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    font-size: 0.84rem !important;
  }

  button.spill-vare-foto-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
    font-size: 0.78rem !important;
  }

  .spill-vare-actions {
    top: 8px;
    left: 8px;
    right: 8px;
    justify-content: space-between;
    gap: 6px;
  }

  .spill-vare-foto-overlay {
    font-size: 0.68rem;
    padding: 5px 8px;
  }

  .spill-oppgave-tekst {
    font-size: 1.15rem;
  }

  .spill-pris-kort {
    font-size: 1.8rem;
    padding: 12px 16px;
    margin: 10px 0;
  }

  .spill-switch-kolonner {
    gap: 10px;
  }

  .spill-switch-kolonne-panel {
    padding: 12px 8px 10px;
    border-radius: 18px;
    gap: 10px;
  }

  .spill-switch-slot .spill-vare-kort.spill-revealed {
    padding: 8px;
  }

  .spill-switch-pris-lapp {
    font-size: clamp(1.1rem, 5.2vw, 1.42rem);
    padding: 9px 6px;
  }

  .spill-switch-overskrift {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .spill-switch-actions {
    gap: 10px;
    margin-top: 14px;
    width: 100%;
    max-width: none;
    padding: 0 2px;
  }

  .spill-switch-valg-knapp {
    min-height: 48px;
    font-size: 0.92rem;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    border-radius: 999px;
  }

  .spill-bilde-kommentar {
    font-size: 0.95rem;
    margin: 0 0 8px 0;
  }

  .spill-header-top {
    gap: 6px;
  }

  .spill-poeng-badge {
    font-size: 1.2rem;
    padding: 4px 10px;
  }

  .spill-lives-header {
    font-size: 1.15rem;
    padding: 3px 8px;
  }

  .spill-progress-label {
    font-size: 0.9rem;
  }

  .spill-dagens-beste-stripe {
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    gap: 8px;
  }

  .spill-dagens-beste-hint {
    font-size: 0.75rem;
  }

  .spill-dagens-panel {
    grid-template-columns: 1fr;
  }

  .spill-dagens-meta,
  .spill-leaderboard,
  .spill-score-submit {
    border-radius: 18px;
  }

  .spill-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .spill-level-poster {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .spill-level-subtitle {
    font-size: 1rem;
  }

  .spill-level-reward {
    width: 100%;
  }
}
