/* ============ Ankbörsen ============ */
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('/fonts/Fredoka_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans.ttf') format('truetype'); font-weight: 100 1000; font-display: swap; }

:root {
  --navy-950: #050B26;
  --navy-900: #0B1640;
  --navy-800: #12205A;
  --navy-700: #1B2E78;
  --navy-600: #2A43A0;
  --line: rgba(160, 185, 255, .14);
  --text: #F3F5FF;
  --muted: #A3B0DA;
  --yellow: #FFD23F;
  --yellow-deep: #E8A900;
  --yellow-dark: #B97F00;
  --pink: #FF5C8A;
  --mint: #4FE3B0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy-950); }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(76, 110, 245, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 210, 63, .08), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950) 70%);
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: #FFE27A; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.yellow { color: var(--yellow); }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85em; letter-spacing: .04em; color: var(--muted); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--yellow); color: var(--navy-900); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ============ Topbar ============ */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(8, 15, 48, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand-duck { width: 40px; height: 40px; display: grid; place-items: center; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand-duck { transform: rotate(-12deg) scale(1.1); }
.brand-duck svg { width: 40px; height: 40px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
.mainnav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.mainnav::-webkit-scrollbar { display: none; }
.mainnav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; white-space: nowrap; font-size: .95rem; }
.mainnav a:hover, .mainnav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .07); }
.demo-banner { background: repeating-linear-gradient(-45deg, #FFD23F, #FFD23F 12px, #F5C518 12px, #F5C518 24px); color: #1a1240; text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; }
@media (max-width: 640px) {
  .brand-name { display: none; }
  .mainnav a { padding: 8px 9px; font-size: .9rem; }
  .topbar-inner { gap: 6px; }
}

/* ============ Knappar ============ */
.btn {
  --bg: rgba(255, 255, 255, .08); --fg: var(--text); --edge: rgba(0, 0, 0, .35);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  padding: 12px 22px; min-height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { filter: brightness(1.08); color: var(--fg); transform: translateY(-1px); box-shadow: 0 5px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-yellow { --bg: linear-gradient(180deg, #FFE36E, var(--yellow) 45%, #FFC21A); --fg: #1a1240; --edge: var(--yellow-dark); }
.btn-ghost { --bg: rgba(255, 255, 255, .06); --edge: rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .16); }
.btn-danger { --bg: linear-gradient(180deg, #FF7A8F, #E63950); --edge: #8E1A2C; }
.btn-link { background: none; box-shadow: none; color: var(--muted); padding: 0; min-height: 0; font-family: var(--body); font-weight: 500; text-decoration: underline; }
.btn-link:hover { box-shadow: none; transform: none; }
.btn-sm { padding: 8px 16px; min-height: 40px; font-size: .92rem; }
.btn-xs { padding: 5px 12px; min-height: 32px; font-size: .82rem; box-shadow: 0 3px 0 var(--edge); }
.btn-lg { padding: 15px 30px; min-height: 56px; font-size: 1.12rem; }
.btn-xl { padding: 18px 32px; min-height: 64px; font-size: 1.2rem; letter-spacing: .03em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .85; cursor: default; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.btn-row.center { justify-content: center; }
.topbar-cta { flex-shrink: 0; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: ' →'; }

/* ============ Hero ============ */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 clamp(24px, 4vw, 48px); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); margin-bottom: .9rem; }
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(79, 227, 176, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(79, 227, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(79, 227, 176, 0); } }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 5rem); text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: #CCD5F5; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 1.2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.hero-points li::before { content: '✓'; color: var(--mint); margin-right: 6px; font-weight: 800; }
.hero-duck { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.hero-svg { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .38), rgba(255, 210, 63, 0) 65%); filter: blur(10px); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .8; } }
.hero-bg .bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), rgba(120, 160, 255, .06) 60%); border: 1px solid rgba(255, 255, 255, .12); animation: rise linear infinite; bottom: -60px; }
.b1 { left: 8%; width: 26px; height: 26px; animation-duration: 14s; }
.b2 { left: 42%; width: 14px; height: 14px; animation-duration: 10s; animation-delay: -4s; }
.b3 { left: 64%; width: 38px; height: 38px; animation-duration: 18s; animation-delay: -9s; }
.b4 { left: 85%; width: 18px; height: 18px; animation-duration: 12s; animation-delay: -2s; }
.b5 { left: 25%; width: 10px; height: 10px; animation-duration: 9s; animation-delay: -6s; }
@keyframes rise { to { transform: translateY(-120vh) translateX(30px); opacity: 0; } }

.water { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 18%; z-index: 1; }
.water span { position: absolute; left: 50%; top: 50%; width: 70%; height: 40%; border: 3px solid rgba(124, 196, 255, .35); border-radius: 50%; transform: translate(-50%, -50%) scale(.6); animation: ripple 3.2s ease-out infinite; }
.water span:nth-child(2) { animation-delay: 1.05s; }
.water span:nth-child(3) { animation-delay: 2.1s; }
@keyframes ripple { to { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } }

/* Ankanimationer (SVG-klasser) */
.duck-bob { transform-box: fill-box; transform-origin: 50% 90%; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2.5deg); } }
.duck-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-duck { order: -1; max-width: 300px; margin-bottom: -10px; }
  .hero-actions, .hero-points { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-actions .btn-xl { width: 100%; }
}

/* ============ Räknare ============ */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.counter { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.counter-num { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.6rem); color: var(--yellow); line-height: 1; }
.counter-label { color: var(--muted); font-weight: 600; font-size: .85rem; }

/* ============ Paneler ============ */
.panel { background: linear-gradient(180deg, rgba(27, 46, 120, .55), rgba(18, 32, 90, .45)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.panel-title { font-size: 1rem; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: .9rem; margin: 0 0 .6rem; }
.chip svg { width: 16px; height: 16px; fill: currentColor; }
.chip-pink { background: rgba(255, 92, 138, .16); color: #FF9BB8; }
.chip-gold { background: rgba(255, 210, 63, .16); color: var(--yellow); }
.spotlight-row { margin-bottom: 8px; }
.spotlight-duck { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); border-radius: var(--radius-sm); padding: 6px; transition: background .2s; }
.spotlight-duck:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.spotlight-duck img { width: 120px; height: 120px; flex-shrink: 0; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .4)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.spotlight-duck:hover img { transform: rotate(-6deg) scale(1.06); }
.spot-name { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.spot-stat { color: var(--muted); margin-top: 6px; }
.spot-stat svg { width: 18px; height: 18px; fill: var(--pink); vertical-align: -3px; }
.spot-stat strong { color: var(--text); }

/* ============ Sektioner & listor ============ */
.section { margin: 40px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.page-head { padding: 36px 0 8px; }
.podium-list { display: grid; gap: 8px; }
.row-item { display: grid; grid-template-columns: 40px 56px 1fr auto; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .15s, background .2s; }
.row-item:hover { background: rgba(255, 255, 255, .08); transform: translateX(4px); color: var(--text); }
.row-item img { width: 56px; height: 56px; }
.row-name { display: flex; flex-direction: column; min-width: 0; }
.row-name strong { font-family: var(--display); font-size: 1.15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-likes { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.row-likes svg { width: 20px; height: 20px; fill: var(--pink); }
.rank { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--display); font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--muted); }
.rank-1 { background: linear-gradient(180deg, #FFE680, #E0A800); color: #3d2a00; box-shadow: 0 0 18px rgba(255, 210, 63, .5); }
.rank-2 { background: linear-gradient(180deg, #F1F4FF, #A9B4D6); color: #222b4a; }
.rank-3 { background: linear-gradient(180deg, #FFC08A, #C9773A); color: #3a1c05; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.duck-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 38px 12px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text); background: linear-gradient(180deg, rgba(42, 67, 160, .45), rgba(18, 32, 90, .5)); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.duck-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .8), 0 0 0 2px rgba(255, 210, 63, .35); color: var(--text); }
.duck-card-img { width: 100%; max-width: 140px; aspect-ratio: 1; height: auto; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35)); transition: transform .35s; }
.duck-card:hover .duck-card-img { transform: scale(1.06); }
.duck-card-name { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duck-card-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--muted); }
.duck-card-meta .likes { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--text); }
.duck-card-meta svg { width: 14px; height: 14px; fill: var(--pink); }
.duck-card .rank { position: absolute; top: 10px; left: 10px; width: 30px; height: 30px; font-size: .9rem; }
.card-badge { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .35); color: var(--muted); font-size: .72rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.empty { text-align: center; padding: 32px 16px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; justify-content: space-between; margin-top: 20px; }

.how .steps { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: none; }
.how .steps li { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.how .steps strong { font-family: var(--display); font-size: 1.15rem; }
.how .steps span:not(.step-n) { color: var(--muted); font-size: .95rem; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--yellow); color: var(--navy-900); font-family: var(--display); font-weight: 700; margin-bottom: 6px; box-shadow: 0 3px 0 var(--yellow-dark); }
@media (max-width: 860px) { .how .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .how .steps { grid-template-columns: 1fr; } }

.final-cta { margin: 48px auto 64px; }
.final-cta-inner { display: flex; align-items: center; gap: 24px; padding: clamp(20px, 4vw, 40px); border-radius: 32px; background: radial-gradient(circle at 20% 40%, rgba(255, 210, 63, .25), transparent 55%), linear-gradient(135deg, #2A43A0, #12205A); border: 1px solid rgba(255, 210, 63, .25); }
.cta-duck { width: 180px; height: 180px; flex-shrink: 0; animation: bob 3.6s ease-in-out infinite; }
@media (max-width: 600px) { .final-cta-inner { flex-direction: column; text-align: center; } .cta-duck { width: 140px; height: 140px; } }

/* ============ Formulär ============ */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.label { font-family: var(--display); font-weight: 600; font-size: 1rem; }
.hint { color: var(--muted); font-size: .82rem; }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  font: inherit; color: var(--text); width: 100%;
  background: rgba(5, 11, 38, .6); border: 2px solid rgba(160, 185, 255, .2); border-radius: 14px;
  padding: 12px 14px; min-height: 50px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .18); }
input[aria-invalid=true] { border-color: var(--pink); }
input::placeholder, textarea::placeholder { color: #6E7BA8; }
.field-error { color: #FF9BB8; font-size: .88rem; font-weight: 600; margin: 0; }
.alert { background: rgba(255, 92, 138, .14); border: 1px solid rgba(255, 92, 138, .4); color: #FFC2D3; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.alert-ok { background: rgba(79, 227, 176, .12); border-color: rgba(79, 227, 176, .4); color: #B8F5DF; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--yellow); flex-shrink: 0; margin-top: 1px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 2px solid transparent; cursor: pointer; transition: transform .15s, border-color .2s, background .2s; }
.swatch:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch-dot { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 40%), var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2), 0 4px 10px rgba(0, 0, 0, .3); }
.swatch-name { font-size: .74rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.1; }
.swatch:has(input:checked) { border-color: var(--yellow); background: rgba(255, 210, 63, .1); }
.swatch:has(input:checked) .swatch-name { color: var(--text); }
.swatch:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.secure svg { width: 16px; height: 16px; fill: var(--mint); }

/* ============ Adoption ============ */
.adopt { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 32px 0 56px; align-items: start; }
.adopt-preview { position: sticky; top: 90px; text-align: center; }
.preview-stage { position: relative; aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
.preview-duck svg, .profile-duck, .thanks-duck svg { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.preview-duck { position: relative; z-index: 2; transition: transform .3s; }
.preview-duck.pop { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 40% { transform: scale(1.08) rotate(-4deg); } }
.preview-name { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); min-height: 1.2em; word-break: break-word; }
.preview-id { display: inline-block; font-family: ui-monospace, monospace; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 4px 12px; border-radius: 999px; margin-top: 4px; }
.adopt-form h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
@media (max-width: 860px) {
  .adopt { grid-template-columns: 1fr; padding-top: 12px; gap: 8px; }
  .adopt-preview { position: relative; top: 0; }
  .preview-stage { max-width: 230px; }
}
@media (max-width: 420px) { .swatches { gap: 6px; } .swatch-dot { width: 32px; height: 32px; } }

/* ============ Profil ============ */
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 32px 0 56px; align-items: center; }
.profile-stage { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.profile-name { font-size: clamp(2.4rem, 7vw, 4.2rem); word-break: break-word; }
.id-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--navy-900); font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .06em; padding: 6px 16px; border-radius: 999px; cursor: pointer; box-shadow: 0 3px 0 var(--yellow-dark); user-select: all; }
.id-pill::after { content: '⧉'; font-size: .9em; opacity: .55; }
.id-pill.big { font-size: 1.3rem; padding: 10px 22px; margin: 6px 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.facts div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.facts dt { color: var(--muted); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 2px 0 0; font-weight: 600; display: flex; align-items: center; gap: 6px; word-break: break-word; }
.mini-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); display: inline-block; flex-shrink: 0; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-like { --bg: linear-gradient(180deg, #FF8AAA, var(--pink) 50%, #E83E70); --fg: #fff; --edge: #9C1E47; font-size: 1.15rem; padding: 14px 26px; min-height: 58px; position: relative; flex: 1 1 auto; }
.btn-like svg { width: 24px; height: 24px; transition: transform .3s; }
.btn-like:hover svg { transform: scale(1.2); }
.like-count { background: rgba(0, 0, 0, .2); padding: 2px 10px; border-radius: 999px; font-size: 1rem; min-width: 2.2em; }
.btn-like.is-liked { --bg: linear-gradient(180deg, #4A2A5E, #3A2050); --edge: #1c0d29; color: #FFC2D3; }
.btn-like.is-loading .like-label::after { content: '…'; }
.btn-like.burst svg { animation: heartbeat .6s; }
@keyframes heartbeat { 30% { transform: scale(1.5); } 60% { transform: scale(.9); } }
.like-note { margin-top: 8px; }
.float-heart { position: fixed; pointer-events: none; z-index: 60; width: 26px; height: 26px; fill: var(--pink); animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { to { transform: translate(var(--dx), -160px) scale(1.6) rotate(var(--rot)); opacity: 0; } }
.owner-box { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 210, 63, .1); border: 1px solid rgba(255, 210, 63, .3); }
.trophy-ribbon { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(180deg, #FFE680, #E0A800); color: #3d2a00; font-family: var(--display); font-weight: 700; padding: 6px 14px; border-radius: 999px; box-shadow: 0 4px 0 #8a5a00, 0 0 24px rgba(255, 210, 63, .5); white-space: nowrap; }
.trophy-ribbon svg, .trophies svg, .h-icon { width: 18px; height: 18px; fill: currentColor; }
.h-icon { width: 26px; height: 26px; fill: var(--yellow); vertical-align: -3px; }
.trophies { margin-top: 24px; }
.trophies h2 { font-size: 1.2rem; }
.trophies ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.trophies li { display: flex; gap: 8px; align-items: center; color: var(--yellow); }
.trophies li span { color: var(--text); }
.report { margin-top: 28px; color: var(--muted); font-size: .9rem; }
.report summary { cursor: pointer; width: fit-content; }
.report-form { margin-top: 12px; }
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; text-align: center; padding-top: 8px; gap: 8px; }
  .profile-stage { max-width: 320px; }
  .facts { text-align: left; }
  .profile-actions { justify-content: center; }
}

/* ============ Tabbar ============ */
.tab-list { display: inline-flex; gap: 4px; background: rgba(0, 0, 0, .25); padding: 5px; border-radius: 999px; margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.tab-list button { font: inherit; font-family: var(--display); font-weight: 600; border: 0; background: none; color: var(--muted); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tab-list button[aria-selected=true] { background: var(--yellow); color: var(--navy-900); box-shadow: 0 3px 0 var(--yellow-dark); }

/* ============ Tack ============ */
.thanks { padding: 32px 0 56px; position: relative; }
.thanks-duck { width: min(260px, 70%); margin: 0 auto; }
.loader-duck { width: 160px; margin: 0 auto 8px; }
.owner-link-box { margin-top: 16px; border-color: rgba(255, 210, 63, .4); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: ui-monospace, monospace; font-size: .85rem; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }
.demo-checkout { margin: 40px auto; }
.narrow > .panel { margin: 32px 0; }

/* ============ Mina ankor ============ */
.owner-duck { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; margin-bottom: 16px; scroll-margin-top: 90px; }
.owner-duck-img svg { width: 100%; height: auto; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .4)); }
.owner-duck h2 a { color: var(--text); text-decoration: none; }
.acc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 8px; }
.acc { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 10px 6px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.acc.owned { border-color: rgba(255, 210, 63, .35); background: rgba(255, 210, 63, .06); }
.acc-name { font-weight: 700; font-size: .82rem; line-height: 1.1; min-height: 2.2em; display: flex; align-items: center; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1; margin: 0; }
.warn { color: #FF9BB8; }
@media (max-width: 640px) {
  .owner-duck { grid-template-columns: 1fr; text-align: center; }
  .owner-duck-img { max-width: 180px; margin: 0 auto; }
  .acc-grid { grid-template-columns: repeat(2, 1fr); }
  .owner-duck .btn-row { justify-content: center; }
}

/* ============ Text/juridik ============ */
.prose { padding: 32px 0 64px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.2em; }
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; background: rgba(0, 0, 0, .15); }
.prose .table { margin: 1em 0; border: 1px solid var(--line); }

/* ============ Sidfot ============ */
.footer { border-top: 1px solid var(--line); background: rgba(3, 7, 26, .5); padding: 32px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 32px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.footer-brand { font-family: var(--display); font-weight: 700; letter-spacing: .08em; color: var(--yellow); margin-bottom: 6px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; align-content: start; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-legal { margin-top: 18px; }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; } }

/* ============ Toast ============ */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: #fff; color: var(--navy-900); font-weight: 700; padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); animation: toastIn .3s cubic-bezier(.3, 1.6, .5, 1); max-width: calc(100% - 32px); text-align: center; }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } }

/* ============ Admin ============ */
.admin-main { padding: 24px 0 64px; }
.admin-nav a { font-size: .88rem; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.stat-v { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--yellow); }
.stat-l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input:not([type=checkbox]), .toolbar select { max-width: 320px; min-height: 42px; padding: 8px 12px; }
.toolbar .check { margin: 0; }
form.inline { display: inline; }
.actions { white-space: nowrap; }
.actions form, .actions a { margin: 2px; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.status-paid, .status-resolved { background: rgba(79, 227, 176, .16); color: #8FF0CC; }
.status-pending, .status-open { background: rgba(255, 210, 63, .16); color: var(--yellow); }
.status-failed, .status-refunded { background: rgba(255, 92, 138, .16); color: #FF9BB8; }
.status-expired, .status-dismissed { color: var(--muted); }
.admin-duck { width: 180px; margin: 0 auto; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.acc-admin { display: grid; gap: 12px; }
.acc-row { display: grid; grid-template-columns: 64px 1fr 2fr 110px auto auto auto; gap: 12px; align-items: center; }
.acc-row .field { margin: 0; }
@media (max-width: 900px) { .acc-row { grid-template-columns: 64px 1fr; } }
code { background: rgba(255, 255, 255, .08); padding: 2px 6px; border-radius: 6px; font-size: .85em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.panel.center .btn-row { justify-content: center; }
@media (max-width: 380px) { .mainnav a { padding: 8px 6px; font-size: .85rem; } .topbar-cta { padding: 8px 12px; } }

/* ============ Språkväljare ============ */
.lang-menu { position: relative; flex-shrink: 0; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 8px 10px; min-height: 40px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--text); border: 1.5px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); user-select: none; -webkit-tap-highlight-color: transparent; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .7; margin-left: 2px; transition: transform .2s; }
.lang-menu[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.lang-menu summary:hover { background: rgba(255, 255, 255, .1); }
.lang-menu svg { width: 22px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: #121E55; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); z-index: 60; animation: menuIn .18s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; }
.lang-menu li a:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.lang-menu li a[aria-current] { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.lang-menu li a[aria-current]::after { content: '✓'; margin-left: auto; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-langs a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }
.footer-langs svg { width: 20px; height: 13px; border-radius: 2px; }
@media (max-width: 640px) {
  .lang-menu summary { padding: 8px; gap: 4px; }
  .lang-menu summary span { display: none; }
}
@media (max-width: 380px) { .lang-menu summary::after { display: none; } }

.acc { position: relative; }
.acc-badge { position: absolute; top: -8px; right: -4px; background: #1f7a3a; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 0 #0f4a22; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: repeat(5, 1fr); } }

/* ============ Flera tillbehör ============ */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin-top: 6px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 2px solid transparent; cursor: pointer; text-align: center; transition: transform .15s, border-color .2s, background .2s; }
.pick:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .08); }
.pick input, .pick-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick-name { font-weight: 700; font-size: .82rem; line-height: 1.15; }
.pick-price { font-family: var(--display); font-weight: 600; font-size: .85rem; color: var(--yellow); }
.pick.is-picked, .pick:has(input:checked) { border-color: var(--yellow); background: rgba(255, 210, 63, .1); }
.pick.is-picked::after, .pick:has(input:checked)::after, .acc.is-picked::after { content: '✓'; position: absolute; top: 6px; left: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); color: var(--navy-900); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.pick:has(input:focus-visible), .pick-toggle:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pick-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .2); font-family: var(--display); font-weight: 600; font-size: .82rem; cursor: pointer; background: rgba(255, 255, 255, .06); }
.pick-toggle span::before { content: '+ '; }
.acc.is-picked { border-color: var(--yellow); background: rgba(255, 210, 63, .1); }
.acc.is-picked .pick-toggle { background: var(--yellow); color: var(--navy-900); border-color: var(--yellow); }
.acc.is-picked .pick-toggle span::before { content: '✓ '; }
.buy-bar { position: sticky; bottom: 10px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 6px; padding: 10px 10px 10px 16px; border-radius: 20px; background: rgba(8, 15, 48, .92); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.buy-bar .btn[disabled] { opacity: .5; }
@media (max-width: 640px) { .buy-bar { justify-content: center; text-align: center; } .buy-bar .btn { width: 100%; } }

/* Smala mobiler: få plats med meny, språkväljare och Adoptera */
@media (max-width: 430px) {
  .topbar-inner { gap: 4px; }
  .brand-duck, .brand-duck svg { width: 34px; height: 34px; }
  .mainnav { gap: 0; }
  .mainnav a { padding: 8px 6px; font-size: .84rem; }
  .lang-menu summary { padding: 6px; min-height: 36px; }
  .lang-menu summary::after { display: none; }
  .topbar-cta { padding: 8px 12px; min-height: 38px; font-size: .86rem; }
}

/* ============ Troféer ============ */
.trophy-glint { animation: glint 4.5s ease-in-out infinite; }
@keyframes glint { 0%, 55% { transform: translateX(0); } 100% { transform: translateX(260px); } }
.stage-trophy { position: absolute; z-index: 4; right: 0; bottom: 4%; width: 30%; max-width: 150px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); animation: trophyIn .8s cubic-bezier(.3, 1.6, .5, 1) both; }
.stage-trophy:hover { transform: rotate(-6deg) scale(1.06); }
.stage-trophy svg { width: 100%; height: auto; display: block; }
.stage-trophy-count { position: absolute; top: 8%; right: -4%; background: var(--pink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 2px 10px; border-radius: 999px; box-shadow: 0 3px 0 #9C1E47; }
@keyframes trophyIn { from { transform: translateY(30px) scale(.6); opacity: 0; } }
.trophies h2 { display: flex; align-items: center; gap: 8px; color: var(--yellow); }
.trophies h2 svg { width: 22px; height: 22px; fill: currentColor; }
.trophy-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 16px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 210, 63, .08), rgba(255, 210, 63, .02)); border: 1px solid rgba(255, 210, 63, .25); }
.trophy-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px 14px; border-radius: var(--radius); text-decoration: none; color: var(--text); background: radial-gradient(circle at 50% 35%, rgba(255, 210, 63, .18), transparent 65%), rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s; }
.trophy-card:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px rgba(255, 210, 63, .5), 0 20px 40px -20px rgba(0, 0, 0, .8); color: var(--text); }
.trophy-card svg { width: 100%; max-width: 150px; height: auto; }
.trophy-card-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-top: 4px; }
.trophy-card-week { font-weight: 700; color: var(--yellow); font-size: .9rem; }
.trophy-card-likes { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.trophy-card-likes svg { width: 14px; height: 14px; fill: var(--pink); }
.fame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .fame-grid, .trophy-shelf { grid-template-columns: repeat(2, 1fr); } }
.winner-banner { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; margin-bottom: 28px; padding: clamp(18px, 3vw, 30px); border-radius: 32px; background: radial-gradient(circle at 15% 50%, rgba(255, 210, 63, .3), transparent 50%), linear-gradient(135deg, #3b2c05 0%, #1B2E78 55%, #12205A 100%); border: 2px solid rgba(255, 210, 63, .45); box-shadow: 0 0 60px -20px rgba(255, 210, 63, .5); }
.winner-banner-trophy svg { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); animation: bob 4s ease-in-out infinite; }
.winner-banner h2 { font-size: clamp(2rem, 5vw, 3rem); margin: .2em 0; }
.winner-banner .lead { margin-bottom: .4em; }
@media (max-width: 640px) { .winner-banner { grid-template-columns: 1fr; text-align: center; } .winner-banner-trophy { max-width: 180px; margin: 0 auto; } .winner-banner .btn-row { justify-content: center; } }
.winner-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 32px 0 8px; position: relative; }
.winner-stage { position: relative; max-width: 400px; width: 100%; justify-self: center; }
.winner-trophy { width: 100%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); animation: trophyIn .9s cubic-bezier(.3, 1.6, .5, 1) both; }
.winner-text h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: .15em 0; }
@media (max-width: 760px) { .winner-hero { grid-template-columns: 1fr; text-align: center; padding-top: 12px; } .winner-stage { max-width: 260px; } .winner-text .btn-row { justify-content: center; } }
