/* Dragon Money — variant B: standalone stylesheet (radically different layout) */
@import url('fonts.css?v=13b4c1'); /* self-hosted Unbounded + Manrope, no external requests */

:root {
  --bg: #0d0a1a;
  --panel: #171230;
  --panel-2: #1e1840;
  --line: #2c2454;
  --ink: #f2eefc;
  --dim: #a89fc7;
  --gold: #ffb636;
  --gold-2: #ffd27a;
  --coral: #ff5c7a;
  --violet: #7b5cff;
  --r: 18px;
  --r-sm: 12px;
  --maxw: 1200px;
  --display: 'Unbounded', 'Segoe UI', sans-serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -5%, rgba(123, 92, 255, .22), transparent 65%),
    radial-gradient(700px 400px at 0% 20%, rgba(255, 92, 122, .12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--gold); }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.01em; }
/* Hero headline text — visually like h1, but only the article heading below is the page's real <h1> */
.hero-h1 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; font-size: clamp(1.7rem, 4.2vw, 3rem); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.9rem); font-weight: 700; }
h3 { font-size: clamp(1rem, 2vw, 1.15rem); font-weight: 700; }
p { margin: 0 0 1em; }

/* Buttons */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px;
  border: 0; border-radius: var(--r-sm);
  font-family: var(--body); font-weight: 800; font-size: 1rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.b:active { transform: translateY(1px); }
.b-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #2b1a00;
  box-shadow: 0 12px 30px rgba(255, 182, 54, .35);
}
.b-gold:hover { box-shadow: 0 14px 36px rgba(255, 182, 54, .5); color: #2b1a00; }
.b-line { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.b-line:hover { border-color: var(--gold); color: var(--gold-2); }
.b-xl { min-height: 60px; padding: 0 38px; font-size: 1.08rem; border-radius: 14px; }
.b-dark { background: #241300; color: var(--gold-2); }
.b-dark:hover { background: #3a2000; color: var(--gold-2); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 26, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: var(--maxw); margin-inline: auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.logo .mark { width: 38px; height: 38px; fill: var(--gold); }
.logo b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; }
.top-cta { margin-left: auto; display: flex; gap: 10px; }
.top-cta .b { min-height: 42px; padding: 0 20px; font-size: .92rem; }

/* Pill nav row under header — wraps instead of requiring a horizontal swipe */
.pills {
  max-width: var(--maxw); margin-inline: auto; padding: 14px 20px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.pills a {
  flex: 0 0 auto;
  padding: 9px 20px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line);
  color: var(--dim); font-weight: 700; font-size: .92rem;
}
.pills a:hover { color: var(--ink); border-color: var(--violet); }
.pills a[aria-current="page"] { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Language switcher (dropdown) ---------- */
.lang-switch { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 42px; padding: 0 12px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--ink); font-family: var(--body); font-weight: 700; font-size: .88rem;
  cursor: pointer; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--violet); }
.lang-btn .chev { width: 10px; height: 10px; fill: var(--dim); transition: transform .15s ease; }
.lang-switch.is-open .lang-btn .chev { transform: rotate(180deg); }
.flag {
  width: 20px; height: 14px; border-radius: 2px; flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 70;
  min-width: 172px; padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  display: none;
}
.lang-switch.is-open .lang-menu { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px;
  color: var(--dim); font-weight: 700; font-size: .88rem;
}
.lang-menu a:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }
.lang-menu a[aria-current="true"] { color: var(--ink); background: rgba(123, 92, 255, .18); }
.lang-menu a[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--violet); }
/* footer variant opens upwards */
.foot-lang { margin-top: 14px; }
.foot-lang .lang-menu { top: auto; bottom: calc(100% + 6px); left: 0; right: auto; }

/* ---------- Hero (split + bento) ---------- */
.hero { padding: 34px 0 22px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--coral); }
.hero .sub { color: var(--dim); font-size: 1.08rem; max-width: 34em; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-alt { color: var(--dim); font-weight: 700; font-size: .95rem; }
.hero-alt:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  color: var(--dim); font-size: .82rem; font-weight: 700;
}

.bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; gap: 14px; }
.bento .shot {
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 292 / 392;
}
.bento .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.bento .shot:nth-child(1) { transform: rotate(-1.5deg); }
.bento .shot:nth-child(2) { transform: rotate(1.5deg) translateY(14px); }
/* ---------- Full-width hero card for subpages (bonus/login/mirror) ---------- */
.hero-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 3vw, 32px);
}
.hero-top { display: grid; gap: 30px; align-items: center; }
.hero-top.split { grid-template-columns: 1.1fr .9fr; }
.hero-top.solo .sub { max-width: 46em; }
.hero-pic {
  border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line);
  aspect-ratio: 292 / 392; max-width: 260px; margin-inline: auto;
}
.hero-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }

.hero-stats {
  display: grid; gap: 14px;
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
}
.hero-stats.cols-2 { grid-template-columns: repeat(2, 1fr); }
.hero-stats.cols-3 { grid-template-columns: repeat(3, 1fr); }
.hero-stats .stat-box {
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 16px 20px;
}
.hero-stats .stat-box .n { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--gold); }
.hero-stats .stat-box .l { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

@media (max-width: 720px) {
  .hero-top.split { grid-template-columns: 1fr; }
  .hero-pic { max-width: 200px; }
  .hero-stats.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-stats.cols-2, .hero-stats.cols-3 { grid-template-columns: 1fr; }
}
.tile {
  border-radius: var(--r); padding: 18px 20px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
}
.tile .n { font-family: var(--display); font-weight: 900; font-size: 1.35rem; color: var(--gold); }
.tile .l { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- Marquee ---------- */
.tape-wrap { overflow: hidden; margin: 24px 0 4px; }
.tape {
  display: flex; gap: 0; white-space: nowrap;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  color: #2b1a00;
  transform: rotate(-1.2deg) scale(1.02);
  padding: 10px 0;
}
.tape span {
  display: inline-block; padding: 0 18px;
  font-family: var(--display); font-weight: 700; font-size: .88rem; letter-spacing: .04em;
  animation: tape-run 28s linear infinite;
}
@keyframes tape-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Game mosaic ---------- */
.sect { padding: 30px 0 6px; }
.sect-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.sect-head .cnt { color: var(--dim); font-size: .9rem; font-weight: 700; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease;
}
.g-card:hover { border-color: var(--gold); }
.g-thumb { aspect-ratio: 292 / 320; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.g-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
/* Fixed two-line title box keeps provider line and button on the same baseline
   across every card, whatever the game name length is */
.g-body b { font-size: .95rem; line-height: 1.3; min-height: 2.6em; }
.g-body .prov { color: var(--dim); font-size: .78rem; font-weight: 700; }
.g-body .b { margin-top: auto; padding: 0 14px; min-height: 40px; font-size: .9rem; width: 100%; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: st; }
.st {
  position: relative; padding: 22px 22px 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
}
.st::before {
  counter-increment: st; content: "0" counter(st);
  font-family: var(--display); font-weight: 900; font-size: 1.6rem;
  color: var(--violet); display: block; margin-bottom: 8px;
}
.st h3 { margin-bottom: 4px; }
.st p { margin: 0; color: var(--dim); font-size: .92rem; }

/* ---------- Article ---------- */
.art { padding: 30px 0 6px; }
.seo-inner { max-width: none; }
.seo-inner h1 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
.seo-inner h2 {
  margin-top: 1.35em; padding-left: 16px;
  border-left: 4px solid var(--gold);
}
.seo-inner > :first-child { margin-top: 0; }
.seo-inner h3 { color: var(--coral); margin-top: 1.15em; }
.seo-inner p, .seo-inner li { color: var(--dim); }
.seo-inner strong { color: var(--ink); }
.seo-inner ul, .seo-inner ol { padding-left: 1.3em; margin: 0 0 1em; }
.seo-inner a { text-decoration: underline; text-underline-offset: 3px; }
.seo-inner table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5em;
  font-size: .93rem; display: block; overflow-x: auto;
  border-radius: var(--r-sm);
}
.seo-inner th, .seo-inner td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.seo-inner thead th { background: var(--panel-2); color: var(--gold-2); font-family: var(--body); font-weight: 800; }
.seo-inner tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }

/* ---------- CTA band ---------- */
.band {
  margin: 34px 0 0; padding: 32px 0;
  background: linear-gradient(120deg, var(--coral) 0%, var(--gold) 100%);
  color: #2b0d00;
}
.band-in {
  max-width: var(--maxw); margin-inline: auto; padding-inline: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.band h2 { margin: 0 0 6px; color: #2b0d00; }
.band p { margin: 0; font-weight: 600; opacity: .85; }

/* ---------- Footer ---------- */
.foot { background: #0a0716; border-top: 1px solid var(--line); padding: 40px 0 26px; font-size: .93rem; }
.foot-grid { display: grid; gap: 26px; grid-template-columns: 1.3fr 1fr 1fr 1fr; margin-bottom: 24px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.foot-brand .mark { width: 32px; height: 32px; fill: var(--gold); }
.foot-brand b { font-family: var(--display); font-weight: 700; font-size: .98rem; }
.foot-col .t { font-weight: 800; color: var(--ink); margin-bottom: .9em; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--dim); }
.foot-col a:hover { color: var(--gold-2); }
.foot-brand-note { color: var(--dim); max-width: 280px; }
/* Breadcrumbs — own horizontal band, clearly distinct from the pill nav */
.crumbs {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(rgba(123, 92, 255, .05), rgba(123, 92, 255, .02));
}
.crumbs ol {
  list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin: 0 auto; padding-top: 11px; padding-bottom: 11px;
  font-size: .84rem;
}
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: "/"; color: var(--dim); opacity: .5; }
.crumbs a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-2); font-weight: 700;
  padding: 2px 2px; border-radius: 6px;
}
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.crumb-home { width: 14px; height: 14px; fill: currentColor; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.age-note { display: flex; align-items: center; gap: 14px; margin: 30px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--panel-2); }
.age-note-badge { flex: none; display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 10px; background: var(--gold); color: #17110a; font-weight: 800; font-size: 1rem; letter-spacing: .01em; }
.age-note p { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink); }
@media (max-width: 480px) { .age-note { gap: 12px; padding: 14px; } .age-note-badge { min-width: 40px; height: 40px; font-size: .92rem; } .age-note p { font-size: .9rem; } }

.foot-note { border-top: 1px solid var(--line); padding-top: 18px; color: var(--dim); font-size: .84rem; }
.foot-age-line { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-weight: 700; letter-spacing: .02em; color: var(--ink); font-size: .9rem; }
.age {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-right: 10px;
  border: 2px solid var(--coral); color: var(--coral); border-radius: 50%;
  font-weight: 800; font-size: .78rem; vertical-align: middle;
}

/* ---------- Sticky mobile CTA (slides in after the hero is scrolled past) ---------- */
.m-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 7, 22, .95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.m-cta.show { transform: translateY(0); }
.m-cta .b { width: 100%; }

/* ---------- Fact tiles row (subpages) ---------- */
.tiles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles-row .tile p { margin: 6px 0 0; color: var(--dim); font-size: .88rem; }
.tiles-row .tile .h { font-weight: 800; color: var(--ink); font-size: .98rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tiles-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .bento { gap: 10px; }
  .games { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-body { padding: 10px 10px 12px; }
  .g-body b { font-size: .84rem; min-height: 2.6em; }
  .g-body .prov { font-size: .72rem; }
  .g-body .b { min-height: 36px; font-size: .82rem; padding: 0 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .m-cta { display: block; }
  body { padding-bottom: 78px; }
  .tiles-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  /* Compact language pill: flag + chevron only, label lives in the dropdown */
  .lang-btn { padding: 0 8px; gap: 5px; }
  .lang-btn .label { display: none; }
}
@media (max-width: 480px) {
  /* Both Logga in / Registrera stay visible up top — just shrink to fit */
  .top-in { gap: 8px; padding: 10px 12px; }
  .logo { gap: 7px; min-width: 0; }
  .logo b { font-size: .74rem; }
  .logo .mark { width: 26px; height: 26px; }
  .top-cta { gap: 5px; }
  .top-cta .b { min-height: 36px; padding: 0 10px; font-size: .74rem; }
  .lang-btn { min-height: 36px; }
  .pills { padding: 10px 12px 0; gap: 6px; }
  .pills a { padding: 6px 13px; font-size: .8rem; }
}
@media (max-width: 390px) {
  /* Last resort on very narrow phones: keep the mark, drop the wordmark */
  .logo b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
