/* CaelumSMP countdown: shared by index.html and confirmed.html */
:root {
  --bg: #061722; --card: #0b2030; --text: #f4f7ff; --dim: #a9b8cf;
  --lime: #c6ff3d; --coral: #ff5a5f; --cyan: #4de3ff; --violet: #a77bff;
  --display: "Rubik Mono One", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
  --notch: polygon(0 10px, 10px 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--body); }
p, h1 { margin: 0; }

.stage {
  --mx: 0; --my: 0;
  position: relative; display: grid; place-items: center;
  min-height: 100vh; min-height: 100dvh;
  padding: 80px clamp(16px, 5vw, 80px) 40px;
  overflow: hidden; text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(198, 255, 61, .22), transparent 70%),
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 90, 95, .22), transparent 70%),
    linear-gradient(125deg, #0b3b4a 0%, #142a78 40%, #5b2bd6 75%, #a12bd6 100%);
}
/* aurora curtains */
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(100deg, transparent 0 60px, rgba(77, 227, 255, .07) 60px 120px, transparent 120px 200px, rgba(198, 255, 61, .06) 200px 240px);
  animation: aurora 16s linear infinite;
}
@keyframes aurora { to { background-position: 480px 0; } }

/* floating blocks; --d is how far each drifts with the cursor */
.floater {
  position: absolute; z-index: 0;
  translate: calc(var(--mx) * var(--d) * 1px) calc(var(--my) * var(--d) * 1px);
  transition: translate .3s ease-out;
  animation: spin 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 12px 0 rgba(4, 19, 28, .3));
}
@keyframes spin {
  from { transform: translateY(-10px) rotate(-8deg); }
  to { transform: translateY(10px) rotate(8deg); }
}

main { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 1040px; }
.brand { display: flex; align-items: center; gap: 12px; font: 400 clamp(18px, 2.4vw, 26px)/1 var(--display); text-transform: uppercase; }
h1 { margin: 18px 0 26px; font: 400 clamp(32px, 5vw, 76px)/.95 var(--display); text-transform: uppercase; text-shadow: 6px 6px 0 rgba(4, 19, 28, .55); }
h1 em { font-style: normal; color: var(--lime); }

.cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); width: 100%; }
.cell {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: clamp(16px, 2vw, 24px) 8px clamp(14px, 1.6vw, 20px);
  background: var(--card); border-top: 8px solid var(--c);
  clip-path: var(--notch); box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .25);
}
.digits { display: flex; justify-content: center; font: 400 clamp(40px, 6vw, 88px)/1 var(--display); color: var(--c); }
/* each digit sits in a fixed-width box so the row never jitters */
.digits b { display: inline-block; width: .9em; font-weight: 400; animation: drop .35s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes drop { from { opacity: 0; transform: translateY(-40%); } }
.unit { font: 700 clamp(11px, 1.2vw, 14px)/1 var(--body); letter-spacing: 2.5px; text-transform: uppercase; color: var(--dim); }

.date { margin-top: 24px; font: 400 clamp(14px, 1.9vw, 22px)/1.3 var(--display); text-transform: uppercase; }
.local, .live { margin-top: 8px; color: #dfe6ff; }
.live { padding: 10px 16px; background: var(--lime); color: #04131c; font-weight: 700; clip-path: var(--notch); }
[hidden] { display: none !important; }

/* Discord: compact button pinned to the top-right corner */
.discord-top {
  position: absolute; top: 20px; right: clamp(16px, 3vw, 32px); z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
  background: var(--card); color: var(--text); text-decoration: none; text-align: left;
  clip-path: var(--notch); box-shadow: inset 0 0 0 3px var(--violet);
  transition: transform .12s, background .12s;
}
.discord-top:hover { background: var(--violet); color: #04131c; transform: translate(-2px, -2px) rotate(-1deg); }
.discord-top .logo { display: grid; place-items: center; width: 38px; height: 38px; background: var(--violet); clip-path: var(--notch); }
.discord-top b { display: block; font: 400 13px/1.2 var(--display); text-transform: uppercase; font-weight: 400; }
.discord-top small { display: block; margin-top: 3px; font: 700 12px/1 var(--body); color: var(--dim); }
.discord-top:hover small { color: #04131c; }
.discord-top small::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; background: var(--lime); vertical-align: 1px; }

/* Newsletter card: pixel-notched neon outline in --c (same pattern as the site's .neon cards) */
.news {
  --c: var(--cyan);
  position: relative; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  width: 100%; margin-top: 28px; padding: 20px 20px 18px 24px;
  background: var(--c); clip-path: var(--notch); text-align: left;
}
.news::before { content: ""; position: absolute; inset: 3px; z-index: -1; background: var(--card); clip-path: var(--notch); }
.news .text { flex: 1 1 300px; }
.news h2 { margin: 0 0 6px; font: 400 clamp(16px, 2vw, 20px)/1.2 var(--display); text-transform: uppercase; }
.news p { color: var(--dim); font-size: 15px; line-height: 1.4; }
.news form { display: flex; gap: 10px; flex: 1 1 440px; }
.news input {
  flex: 1; min-width: 0; padding: 14px 16px; border: 0;
  background: var(--bg); color: var(--text); font: 400 16px/1 var(--body);
  clip-path: var(--notch); box-shadow: inset 0 0 0 2px #2a4257;
}
.news input::placeholder { color: #6f829c; }
.news input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c); }
.btn { border: 0; cursor: pointer; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.news .note { flex-basis: 100%; font-size: 13px; line-height: 1.3; }
.news .note.ok { color: var(--lime); font-weight: 700; }
.news .note.err { color: var(--coral); font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn {
  flex: none; display: inline-block; padding: 16px 22px;
  background: var(--lime); color: #04131c; font: 400 14px/1 var(--display); text-transform: uppercase; text-decoration: none;
  clip-path: var(--notch); transition: transform .12s, background .12s;
}
.btn:hover { background: #fff; transform: translate(-2px, -2px) rotate(-1deg); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn:focus-visible { outline-color: #04131c; outline-offset: -6px; }

@media (max-width: 640px) {
  .cells { grid-template-columns: 1fr 1fr; }
  .floater { opacity: .45; }
  .news form { flex-wrap: wrap; }
  .news input, .news .btn { flex-basis: 100%; }
  .discord-top { top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
