:root {
  --bg: #070808;
  --panel: #101413;
  --panel-strong: #171c1a;
  --line: rgba(255, 255, 255, 0.18);
  --text: #f4f6ef;
  --muted: #abb2a6;
  --red: #ff2b2b;
  --red-dark: #a80f18;
  --acid: #a6ff3f;
  --gold: #ffb82f;
  --cyan: #42d7ff;
  --shadow: 8px 8px 0 rgba(0, 0, 0, 0.72);
  --pixel-border: 3px solid #050606;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.09), transparent 34rem),
    repeating-linear-gradient(90deg, rgba(166, 255, 63, 0.025) 0 16px, transparent 16px 32px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 16px, transparent 16px 32px),
    var(--bg);
  font-family: "Courier New", Consolas, monospace;
  letter-spacing: 0;
  image-rendering: pixelated;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 6px, transparent 6px 12px),
    rgba(7, 8, 8, 0.92);
  border-bottom: 4px solid #1f2521;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #141707;
  background: var(--acid);
  border: var(--pixel-border);
  box-shadow: 4px 4px 0 #203407;
  font-weight: 900;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #101413;
  border: var(--pixel-border);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.66);
}

.nav a {
  min-width: 76px;
  padding: 10px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--text);
  background: #202923;
}

.header-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-cta {
  padding: 12px 18px;
  color: #ffffff;
  background: var(--red);
  border: var(--pixel-border);
  font-weight: 900;
  box-shadow: 5px 5px 0 var(--red-dark);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 118px clamp(18px, 6vw, 88px) 56px;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 42%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
}

.embers,
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-scene {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 2px, transparent 2px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 2px, transparent 2px),
    repeating-linear-gradient(45deg, rgba(255, 43, 43, 0.1) 0 18px, transparent 18px 36px),
    #0b0c0c;
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.sky-crack {
  position: absolute;
  background: var(--acid);
  box-shadow: 0 0 34px rgba(166, 255, 63, 0.7);
  transform: skewX(-22deg);
  opacity: 0.58;
}

.sky-crack-one {
  top: 16%;
  right: 19%;
  width: 220px;
  height: 8px;
}

.sky-crack-two {
  top: 22%;
  right: 13%;
  width: 130px;
  height: 6px;
}

.floating-block {
  position: absolute;
  width: 82px;
  height: 82px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(45deg, #5a341d 50%, #2d2115 50%);
  border: var(--pixel-border);
  box-shadow: var(--shadow);
  animation: floatBlock 1.8s steps(2, end) infinite;
}

.block-one {
  top: 24%;
  right: 31%;
}

.block-two {
  top: 52%;
  right: 12%;
  width: 112px;
  height: 112px;
  animation-delay: -1.4s;
}

.block-three {
  bottom: 24%;
  left: 8%;
  width: 66px;
  height: 66px;
  animation-delay: -2.6s;
}

.hero-sword {
  position: absolute;
  right: clamp(46px, 12vw, 170px);
  bottom: 16%;
  width: 170px;
  height: 410px;
  transform: rotate(36deg);
  filter: drop-shadow(0 26px 55px rgba(255, 43, 43, 0.3));
}

.blade,
.guard,
.handle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.blade {
  top: 0;
  width: 44px;
  height: 270px;
  background:
    linear-gradient(90deg, transparent 0 12px, #eafcff 12px 22px, transparent 22px),
    #42d7ff;
  clip-path: polygon(50% 0, 100% 10%, 100% 100%, 0 100%, 0 10%);
}

.guard {
  top: 262px;
  width: 156px;
  height: 34px;
  background: linear-gradient(90deg, var(--red-dark) 0 33%, var(--red) 33% 66%, var(--gold) 66%);
  border: var(--pixel-border);
}

.handle {
  top: 294px;
  width: 34px;
  height: 104px;
  background: repeating-linear-gradient(180deg, #141414 0 12px, #36301a 12px 22px);
}

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 116px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.92;
}

.ground span {
  background:
    linear-gradient(180deg, #2f5b26 0 18px, #56321e 18px 58px, #251811 58px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 26px);
  border-top: 3px solid rgba(166, 255, 63, 0.45);
}

.hero-content {
  max-width: 760px;
}

.kicker,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker::before,
.section-label::before {
  width: 22px;
  height: 8px;
  content: "";
  background: var(--red);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.5rem, 14vw, 10.5rem);
  line-height: 0.82;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 rgba(255, 43, 43, 0.32), 0 0 42px rgba(255, 43, 43, 0.28);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.12;
}

.hero-lead {
  max-width: 640px;
  color: #e2e7dc;
  font-size: clamp(1.06rem, 2vw, 1.35rem);
  line-height: 1.55;
  text-shadow: 3px 3px 0 #050606;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.primary-action,
.secondary-action,
.shop-item button,
.register-form button,
.footer-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border: 0;
  padding: 14px 20px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
}

.primary-action {
  background: var(--red);
  border: var(--pixel-border);
  box-shadow: 6px 6px 0 var(--red-dark);
}

.secondary-action {
  background: #171c1a;
  border: var(--pixel-border);
  box-shadow: 6px 6px 0 #050606;
}

.button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--acid);
}

.server-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  border: var(--pixel-border);
  background: rgba(7, 8, 8, 0.92);
  box-shadow: var(--shadow);
}

.server-strip div {
  min-width: 0;
  padding: 18px;
  border-right: 3px solid #242b26;
}

.server-strip div:last-child {
  border-right: 0;
}

.server-strip span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.server-strip strong {
  display: block;
  overflow-wrap: anywhere;
}

.quick-start {
  background: repeating-linear-gradient(90deg, #101413 0 18px, #141a17 18px 36px);
  border-block: 4px solid #242b26;
}

.quick-start-inner {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px clamp(18px, 5vw, 42px);
}

.quick-start h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 18px;
  min-height: 144px;
  background: #101413;
  border: var(--pixel-border);
  box-shadow: 5px 5px 0 #050606;
  color: #d8ded2;
  line-height: 1.42;
}

.steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 92px clamp(18px, 5vw, 42px);
  scroll-margin-top: 96px;
}

.section-head {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-head p,
.register-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.feature-grid,
.shop-grid,
.rules-list {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.shop-item,
.rules-list article,
.register-form {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    var(--panel);
  background-size: 16px 16px;
  border: var(--pixel-border);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 260px;
  padding: 24px;
}

.feature-card p,
.shop-item p,
.rules-list p {
  color: var(--muted);
  line-height: 1.52;
}

.feature-icon {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  background: #151918;
  border: var(--pixel-border);
  box-shadow: 4px 4px 0 #050606;
}

.feature-icon::before,
.feature-icon::after {
  position: absolute;
  content: "";
}

.sword-icon::before {
  left: 24px;
  top: 8px;
  width: 7px;
  height: 36px;
  background: var(--cyan);
  transform: rotate(42deg);
}

.sword-icon::after {
  left: 12px;
  top: 29px;
  width: 30px;
  height: 7px;
  background: var(--red);
  transform: rotate(42deg);
}

.clan-icon::before {
  inset: 12px;
  border: 4px solid var(--acid);
}

.clan-icon::after {
  left: 18px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--red);
}

.economy-icon::before {
  inset: 11px;
  border: 5px solid var(--gold);
}

.economy-icon::after {
  left: 24px;
  top: 14px;
  width: 5px;
  height: 24px;
  background: var(--gold);
}

.shield-icon::before {
  left: 13px;
  top: 8px;
  width: 26px;
  height: 34px;
  background: linear-gradient(135deg, var(--cyan), #134b5b);
  clip-path: polygon(50% 0, 100% 18%, 88% 78%, 50% 100%, 12% 78%, 0 18%);
}

.event-icon::before {
  left: 9px;
  top: 17px;
  width: 34px;
  height: 20px;
  background: var(--red);
}

.event-icon::after {
  left: 18px;
  top: 9px;
  width: 16px;
  height: 34px;
  background: var(--gold);
}

.launcher-icon::before {
  left: 10px;
  top: 12px;
  width: 32px;
  height: 26px;
  border: 4px solid var(--acid);
}

.launcher-icon::after {
  right: 9px;
  bottom: 8px;
  width: 14px;
  height: 5px;
  background: var(--red);
}

.shop-section {
  max-width: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 43, 43, 0.08) 0 16px, transparent 16px 32px),
    #0c0d0d;
}

.shop-section .section-head,
.shop-tabs,
.shop-grid {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.shop-tab {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--muted);
  background: #101413;
  border: var(--pixel-border);
  box-shadow: 4px 4px 0 #050606;
  cursor: pointer;
  font-weight: 900;
}

.shop-tab.active {
  color: #101010;
  background: var(--acid);
  border-color: transparent;
  box-shadow: 4px 4px 0 #345b10;
}

.shop-grid {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-grid.active {
  display: grid;
}

.shop-item {
  position: relative;
  min-height: 430px;
  padding: 26px;
  overflow: hidden;
  --accent: var(--red);
}

.shop-item::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--accent), #f5fff1);
  pointer-events: none;
}

.shop-item::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  content: "";
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.16) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.16) 46% 54%, transparent 54%),
    rgba(255, 43, 43, 0.18);
  transform: rotate(0deg);
}

.shop-item.featured {
  border-color: rgba(166, 255, 63, 0.54);
  box-shadow: 8px 8px 0 #345b10;
}

.rank-killer {
  --accent: #ff4b59;
}

.rank-killer::before {
  background: linear-gradient(90deg, #ff3f4f 0%, #ff6a72 45%, #f5fff1 100%);
}

.rank-ghost {
  --accent: #21d66c;
}

.rank-titan,
.rank-onix,
.case-coins {
  --accent: #ff7a2c;
}

.rank-void {
  --accent: #5c9cff;
}

.rank-custom {
  --accent: #ff4e68;
}

.case-donate {
  --accent: #b966ff;
}

.case-rubies {
  --accent: #e33cff;
}

.currency-coins {
  --accent: #ffb82f;
}

.currency-rubies {
  --accent: #e33cff;
}

.currency-vault {
  --accent: #a6ff3f;
}

.tag {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 7px 10px;
  color: #0d1009;
  background: var(--gold);
  border: 2px solid #050606;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.shop-item strong {
  display: block;
  margin: 24px 0 18px;
  color: var(--acid);
  font-size: 2rem;
  line-height: 1;
}

.shop-item h3 {
  margin: 22px 0 28px;
  color: var(--accent);
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.82);
}

.price-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  background: rgba(2, 12, 6, 0.68);
  border: 2px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.price-list li.selected {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 #050606;
}

.price-list span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-list strong {
  margin: 0;
  color: #f8fff5;
  font-size: clamp(1.45rem, 2.5vw, 2.15rem);
  text-shadow: 3px 3px 0 #050606;
}

.case-prices li {
  grid-template-columns: minmax(78px, 1fr) minmax(82px, auto) minmax(76px, auto);
  gap: 8px;
  min-height: 64px;
  white-space: nowrap;
}

.rank-prices li {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "period price"
    "period rate";
  gap: 2px 12px;
  min-height: 76px;
  white-space: nowrap;
}

.case-prices span,
.case-prices strong,
.case-prices em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.case-prices em {
  min-width: 76px;
  padding-left: 10px;
  color: var(--muted);
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.case-prices strong {
  min-width: 82px;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  justify-content: flex-end;
  text-align: right;
}

.rank-prices span,
.rank-prices strong,
.rank-prices em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.rank-prices span {
  grid-area: period;
}

.rank-prices strong {
  grid-area: price;
  min-width: 74px;
  justify-content: flex-end;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.rank-prices em {
  grid-area: rate;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.currency-prices li {
  grid-template-columns: minmax(110px, 1fr) minmax(96px, auto);
  white-space: nowrap;
}

.currency-prices span,
.currency-prices strong,
.currency-prices em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.currency-prices strong {
  color: var(--accent);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  justify-content: flex-end;
  text-align: right;
}

.coin-prices li,
.ruby-prices li {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "amount price"
    "amount rate";
  gap: 2px 12px;
  min-height: 76px;
}

.currency-prices em {
  min-width: 0;
  padding-left: 0;
  color: var(--muted);
  border-left: 0;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.coin-prices span,
.ruby-prices span {
  grid-area: amount;
}

.coin-prices strong,
.ruby-prices strong {
  grid-area: price;
  min-width: 58px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.coin-prices em,
.ruby-prices em {
  grid-area: rate;
  justify-content: flex-end;
  text-align: right;
}

.shop-item button,
.register-form button,
.footer-copy {
  width: 100%;
  background: var(--red);
  border: var(--pixel-border);
  box-shadow: 5px 5px 0 var(--red-dark);
}

.shop-item button {
  position: relative;
  z-index: 1;
  color: var(--accent);
  background: rgba(10, 13, 13, 0.9);
  border-color: var(--accent);
  box-shadow: 5px 5px 0 #050606;
  text-transform: uppercase;
}

.shop-item .details-button {
  margin-top: 14px;
  color: var(--muted);
  background: rgba(2, 12, 6, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.shop-item .details-button[aria-expanded="true"] {
  color: #050606;
  background: var(--accent);
  border-color: var(--accent);
}

.privilege-details {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 16px;
  background: rgba(2, 12, 6, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.privilege-details ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privilege-details li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.privilege-details code {
  color: var(--accent);
  font-family: inherit;
  font-weight: 900;
}

.shop-note {
  grid-column: 1 / -1;
  max-width: 760px;
  margin: 12px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.5;
}

.rules-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-section {
  max-width: none;
  background:
    linear-gradient(90deg, rgba(166, 255, 63, 0.035) 50%, transparent 50%),
    linear-gradient(0deg, rgba(166, 255, 63, 0.035) 50%, transparent 50%),
    #080d0a;
  background-size: 28px 28px;
  border-block: 4px solid #152218;
}

.rules-section .section-head,
.rules-section .rules-list {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.rules-list article {
  position: relative;
  min-height: 235px;
  padding: 24px;
  overflow: hidden;
}

.rules-list article::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold), var(--acid));
}

.rules-list span {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.register-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 42px;
  align-items: start;
}

.register-copy {
  max-width: 520px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.social-links a {
  padding: 12px 14px;
  background: #101413;
  border: var(--pixel-border);
  box-shadow: 4px 4px 0 #050606;
  color: var(--text);
  font-weight: 800;
}

.social-links a:hover {
  border-color: rgba(166, 255, 63, 0.5);
}

.register-form {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 32px);
}

.register-form label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.register-form input {
  width: 100%;
  min-height: 52px;
  border: var(--pixel-border);
  padding: 0 14px;
  color: var(--text);
  background: #080a0a;
  outline: none;
}

.register-form input:focus {
  border-color: var(--acid);
  box-shadow: 4px 4px 0 #345b10;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.login-form h3 {
  margin: 0;
  color: var(--acid);
  font-size: 1.25rem;
  text-transform: uppercase;
}

.account-panel {
  grid-column: 1 / -1;
  padding: clamp(20px, 4vw, 32px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    #101413;
  background-size: 16px 16px;
  border: var(--pixel-border);
  box-shadow: var(--shadow);
}

.account-panel[hidden] {
  display: none;
}

.account-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 3px solid #242b26;
}

.account-head h2 {
  margin: 8px 0 8px;
}

.account-head p {
  margin: 0;
  color: var(--muted);
}

.logout-button {
  min-height: 46px;
  border: var(--pixel-border);
  padding: 10px 14px;
  color: var(--text);
  background: #171c1a;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.account-orders {
  display: grid;
  gap: 14px;
  padding-top: 20px;
}

.account-empty {
  margin: 0;
  color: var(--muted);
}

.account-order {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: rgba(2, 12, 6, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.account-order-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.account-order h3 {
  margin: 0 0 5px;
  color: var(--acid);
  font-size: 1rem;
}

.account-order p,
.account-order ul {
  margin: 0;
  color: var(--muted);
}

.account-order ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 2px solid #050606;
  padding: 4px 8px;
  color: #050606;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-status.delivered {
  background: var(--acid);
}

.order-status.failed {
  color: var(--text);
  background: var(--red);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: #050606;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 7px 0 0;
  color: var(--muted);
}

.footer-copy {
  max-width: 220px;
}

.cart-toggle {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: var(--pixel-border);
  padding: 10px 14px;
  color: #050606;
  background: var(--acid);
  box-shadow: 5px 5px 0 #345b10;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-toggle strong {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  color: #ffffff;
  background: var(--red);
  border: 2px solid #050606;
}

.cart-panel {
  position: fixed;
  z-index: 48;
  top: 92px;
  right: 22px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(390px, calc(100vw - 28px));
  max-height: calc(100vh - 120px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 50%, transparent 50%),
    #101413;
  background-size: 16px 16px;
  border: var(--pixel-border);
  box-shadow: var(--shadow);
}

.cart-panel[hidden] {
  display: none;
}

.cart-head,
.cart-total,
.cart-actions {
  padding: 16px;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #242b26;
}

.cart-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cart-close {
  width: 38px;
  height: 38px;
  border: var(--pixel-border);
  color: var(--text);
  background: #171c1a;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: auto;
  padding: 16px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  background: rgba(2, 12, 6, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.cart-line h3 {
  margin: 0 0 6px;
  color: var(--acid);
  font-size: 1rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cart-line strong {
  color: #f8fff5;
  white-space: nowrap;
}

.cart-remove {
  grid-column: 1 / -1;
  justify-self: start;
  border: 0;
  padding: 0;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 3px solid #242b26;
  color: var(--muted);
  font-weight: 900;
}

.cart-total strong {
  color: var(--acid);
  font-size: 1.45rem;
}

.cart-player {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cart-player input {
  width: 100%;
  border: var(--pixel-border);
  padding: 12px;
  color: var(--text);
  background: #070909;
  outline: 0;
}

.cart-player input:focus {
  border-color: var(--acid);
  box-shadow: 4px 4px 0 rgba(40, 240, 24, 0.25);
}

.cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 0;
}

.cart-checkout,
.cart-clear {
  min-height: 48px;
  border: var(--pixel-border);
  cursor: pointer;
  font-weight: 900;
}

.cart-checkout {
  color: #050606;
  background: var(--acid);
}

.cart-clear {
  color: var(--text);
  background: #171c1a;
}

.toast {
  position: fixed;
  z-index: 55;
  left: 50%;
  bottom: 22px;
  min-width: 180px;
  padding: 13px 18px;
  color: #101010;
  background: var(--acid);
  border: var(--pixel-border);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 900;
  transform: translate(-50%, 90px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes floatBlock {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-18px) rotate(12deg);
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .quick-start-inner,
  .register-section {
    grid-template-columns: 1fr;
  }

  .account-head {
    display: grid;
  }

  .steps,
  .feature-grid,
  .shop-grid.active,
  .rules-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-sword {
    right: -12px;
    opacity: 0.54;
  }

  .server-strip {
    grid-template-columns: 1fr;
  }

  .server-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .server-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 12px 14px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text {
    display: none;
  }

  .nav-cta {
    padding: 11px 13px;
    font-size: 0.9rem;
  }

  .header-actions {
    gap: 8px;
  }

  .cart-toggle {
    min-height: 42px;
    padding: 9px 11px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 4.25rem);
  }

  .hero-actions,
  .footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .steps,
  .feature-grid,
  .shop-grid.active,
  .rules-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .feature-card,
  .shop-item,
  .rules-list article {
    min-height: auto;
  }

  .footer-copy {
    max-width: none;
  }

  .cart-panel {
    top: 78px;
    right: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 96px);
  }
}

@media (max-width: 420px) {
  .cart-toggle span {
    display: none;
  }

  .cart-toggle {
    gap: 0;
    padding-inline: 10px;
  }
}
