/* getrarely.app: Design M „Die Menge“ wie die App (Farben aus dem Asset-Katalog, Systemschrift, ein Orange). */

:root {
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --fg: #111111;
  --muted: #6F6F6F;
  --line: #EBEBEB;
  --accent: #FF4D2E;
  --accent-text: #E5381A; /* Orange für kleine Schrift auf Weiß (Kontrast) */
  --dot: #E2E2E2;
  --dot-same: #111111;
  --tier-common: #E2E2E2;
  --tier-uncommon: #CFCFCF;
  --tier-rare: #B5B5B5;
  --tier-epic: #FF8466;
  --tier-legendary: #FF4D2E;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0E0F;
    --surface: #1A1A1C;
    --fg: #F5F5F5;
    --muted: #A0A0A5;
    --line: #2A2A2D;
    --accent: #FF5A3C;
    --accent-text: #FF6A4D;
    --dot: #2E2E31;
    --dot-same: #F5F5F5;
    --tier-common: #3C3C40;
    --tier-uncommon: #505055;
    --tier-rare: #6A6A6F;
    --tier-epic: #E8735A;
    --tier-legendary: #FF5A3C;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, pre { margin: 0; }
button, input { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 10px 14px; border-radius: 10px; background: var(--fg); color: var(--bg); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent-text); }

/* Kopf */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.soon { font-size: 15px; color: var(--muted); }

/* Erster Bildschirm: Text links, Probefrage rechts */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-block: clamp(32px, 7vw, 96px) clamp(64px, 9vw, 128px);
}
.hero-text { display: grid; gap: 20px; padding-top: 8px; }
h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(54px, 6.9vw, 100px);
  line-height: 0.93;
  letter-spacing: -0.045em;
  margin-top: 4px;
}
.hook { font-size: clamp(21px, 2.1vw, 26px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-top: 8px; }
.lead { color: var(--muted); max-width: 34em; }
.facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* Probefrage */
.probe-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.probe {
  background: var(--bg);
  border: 1.5px solid var(--fg);
  border-radius: 28px;
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}
.probe-head { display: flex; align-items: center; gap: 14px; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps i { height: 4px; border-radius: 2px; background: var(--line); }
.steps i.done { background: var(--fg); }
.steps i.now { background: var(--accent); }
.count { font-size: 15px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

.ask { display: grid; gap: 10px; }
.question {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.answer { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--fg); margin-top: 18px; padding-bottom: 8px; }
.answer input {
  flex: 1;
  min-width: 0;
  width: 0; /* sonst hält Safari die Standardbreite des Feldes und drückt die Karte über den Rand */
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  outline: none;
}
.answer input::placeholder { color: var(--tier-rare); font-weight: 600; }
.go {
  flex: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .12s ease;
}
.go:active { transform: scale(.94); }
.quiet { justify-self: start; border: 0; background: none; padding: 6px 0; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.quiet:hover { color: var(--fg); }

.reveal { display: grid; gap: 6px; }
.hit { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.hit-name { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.035em; line-height: 1.05; overflow-wrap: anywhere; }
.hit-points { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hit-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.hit-share.rare { color: var(--accent-text); font-weight: 600; }
.tier { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: var(--tier-rare); }
.tier.epic { background: var(--tier-epic); }
.tier.legendary { background: var(--tier-legendary); }
.tier.common, .tier.uncommon { color: var(--fg); background: var(--tier-uncommon); }
.miss .hit-name { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }

/* Die Menge: 100 Spieler als Punkte, die mit derselben Antwort werden dunkel, du bist orange */
.crowd { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: clamp(4px, .8vw, 8px); }
.crowd i { aspect-ratio: 1; border-radius: 50%; background: var(--dot); transition: background-color .35s ease; }
.crowd i.same { background: var(--dot-same); }
.crowd i.you { background: var(--accent); }
.crowd i.you.miss { background: var(--tier-rare); }
.crowd-text { font-size: 15px; color: var(--muted); min-height: 1.5em; margin-top: -10px; }
.crowd-text:empty { display: none; }

.most-title { font-size: 15px; font-weight: 600; color: var(--muted); }
.most { list-style: none; padding: 0; display: grid; gap: 12px; margin: 6px 0 14px; }
.most li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.most .n { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.most .p { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.most .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.most .bar span { display: block; height: 100%; min-width: 6px; border-radius: 3px; background: var(--tier-rare); }
.most li.mine .n { color: var(--accent-text); }
.most li.mine .bar span { background: var(--accent); }

.block {
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--fg);
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease;
}
.block:active { transform: scale(.985); }

.end { display: grid; gap: 10px; }
.total { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 9vw, 112px); line-height: .9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.total span + span { font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.different { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.different b { color: var(--accent-text); }
.squares { font-size: 26px; letter-spacing: 2px; }
.end-note { color: var(--muted); margin-bottom: 8px; }

.probe-note { font-size: 14px; color: var(--muted); padding-inline: 6px; }

.probe[data-state="antwort"] .ask, .probe[data-state="ende"] .ask { display: none; }
.probe[data-state="ende"] .crowd, .probe[data-state="ende"] .crowd-text { display: none; }

/* So geht's */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.how-text { display: grid; gap: 36px; }
.steps-list { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 22px; max-width: 34em; }
.steps-list li { counter-increment: s; position: relative; padding-left: 40px; color: var(--muted); }
.steps-list li::before { content: counter(s); position: absolute; left: 0; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.steps-list b { display: block; }
.steps-list b { color: var(--fg); font-weight: 700; }
.shots { display: flex; gap: 20px; }
.shots figure { width: 250px; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--bg); }
.shots figure:last-child { margin-top: 48px; }

/* Punkteleiter */
.ladder { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); display: grid; gap: 14px; }
.ladder .sub { font-size: 20px; font-weight: 700; margin-top: 22px; }
.ladder-list { list-style: none; padding: 0; display: grid; }
.ladder-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 90px 72px;
  align-items: center;
  gap: 20px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.ladder-list .n { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.ladder-list .bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.ladder-list .bar span { display: block; height: 100%; min-width: 8px; border-radius: 4px; background: var(--tier-rare); }
.ladder-list .p { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.ladder-list .pts { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; text-align: right; font-variant-numeric: tabular-nums; }
.ladder-list .t { display: block; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.ladder-list li.epic .bar span { background: var(--tier-epic); }
.ladder-list li.legendary .bar span { background: var(--tier-legendary); }
.ladder-list li.legendary .pts { color: var(--accent-text); }
.ladder-note { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* Duell: schwarze Karte wie in der App */
.duel { padding-block: clamp(24px, 4vw, 48px); }
.duel-card {
  background: #111111;
  color: #F5F5F5;
  border-radius: 32px;
  padding: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
@media (prefers-color-scheme: dark) { .duel-card { background: #1A1A1C; } }
.duel-text { display: grid; gap: 18px; }
.duel-text p:not(.dots) { color: #B4B4B8; font-size: 19px; max-width: 26em; }
.dots { display: flex; gap: 8px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: #FF4D2E; }
.dots i + i { background: #F5F5F5; }
.duel h2 { color: #F5F5F5; }
.share { display: grid; gap: 10px; }
.share figcaption { font-size: 15px; font-weight: 600; color: #A0A0A5; }
.share pre {
  font: 17px/1.6 var(--font);
  white-space: pre-wrap;
  background: #232325;
  border-radius: 20px;
  padding: 20px 22px;
  color: #F5F5F5;
}

/* Was drin ist */
.more { padding-block: clamp(56px, 8vw, 112px); }
.more-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.more-list div { padding-block: 22px 26px; border-top: 1.5px solid var(--fg); display: grid; gap: 8px; align-content: start; }
.more-list dt { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.more-list dd { color: var(--muted); }

/* Schluss */
.last { display: grid; justify-items: center; text-align: center; gap: 14px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); }
.last img { border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.last p { color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 28px 40px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot nav { display: flex; gap: 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .shots { justify-content: center; }
  .duel-card { grid-template-columns: minmax(0, 1fr); }
  .more-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .soon { font-size: 13px; text-align: right; }
  .probe { border-radius: 24px; }
  .answer input { font-size: 22px; }
  .shots { gap: 12px; }
  .shots figure { width: calc(50% - 6px); border-radius: 22px; }
  .shots figure:last-child { margin-top: 28px; }
  .ladder-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .ladder-list .bar { grid-column: 1 / -1; grid-row: 2; }
  .ladder-list .p { grid-column: 1; grid-row: 3; text-align: left; font-size: 15px; margin-top: -4px; }
  .ladder-list .pts { grid-column: 2; grid-row: 1; }
  .more-list { grid-template-columns: minmax(0, 1fr); }
  .duel-card { border-radius: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 404 */
.lost { display: grid; gap: 20px; padding-block: clamp(48px, 10vw, 140px); }
.block-link { display: inline-flex; align-items: center; height: 56px; padding-inline: 28px; border-radius: 16px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; margin-top: 8px; }

/* Rechtsseiten (privacy, support aus kit legal; impressum) */
.legal { width: 100%; max-width: 1180px; margin-inline: auto; padding: clamp(32px, 6vw, 80px) var(--gutter) clamp(56px, 8vw, 112px); display: grid; gap: clamp(40px, 6vw, 72px); }
.legal-head { display: grid; gap: 14px; max-width: 46em; }
.legal-head h1 { font-size: clamp(48px, 7vw, 88px); }
.legal-head p:not(.eyebrow) { color: var(--muted); }
.legal h2 { font-size: clamp(28px, 3.4vw, 40px); }
.legal-short { display: grid; gap: 24px; }
.legal-short dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.legal-short dl div { padding-block: 18px 22px; border-top: 1.5px solid var(--fg); display: grid; gap: 6px; align-content: start; }
.legal-short dt { font-weight: 700; }
.legal-short dd { color: var(--muted); font-size: 16px; }
.legal-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal-toc { position: sticky; top: 24px; display: grid; gap: 12px; }
.legal-toc p { font-size: 15px; font-weight: 600; color: var(--muted); }
.legal-toc ol { list-style: none; padding: 0; display: grid; gap: 8px; }
.legal-toc a { display: grid; grid-template-columns: 40px 1fr; text-decoration: none; color: var(--muted); font-size: 15px; }
.legal-toc a:hover { color: var(--fg); }
.legal-toc .n { color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.legal-text { max-width: 44em; line-height: 1.6; }
.legal-text h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; scroll-margin-top: 24px; }
.legal-text h2:first-child { margin-top: 0; }
.legal-text .sec { color: var(--accent-text); margin-right: 10px; }
.legal-text p, .legal-text ul { margin-bottom: 14px; }
.legal-text ul { padding-left: 1.2em; }
.legal-text li { margin-bottom: 6px; }
.legal-text a, .legal-faq a, .legal-mail a { text-underline-offset: 3px; }
.legal-faq { display: grid; max-width: 52em; }
.legal-faq h2 { margin-bottom: 18px; }
.legal-faq details { border-top: 1px solid var(--line); }
.legal-faq details:last-of-type { border-bottom: 1px solid var(--line); }
.legal-faq summary { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.legal-faq summary::-webkit-details-marker { display: none; }
.legal-faq summary::after { content: "+"; color: var(--accent-text); font-weight: 600; }
.legal-faq details[open] summary::after { content: "–"; }
.legal-faq details p { color: var(--muted); padding-bottom: 20px; max-width: 40em; }
.legal-mail { background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 12px; max-width: 52em; }
.legal-mail p { color: var(--muted); }
.legal-mail p:last-child a { color: var(--fg); font-weight: 700; font-size: 20px; }

@media (max-width: 800px) {
  .legal-short dl { grid-template-columns: 1fr; }
  .legal-body { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}
