/* SortyWeb - Block-Look: harte Kanten, Pixel-Bevels, eigene Block-Texturen */
:root {
  --bg: #0b0f1a;
  --bg2: #10162a;
  --slot: #182033;
  --slot2: #1f2a42;
  --ink: #05070c;
  --text: #eef3ff;
  --muted: #93a1c4;
  --c1: #00e5ff;
  --c2: #2979ff;
  --gold1: #ffc93c;
  --gold2: #ff8a00;
  --ok: #38ef7d;
  --bad: #ff5a6e;
  --b: 4px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--c1); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 600 .95em ui-monospace, Menlo, monospace; background: var(--ink); padding: 1px 6px; color: var(--c1); }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.warn { color: var(--gold1); }

/* pixel headings (SVG aus pixfont.py) */
.px { height: 1em; display: inline-block; vertical-align: middle; overflow: visible; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 400; }
h1 { font-size: 48px; }
h2 { font-size: 40px; margin: 0 0 14px; }
h3 { font-size: 24px; margin-bottom: 10px; }
.hero-title { font-size: 1em; }
.hero h1 { font-size: min(112px, calc((100vw - 48px) / 7.6)); filter: drop-shadow(0 0 28px rgba(0, 229, 255, .35)); }
.co-title { font-size: 1em; }
.sub { color: var(--muted); margin: 0 0 26px; max-width: 640px; }

/* GUI-Slot: das Grundelement, wie ein Inventar-Fenster */
.slot {
  background: var(--slot);
  border: var(--b) solid var(--ink);
  box-shadow: inset var(--b) var(--b) 0 rgba(255, 255, 255, .07), inset calc(var(--b) * -1) calc(var(--b) * -1) 0 rgba(0, 0, 0, .35);
  padding: 22px;
  position: relative;
}

/* Buttons mit Block-Kante */
.btn {
  --a: var(--c1); --z: var(--c2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 15px/1 system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35);
  background: linear-gradient(180deg, var(--a), var(--z));
  border: var(--b) solid var(--ink);
  box-shadow: inset 0 var(--b) 0 rgba(255, 255, 255, .35), inset 0 calc(var(--b) * -1) 0 rgba(0, 0, 0, .3), 0 var(--b) 0 var(--ink);
  padding: 14px 22px; cursor: pointer; text-decoration: none !important;
  transition: transform .06s, filter .12s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(var(--b)); box-shadow: inset 0 var(--b) 0 rgba(0, 0, 0, .25), 0 0 0 var(--ink); }
.btn:focus-visible, .ipbox:focus-visible, .ipchip:focus-visible, .pkg:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.gold { --a: var(--gold1); --z: var(--gold2); color: #2b1600; text-shadow: 1px 1px 0 rgba(255, 255, 255, .3); }
.btn.ghost { --a: #2a3654; --z: #1c253b; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.btn.pay { width: 100%; padding: 16px; }
.btn.pp { --a: #ffd140; --z: #f5a300; color: #142c8e; text-shadow: none; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 11, 20, .86); backdrop-filter: blur(10px); border-bottom: var(--b) solid var(--ink); }
.topin { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; text-decoration: none !important; }
.brand.small { font-size: 16px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 700; padding: 8px 12px; text-decoration: none; }
.nav a:hover, .nav a.on { color: #fff; background: var(--slot2); box-shadow: inset 0 -3px 0 var(--c1); }
.ipchip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--slot); color: var(--muted); font: 600 13px system-ui, sans-serif;
  border: 3px solid var(--ink); box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .06); padding: 7px 12px;
}
.ipchip b { color: #fff; }
.ipchip:hover { background: var(--slot2); }

.dot { width: 10px; height: 10px; background: var(--ok); display: inline-block; box-shadow: 0 0 0 2px var(--ink), 0 0 12px var(--ok); animation: blink 2s steps(2) infinite; }
.dot.off { background: var(--bad); box-shadow: 0 0 0 2px var(--ink); animation: none; }
@keyframes blink { 50% { opacity: .45; } }

/* Hero: Nachthimmel, Pixel-Sterne, Grasboden */
.hero { position: relative; padding: 90px 0 0; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #070a18 0%, #0d1838 55%, #18306a 100%); }
.hero.small { padding-top: 60px; }
.heroin { position: relative; z-index: 2; padding-bottom: 70px; }
.kicker { display: inline-block; margin: 0 0 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--c1); background: rgba(0, 229, 255, .08); border: 3px solid var(--ink); padding: 6px 12px; }
.lead { font-size: 19px; color: #c6d2f0; max-width: 640px; margin: 22px auto 30px; }
.herobtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.livebar { margin: 26px 0 0; color: var(--muted); display: inline-flex; gap: 10px; align-items: center; }
.livebar b { color: #fff; }
.sky i { position: absolute; width: 4px; height: 4px; background: #fff; opacity: .8; animation: blink 3s steps(2) infinite; }
.sky i:nth-child(1) { left: 8%; top: 14%; } .sky i:nth-child(2) { left: 22%; top: 38%; animation-delay: .7s; }
.sky i:nth-child(3) { left: 35%; top: 9%; animation-delay: 1.4s; } .sky i:nth-child(4) { left: 64%; top: 22%; animation-delay: .3s; }
.sky i:nth-child(5) { left: 78%; top: 11%; animation-delay: 1.1s; width: 6px; height: 6px; } .sky i:nth-child(6) { left: 90%; top: 34%; animation-delay: 1.8s; }
.sky i:nth-child(7) { left: 52%; top: 44%; animation-delay: 2.2s; } .sky i:nth-child(8) { left: 13%; top: 60%; animation-delay: .9s; }
.ground { height: 112px; position: relative; z-index: 1;
  background: url(px/block-grass.svg) 0 0 / 48px 48px repeat-x, url(px/block-dirt.svg) 0 48px / 48px 48px repeat;
  image-rendering: pixelated; border-top: var(--b) solid var(--ink); }
.hero.small .ground { height: 64px; }

/* IP-Box */
.ipbox { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer;
  background: rgba(5, 7, 12, .7); color: #fff; border: var(--b) solid var(--ink);
  box-shadow: inset var(--b) var(--b) 0 rgba(255, 255, 255, .08), 0 0 0 var(--b) rgba(0, 229, 255, .25), 0 0 40px rgba(0, 229, 255, .18);
  padding: 18px 34px; transition: box-shadow .15s, transform .06s; }
.ipbox:hover { box-shadow: inset var(--b) var(--b) 0 rgba(255, 255, 255, .08), 0 0 0 var(--b) var(--c1), 0 0 60px rgba(0, 229, 255, .35); }
.ipbox:active { transform: translateY(2px); }
.ipbox .ip { font-size: 40px; }
.ipbox.big .ip { font-size: 48px; }
.iplabel, .ipcopy { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ipcopy { color: var(--c1); }

/* Abschnitte */
.band { padding: 80px 0; }
.band.first { padding-top: 50px; }
.band.stone { background: linear-gradient(rgba(11, 15, 26, .86), rgba(11, 15, 26, .9)), url(px/block-stone.svg) 0 0 / 64px 64px;
  border-top: var(--b) solid var(--ink); border-bottom: var(--b) solid var(--ink); }
.grid2, .grid3, .grid4 { display: grid; gap: 20px; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.grid4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 50px; }
.feat h3 { font-size: 16px; margin-bottom: 12px; }
.feat p, .mode p { margin: 0; color: #c2cce6; }

.mode { padding-top: 26px; transition: transform .12s; }
.mode:hover { transform: translateY(-4px); }
.mode::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--b); background: linear-gradient(90deg, var(--c1), var(--c2)); }
.modeicon { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--ink); box-shadow: inset 4px 4px 0 rgba(255, 255, 255, .06), 0 0 30px color-mix(in srgb, var(--c1) 30%, transparent); }
.modeicon img { width: 64px; height: 64px; }
.modefoot { margin-top: 18px; padding-top: 14px; border-top: 3px solid var(--ink); display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.modefoot span:nth-child(2) { color: #fff; font-weight: 800; }

.badges { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; padding: 30px; margin-bottom: 20px; }
.badge { height: 36px; width: auto; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta p { margin: 0; color: #c2cce6; max-width: 620px; }

.join { background: linear-gradient(180deg, transparent, rgba(41, 121, 255, .08)); }
.joinin { text-align: center; }
.steps { list-style: none; padding: 0; margin: 10px 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.steps li { display: flex; gap: 16px; align-items: center; }
.steps b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 20px; color: #fff;
  background: linear-gradient(180deg, var(--c1), var(--c2)); border: 3px solid var(--ink); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .3); }

/* Shop */
.notice { color: var(--gold1); font-weight: 700; margin-bottom: 30px; }
.pkg { display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; transition: transform .12s, background .12s; }
.pkg:hover { transform: translateY(-4px); background: var(--slot2); }
.pkg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--b); background: var(--pc); }
.pkg.hl { box-shadow: inset var(--b) var(--b) 0 rgba(255, 255, 255, .07), inset calc(var(--b) * -1) calc(var(--b) * -1) 0 rgba(0, 0, 0, .35), 0 0 0 var(--b) var(--pc), 0 0 34px color-mix(in srgb, var(--pc) 35%, transparent); }
.pkg h3 { font-size: 24px; }
.pkg p { color: #b9c4e0; font-size: 14px; margin: 0 0 18px; flex: 1; }
.pkgtop { display: flex; justify-content: space-between; align-items: center; min-height: 44px; margin-bottom: 14px; }
.tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pc, var(--c1));
  background: var(--ink); padding: 5px 8px; }
.pkgfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price { font-size: 24px; }
.price.big { font-size: 40px; margin-left: auto; }
.fine p { margin: 0; color: var(--muted); font-size: 14px; }

.back { display: inline-block; margin-bottom: 18px; font-weight: 700; }
.checkout::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--b); background: var(--pc); }
.cohead { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.cohead h1 { font-size: 40px; margin-bottom: 8px; }
.coform { display: grid; gap: 16px; margin-top: 22px; }
.coform label { display: grid; gap: 8px; font-weight: 700; }
.coform small { color: var(--muted); font-weight: 400; }
.coform input[name=spieler] { font: 700 20px ui-monospace, Menlo, monospace; color: #fff; background: var(--ink);
  border: var(--b) solid #2a3654; padding: 12px 14px; outline: none; }
.coform input[name=spieler]:focus { border-color: var(--c1); }
.check { grid-template-columns: 28px 1fr; align-items: start; font-weight: 400 !important; color: #c2cce6; }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; background: var(--ink); border: 3px solid #2a3654; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--ok); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: rotate(-45deg) translate(1px, -1px); }
.paybtns { display: grid; gap: 12px; margin-top: 6px; }
.alert { background: rgba(0, 229, 255, .08); border: 3px solid var(--ink); border-left: 6px solid var(--c1); padding: 12px 14px; }
.alert.bad { background: rgba(255, 90, 110, .08); border-left-color: var(--bad); }
.result { text-align: center; padding: 40px 26px; }
.result h1 { font-size: 48px; margin-bottom: 18px; }
.result p { color: #c6d2f0; }
.legal h1 { font-size: 40px; margin-bottom: 24px; }
.legal h3 { font: 800 17px system-ui, sans-serif; margin: 26px 0 6px; }
.legal p { margin: 0; color: #c6d2f0; }

/* Fuss */
.foot { margin-top: 40px; }
.foot .ground { height: 72px; background: url(px/block-top.svg) 0 0 / 48px 48px repeat-x, url(px/block-stone.svg) 0 24px / 48px 48px repeat; }
.footin { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.foot { background: linear-gradient(180deg, #0a0d16, #070910); }
.foot p { font-size: 14px; max-width: 420px; }
.footlinks { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; align-content: start; }
.footlinks a { color: var(--muted); font-weight: 700; }
.copy { grid-column: 1 / -1; margin: 0; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 50;
  background: var(--ok); color: var(--ink); font-weight: 800; padding: 12px 20px; border: var(--b) solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .4); transition: transform .18s steps(4), visibility 0s .18s; visibility: hidden; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .18s steps(4); }

@media (max-width: 960px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .grid3, .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .ipchip { margin-left: auto; }
}
@media (max-width: 620px) {
  .grid2, .grid4 { grid-template-columns: 1fr; }
  h2 { font-size: 32px; }
  .brand { font-size: 18px; }
  .ipchip .hide-s { display: none; }
  .ipchip { padding: 7px 10px; }
  .ipbox { padding: 16px 20px; max-width: 100%; }
  .ipbox.big .ip, .ipbox .ip { font-size: 32px; }
  .footin { grid-template-columns: 1fr; }
  .footlinks { justify-content: flex-start; }
  .price.big { margin-left: 0; }
  .band { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Grids duerfen nicht ueberlaufen (breite Pixel-SVGs) */
.grid2 > *, .grid3 > *, .grid4 > * { min-width: 0; }
.pkgtop img { max-width: 62%; height: auto; max-height: 34px; }
.pkg h3 .px, .price .px { max-width: 100%; height: auto; }
.tag { white-space: nowrap; }
@media (max-width: 1100px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.cohead > div { min-width: 0; }
/* grosse Pixeltitel schrumpfen mit, statt ueberzulaufen (viewBox haelt das Seitenverhaeltnis) */
.co-title, .hero-title, h2 .px { max-width: 100%; height: auto; aspect-ratio: auto; }
