/* Bloxybuy.gg — coming-soon page
   Everything is sized in rem, and the root size follows the window, so the page
   fills the screen the same way at any browser zoom or monitor size. */
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/fonts/montserrat-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("/fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #14121e;
  --band: #1d1b29;
  --panel: #232031;
  --line: rgba(255, 255, 255, .08);
  --text: #eef0ff;
  --muted: #a8a7af;
  --red: #e11d2e;
  --red-hi: #f02a3b;
  --green: #34d399;
  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

/* Scale with whichever runs out first: width or height. about 16px at 1280×900. */
html { font-size: clamp(13px, min(1.3vw, 2.02vh), 40px); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: radial-gradient(120% 70% at 50% 0%, var(--band) 0%, var(--bg) 70%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.cs-top, .cs-main, .cs-foot { width: min(76rem, 100% - 2rem); margin-inline: auto; position: relative; z-index: 1; }

/* snow */
.cs-snow { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.cs-snow i { position: absolute; top: -12px; border-radius: 50%; background: #fff; animation: cs-fall linear infinite; }
@keyframes cs-fall {
  from { transform: translate3d(0, -12px, 0); }
  to { transform: translate3d(var(--drift, 20px), 105vh, 0); }
}
@media (prefers-reduced-motion: reduce) { .cs-snow { display: none; } }

/* top */
.cs-top { padding: 1.75rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cs-tester-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 2.4rem; padding: 0 1rem; border: 0; border-radius: .6rem;
  background: rgba(255, 255, 255, .06); color: var(--muted);
  font: 600 .85rem "Montserrat", var(--font); cursor: pointer;
  transition: background .15s, color .15s;
}
.cs-tester-btn svg { width: 1rem; height: 1rem; }
.cs-tester-btn:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.cs-tester-btn:focus { outline: none; }
.cs-tester-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* tester dialog */
.cs-modal {
  width: min(26rem, calc(100% - 32px)); padding: 0; border: 0; border-radius: 1rem;
  background: var(--panel); color: var(--text);
  box-shadow: 0 2rem 4rem -1rem rgba(0, 0, 0, .7);
}
.cs-modal::backdrop { background: rgba(8, 7, 14, .7); backdrop-filter: blur(4px); }
.cs-modal[open] { animation: cs-pop .22s cubic-bezier(.2, .8, .2, 1); }
.cs-modal[open]::backdrop { animation: cs-fade .22s ease; }
.cs-modal.closing { animation: cs-out .18s ease forwards; }
.cs-modal.closing::backdrop { animation: cs-fade .18s ease reverse forwards; }
@keyframes cs-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes cs-out { to { opacity: 0; transform: translateY(6px) scale(.98); } }
@keyframes cs-fade { from { opacity: 0; } }
.cs-modal-inner { position: relative; display: flex; flex-direction: column; gap: .75rem; padding: 1.6rem; }
.cs-modal h2 { margin: 0; font: 800 1.35rem "Montserrat", var(--font); }
.cs-modal-sub { margin: 0 0 .25rem; color: var(--muted); font-size: .9rem; }
.cs-modal .cs-msg { margin: 0; min-height: 1.2em; }
.cs-full { width: 100%; }
.cs-x {
  position: absolute; top: .8rem; right: .8rem; width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center; border: 0; border-radius: .5rem;
  background: transparent; color: var(--muted); cursor: pointer;
}
.cs-x:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.cs-x:focus { outline: none; }
.cs-x:focus-visible { outline: 2px solid #fff; }
.cs-logo { width: 14rem; }

/* main area grows to fill the window and centers its content vertically */
.cs-main { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 1.5rem 0 2.5rem; }
.cs-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.cs-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(225, 29, 46, .12); color: #ff8a94;
  font: 700 .78rem/1 "Montserrat", var(--font); letter-spacing: .06em; text-transform: uppercase;
}
.cs-badge-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); animation: cs-pulse 1.8s infinite; }
@keyframes cs-pulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 46, .6); } 70%, 100% { box-shadow: 0 0 0 .5rem rgba(225, 29, 46, 0); } }

h1 { margin: 1.1rem 0 .9rem; font: 900 3.6rem/1.04 "Montserrat", var(--font); letter-spacing: -.035em; }
h1 .grad {
  background: linear-gradient(90deg, #ff3b4e 0%, #ff6b6b 35%, #f5f5f5 60%, #4ade80 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cs-lead { margin: 0 0 1.6rem; max-width: 33rem; color: var(--muted); font-size: 1.05rem; }

.cs-art img { width: 100%; filter: drop-shadow(0 1.9rem 2.5rem rgba(0, 0, 0, .45)); }

/* form */
.cs-form { max-width: 32rem; }
.cs-input-row { display: flex; gap: .5rem; }
.cs-input {
  flex: 1; min-width: 0; height: 3rem; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: .65rem;
  background: rgba(255, 255, 255, .05); color: var(--text);
  font: 500 1rem var(--font);
  transition: border-color .15s, background .15s;
}
.cs-input::placeholder { color: #7f8190; }
.cs-input:focus { outline: none; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
.cs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 3rem; padding: 0 1.4rem; border: 0; border-radius: .65rem;
  font: 700 .95rem "Montserrat", var(--font); color: #fff; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.cs-btn:active { transform: translateY(1px); }
.cs-btn:focus { outline: none; }
.cs-btn:focus-visible, .cs-input:focus-visible, .cs-consent input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cs-btn-red { background: var(--red); }
.cs-btn-red:hover { background: var(--red-hi); }
.cs-btn[disabled] { opacity: .6; cursor: default; }
.cs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cs-consent { display: flex; gap: .55rem; align-items: flex-start; margin-top: .75rem; color: var(--muted); font-size: .86rem; cursor: pointer; }
.cs-consent input { margin: .2rem 0 0; accent-color: var(--red); width: .95rem; height: .95rem; flex: none; }
.cs-msg { min-height: 1.4em; margin: .6rem 0 0; font-size: .92rem; }
.cs-msg.ok { color: var(--green); }
.cs-msg.err { color: #ff8a94; }

/* discord */
.cs-discord { display: flex; align-items: center; gap: 1.4rem; padding: 1.25rem 1.4rem; border-radius: 1rem; background: var(--panel); }
.dc-left { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; }
.dc-icon { width: 3.25rem; height: 3.25rem; flex: none; display: grid; place-items: center; border-radius: .9rem; background: #5865f2; color: #fff; }
.dc-icon svg { width: 1.65rem; height: 1.65rem; }
.dc-icon.has-img { background: none; border-radius: 0; }
.dc-icon.has-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cs-discord h2 { margin: 0; font: 700 1.1rem "Montserrat", var(--font); }
.dc-sub { margin: .1rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; color: var(--muted); font-size: .92rem; }
.dc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16rem; }
.dc-online { display: inline-flex; align-items: center; gap: .4rem; color: var(--text); }
.dc-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #23a55a; }
.dc-avatars { display: flex; }
.dc-avatars img, .dc-avatars span {
  width: 2.15rem; height: 2.15rem; border-radius: 50%; margin-left: -.55rem;
  border: .19rem solid var(--panel); background: #3a3650; object-fit: cover;
}
.dc-avatars :first-child { margin-left: 0; }
.dc-avatars span { display: grid; place-items: center; font: 700 .7rem "Montserrat", var(--font); color: var(--muted); }
.dc-join { flex: none; }

/* footer */
.cs-foot { padding: 0 0 1.75rem; text-align: center; color: #6f6e7a; font-size: .82rem; }
.cs-foot p { margin: 0; }

/* Phones and narrow windows: normal fixed sizing, everything stacked. */
@media (max-width: 860px) {
  html { font-size: 16px; }
  .cs-top { padding-top: 16px; }
  .cs-logo { width: 150px; }
  .cs-tester-btn { height: 36px; padding: 0 12px; font-size: .8rem; }
  .cs-main { justify-content: flex-start; padding-top: 8px; gap: 28px; }
  .cs-hero { grid-template-columns: 1fr; gap: 4px; text-align: center; }
  .cs-art { order: -1; width: min(100%, 460px); margin-inline: auto; }
  h1 { font-size: clamp(2rem, 8.6vw, 3rem); margin-top: 14px; }
  .cs-lead { font-size: 1rem; }
  .cs-lead, .cs-form { margin-inline: auto; }
  .cs-consent { text-align: left; }
  .cs-discord { flex-wrap: wrap; padding: 18px; }
  .dc-avatars { display: none; }
  .dc-join { width: 100%; }
}
@media (max-width: 420px) {
  .cs-top, .cs-main, .cs-foot { width: calc(100% - 32px); }
  .cs-input-row { flex-direction: column; }
  .cs-btn { width: 100%; }
  .cs-foot { font-size: .78rem; }
}
/* Very short screens (landscape phones): don't shrink text to fit the height. */
@media (max-height: 520px) and (min-width: 861px) {
  html { font-size: clamp(13px, 1.1vw, 18px); }
  .cs-main { justify-content: flex-start; }
}

/* Tester password box: same look and red focus glow as the main site's login window. */
.cs-modal .cs-input {
  flex: none; width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 9px;
  background: #141220; font-size: 1rem;
  transition: border-color .15s, box-shadow .15s;
}
.cs-modal .cs-input::placeholder { color: #6e6a85; }
.cs-modal .cs-input:focus,
.cs-modal .cs-input:focus-visible { outline: none; border-color: #e11d2e; box-shadow: 0 0 0 3px rgba(225, 29, 46, .2); background: #141220; }

/* Copy protection: no text selection, image dragging or iOS long-press save, except in form fields and IDs customers need. */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, select, [contenteditable="true"], .selectable, .mono, code, .order-id-box strong { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg { -webkit-user-drag: none; user-drag: none; }

/* Show-password eye inside the tester box */
.cs-pw { position: relative; }
.cs-modal .cs-pw .cs-input { padding-right: 46px; }
.cs-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; border-radius: 7px; background: transparent; color: #6e6a85; cursor: pointer;
  transition: color .15s, background .15s;
}
.cs-eye:hover, .cs-eye.on { color: #eef0ff; background: rgba(255, 255, 255, .06); }
.cs-eye:focus { outline: none; }
.cs-eye:focus-visible { outline: 2px solid #fff; }

/* Pop-up windows sit outside the page, so repeat the no-select rule; the password box stays selectable. */
.cs-modal, .cs-modal * { -webkit-user-select: none; user-select: none; }
.cs-modal input { -webkit-user-select: text; user-select: text; }

/* ===== Discord + X banners (replace the old Discord widget for now). Delete this block and the
   <section class="promo-banners"> in coming-soon.html to remove them. Same images and buttons as the shop's home page. ===== */
@font-face { font-family: "Rubik"; src: url("/fonts/rubik-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
.promo-banners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: end; }
.promo { position: relative; container-type: inline-size; }
.promo-img { display: block; width: 100%; height: auto; }
.promo-btn {
  position: absolute; left: 3.4%; top: 73.6%;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  width: 25.95cqw; height: 6.17cqw;
  border-radius: 8px; text-decoration: none;
  font-family: "Rubik", var(--font); font-weight: 600; font-size: 2.37cqw;
  letter-spacing: .02em; line-height: 1; white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.promo-btn:active { transform: translateY(1px); }
.promo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.promo-btn-ico { width: 1.3em; height: 1.3em; flex: none; }
.promo-btn-discord { background: #5865f2; color: #fff; }
.promo-btn-discord:hover { background: #4752c4; }
.promo-btn-x { background: #fff; color: #15151f; }
.promo-btn-x:hover { background: #e6e6ec; }
.promo-btn-x:focus-visible { outline-color: #5865f2; }
.promo-btn .promo-x-ico { width: 1.05em; height: 1.05em; color: #000; }
@media (max-width: 860px) { .promo-banners { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } }
@container (max-width: 519px) {
  .promo-btn { position: static; display: flex; width: 100%; height: 42px; margin-top: 10px; font-size: 15px; }
}
/* Keep the page one screen tall on computers with the taller banners: the banners' see-through top strip
   stands in for the gap above them, and the space under them is trimmed. Delete to undo. */
@media (min-width: 861px) {
  .promo-banners { margin-top: -2.5rem; }
  .cs-main:has(.promo-banners) { padding-bottom: .5rem; }
  .cs-foot { padding-bottom: 1.25rem; }
}

/* Tester login pop-up: no dark shadow right behind the box (the blurred, dimmed page behind it stays). Delete this line to bring it back. */
.cs-modal { box-shadow: none; }

/* Typing lag fix: while the Tester login pop-up is open, the falling snow and the pulsing dot behind the blur pause.
   Otherwise the browser has to re-blur the whole screen every frame, which makes typing feel slow. Delete to undo. */
body:has(.cs-modal[open]) .cs-badge-dot { animation-play-state: paused; }
/* (the snow keeps falling, slowed down by coming-soon.js while the pop-up is open) */

/* Password eye: crossed out while the password is hidden, plain eye while it's shown. Delete to undo. */
.cs-eye .cs-eye-slash { transition: opacity .15s ease; }
.cs-eye.on .cs-eye-slash { opacity: 0; }
/* Lighter blur behind the Tester login pop-up (was 4px) so the moving snow costs less and typing stays quick. Delete to undo. */
.cs-modal::backdrop { backdrop-filter: blur(2px); }
