/* RustCorn: dark, warm, vivid. Display type is Bricolage Grotesque, body is Instrument Sans. */

:root {
  --bg: #0b0908;
  --bg-1: #121010;
  --bg-2: #1a1614;
  --bg-3: #241f1c;
  --line: #272120;
  --line-2: #3b322d;
  --text: #f8f2eb;
  --text-2: #d9d0c6;
  --muted: #a89e94;
  --dim: #7c7269;

  --orange: #ff6a1f;
  --orange-2: #ff8b4a;
  --gold: #ffc233;
  --good: #2ee6a6;
  --violet: #9d7bff;
  --accent: var(--orange);
  --accent-ink: #1a0b03;
  --accent-bg: rgba(255, 106, 31, 0.1);
  --good-bg: rgba(46, 230, 166, 0.1);
  --grad: linear-gradient(135deg, #ff6a1f 0%, #ffb020 100%);
  --grad-text: linear-gradient(100deg, #ff7a2f 0%, #ffc233 100%);

  --font-display: 'Bricolage Grotesque', 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Hiragino Sans', 'PingFang SC', 'Malgun Gothic', sans-serif;
  --font-body: 'Instrument Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Hiragino Sans', 'PingFang SC', 'Malgun Gothic', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-h: 66px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--orange); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
button, a, input, label, summary, .stepper { touch-action: manipulation; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--gold); color: var(--accent-ink); padding: 8px 14px; border-radius: var(--radius-s); font-weight: 600; }
.skip:focus { left: 10px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 18px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.35; }
p { margin: 0 0 1em; }

.num { font-variant-numeric: tabular-nums; }
.mt { margin-top: 40px !important; }
.mt-s { margin-top: 22px !important; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 16px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 9, 8, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); position: relative; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; margin-inline-end: auto; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { font-family: var(--font-display); font-size: 1.32rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.logo-word b { font-weight: 800; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius-s); cursor: pointer; color: var(--text); order: 3; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform 0.2s, opacity 0.2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.nav-toggle:checked ~ .burger span { background: transparent; }
.nav-toggle:checked ~ .burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked ~ .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle:focus-visible ~ .burger { outline: 2px solid var(--gold); outline-offset: 2px; }

.main-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; padding: 10px; gap: 2px;
  background: var(--bg-1); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
}
.nav-toggle:checked ~ .main-nav { display: flex; }
.main-nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: 1rem; padding: 11px 14px; border-radius: var(--radius-s); white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--bg-2); }
.main-nav a[aria-current] { color: var(--text); background: var(--bg-2); box-shadow: inset 3px 0 0 var(--orange); }
.main-nav a.hot { color: var(--gold); }
.main-nav a.hot::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-inline-start: 8px; border-radius: 50%; background: var(--grad); vertical-align: 1px; box-shadow: 0 0 0 3px rgba(255, 178, 32, 0.18); }

.lang-menu { position: relative; order: 2; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { color: var(--text); border-color: var(--muted); }
.lang-menu[open] summary { color: var(--text); border-color: var(--orange); }
.lang-list { list-style: none; margin: 0; padding: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.lang-menu .lang-list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 36px)); background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; max-height: 70vh; overflow: auto; }
.lang-list a { display: block; padding: 7px 10px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lang-list a:hover { background: var(--bg-2); color: var(--text); }
.lang-list a[aria-current] { color: var(--gold); font-weight: 600; }

@media (max-width: 959px) {
  /* The dropdown spans the header on small screens instead of hanging off the button. */
  .lang-menu { position: static; }
  .lang-menu .lang-list { inset-inline: 0; top: 100%; width: auto; border-radius: 0 0 var(--radius) var(--radius); border-top: 0; }
}
@media (min-width: 960px) {
  .burger { display: none; }
  .main-nav { display: flex; position: static; flex-direction: row; padding: 0; gap: 2px; background: none; border: 0; box-shadow: none; }
  .main-nav a { font-size: 0.93rem; padding: 8px 12px; }
  .main-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--orange); background: none; }
  .lang-menu { margin-inline-start: 6px; }
}

/* ---------- breadcrumb ---------- */

.breadcrumb ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.84rem; color: var(--dim); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb [aria-current] { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }

/* ---------- hero ---------- */

.hero { position: relative; padding-top: 64px; padding-bottom: 48px; }
.hero::before {
  content: ''; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 320px at 18% 10%, rgba(255, 106, 31, 0.22), transparent 70%),
    radial-gradient(520px 300px at 85% 0%, rgba(255, 194, 51, 0.14), transparent 70%);
}
.hero h1 { max-width: 16ch; }
.hero.narrow h1 { max-width: none; }
.hero .lede { font-size: 1.15rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--muted); }
.hero-stats li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good); margin-inline-end: 8px; vertical-align: 2px; }

.tool-head { padding-top: 32px; padding-bottom: 28px; position: relative; }
.tool-head::before { content: ''; position: absolute; inset: -200px 0 auto; height: 420px; z-index: -1; pointer-events: none; background: radial-gradient(640px 300px at 10% 20%, rgba(255, 106, 31, 0.14), transparent 70%); }
.lede { color: var(--muted); font-size: 1.1rem; max-width: 40em; margin: 16px 0 0; line-height: 1.55; }
.section-lede { color: var(--muted); margin: 6px 0 20px; max-width: 48em; }
.text-link { color: var(--gold); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.err-code { font-family: var(--font-display); font-size: 5rem; font-weight: 800; line-height: 1; margin: 0 0 12px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--grad); color: var(--accent-ink);
  font: 700 0.93rem var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); box-shadow: 0 8px 24px rgba(255, 122, 47, 0.3); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--muted); box-shadow: none; filter: none; background: var(--bg-2); }
.btn.big { height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn.block { width: 100%; }
.btn svg { flex: none; }

/* ---------- tool cards ---------- */

.tool-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }
.tool-card {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1);
  text-decoration: none; transition: border-color 0.15s, transform 0.15s, background 0.15s; overflow: hidden;
}
.tool-card::after { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); opacity: 0; transition: opacity 0.15s; }
.tool-card:hover { border-color: var(--line-2); background: var(--bg-2); transform: translateY(-2px); }
.tool-card:hover::after { opacity: 1; }
.tool-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--accent-bg); color: var(--orange); }
.tool-icon[data-tone="gold"] { background: rgba(255, 194, 51, 0.12); color: var(--gold); }
.tool-icon[data-tone="good"] { background: var(--good-bg); color: var(--good); }
.tool-icon[data-tone="violet"] { background: rgba(157, 123, 255, 0.14); color: var(--violet); }
.tool-icon svg { width: 22px; height: 22px; }
.tool-name { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; letter-spacing: -0.015em; }
.tool-desc { color: var(--muted); font-size: 0.94rem; margin-top: 6px; flex: 1; line-height: 1.5; }
.tool-open { margin-top: 18px; color: var(--gold); font-weight: 700; font-size: 0.88rem; }
.tool-card.promo { background: linear-gradient(160deg, rgba(157, 123, 255, 0.14), rgba(255, 106, 31, 0.1) 70%, var(--bg-1)); border-color: rgba(157, 123, 255, 0.3); }
.tool-card.promo::after { opacity: 1; background: linear-gradient(90deg, var(--violet), var(--orange)); }
@media (min-width: 640px) {
  .tool-grid li:has(.promo) { grid-column: 1 / -1; }
  .tool-card.promo { flex-direction: row; align-items: center; gap: 18px; flex-wrap: wrap; }
  .tool-card.promo .tool-icon { margin: 0; }
  .tool-card.promo .tool-name { flex: 1 1 200px; }
  .tool-card.promo .tool-desc { flex: 3 1 320px; margin: 0; }
  .tool-card.promo .tool-open { margin: 0; }
}

/* ---------- layout blocks ---------- */

.home-grid { display: grid; gap: 44px; padding-top: 48px; padding-bottom: 64px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.side h2 { margin-bottom: 14px; font-size: 1.12rem; }
.block { padding-top: 48px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.home-grid > *, .calc > *, .target-grid > *, .article-layout > *, .footer-grid > *, .inputs, .summary, .feature-grid > *, .wipe-extras > * { min-width: 0; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 22px; }
.note { border: 1px solid var(--line-2); border-inline-start: 3px solid var(--gold); border-radius: var(--radius-s); background: var(--bg-1); padding: 14px 18px; color: var(--text-2); font-size: 0.95rem; margin: 20px 0; max-width: 52em; }
.note.good { border-inline-start-color: var(--good); }
.note.violet { border-inline-start-color: var(--violet); }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--text); }

/* ---------- tables ---------- */

.table-scroll { overflow-x: auto; margin: 0 -18px; padding: 0 18px; position: relative; -webkit-overflow-scrolling: touch; }
@media (min-width: 720px) { .table-scroll { margin: 0; padding: 0; } }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th:first-child, td:first-child { padding-inline-start: 0; }
th:last-child, td:last-child { padding-inline-end: 0; }
thead th { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); border-bottom-color: var(--line-2); white-space: nowrap; }
th.num, td.num { text-align: end; font-variant-numeric: tabular-nums; }
tbody th { font-weight: 500; }

.raid-table { min-width: 580px; }
.raid-table tbody th { white-space: nowrap; }
.raid-table tbody th a { color: inherit; text-decoration: none; }
.raid-table tbody th a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.raid-table .hp { display: block; font-size: 0.76rem; font-weight: 400; color: var(--dim); margin-top: 1px; }
.raid-table td .q { display: block; font-weight: 700; font-size: 1.02rem; font-family: var(--font-display); }
.raid-table td .s { display: block; font-size: 0.76rem; color: var(--dim); margin-top: 1px; }
.raid-table td.best { background: var(--good-bg); border-radius: 6px; }
.raid-table td.best .q { color: var(--good); }
.raid-table td.best:last-child { padding-inline-end: 12px; }
.raid-table tr.group th { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--gold); padding-top: 26px; border-bottom-color: var(--line-2); letter-spacing: 0; text-transform: none; }
.table-note { font-size: 0.85rem; color: var(--dim); margin: 12px 0 0; }
.best-key { color: var(--good); font-weight: 600; }
.plain-table td.num { font-size: 0.95rem; }
.recipes td { color: var(--text-2); }
.freshness { font-size: 0.82rem; color: var(--dim); margin: 8px 0 0; }
.tag { display: inline-block; margin-inline-start: 8px; padding: 2px 9px; border-radius: 999px; background: var(--good-bg); color: var(--good); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }

/* ---------- countdown ---------- */

.countdown { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); overflow: hidden; }
.countdown::before { content: ''; position: absolute; inset: auto -20% -60% -20%; height: 70%; background: radial-gradient(closest-side, rgba(255, 106, 31, 0.18), transparent); pointer-events: none; }
.cd-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; position: relative; }
.cd-units > div { display: flex; flex-direction: column; }
.cd-n { font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 5.6rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-l { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }
.cd-when { position: relative; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.cd-when time { color: var(--text); font-weight: 600; }
.cd-local { display: block; font-size: 0.9rem; }
.countdown.compact { padding: 20px; margin-bottom: 12px; }
.countdown.compact .cd-n { font-size: 2.1rem; }
.countdown.compact .cd-l { margin-top: 4px; font-size: 0.68rem; }
.countdown.compact .cd-when { margin-top: 14px; padding-top: 12px; font-size: 0.85rem; }
.wipe-main { padding-bottom: 48px; }
.wipes td { color: var(--muted); font-variant-numeric: tabular-nums; }
.wipes tbody tr:first-child th, .wipes tbody tr:first-child td { color: var(--gold); }

.wipe-extras { display: grid; gap: 12px; padding-bottom: 56px; }
@media (min-width: 900px) { .wipe-extras { grid-template-columns: repeat(3, 1fr); } }
.extra { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.extra h2 { font-size: 1.08rem; }
.extra p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.extra .actions { margin-top: auto; }
.snippet { width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--bg); color: var(--text-2); font: 0.8rem/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

/* ---------- calculators ---------- */

.calc { display: grid; gap: 32px; padding-bottom: 56px; align-items: start; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; } }

fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
legend { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--text); padding: 0; margin-bottom: 4px; }
.fs-note { margin: 0 0 4px; font-size: 0.85rem; color: var(--dim); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.row label { display: flex; flex-direction: column; cursor: pointer; position: relative; min-width: 0; }
.row-name { font-weight: 500; }
.row-sub { font-size: 0.78rem; color: var(--dim); }
.row.active .row-name { color: var(--gold); }

.stepper { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; flex: none; background: var(--bg-1); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); font: 400 1.25rem/1 var(--font-body); cursor: pointer; }
.stepper button:hover { background: var(--bg-2); color: var(--text); }
.stepper button:active { background: var(--bg-3); }
.stepper input {
  width: 54px; height: 40px; border: 0; border-inline: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); text-align: center;
  font: 700 1rem var(--font-body); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: none; background: var(--bg-2); color: var(--gold); }
.row.active .stepper { border-color: rgba(255, 194, 51, 0.5); }

@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--header-h) + 16px); } }
.summary-inner { border: 1px solid var(--line-2); border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); padding: 22px; position: relative; overflow: hidden; }
.summary-inner::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); }
.label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.total { margin: 6px 0 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.total span { font-family: var(--font-display); font-size: 2.8rem; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -0.035em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.total small { color: var(--dim); font-size: 0.9rem; }

.mix { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.mix li { font-size: 0.9rem; font-weight: 500; padding: 5px 11px; background: var(--bg-3); border-radius: 999px; }
.mix li b { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.mix li.empty, .methods .empty td { background: none; padding-inline-start: 0; color: var(--dim); font-weight: 400; border: 0; }

.methods th, .methods td { padding: 8px; font-size: 0.92rem; }
.methods thead th { font-size: 0.7rem; }
.methods tr.cheapest th, .methods tr.cheapest td { color: var(--good); }
.upkeep-out td.num { font-weight: 700; color: var(--gold); }

.steps { margin: 8px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: 0.92rem; }
.steps li { padding: 3px 0; }
.steps li b { color: var(--text); font-weight: 500; }
.steps .qty { color: var(--text); font-variant-numeric: tabular-nums; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(26, 22, 20, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
  text-decoration: none; transform: translateY(100%); transition: transform 0.2s;
}
.mobile-bar.has-value:not(.hidden) { transform: none; }
/* Label on top, total underneath, so long totals (upkeep) get the full width. */
.mb-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.mb-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-total { font-size: 0.85rem; color: var(--dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3; }
.mb-total b { font-family: var(--font-display); font-size: 1.15rem; color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }
.mb-go { margin-inline-start: auto; font-weight: 700; font-size: 0.9rem; color: var(--text); flex: none; }
@media (min-width: 900px) { .mobile-bar { display: none; } }

.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: border-color 0.15s, color 0.15s; }
.seg label:hover span { color: var(--text); border-color: var(--muted); }
.seg input:checked + span { color: var(--accent-ink); background: var(--grad); border-color: transparent; font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.grid-input { table-layout: fixed; width: 100%; }
/* Long compound words (Dreiecksfundamente, trekantfundamenter) hyphenate instead of spilling into the inputs. */
.grid-input th { font-weight: 500; vertical-align: middle; font-size: 0.9rem; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }
.grid-input thead th { white-space: normal; line-height: 1.2; vertical-align: bottom; text-align: center; font-size: 0.72rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.grid-input thead th:first-child { width: 34%; }
.grid-input td { padding: 6px 0 6px 6px; }
.grid-input input {
  width: 100%; min-width: 0; height: 40px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: var(--radius-s);
  background: var(--bg); color: var(--text); text-align: center; font: 700 1rem var(--font-body); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.grid-input input::-webkit-outer-spin-button, .grid-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.grid-input input:focus { outline: none; border-color: var(--gold); color: var(--gold); }

/* ---------- prose / faq ---------- */

.prose { padding-bottom: 72px; }
.prose > h2, .prose .md > h2 { margin: 48px 0 16px; }
.prose > h2:first-child, .prose .md > h2:first-child { margin-top: 0; }
.prose > p, .prose .md > p { color: var(--text-2); max-width: 46em; }
.prose .md > ul, .prose .md > ol { color: var(--text-2); max-width: 46em; padding-inline-start: 22px; }
.prose .md li { margin: 0.3em 0; }
.prose .md li::marker { color: var(--gold); }
.prose .md h3 { margin: 1.6em 0 0.5em; }
.prose .md a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 194, 51, 0.35); text-underline-offset: 3px; }
.prose .md a:hover { text-decoration-color: var(--gold); }
.prose .md strong { color: var(--text); font-weight: 600; }
.prose .md table { font-size: 0.94rem; max-width: 760px; }
.prose .md .table-scroll { margin-bottom: 1.4em; }
.prose .md blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-inline-start: 3px solid var(--orange); color: var(--text); max-width: 46em; }
.more-link { margin-top: 20px; }

.faq { max-width: 54em; display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg-1); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; inset-inline-end: 18px; top: 20px; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--gold); top: 24px; }
.faq h3 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; font-family: var(--font-body); }
.faq summary:hover h3 { color: var(--gold); }
.faq .faq-a { padding: 0 18px 16px; color: var(--text-2); max-width: 46em; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a a { color: var(--gold); }

/* ---------- guides ---------- */

.guides-wrap { padding-bottom: 72px; }
.guide-section { padding: 28px 0; border-top: 1px solid var(--line); }
.guide-section h2 { margin-bottom: 16px; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 720px) { .guide-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .guide-list { grid-template-columns: repeat(3, 1fr); } }
.guide-list a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 20px 22px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); transition: border-color 0.15s, transform 0.15s; }
.guide-list a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.guide-list a:hover .g-title { color: var(--gold); }
.g-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.g-cat[data-cat="gambling"] { color: var(--violet); }
.g-cat[data-cat="updates"] { color: var(--good); }
.g-lang { color: var(--dim); font-weight: 500; letter-spacing: 0; text-transform: none; }
.g-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.g-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-meta { font-size: 0.8rem; color: var(--dim); margin-top: auto; padding-top: 6px; }

.article-layout { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 56px; }
@media (min-width: 1040px) { .article-layout { grid-template-columns: minmax(0, 740px) 260px; justify-content: space-between; } }

.article-head { padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.article-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 0.85rem; color: var(--dim); }
.article-meta a { color: var(--gold); text-decoration: none; font-weight: 600; }

.article-body { font-size: 1.04rem; line-height: 1.72; color: var(--text-2); }
.article-body > :first-child { margin-top: 0; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 1.1em; }
.article-body h2 { color: var(--text); font-size: 1.55rem; margin: 2.2em 0 0.6em; }
.article-body h3 { color: var(--text); font-size: 1.18rem; margin: 1.8em 0 0.5em; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255, 194, 51, 0.35); text-underline-offset: 3px; }
.article-body a:hover { text-decoration-color: var(--gold); }
.article-body li { margin: 0.3em 0; }
.article-body li::marker { color: var(--gold); }
.article-body .table-scroll { margin-bottom: 1.4em; }
.article-body table { font-size: 0.94rem; line-height: 1.5; }
.article-body thead th { color: var(--muted); }
.article-body td { color: var(--text-2); }
.article-body blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-inline-start: 3px solid var(--orange); color: var(--text); }
.article-body code { font-size: 0.9em; background: var(--bg-2); padding: 1px 5px; border-radius: 4px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-body .sources-heading { font-size: 1rem; color: var(--muted); margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.article-body .sources-heading + ul { font-size: 0.88rem; color: var(--dim); }
.article-faq { margin-top: 2.5em; }
.article-faq h2 { color: var(--text); font-size: 1.55rem; margin: 0 0 0.8em; }
.translated-note { font-size: 0.85rem; color: var(--dim); margin-top: 32px; }

.article-aside { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1040px) { .article-aside { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; } }
.article-aside h2 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-family: var(--font-body); }
.toc ol, .aside-tools ul, .link-list { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line); }
.toc a, .aside-tools a, .link-list a { display: block; padding: 5px 0; padding-inline-start: 14px; margin-inline-start: -1px; border-inline-start: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.4; }
.toc a:hover, .aside-tools a:hover, .link-list a:hover { color: var(--text); border-color: var(--muted); }
.toc a.active { color: var(--gold); border-color: var(--gold); }
@media (max-width: 1039px) { .toc { display: none; } }
.aside-cta { border: 1px solid rgba(157, 123, 255, 0.35); border-radius: var(--radius); padding: 18px; background: linear-gradient(160deg, rgba(157, 123, 255, 0.12), var(--bg-1)); }
.aside-cta p { margin: 0 0 12px; font-size: 0.9rem; color: var(--text-2); }
.related h2 { margin-bottom: 20px; }

/* ---------- target pages ---------- */

.target-grid { display: grid; gap: 44px; padding-bottom: 48px; }
@media (min-width: 1000px) { .target-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.target-grid h2 { margin-bottom: 14px; font-size: 1.12rem; }
.target-table { max-width: 640px; }
.target-table td.num { font-size: 1rem; font-weight: 700; }
.target-table tr.best-row th, .target-table tr.best-row td { color: var(--good); }

/* ---------- gambling hub ---------- */

.gamble-hero { position: relative; padding-top: 56px; padding-bottom: 40px; }
.gamble-hero::before {
  content: ''; position: absolute; inset: -140px 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 340px at 15% 10%, rgba(157, 123, 255, 0.22), transparent 70%),
    radial-gradient(560px 320px at 85% 10%, rgba(255, 106, 31, 0.2), transparent 70%);
}
.gamble-hero h1 { max-width: 18ch; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.badges li { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badges li.age { border-color: rgba(255, 106, 31, 0.5); color: var(--orange); }

.cta-box {
  margin-top: 30px; padding: 26px; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 1px solid rgba(157, 123, 255, 0.35);
  background: linear-gradient(135deg, rgba(157, 123, 255, 0.16), rgba(255, 106, 31, 0.12) 60%, var(--bg-1));
  display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr);
}
.cta-box > * { min-width: 0; }
@media (min-width: 760px) { .cta-box { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.cta-box h2 { font-size: 1.35rem; margin-bottom: 6px; }
.cta-box p { margin: 0; color: var(--text-2); max-width: 40em; }
.cta-btn { background: linear-gradient(135deg, #9d7bff 0%, #ff6a1f 100%); color: #fff; box-shadow: 0 10px 30px rgba(157, 123, 255, 0.25); }
.cta-btn:hover { box-shadow: 0 12px 36px rgba(255, 106, 31, 0.35); }
.cta-sub { font-size: 0.8rem; color: var(--dim); margin: 8px 0 0 !important; text-align: center; }
.cta-box .cta-sub { text-align: start; }

.feature-grid { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 20px; }
.feature .tool-icon { margin-bottom: 12px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

.cta-inline { margin: 36px 0; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-1); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; max-width: 54em; }
.cta-inline p { margin: 0; color: var(--text-2); font-weight: 500; }

/* ---------- simple pages (about, privacy) ---------- */

.page-narrow { max-width: 760px; padding-top: 40px; padding-bottom: 72px; }
.page-narrow .lede { margin-bottom: 8px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding: 52px 0 32px; margin-top: 20px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 30em; margin: 14px 0 0; }
.footer-brand .logo { margin: 0; }
.site-footer h2 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer nav li { padding: 4px 0; }
.site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.site-footer nav a:hover { color: var(--text); }
.site-footer nav a.more { color: var(--gold); font-weight: 600; }
.footer-lang .lang-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; max-width: 360px; }
.footer-lang .lang-list a { padding: 4px 0; font-size: 0.88rem; }
.footer-lang .lang-list a:hover { background: none; }
.footer-bottom { display: grid; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--dim); }
.footer-bottom p { margin: 0; max-width: 72em; }
.footer-bottom a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: 999px;
  font: 600 0.9rem var(--font-body); opacity: 0; transition: opacity 0.15s, transform 0.15s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- embed ---------- */

body.embed { background: var(--bg); padding: 10px; }
body.embed .countdown { margin: 0; }
.embed-by { display: block; margin-top: 6px; text-align: end; font-size: 0.75rem; color: var(--dim); text-decoration: none; }
.embed-by:hover { color: var(--gold); }

/* ---------- small screens ---------- */

@media (max-width: 520px) {
  .wrap { padding-inline: 16px; }
  .table-scroll { margin: 0 -16px; padding: 0 16px; }
  .grid-input thead th { font-size: 0.68rem; padding-inline: 2px; }
  .grid-input thead th:first-child { width: 28%; }
  .grid-input td { padding-inline-start: 4px; }
  .btn.big, .cta-btn { white-space: normal; height: auto; min-height: 50px; padding: 12px 20px; text-align: center; line-height: 1.25; }
  .hero { padding-top: 40px; padding-bottom: 36px; }
  .stepper button { width: 42px; height: 42px; }
  .stepper input { width: 56px; height: 42px; }
  .row { gap: 10px; }
  .row-name { font-size: 0.95rem; }
  .cd-units { gap: 4px; }
  .countdown { padding: 22px 16px; }
  .seg span { height: 38px; padding: 0 12px; }
  .summary-inner { padding: 18px; }
  .total span { font-size: 2.3rem; }
  .btn.big { height: 50px; padding: 0 20px; font-size: 1rem; width: 100%; }
  .cta-box { padding: 20px; }
  .grid-input th[scope="row"] { font-size: 0.84rem; }
  .faq summary { padding: 13px 40px 13px 14px; }
  .faq .faq-a { padding: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .mobile-bar, .hero::before, .toc { display: none !important; } body { background: #fff; color: #000; } }
