/* danjamir.com – grundstil (designförslag D2) */

/* Typsnitt på egen server (SIL Open Font License, se fonts/OFL-*.txt) */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
    --navy: #1b3a52;
    --navy-dark: #0f2536;
    --gold: #c49a52;
    --gold-text: #8a6a32;
    --cream: #f1e6cf;
    --bg: #faf8f4;
    --sand: #f1ebdf;
    --line: #ece6da;
    --text-muted: #4b5d6b;
    --text-soft: #6b7a86;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --width: 1240px;
    --radius-lg: 20px;
    --radius: 6px;
}

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

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--navy);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; }

.container { width: min(100% - 48px, var(--width)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }

/* Knappar */
.btn { display: inline-block; border: 0; border-radius: var(--radius); padding: 15px 28px; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center; }
.btn-gold { background: var(--gold); color: #13283a; }
.btn-gold:hover { background: #d1aa66; color: #13283a; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-disabled { background: #e7e1d5; color: var(--text-soft); cursor: default; }
.btn-link { background: none; padding: 14px 12px; color: var(--navy); }
.btn-outline { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-icon { display: inline-flex; align-items: center; gap: 10px; }
.btn-svg { flex: 0 0 auto; }

/* Toppremsa och sidhuvud */
.lang-hint { background: var(--gold); color: var(--navy); font-size: 14px; }
.lang-hint-inner { display: flex; justify-content: center; align-items: center; gap: 14px; padding-block: 6px; flex-wrap: wrap; }
.lang-hint a { color: var(--navy); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.lang-hint .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27,58,82,.35); }
.lang-hint-close { background: none; border: 0; color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; min-width: 44px; min-height: 36px; }
.topbar { background: var(--navy); color: var(--cream); font-size: 14px; }
.topbar-inner { display: flex; justify-content: center; text-align: center; padding-block: 9px; }
.topbar a { color: var(--cream); }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.lang-switch:hover span { text-decoration: underline; }
.lang-switch { font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 6px; }
.lang-switch .flag { display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(27,58,82,.2); }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; will-change: transform; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(15,37,54,.08); }
.logo img { transition: height .2s; }
.site-header.is-scrolled .logo img { height: 40px; }
@media (min-width: 861px) {
    .site-header .logo img { height: 76px; }
    .site-header.is-scrolled .logo img { height: 54px; }
}
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
[id] { scroll-margin-top: 110px; }
.header-inner { display: flex; align-items: center; gap: 36px; padding-block: 12px; flex-wrap: wrap; }
.logo img { height: 50px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; flex-wrap: wrap; font-size: 15px; font-weight: 600; }
.main-nav a { text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--gold-text); }
.cart-link { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; }

/* Hero med produktväxling */
.hero { padding-top: 28px; }
.hero-frame { position: relative; height: 600px; border-radius: var(--radius-lg); overflow: hidden; background: #22313d; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease .3s, visibility 0s linear 0s; }
.hero-content { position: relative; height: 100%; padding: 0 56px 60px; display: flex; flex-direction: column; justify-content: center; max-width: 620px; }
.hero-content h2 { font-size: clamp(44px, 6vw, 76px); line-height: .98; margin-bottom: 20px; }
.hero-content p.lead { margin: 0 0 30px; font-size: 18px; }
.hero-slide.theme-dark { color: #fff; }
.hero-slide.theme-dark h2 { color: #fff; }
.hero-slide.theme-dark .eyebrow { color: #e6c88e; }
.hero-slide.theme-dark p.lead { color: #e8edf1; }
/* Toppbild: alla slides har en kvadratisk bildyta (1:1). Dator: till höger, tonar in från vänster i slidens färg.
   Mobil: överst, tonar ut nedåt. Samma bildfil fungerar alltså i båda. --hero-bg = slidens bakgrundsfärg. */
.hero-slide { --hero-bg: #22313d; background: var(--hero-bg); }
.hero-slide.theme-green { --hero-bg: #0b4222; background: linear-gradient(90deg, #072e18 0%, #0b4222 45%); }
.hero-slide.theme-light { --hero-bg: #efe7d8; color: var(--navy); }
.hero-slide.theme-light p.lead { color: var(--text-muted); }
.hero-media { position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: 1 / 1; }
.hero-media > img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero-media.fade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-bg) 0%, transparent 40%); pointer-events: none; }
.hero-product { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62%; }
.hero-product.hero-box { width: 80%; }
.hero-box.tilt img { border-radius: 6px; box-shadow: 0 24px 48px rgba(27,58,82,.35); }
.hero-content { max-width: calc(100% - 520px); }
.hero-product.tilt img { transform: rotate(-4deg); box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.stamp { position: relative; display: table; margin: 30px auto 0; transform: rotate(-3deg); background: var(--gold); color: #13283a; font-weight: 800; font-size: 20px; letter-spacing: .12em; text-transform: uppercase; padding: 12px 22px; border-radius: 6px; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); white-space: nowrap; }
.notice { display: inline-flex; gap: 10px; align-items: center; margin: 0 0 24px; padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px solid #e0d3b8; color: var(--navy); font-size: 15px; font-weight: 600; }
.notice svg { flex: 0 0 auto; }
.notice-link { color: #8a6a32; white-space: nowrap; }
.notice-link:hover { color: var(--navy); }
.placeholder-chip { position: absolute; right: 24px; bottom: 24px; background: rgba(255,255,255,.9); color: var(--navy); font-size: 13px; padding: 6px 12px; border-radius: 999px; }

.hero-tabs { position: absolute; left: 56px; bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.hero-tab { border: 0; cursor: pointer; font: 600 14px/1 var(--font-body); padding: 12px 16px; border-radius: 999px; background: rgba(255,255,255,.28); color: #fff; transition: background .3s, color .3s; }
.hero-tab[aria-selected="true"] { background: #fff; color: var(--navy); }
.hero-frame.on-light .hero-tab { background: rgba(27,58,82,.12); color: var(--navy); }
.hero-frame.on-light .hero-tab[aria-selected="true"] { background: var(--navy); color: #fff; }

/* Pusselkort */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(36px, 4vw, 52px); }
.section-head .hint { margin: 0; font-size: 15px; color: var(--text-soft); }
.puzzles { padding: 96px 0 40px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #efe9dd; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.card-media img.is-active { opacity: 1; }
.card-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
.card-arrow.prev { left: 12px; }
.card-arrow.next { right: 12px; }
.card-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; z-index: 1; }
.card-dots span { display: block; width: 6px; height: 6px; border-radius: 3px; background: #fff; opacity: .6; box-shadow: 0 0 4px rgba(0,0,0,.3); transition: all .3s; }
.card-dots span.is-active { width: 18px; opacity: 1; }
.card-media .placeholder-chip { left: 14px; top: 14px; right: auto; bottom: auto; }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 32px; }
.card-body .specs { margin: 0; font-size: 15px; color: var(--text-soft); }
.card-buy { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* USP */
.usps { padding: 48px 0 88px; }
.usps h2 { font-size: 36px; margin-bottom: 32px; }
.usp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.usp { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.usp h3 { font-size: 21px; font-weight: 600; margin: 12px 0 6px; line-height: 1.25; }
.usp p { margin: 0; font-size: 15px; color: var(--text-muted); }
.usp p strong { color: var(--navy); font-weight: 600; }

/* Spel */
.games { background: var(--sand); border-top: 1px solid #e4dccb; }
.games-inner { padding-block: 80px; display: flex; gap: 56px; align-items: center; flex-wrap: wrap; }
.games-logo { flex: 0 1 340px; position: relative; }
.games-text { flex: 1 1 420px; min-width: 0; }
.games-text h2 { font-size: 48px; margin-bottom: 16px; }
.games-text p { margin: 0 0 26px; font-size: 17px; color: var(--text-muted); }

/* Formulär */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.inline-form input[type="email"] { flex: 1 1 240px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid #d6cbb4; background: #fff; font: 16px var(--font-body); }
.form-options { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.form-options label { display: flex; gap: 8px; align-items: center; }

/* Nyhetsbrev */
.newsletter { padding-block: 88px; }
.newsletter-box { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 60px; display: flex; gap: 40px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.newsletter-box h2 { font-size: 46px; color: #fff; margin-bottom: 12px; line-height: 1; }
.newsletter-box p { margin: 0; font-size: 17px; color: #c9d4dd; }
.newsletter-box form { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.newsletter-box .inline-form input[type="email"] { border: 0; }
.newsletter-box .form-options { color: #c9d4dd; }

/* Sidfot */
.site-footer { border-top: 1px solid var(--line); font-size: 15px; color: var(--text-muted); }
.footer-inner { padding-block: 36px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner ul { list-style: none; display: flex; gap: 24px; flex-wrap: wrap; margin: 0; padding: 0; }
.footer-inner a { color: var(--text-muted); }
.footer-inner .copyright { margin: 0 0 0 auto; }

/* Undersidor */
.page { padding-block: 56px 96px; }
.page h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 16px; }
.page-narrow { max-width: 820px; }
.page-lead { font-size: 19px; color: var(--text-muted); margin: 0 0 40px; }
.page h2 { font-size: 26px; margin: 0 0 14px; }
.text-section { margin-bottom: 36px; }
.text-section p { margin: 0 0 14px; font-size: 17px; color: var(--text-muted); }
.media-note { padding: 20px 24px; background: var(--sand); border-radius: 12px; font-size: 16px; }

.faq-group { margin-bottom: 40px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold-text); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
.contact-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.contact-box h2 { font-size: 21px; margin-bottom: 8px; }
.contact-box p { margin: 0; color: var(--text-muted); }
.contact-email { font-size: 20px; font-weight: 600; }

/* Om oss */
.about-logo { width: min(100%, 420px); margin: 0 auto 40px; }
.team { padding-block: 24px 48px; }
.team > h2 { font-size: 36px; text-align: center; margin-bottom: 32px; }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; text-align: center; }
.person img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 18px; object-fit: cover; }
.person h3 { font-size: 24px; margin-bottom: 4px; }
.person-age { margin: 0 0 12px; font-size: 14px; color: var(--gold-text); font-weight: 600; }
.person-role { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.person p { color: var(--text-muted); font-size: 15px; }
.person-email { margin: 12px 0 0; }
.person-email a { font-weight: 600; }
.page .media-note { margin-bottom: 96px; }

/* Norse Traders */
.nt-hero { background: var(--sand); border-bottom: 1px solid #e4dccb; }
.nt-hero-inner { display: flex; gap: 56px; align-items: center; padding-block: 64px; flex-wrap: wrap; }
.nt-hero-text { flex: 1 1 440px; min-width: 0; }
.nt-hero-text h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 18px; }
.nt-hero-text .lead { font-size: 19px; color: var(--text-muted); margin: 0 0 24px; }
.nt-learn { margin-top: 8px; }
.nt-learn-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; margin: 0 0 10px; }
.nt-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nt-hero-logo { flex: 0 1 380px; position: relative; margin-inline: auto; }
.nt-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-block: 40px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.fact-label { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.fact-value { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.nt-about { padding-bottom: 8px; }
.video-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(10,20,30,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.video-modal[hidden] { display: none; }
.video-modal .video-frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video-modal iframe { width: 100%; height: 100%; border: 0; display: block; }
.nt-box { margin-block: 56px 16px; }
.nt-box h2 { font-size: 32px; margin-bottom: 18px; }
.nt-box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.nt-box-grid figure { margin: 0; }
.nt-box-grid img { width: 100%; border-radius: 10px; box-shadow: 0 6px 24px rgba(27,58,82,.18); cursor: zoom-in; }
.nt-box-grid figcaption { font-size: 14px; color: var(--text-soft); margin-top: 8px; text-align: center; }
.nt-contents { margin-top: 32px; }
.nt-contents h3 { font-size: 22px; margin-bottom: 10px; }
.nt-contents ul { columns: 3 200px; column-gap: 32px; padding-left: 18px; margin: 0; color: var(--text-muted); }
.nt-contents li { break-inside: avoid; margin-bottom: 4px; }
@media (max-width: 700px) { .nt-box-grid { grid-template-columns: 1fr; } }
.nt-about h2 { font-size: 32px; margin-bottom: 14px; }
.nt-about p { font-size: 17px; color: var(--text-muted); }

/* Regler */
.rules-layout { display: flex; gap: 56px; align-items: flex-start; padding-block: 48px 96px; flex-wrap: wrap; }
.rules-toc { flex: 0 0 250px; position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto; font-size: 14px; }
.rules-toc ul { list-style: none; margin: 0; padding: 0; }
.rules-toc li { margin: 0; }
.rules-toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--text-muted); }
.rules-toc a:hover { color: var(--navy); }
.rules-toc .toc-l1 a { font-weight: 600; color: var(--navy); padding-top: 12px; }
.rules-toc .toc-l2 a { padding-left: 14px; }
.rules-content { flex: 1 1 560px; min-width: 0; max-width: 780px; font-size: 17px; }
.rules-content h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 20px; }
.rules-content h2 { font-size: 36px; margin: 56px 0 16px; padding-top: 16px; border-top: 2px solid var(--gold); }
.rules-content h3 { font-size: 28px; margin: 40px 0 12px; }
.rules-content h4 { font-family: var(--font-display); font-size: 22px; margin: 28px 0 10px; }
.rules-content h5, .rules-content h6 { font-family: var(--font-body); font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.rules-content p { margin: 0 0 14px; color: #2b3e4d; }
.rules-content ul, .rules-content ol { margin: 0 0 16px; padding-left: 24px; color: #2b3e4d; }
.rules-content li { margin-bottom: 6px; }
.rules-content img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }
.rules-content p > img:only-child { display: block; margin: 8px 0; }
.rules-content a { color: var(--navy); }
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
.rules-content table { border-collapse: collapse; width: 100%; font-size: 15px; }
.rules-content th, .rules-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.rules-content td img { display: block; margin: 4px 0; }
.rules-content td[style*="text-align:center"] img { margin-left: auto; margin-right: auto; }
.rules-content td[style*="text-align:right"] img { margin-left: auto; margin-right: 0; }
.rules-content .tab-table { width: auto; min-width: 60%; margin: 8px 0 20px; }
.rules-content .tab-table th, .rules-content .tab-table td { border: 0; padding: 6px 28px 6px 0; background: none; }
.rules-content .tab-table th { border-bottom: 2px solid var(--navy); font-weight: 600; }
.rules-content p img:not(:only-child), .rules-content li img { margin-block: 4px; }
.rules-toc-mobile { display: none; }
.ask-box { margin: 8px 0 40px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; scroll-margin-top: 90px; }
.ask-intro { margin-top: 0; }
.ask-form { display: grid; gap: 6px; max-width: 560px; }
.ask-form label { font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 10px; }
.ask-form input, .ask-form select, .ask-form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cfc7b8; border-radius: 8px; background: #fff; color: var(--navy); width: 100%; box-sizing: border-box; }
.ask-form textarea { resize: vertical; }
.ask-form .btn { justify-self: start; margin-top: 14px; }
.ask-privacy { font-size: 13px; color: var(--text-soft); margin: 4px 0 0; }
.ask-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ask-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.ask-ok { background: #eef5ea; color: #2d5a1e; }
.ask-err { background: #fbecea; color: #8a2a1e; }
.rules-content th { background: var(--sand); }
@media (max-width: 860px) {
    .rules-toc { display: none; }
    .rules-layout { padding-top: 0; }
    .rules-toc-mobile { display: block; position: sticky; top: 0; z-index: 40; flex: 0 0 calc(100% + 48px); margin: 0 -24px; background: var(--bg); border-bottom: 1px solid var(--line); transition: top .25s ease; }
    .rules-toc-mobile summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 24px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--navy); }
    .rules-toc-mobile summary::-webkit-details-marker { display: none; }
    .rules-toc-mobile summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
    .rules-toc-mobile[open] summary::after { transform: rotate(-135deg); }
    .rules-toc-mobile .toc-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
    .rules-toc-mobile .toc-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .rules-toc-mobile nav { max-height: 60vh; overflow-y: auto; padding: 0 24px 14px; font-size: 15px; }
    .rules-toc-mobile ul { list-style: none; margin: 0; padding: 0; }
    .rules-toc-mobile a { display: block; padding: 8px 0; text-decoration: none; color: var(--text-muted); }
    .rules-toc-mobile .toc-l1 a { font-weight: 600; color: var(--navy); }
    .rules-toc-mobile .toc-l2 a { padding-left: 14px; }
    .rules-content h2, .rules-content h3 { scroll-margin-top: 70px; }
    .nt-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Bildförstoring */
.rules-content img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,20,30,.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; }
body.no-scroll { overflow: hidden; }

.puzzles-intro { padding-top: 48px; }
.puzzles-intro h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 12px; }
.puzzles-intro .lead { font-size: 19px; color: var(--text-muted); max-width: 720px; margin: 0 0 32px; }
.charity-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 6px 0 0; padding: 4px 10px; border-radius: 10px; background: #f6efe2; color: #8a6a32; font-size: 14px; font-weight: 600; }
.product-card { scroll-margin-top: 140px; }
.puzzle-facts { margin-block: 8px 72px; }
.puzzle-facts h2, .charity h2 { font-size: 36px; margin-bottom: 20px; }
.puzzle-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.label-short { display: none; }
.puzzle-facts dl div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.puzzle-facts dt { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.puzzle-facts dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.charity { margin-bottom: 72px; }
.charity .lead { color: var(--text-muted); max-width: 760px; }
.charity .lead strong { color: var(--navy); }
.charity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.charity-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.charity-card h3 { font-size: 24px; margin: 0 0 8px; }
.charity-card p:not(.eyebrow) { color: var(--text-muted); margin: 0; }
.charity-card { display: flex; flex-direction: column; align-items: flex-start; }
.charity-link { margin-top: 12px; font-weight: 600; color: var(--navy); }
.charity-logo-box { margin-top: auto; padding-top: 24px; height: 144px; display: flex; align-items: flex-end; }
.charity-logo { display: block; height: 120px; width: auto; }
.charity-logo-wide { height: auto; width: 200px; }
/* Mobil */
@media (max-width: 860px) {
    .card-grid, .usp-grid, .contact-grid, .team-grid, .charity-grid { grid-template-columns: minmax(0, 1fr); }
    .charity-logo-box { height: auto; }
    /* Pusselsidan: båda pusslen bredvid varandra även i mobil */
    .card-grid.card-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .card-grid-compact .card-body { padding: 14px; gap: 4px; }
    .card-grid-compact .card-body h3 { font-size: 22px; }
    .card-grid-compact .specs { display: none; }
    .card-grid-compact .charity-chip { font-size: 12px; padding: 4px 8px; }
    .card-grid-compact .charity-chip svg { display: none; }
    .card-grid-compact .label-long { display: none; }
    .card-grid-compact .label-short { display: inline; }
    .puzzle-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-compact .card-buy { flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 8px; }
    .card-grid-compact .card-buy .price { font-size: 20px; }
    .card-grid-compact .card-buy > div { display: flex; }
    .card-grid-compact .card-buy .btn { width: 100%; padding: 12px 8px; font-size: 14px; }
    .card-grid-compact .card-arrow { width: 32px; height: 32px; font-size: 18px; }
    .card-grid-compact .card-arrow.prev { left: 6px; }
    .card-grid-compact .card-arrow.next { right: 6px; }
    .puzzles-intro { padding-top: 28px; }
    .puzzles-intro .lead { font-size: 16px; margin-bottom: 20px; }
    /* Mobil hero: kvadratisk bild överst som tonar ut nedåt, texten under */
    .hero-frame { height: calc(min(100vw - 48px, 560px) + 320px); }
    .hero-slide.theme-green { background: var(--hero-bg); }
    .hero-media { left: 50%; right: auto; transform: translateX(-50%); width: min(100%, 560px); height: auto; }
    .hero-media.fade::after { background: linear-gradient(0deg, var(--hero-bg) 0%, transparent 35%); }
    .hero-media.fade::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, var(--hero-bg) 0%, transparent 14%, transparent 86%, var(--hero-bg) 100%); display: none; }
    .hero-content { position: absolute; left: 0; right: 0; bottom: 0; height: auto; padding: 0 22px 84px; justify-content: flex-end; max-width: none; }
    .hero-content h2 { font-size: 40px; margin-bottom: 12px; }
    .hero-content p.lead { margin-bottom: 20px; font-size: 16px; }
    .hero-content .eyebrow { margin-bottom: 8px; }
    .hero-product { top: 44%; width: 58%; }
    .hero-product.hero-box { width: 78%; }
    .hero-product.tilt img { transform: rotate(-3deg); }
    .hero-box .stamp { position: absolute; right: -10px; top: -14px; margin: 0; }
    .placeholder-chip { right: 12px; bottom: auto; top: 12px; font-size: 11px; }
    .hero-tab { padding: 10px 13px; font-size: 13px; }
    .hero-tabs { left: 16px; right: 16px; bottom: 18px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
    .hero-tab { flex: 0 0 auto; padding: 10px 12px; }
    .hero-product .stamp { font-size: 12px; padding: 6px 10px; border-width: 2px; margin-top: 14px; }
    .hero-content .notice { font-size: 13px; padding: 8px 12px; margin-bottom: 16px; }
    .games-logo .stamp { font-size: 15px; }
    .placeholder-chip { display: none; }
    .newsletter-box { padding: 36px 24px; }
    .header-inner { gap: 8px 16px; }
    .header-tools { order: 2; gap: 4px; }
    .header-inner { padding-block: 8px; }
    .site-header { transition: transform .25s ease, box-shadow .2s; }
    .site-header.nav-hidden { transform: translateY(-100%); box-shadow: none; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; }
    .main-nav ul { gap: 20px; flex-wrap: nowrap; padding-bottom: 4px; }
    .topbar-inner { font-size: 13px; }
    .games-logo { flex-basis: 240px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide, .card-media img { transition: none; }
}
@media (min-width: 609px) and (max-width: 860px) { .hero-media.fade::before { display: block; } }
@media (max-width: 480px) {
    .lang-hint { font-size: 13px; }
    .lang-hint-inner { gap: 8px; flex-wrap: nowrap; padding: 2px 8px; white-space: nowrap; }
    .lang-hint-close { min-width: 36px; }
}
@media (max-width: 400px) { .lang-hint-text { display: none; } }

/* Butik och varukorg */
.cart-link { position: relative; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--navy); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.add-form { display: contents; }
.cart-page h1 { margin-bottom: 24px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 20px 0; border-bottom: 1px solid #e6dcc8; }
.cart-line:first-child { border-top: 1px solid #e6dcc8; }
.cart-line img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: #efe9dd; }
.cart-line h2 { font-size: 20px; margin: 0 0 4px; }
.cart-line h2 a { color: inherit; text-decoration: none; }
.cart-line .specs { margin: 0 0 10px; font-size: 14px; color: #5b6670; }
.cart-line-actions { display: flex; gap: 16px; align-items: center; }
.cart-line-actions select { padding: 6px 10px; font: inherit; border: 1px solid #cdbf9f; border-radius: 6px; background: #fff; }
.cart-line-sum { margin: 0; font-weight: 700; white-space: nowrap; }
.btn-text { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: #8a6a32; text-decoration: underline; cursor: pointer; }
.btn-text:hover { color: var(--navy); }
.cart-summary { background: #fff; border: 1px solid #e6dcc8; border-radius: 10px; padding: 24px; position: sticky; top: 24px; }
.cart-summary h2 { font-size: 22px; margin: 0 0 16px; }
.code-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; padding: 10px 12px; font: inherit; text-transform: uppercase; border: 1px solid #cdbf9f; border-radius: 6px; }
.code-row .btn { padding: 10px 16px; }
.code-ok { margin: 0; font-size: 14px; color: #2c6b3f; font-weight: 600; }
.form-error { margin: 8px 0 0; font-size: 14px; color: #a23b2a; }
.country-form { margin-top: 16px; }
.country-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.country-form select { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #cdbf9f; border-radius: 6px; background: #fff; }
.cart-totals { margin: 20px 0 16px; }
.cart-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.cart-totals dt, .cart-totals dd { margin: 0; }
.cart-totals .discount dd { color: #2c6b3f; }
.cart-totals .total { border-top: 1px solid #e6dcc8; margin-top: 8px; padding-top: 12px; font-size: 19px; font-weight: 700; }
.cart-totals .vat { font-size: 14px; color: #5b6670; padding-top: 0; }
.cart-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 6px; background: #f5efe2; font-size: 14px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.cart-small { margin: 10px 0 0; font-size: 13px; color: #5b6670; text-align: center; }
.shop-game { margin-top: 32px; }
.cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50; display: flex; gap: 16px; align-items: center; padding: 12px 18px; border-radius: 8px; background: var(--navy); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.25); font-weight: 600; }
.cart-toast a { color: var(--gold); white-space: nowrap; }
@media (max-width: 860px) {
    .cart-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .cart-summary { padding: 20px; }
    .cart-summary { position: static; }
    .cart-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
    .cart-line img { width: 72px; height: 72px; }
    .cart-line h2 { font-size: 18px; }
}

/* Kassa */
.narrow { max-width: 720px; }
.checkout-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.checkout-form legend { font-family: Fraunces, Georgia, serif; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.checkout-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.checkout-form input[type=text], .checkout-form input[type=email], .checkout-form input[type=tel], .checkout-form input[type=number], .checkout-form select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; border: 1px solid #cdbf9f; border-radius: 6px; background: #fff; }
.checkout-form small, .field-help { display: block; margin: 6px 0 0; font-size: 13px; font-weight: 400; color: #5b6670; }
.field-help { margin: 0 0 8px; }
.field-row { display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.field-static { margin: 0; font-size: 14px; }
.checkout-form .has-error input, .checkout-form .has-error select { border-color: #a23b2a; box-shadow: 0 0 0 1px #a23b2a; }
.checkout-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin: 8px 0 20px; }
.checkout-form .check input { margin-top: 3px; width: 18px; height: 18px; }
.checkout-form .check.has-error span { color: #a23b2a; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; }

/* Juridiska sidor */
.legal .text-section ul { margin: 0 0 14px; padding-left: 22px; color: var(--text-muted); font-size: 17px; }
.legal .text-section li { margin-bottom: 6px; }
.legal .text-section h2 { font-size: 24px; }
.legal-updated { font-size: 14px; color: var(--text-muted); margin-top: 40px; }

/* Nyhetsbrev */
.newsletter-box .nl-consent { font-size: 13px; }
.newsletter-box .nl-consent a { color: inherit; }
.newsletter-box .nl-message { color: #fff; font-weight: 600; }
.newsletter-box .nl-message.is-error { color: #ffb4a6; }
.nl-simple .nl-consent { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.nl-simple .nl-message { margin: 10px 0 0; font-weight: 600; color: var(--navy); }
.nl-simple .nl-message.is-error { color: #a23b2a; }

/* Markering när man klickar på en länk till nyhetsbrevet (syns även om sidan inte behöver skrollas) */
@keyframes nl-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(196, 154, 82, .9); }
    70%  { box-shadow: 0 0 0 14px rgba(196, 154, 82, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 154, 82, 0); }
}
.newsletter-box.nl-highlight { animation: nl-pulse 1s ease-out 2; outline: 3px solid var(--gold); outline-offset: 3px; transition: outline-color .6s; }
@media (prefers-reduced-motion: reduce) { .newsletter-box.nl-highlight { animation: none; } }

/* Kontaktformulär */
.contact-form { background: #fff; border: 1px solid #e6dcc8; border-radius: 10px; padding: 28px; margin: 0 0 40px; }
.contact-form h2 { font-size: 24px; margin: 0 0 18px; }
.contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; border: 1px solid #cdbf9f; border-radius: 6px; resize: vertical; }
.field-row-even { grid-template-columns: 1fr 1fr; }
.form-ok { margin: 14px 0 0; font-weight: 600; color: #2c6b3f; }
.contact-form .form-error { margin-top: 14px; }
.contact-privacy { text-align: left; }
@media (max-width: 600px) { .field-row-even { grid-template-columns: 1fr; } .contact-form { padding: 20px; } }
.contact-about { margin-top: 14px; }
.checkout-form textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; font-weight: 400; border: 1px solid #cdbf9f; border-radius: 6px; resize: vertical; }

/* Återförsäljare: beställningssida */
.retail-products { margin-top: 8px; }
.retail-product { display: flex; gap: 16px; align-items: center; }
.retail-product img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.retail-facts { margin: 18px 0 8px; color: var(--text-muted); }
.page .retail-h { margin: 40px 0 14px; }
.retail-offer p + p { margin-top: 8px; }
.retail-offer-a { border-top: 4px solid var(--gold, #c49a52); }
.retail-offer-b { border-top: 4px solid var(--navy, #1b3a52); }
.retail-tiers { width: 100%; border-collapse: collapse; margin: 4px 0 8px; }
.retail-tiers td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.retail-tiers td:last-child { text-align: right; font-weight: 600; }
.retail-terms { margin: 18px 0 36px; padding-left: 20px; }
.retail-choice { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.retail-choice legend { font-family: inherit; font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.retail-choice label { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; }
.retail-choice input { width: auto; }
@media (max-width: 600px) { .retail-product img { width: 88px; height: 88px; } }
