/* NoahSMP Shop: the same colours as noahsmp.de, the rank colours from the game */
:root {
  --bg: #0b0d18;
  --card: #141829;
  --card-2: #1b2036;
  --line: #262c47;
  --line-hover: #3b4570;
  --text: #e7e9f3;
  --soft: #c9cdf0;
  --muted: #9097b3;
  --blue: #1e90ff;
  --purple: #b44cff;
  --green: #3ddc84;
  --red: #ff5c6c;
  --amber: #f2b13c;
  --grad: linear-gradient(90deg, var(--blue), var(--purple));
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: radial-gradient(ellipse at top, #161a33 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
a { color: #7cb8ff; }
a:hover { color: #b9d9ff; }
code {
  font: 0.92em ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted, .hint { color: var(--muted); }
.hint { font-size: 14px; margin: 12px 0 0; }
.center { text-align: center; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 34px; }
h2 { font-size: 20px; }

/* ------------------------------------------------------------ pledge */

/* The first thing on the page, on purpose */
.pledge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--grad);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.35;
}
.pledge p { margin: 0; max-width: 820px; }
.pledge svg { flex: none; width: 20px; height: 20px; fill: #fff; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(11, 13, 24, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand img { display: block; width: auto; height: 40px; }
.tabs { display: flex; gap: 4px; background: var(--card); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 18px; border-radius: 999px; transition: color 0.15s, background-color 0.15s; }
.tabs a:hover { color: var(--text); background: var(--card-2); }
.account {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.account.on .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); }

/* -------------------------------------------------------------- main */

main { width: 100%; flex: 1; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; }

.banner { margin: 0 0 16px; padding: 12px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); text-align: center; color: var(--soft); }
.banner.preview { border-color: #5b4a1d; background: #241f12; color: #f6d58e; }
.banner.off { border-color: #5a2735; background: #261620; color: #ffb3bd; }

.hero { text-align: center; padding: 26px 0 22px; }
.hero h1 { margin-bottom: 8px; }
.lead { max-width: 620px; margin: 0 auto; color: var(--soft); font-size: 18px; }
.sale {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 18px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #2b1420;
  border: 1px solid #7a2a44;
  color: #ffd1dc;
}
.sale b { color: #fff; }
.sale span { font-variant-numeric: tabular-nums; font-size: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
}
.card p { margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- link */

.link-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 28px; }
.link-info h2 { margin-bottom: 4px; }
.link-info p { color: var(--muted); margin: 0; }
.link-form { display: flex; gap: 8px; }
.link-form input {
  width: 170px;
  flex: none;
  text-align: center;
  font: 700 20px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.linked { display: flex; align-items: center; gap: 12px; }
.linked b { display: block; font-size: 17px; }
.linked .muted { display: block; font-size: 14px; }
.head {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.link-card .msg { grid-column: 1 / -1; margin: 0; }
.link-card .msg:empty { display: none; }

/* ---------------------------------------------------------- sections */

.section { margin-top: 40px; scroll-margin-top: 80px; }
.section-head { font-size: 26px; text-align: center; margin-bottom: 4px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 20px; max-width: 640px; }

.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rank {
  --c: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--card)) 0%, var(--card) 45%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line));
  border-radius: var(--radius);
  padding: 24px;
}
.rank .badge { position: absolute; top: -12px; right: 18px; }
.prefix {
  align-self: flex-start;
  font: 800 15px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.06em;
  color: var(--c);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  border-radius: 6px;
  padding: 6px 10px;
  text-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent);
}
.prefix small { color: var(--muted); font-weight: 600; letter-spacing: 0; text-shadow: none; }
.rank h3 { font-size: 24px; margin: 14px 0 2px; }
.rank .desc { color: var(--muted); margin: 0 0 14px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 14px; }
.price b { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: 16px; }
.price em { width: 100%; font-style: normal; font-size: 13px; color: var(--green); }
.perks { list-style: none; padding: 0; margin: 0 0 20px; flex: 1; }
.perks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--soft); }
.perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--c);
  border-bottom: 2.5px solid var(--c);
  transform: rotate(-45deg);
}
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}
.blocked { margin: 0; padding: 9px 12px; border-radius: 8px; background: var(--card-2); color: var(--soft); font-size: 14px; text-align: center; }

.soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px 20px;
  border: 1px dashed var(--line-hover);
  border-radius: var(--radius);
  color: var(--soft);
  text-align: center;
}
.soon p { margin: 0; font-weight: 600; }
.soon svg { flex: none; width: 22px; height: 22px; fill: var(--amber); }

.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.key {
  --c: #ffffff;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s;
}
.key:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.key .badge { position: absolute; top: -12px; right: 14px; }
.key-icon { width: 44px; height: 44px; margin-bottom: 10px; }
.key-icon svg { width: 100%; height: 100%; fill: var(--c); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 40%, transparent)); }
.key h3 { font-size: 18px; margin: 0 0 4px; }
.key .desc { color: var(--muted); font-size: 14px; margin: 0 0 12px; flex: 1; }
.key .price b { font-size: 24px; }
/* The second row stays even without "Inhalt und Chancen": all buttons on one line */
.key .actions { display: grid; grid-template-rows: auto 22px; gap: 8px; }
.linkish { background: none; border: 0; padding: 0; color: #7cb8ff; font-weight: 600; font-size: 14px; text-align: left; }
.linkish:hover { color: #b9d9ff; filter: none; }

/* ------------------------------------------------------------ how to */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; margin: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
}
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0; }
.pm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  background: #fff;
  color: #1a1f36;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.pm.paypal { color: #003087; font-style: italic; }
.pm.visa { color: #1a1f71; font-style: italic; letter-spacing: 0.06em; }
.pm.mc { font-weight: 700; color: #222; }
.pm.mc i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #eb001b; }
.pm.mc i + i { margin-left: -12px; background: #f79e1b; mix-blend-mode: multiply; }
.pm.psc { color: #fff; background: #008ac9; font-style: normal; text-transform: lowercase; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--soft); }

/* ------------------------------------------------------------ order */

.order { display: flex; gap: 18px; align-items: flex-start; border-color: var(--line-hover); }
.order h2 { margin-bottom: 4px; }
.order p { color: var(--soft); }
.order-icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); }
.order-icon::after { content: ""; }
.order.wait .order-icon { border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.9s linear infinite; }
.order.done .order-icon { background: var(--green); }
.order.done .order-icon::after { width: 16px; height: 9px; border-left: 3px solid #0b0d18; border-bottom: 3px solid #0b0d18; transform: translateY(-2px) rotate(-45deg); }
.order.bad .order-icon { background: var(--red); }
.order.bad .order-icon::after { content: "!"; color: #0b0d18; font-weight: 900; font-size: 24px; }
.order.done { border-color: #1f6b46; }
.order.bad { border-color: #5a2735; }
@keyframes spin { to { transform: rotate(360deg); } }

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

button, .btn {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--grad);
  border: 0;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: filter 0.15s;
}
button:hover { filter: brightness(1.12); }
button.ghost { background: var(--card-2); border: 1px solid var(--line); }
button:disabled { opacity: 0.55; cursor: default; filter: none; }
button.buy { width: 100%; padding: 11px 16px; font-size: 16px; }
.rank button.buy { background: var(--c); color: #0b0d18; font-weight: 800; }
.link-form input::placeholder { letter-spacing: 0.08em; }
button.icon { width: 34px; height: 34px; padding: 0; font-size: 22px; line-height: 1; }

input {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 0;
}
input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
label { font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--soft); cursor: pointer; }
.check input { flex: none; margin-top: 3px; width: 17px; height: 17px; accent-color: var(--blue); }
.msg { font-size: 14px; min-height: 1.4em; margin: 6px 0 0; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.stack { display: grid; gap: 12px; }

/* ------------------------------------------------------------ dialog */

dialog {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 24px;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-hover);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
dialog::backdrop { background: rgba(5, 6, 14, 0.72); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 14px; right: 14px; margin: 0; }
dialog h2 { padding-right: 40px; margin-bottom: 2px; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; margin: 16px 0 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; text-align: right; }
.sum .discount { color: var(--green); }
.sum .total { color: var(--text); font-weight: 700; font-size: 18px; padding-top: 6px; }
.methods { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.methods legend { font-size: 14px; color: var(--muted); margin-bottom: 4px; padding: 0; }
.method {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}
.method:has(input:checked) { border-color: var(--blue); background: #111a33; }
.method input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; }
.odds { list-style: none; padding: 0; margin: 14px 0 0; }
.odds li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.odds li:last-child { border-bottom: 0; }
.odds b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--soft); white-space: nowrap; }

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

footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; padding: 20px 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: 14px; }
footer a { color: var(--muted); }
footer .disclaimer { width: 100%; text-align: center; font-size: 12px; }

/* ------------------------------------------------------- legal pages */

main.legal { max-width: 780px; margin: 0 auto; padding: 24px 16px 48px; }
main.legal h2 { margin-top: 4px; }
main.legal ul, main.legal ol { padding-left: 20px; }
main.legal li { margin-bottom: 6px; }
main.legal .sub { color: var(--muted); }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 860px) {
  .top { grid-template-columns: auto 1fr; }
  .top .tabs { display: none; }
  .link-card { grid-template-columns: 1fr; }
  .link-form input { flex: 1; width: auto; }
}

@media (max-width: 520px) {
  h1 { font-size: 28px; }
  .pledge { font-size: 14px; padding: 9px 12px; }
  .card, .rank { padding: 18px; }
  .brand img { height: 32px; }
  .account { padding: 6px 12px; font-size: 13px; }
  .linked { flex-wrap: wrap; }
  .lead { font-size: 16px; }
}

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