/* Neparchy landing page styles
   Copyright (c) 2026 Neparchy. All rights reserved.
   Unauthorized copying, modification or redistribution of this code is prohibited.
   Minecraft item textures in assets/items are (c) Mojang and are not covered by this notice. */

:root {
  --ink: #0b0b0d;
  --ink-2: #141417;
  --bone: #ece6da;
  --bone-dim: #a9a397;
  --red: #e0202e;
  --red-deep: #9e0f1a;
  --green: #4cd964;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}
/* film grain over everything */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
::selection { background: var(--red); color: var(--bone); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.kicker::before { content: "■ "; color: var(--red); }

/* ───────────── HERO ───────────── */
.hero {
  position: relative;
  min-height: max(100svh, 720px);
  background:
    radial-gradient(ellipse at 70% 0%, #2a0c10 0%, transparent 55%),
    linear-gradient(#08080a 0%, #121016 60%, #1b0d10 100%);
  overflow: hidden;
  isolation: isolate;
  transition: background .6s;
}
/* sky follows the visitor's local time (data-sky is set by the script) */
.hero[data-sky="day"] {
  background: linear-gradient(#1f416a 0%, #3f6d9e 55%, #86abd0 100%);
}
.hero[data-sky="dawn"], .hero[data-sky="dusk"] {
  background:
    radial-gradient(ellipse at 50% 100%, #f08a4b66 0%, transparent 60%),
    linear-gradient(#141632 0%, #43294a 55%, #b5523f 100%);
}
.hero.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10%, 90% { transform: translate(-2px, 1px); }
  20%, 80% { transform: translate(4px, -2px); }
  30%, 50%, 70% { transform: translate(-7px, 3px); }
  40%, 60% { transform: translate(7px, -3px); }
}
.flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: #fff3d6; opacity: 0;
}
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }

#world {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; touch-action: pan-y;
  /* real diamond pickaxe texture (16px upscaled to 32px); hotspot on the tip of the pick */
  cursor: url("../assets/images/cursor-pickaxe.png") 10 6, crosshair;
}
.hero-ui {
  position: relative; z-index: 2;
  pointer-events: none;
  padding-bottom: clamp(240px, 34vh, 360px);
}
.hero-ui a, .hero-ui button { pointer-events: auto; }

nav {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .12em; }
.brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav-right { display: flex; align-items: center; gap: 18px; font-size: 13px; }
.nav-right a { text-decoration: none; }
.nav-right a:hover { color: var(--red); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #ffffff22; padding: 4px 10px; font-size: 12px; font-weight: 700;
  background: #0b0b0dcc;
}
.led { width: 8px; height: 8px; background: var(--bone-dim); }
.led.on { background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
.led.off { background: var(--red); }
@keyframes pulse { 50% { opacity: .35; } }

.hero-copy { padding-top: clamp(24px, 6vh, 72px); position: relative; }
.title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(76px, 15vw, 200px);
  line-height: .82; margin: 18px 0 12px; letter-spacing: -.01em;
  text-shadow: 0 6px 0 #00000066;
}
.title span { color: var(--red); }
.slogan {
  font-family: var(--display); font-size: clamp(22px, 3.4vw, 40px);
  line-height: 1.05; margin: 0 0 28px; text-transform: uppercase;
}
.slogan s { text-decoration-color: var(--red); text-decoration-thickness: 4px; color: var(--bone-dim); }

.stamp {
  position: absolute; right: 0; top: clamp(40px, 9vh, 110px);
  transform: rotate(-11deg);
  border: 4px solid var(--red); color: var(--red);
  padding: 8px 16px; font-family: var(--display); font-size: 30px; line-height: 1;
  text-align: center; letter-spacing: .04em; opacity: .9;
  mix-blend-mode: screen;
}
.stamp small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .2em; margin-top: 4px; }

.ip {
  display: inline-flex; align-items: stretch;
  border: 2px solid var(--bone); background: #0b0b0dd9;
  font: inherit; color: var(--bone); padding: 0; cursor: pointer;
  max-width: 100%;
}
.ip .addr { padding: 14px 18px; font-size: clamp(15px, 2.2vw, 22px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ip .act { background: var(--bone); color: var(--ink); padding: 14px 16px; font-weight: 800; font-size: 13px; letter-spacing: .1em; display: flex; align-items: center; white-space: nowrap; }
.ip:hover .act, .ip.copied .act { background: var(--red); color: var(--bone); }
.ip-sub { margin-top: 10px; font-size: 13px; color: var(--bone-dim); }
.ip-sub b { color: var(--bone); }

.hud {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px; pointer-events: none;
  display: flex; gap: 8px; align-items: stretch; justify-content: space-between;
}
.hud-actions { display: flex; gap: 8px; }
.hud .hint, .hud-actions > * { pointer-events: auto;
  background: #0b0b0de6; border: 1px solid #ffffff26; color: var(--bone);
  font: inherit; font-size: 12px; font-weight: 700; padding: 8px 12px;
}
.hud button { cursor: pointer; letter-spacing: .08em; }
.hud button:hover { border-color: var(--red); color: var(--red); }
.hud .tnt { background: var(--red); border-color: var(--red); color: var(--bone); }
.hud .tnt:hover { background: var(--bone); color: var(--red); }
.hud .count b { color: var(--red); font-size: 14px; }
.hud .hint { color: var(--bone-dim); font-weight: 400; }
.hint b { color: var(--red); }
.sm { display: none; }
.hud .nope { animation: nope .4s; }
@keyframes nope { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ───────────── TICKER ───────────── */
.ticker {
  background: var(--red); color: var(--ink);
  border-block: 3px solid var(--ink);
  overflow: hidden; white-space: nowrap;
  font-family: var(--display); font-size: 26px; line-height: 1;
  padding: 14px 0; text-transform: uppercase;
}
.ticker-track { display: inline-flex; animation: tick 40s linear infinite; }
.ticker-track span { padding: 0 22px; }
.ticker-track span::after { content: "■"; margin-left: 44px; font-size: 14px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ───────────── RESET COUNTER ───────────── */
.counter { padding: 110px 0; text-align: center; position: relative; }
.zero {
  font-family: var(--display); font-size: clamp(180px, 34vw, 420px); line-height: .8;
  color: transparent; -webkit-text-stroke: 3px var(--red);
  margin: 20px 0 0;
}
.counter h2 {
  font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 60px);
  line-height: 1; margin: 18px 0 26px; text-transform: uppercase;
}
.clock {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.clock div { border: 1px solid #ffffff26; padding: 12px 16px; min-width: 92px; }
.clock b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.clock small { color: var(--bone-dim); font-size: 11px; letter-spacing: .15em; }
.counter .fine { color: var(--bone-dim); font-size: 12px; margin-top: 18px; }

/* ───────────── MANIFESTO ───────────── */
.manifesto { background: var(--bone); color: var(--ink); padding: 100px 0 110px; position: relative; }
.manifesto::before, .live-sec::before {
  /* torn top edge */
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 16px;
  background: var(--bone);
  clip-path: polygon(0 100%, 0 40%, 3% 70%, 6% 20%, 9% 60%, 13% 10%, 17% 55%, 21% 25%, 25% 80%, 29% 30%, 33% 60%, 37% 15%, 41% 70%, 45% 35%, 49% 85%, 53% 20%, 57% 60%, 61% 30%, 65% 75%, 69% 10%, 73% 50%, 77% 25%, 81% 70%, 85% 35%, 89% 80%, 93% 15%, 97% 55%, 100% 30%, 100% 100%);
}
.manifesto .kicker::before { color: var(--red); }
.manifesto h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 9vw, 120px); line-height: .9; margin: 14px 0 50px;
}
.manifesto h2 s { text-decoration-color: var(--red); text-decoration-thickness: .12em; }
.articles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 3px solid var(--ink); }
.article { padding: 26px 24px 30px 0; border-bottom: 1px solid #0b0b0d33; }
.article .num { font-family: var(--display); font-size: 64px; line-height: 1; color: var(--red); }
.article h3 { font-family: var(--display); font-weight: 400; font-size: 30px; text-transform: uppercase; margin: 8px 0 8px; line-height: 1; }
.article p { margin: 0; font-size: 14px; }

/* ───────────── JOIN ───────────── */
.join { padding: 110px 0; }
.sec-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(44px, 8vw, 100px); line-height: .9; margin: 14px 0 44px;
}
.sec-title span { color: var(--red); }
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ticket {
  border: 2px solid var(--bone); position: relative;
  display: grid; grid-template-rows: auto 1fr;
  background: var(--ink-2);
}
.ticket header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 20px; border-bottom: 2px dashed #ece6da55;
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
}
.ticket header span:last-child { color: var(--red); }
.ticket .body { padding: 22px 20px 24px; }
.ticket h3 { font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; margin: 0 0 18px; text-transform: uppercase; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ffffff1a; }
.field small { color: var(--bone-dim); font-size: 11px; letter-spacing: .14em; display: block; }
.field code { font-family: var(--mono); font-weight: 800; font-size: 16px; }
.copy {
  background: none; border: 1px solid #ffffff33; color: var(--bone);
  font: inherit; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 6px 10px; cursor: pointer;
}
.copy:hover { border-color: var(--red); color: var(--red); }
.steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: s; font-size: 13px; color: var(--bone-dim); }
.steps li { counter-increment: s; padding: 3px 0; }
.steps li::before { content: counter(s, decimal-leading-zero) "  "; color: var(--red); font-weight: 800; }
.ticket::before, .ticket::after {
  /* punched holes on the perforation line */
  content: ""; position: absolute; top: 40px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--bone);
}
.ticket::before { left: -13px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -13px; clip-path: inset(0 50% 0 0); }

/* ───────────── WARZONE (live) ───────────── */
/* cream "paper" section like the Manifesto, so the live data stands apart */
.live-sec { background: var(--bone); color: var(--ink); padding: 100px 0 110px; position: relative; }
.mc { font-family: "Pixelify Sans", var(--mono); }
/* replica of the in-game multiplayer server list entry */
.mc-entry {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 2px 14px; align-items: start;
  grid-template-areas: "icon name right" "icon motd motd";
  max-width: 820px; padding: 10px 12px 10px 10px;
  background: #000000b8; border: 2px solid #ffffff38;
  box-shadow: 10px 10px 0 var(--red-deep);
}
.mc-icon { grid-area: icon; width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.mc-name { grid-area: name; color: #fff; font-size: 19px; line-height: 1.25; }
.mc-motd { grid-area: motd; font-size: 17px; line-height: 1.3; color: #aaa; min-width: 0; }
.mc-motd div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-right { grid-area: right; display: flex; align-items: center; gap: 10px; font-size: 18px; color: #aaa; line-height: 1.25; }
.mc-right .sl { color: #555; }
.bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; padding: 4px; margin: -4px; cursor: default; box-sizing: content-box; }
#entry-count { cursor: default; }
.bars i { width: 3px; background: #555; }
.bars i:nth-child(1) { height: 3px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 9px; }
.bars i:nth-child(4) { height: 12px; } .bars i:nth-child(5) { height: 14px; }
.bars.on i { background: #55ff55; }
.bars.off i:first-child { background: #ff5555; }
.caption { color: #5f5a50; font-size: 12px; margin: 18px 0 56px; }

.warzone { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.7fr); gap: 48px; align-items: center; }
.souls-n { font-family: var(--display); font-size: clamp(140px, 20vw, 260px); line-height: .8; color: var(--red); }
.souls-l { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; line-height: 1.05; margin-top: 14px; }
.meta { list-style: none; padding: 0; margin: 26px 0 0; font-size: 13px; color: #4a463e; }
.meta li { padding: 7px 0; border-top: 1px solid #0b0b0d26; }
.meta li::before { content: "■ "; color: var(--red); }

/* Minecraft inventory GUI */
.inv {
  background: #c6c6c6; color: #3f3f3f; padding: 14px 16px 16px;
  border: 2px solid #000;
  box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 10px 10px 0 #000;
}
.inv-head { display: flex; justify-content: space-between; font-size: 19px; margin: 0 2px 10px; }
.slots { display: grid; grid-template-columns: repeat(10, 1fr); }
.slot {
  aspect-ratio: 1; background: #8b8b8b; display: grid; place-items: center;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff;
}
.slot:hover { background: #a3a3a3; }
.slot img { width: 64%; height: 64%; image-rendering: pixelated; animation: pop .4s cubic-bezier(.2, 1.7, .4, 1) both; }
@keyframes pop { from { transform: scale(0) rotate(-20deg); } }
.inv-foot { font-size: 15px; margin: 12px 2px 0; }
.slot, .rslot { cursor: default; }
.rslot:hover { background: #a3a3a3; }

/* Minecraft inventory tooltip: near-black purple box, purple gradient frame, shadowed pixel text */
.mc-tip {
  position: fixed; z-index: 200; pointer-events: none; left: 0; top: 0;
  font-family: "Pixelify Sans", var(--mono); font-size: 17px; line-height: 1.3; white-space: nowrap;
  color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
  padding: 4px 8px 6px; background: #100010f0;
  border: 2px solid transparent; border-image: linear-gradient(#5000ff, #28007f) 1;
  outline: 2px solid #100010f0;
}
.mc-tip[hidden] { display: none; }
.mc-tip .t-title { margin-bottom: 4px; }
.mc-tip .yellow { color: #ffff55; text-shadow: 2px 2px 0 #3f3f15; }
.mc-tip .green { color: #55ff55; text-shadow: 2px 2px 0 #153f15; }
.mc-tip .aqua { color: #55ffff; text-shadow: 2px 2px 0 #153f3f; }
.mc-tip .pink { color: #ff55ff; text-shadow: 2px 2px 0 #3f153f; }
.mc-tip .red { color: #ff5555; text-shadow: 2px 2px 0 #3f1515; }
.mc-tip .gold { color: #ffaa00; text-shadow: 2px 2px 0 #2a2a00; }
.mc-tip .gray { color: #aaaaaa; text-shadow: 2px 2px 0 #2a2a2a; }
.mc-tip .dark { color: #555555; text-shadow: 2px 2px 0 #151515; }

/* ───────────── VOTE ───────────── */
.vote-sec { padding: 110px 0; }
.vote-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin: -20px 0 34px; }
.vote-intro p { margin: 0; max-width: 520px; color: var(--bone-dim); font-size: 14px; }
.vote-intro p b { color: var(--bone); }
.vote-progress { font-size: 12px; font-weight: 800; letter-spacing: .12em; display: flex; align-items: center; gap: 10px; }
.pips { display: flex; gap: 4px; }
.pips i { width: 18px; height: 18px; background: #ffffff14; border: 1px solid #ffffff2e; }
.pips i.on { background: var(--green); border-color: var(--green); box-shadow: 0 0 8px #4cd96466; }
.votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vote {
  border: 2px solid var(--bone); background: var(--ink-2); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 14px; transition: opacity .2s, border-color .2s;
}
.vote .n { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--red); }
.vote .site { font-weight: 800; font-size: 15px; word-break: break-word; flex: 1; } /* keeps Vote buttons aligned when a name wraps */
.vote .note { font-size: 11px; color: var(--bone-dim); letter-spacing: .08em; margin-top: auto; min-height: 1.6em; }
/* Minecraft menu button */
.mc-btn {
  display: block; text-align: center; text-decoration: none; color: #fff;
  font-family: "Pixelify Sans", var(--mono); font-size: 18px; padding: 9px 10px;
  background: #6f6f6f; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #a8a8a8, inset -2px -3px 0 #3d3d3d;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.mc-btn:hover { background: #7b86b8; box-shadow: inset 2px 2px 0 #b8c3f5, inset -2px -3px 0 #4a5487; color: #ffffa0; }
.vote.done { border-color: #ffffff2e; opacity: .7; }
.vote.done .note { color: var(--green); }
.vote-tip { margin: 18px 0 0; font-size: 12px; color: var(--bone-dim); }

/* reward ladder in a Minecraft GUI panel */
.rewards {
  margin-top: 44px; background: #c6c6c6; color: #3f3f3f; padding: 14px 16px 16px;
  border: 2px solid #000; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 10px 10px 0 #000;
}
.rewards-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; font-size: 22px; margin: 0 2px 14px; }
.rewards-head small { font-size: 16px; color: #555; }
.ladder { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.step {
  background: #b3b3b3; box-shadow: inset 2px 2px 0 #8b8b8b, inset -2px -2px 0 #e2e2e2;
  padding: 10px 6px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.step .day { font-size: 19px; }
.step-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.rslot {
  width: 48px; height: 48px; position: relative; display: grid; place-items: center;
  background: #8b8b8b; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff;
}
.rslot img { width: 32px; height: 32px; image-rendering: pixelated; display: block; }
.rslot b { position: absolute; right: 3px; bottom: -1px; font-weight: 400; font-size: 17px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.step ul { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.3; }
.step.final { background: #e3cd7c; box-shadow: inset 2px 2px 0 #a8862c, inset -2px -2px 0 #fff2bf; }
.step.final .day { color: #6b4500; }
/* enchantment glint, like the game: a purple sheen sweeping across the sprite */
.glint::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; translate: -50% -50%;
  background: linear-gradient(115deg, rgba(150, 70, 255, .22) 0 40%, rgba(215, 140, 255, .7) 50%, rgba(150, 70, 255, .22) 60% 100%);
  background-size: 300% 300%; mix-blend-mode: screen; animation: glint 2.6s linear infinite;
  -webkit-mask: url("../assets/items/golden_apple.png") center / 32px 32px no-repeat;
  mask: url("../assets/items/golden_apple.png") center / 32px 32px no-repeat;
}
@keyframes glint { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.rewards-foot { font-size: 15px; margin: 14px 2px 0; }

/* ───────────── DISCORD ───────────── */
.discord { background: var(--red); color: var(--ink); padding: 100px 0; position: relative; overflow: hidden; }
.discord .kicker::before { color: var(--ink); }
.discord .bg-word {
  position: absolute; right: -2vw; bottom: -6vw; font-family: var(--display);
  font-size: 34vw; line-height: .8; color: #00000014; pointer-events: none; user-select: none;
}
.discord h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(50px, 10vw, 140px); line-height: .88; margin: 14px 0 26px; position: relative;
}
.discord h2 span { color: var(--bone); }
.discord p { font-size: 15px; font-weight: 700; max-width: 520px; position: relative; margin: 0 0 30px; }
.discord .mail { margin: 34px 0 0; font-size: 14px; }
.discord .mail a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.discord .mail a:hover { color: var(--bone); }
.btn {
  display: inline-flex; align-items: center; gap: 12px; position: relative;
  background: var(--ink); color: var(--bone); text-decoration: none;
  padding: 18px 26px; font-weight: 800; letter-spacing: .12em; font-size: 14px;
  box-shadow: 6px 6px 0 var(--bone); transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--bone); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--bone); }

footer { padding: 40px 0 50px; font-size: 12px; color: var(--bone-dim); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer .wrap > span:last-child { max-width: 520px; }
footer a:hover { color: var(--red); }
footer b { color: var(--bone); letter-spacing: .14em; }

/* tablet */
@media (max-width: 1000px) {
  .hud { flex-direction: column; align-items: flex-start; }
  .hud-actions { align-self: stretch; }
  .hud-actions > * { flex: 1; text-align: center; }
  .warzone { grid-template-columns: 1fr; gap: 44px; }
  .souls { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: end; }
  .souls-n { font-size: clamp(110px, 24vw, 200px); }
  .souls-l { margin: 0 0 4px; }
  .meta { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .inv { max-width: 600px; }
  .votes { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(4, 1fr); }
}
/* phone */
@media (max-width: 760px) {
  .stamp { display: none; }
  .nav-right a.hide-sm { display: none; }
  .lg { display: none; }
  .sm { display: inline; }
  .hud { left: 12px; right: 12px; bottom: 12px; gap: 6px; }
  .hud .hint { font-size: 11px; padding: 6px 10px; }
  .hud-actions { gap: 6px; }
  .hud-actions > * { padding: 10px 4px; font-size: 11px; }
  .counter, .join, .manifesto, .discord, .live-sec, .vote-sec { padding-block: 80px; }
  .clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
  .clock div { min-width: 0; padding: 10px 4px; }
  .clock b { font-size: 22px; }
  .clock small { font-size: 9px; letter-spacing: .1em; }
  .mc-entry { grid-template-columns: 44px minmax(0, 1fr) auto; column-gap: 10px; padding: 8px; box-shadow: 6px 6px 0 var(--red-deep); }
  .mc-icon { width: 44px; height: 44px; }
  .mc-name { font-size: 16px; }
  .mc-right { font-size: 15px; gap: 6px; }
  .mc-motd { font-size: clamp(10px, 3.2vw, 17px); }
  .souls { column-gap: 18px; }
  .souls-l { font-size: 22px; }
  .meta { grid-template-columns: 1fr; }
  .inv { padding: 10px 10px 12px; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 6px 6px 0 #000; }
  .inv-head { font-size: 16px; }
  .inv-foot { font-size: 13px; }
  .discord .bg-word { display: none; }
  .votes { grid-template-columns: 1fr; gap: 12px; }
  .vote { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 16px; }
  .vote .n { grid-row: span 2; font-size: 34px; }
  .vote .mc-btn, .vote .note { grid-column: 1 / -1; }
  .ladder { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rewards { padding: 10px 10px 12px; box-shadow: inset 3px 3px 0 #fff, inset -3px -3px 0 #555, 6px 6px 0 #000; }
  .rewards-head { font-size: 18px; }
  .rewards-head small, .rewards-foot { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .led.on, .slot img, .glint::after { animation: none; }
  .hero.shake { animation: none; }
}

/* ───────────── toasts & totem ───────────── */
.mc-toast {
  position: fixed; top: 16px; right: 16px; z-index: 300; width: 360px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  font-family: "Pixelify Sans", var(--mono); background: #212121; border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #5a5a5a, inset -2px -2px 0 #111, 6px 6px 0 #00000088;
  transform: translateX(calc(100% + 40px)); transition: transform .45s cubic-bezier(.2, .9, .3, 1.15);
}
.mc-toast.in { transform: none; }
.mc-toast img { width: 32px; height: 32px; image-rendering: pixelated; flex: none; }
.mc-toast .tt { color: #ffff55; font-size: 16px; text-shadow: 2px 2px 0 #3f3f15; }
.mc-toast .tx { color: #fff; font-size: 15px; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-toast.challenge { box-shadow: inset 2px 2px 0 #9a5fd0, inset -2px -2px 0 #3a1a5a, 6px 6px 0 #00000088; }
.mc-toast.challenge .tt { color: #ff55ff; text-shadow: 2px 2px 0 #3f153f; }

.totem-pop { position: fixed; inset: 0; z-index: 299; pointer-events: none; display: grid; place-items: center; }
.totem-pop img { width: 160px; height: 160px; image-rendering: pixelated; animation: totem 2.4s cubic-bezier(.2, .8, .3, 1) forwards; }
.totem-pop i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--c); opacity: 0; animation: spark 1.7s ease-out var(--d) forwards; }
@keyframes totem {
  0% { transform: translateY(60px) scale(.2) rotate(-25deg); opacity: 0; }
  18% { transform: translateY(0) scale(1.25) rotate(8deg); opacity: 1; }
  35% { transform: scale(1) rotate(0); }
  75% { transform: translateY(-30px) scale(1.05); opacity: 1; }
  100% { transform: translateY(-150px) scale(.6); opacity: 0; }
}
@keyframes spark {
  0% { transform: translate(-50%, -50%); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y) + 120px)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mc-toast { transition: none; } }

/* ───────────── chat, death screen, herobrine ───────────── */
.mc-chat { position: fixed; left: 8px; bottom: 8px; z-index: 250; width: min(640px, calc(100vw - 16px)); pointer-events: none; font-family: "Pixelify Sans", var(--mono); font-size: 18px; line-height: 1.35; }
.mc-chat-log { display: flex; flex-direction: column; margin-bottom: 4px; }
.mc-chat-log div { background: rgba(0, 0, 0, .45); color: #fff; padding: 1px 6px; text-shadow: 2px 2px 0 #3f3f3f; white-space: pre-wrap; word-break: break-word; transition: opacity .6s; }
.mc-chat-log div.old { opacity: 0; }
.mc-chat.open .mc-chat-log div.old { opacity: 1; }
.mc-chat input { display: none; width: 100%; pointer-events: auto; font: inherit; color: #fff; background: rgba(0, 0, 0, .55); border: 0; outline: 0; padding: 4px 6px; text-shadow: 2px 2px 0 #3f3f3f; caret-color: #fff; }
.mc-chat.open input { display: block; }
.mc-chat .c-red { color: #ff5555; text-shadow: 2px 2px 0 #3f1515; }
.mc-chat .c-gray { color: #aaaaaa; text-shadow: 2px 2px 0 #2a2a2a; }
.mc-chat .c-green { color: #55ff55; text-shadow: 2px 2px 0 #153f15; }
.mc-chat .c-u { text-decoration: underline; }
.mc-chat .c-i { font-style: italic; }

.mc-death {
  position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(rgba(130, 0, 0, .5), rgba(70, 0, 0, .7)); font-family: "Pixelify Sans", var(--mono); color: #fff;
  text-shadow: 3px 3px 0 #3f3f3f; opacity: 0; transition: opacity .5s; text-align: center; padding: 16px;
}
.mc-death.in { opacity: 1; }
.mc-death .died { font-size: clamp(48px, 9vw, 96px); line-height: 1; }
.mc-death .why, .mc-death .score { font-size: 20px; }
.mc-death .score b { color: #ffff55; font-weight: 400; }
.mc-death .btns { display: flex; flex-direction: column; gap: 10px; width: min(400px, 90vw); margin-top: 20px; }
.mc-death .mc-btn { opacity: .5; cursor: default; }
.mc-death.ready .mc-btn { opacity: 1; cursor: pointer; }

.hb-note { position: fixed; left: 10px; bottom: 10px; z-index: 260; font-family: "Pixelify Sans", var(--mono); font-size: 15px; color: #aaaaaa; text-shadow: 2px 2px 0 #2a2a2a; transition: opacity 1s; pointer-events: none; }
.hb-note.gone { opacity: 0; }

/* lightning flicker across the whole page */
.page-flash { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: #e9edff; opacity: 0; }
.page-flash.go { animation: page-flash .7s ease-out; }
@keyframes page-flash { 0% { opacity: .32; } 8% { opacity: .04; } 16% { opacity: .24; } 100% { opacity: 0; } }
