:root {
  --bg: #0b0b0d;
  --bg-2: #121216;
  --panel: #16161b;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f3f1ec;
  --muted: #9b968c;
  --soft: #6f6a62;
  --lava: #ff6a1a;
  --lava-2: #ff8a3d;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg);
}

.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 78% 88%, rgba(255, 106, 26, 0.16), transparent 60%),
    radial-gradient(ellipse 40% 30% at 18% 0%, rgba(255, 255, 255, 0.03), transparent 55%),
    linear-gradient(135deg, #0b0b0d 0%, #101014 48%, #0d0c10 100%);
}

.stage-glow {
  position: absolute;
  right: 8%;
  bottom: 6%;
  width: min(38vw, 420px);
  height: min(22vw, 220px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.28), transparent 68%);
  filter: blur(28px);
  animation: pulse 6s ease-in-out infinite;
}

.stage-ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)),
    radial-gradient(ellipse 90% 100% at 50% 120%, rgba(255, 106, 26, 0.12), transparent 55%);
  opacity: 0.9;
}

.stage-ridge::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(52vw, 560px);
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(to top, rgba(255, 106, 26, 0.18), transparent 55%),
    linear-gradient(105deg, transparent 42%, rgba(255, 179, 71, 0.2) 50%, transparent 58%);
  clip-path: polygon(8% 100%, 42% 28%, 48% 28%, 52% 42%, 58% 28%, 64% 28%, 92% 100%);
  opacity: 0.55;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.shell {
  position: relative;
  z-index: 1;
  height: 100%;
  height: 100dvh;
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1rem, 3vh, 2rem) 0;
}

.intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
  padding-right: clamp(0rem, 2vw, 1rem);
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  max-width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #f4f0ea 0%, #e8e2d8 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 106, 26, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.logo {
  width: min(100%, 440px);
  height: auto;
  display: block;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 106, 26, 0.35);
  border-radius: 999px;
  color: var(--lava-2);
  font-family: var(--cond);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 106, 26, 0.08);
}

.intro h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--cond);
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.55;
}

.points {
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.points li {
  position: relative;
  padding-left: 1rem;
  color: #c9c3b8;
  font-size: 0.9rem;
  line-height: 1.4;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--lava);
  box-shadow: 0 0 8px rgba(255, 106, 26, 0.55);
}

.foot {
  margin: 0.85rem 0 0;
  color: var(--soft);
  font-size: 0.75rem;
}

.foot a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot a:hover {
  color: var(--lava-2);
}

label.spam input {
  max-width: 6.5rem;
}

label.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

label.check input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--lava);
}

label.check a {
  color: var(--lava-2);
}

label.check span {
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  color: inherit;
  font-weight: 400;
}

.legal-body {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse 50% 35% at 80% 0%, rgba(255, 106, 26, 0.08), transparent 55%),
    linear-gradient(180deg, #101014 0%, #0b0b0d 100%);
}

.legal {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-back {
  margin: 0 0 1.25rem;
}

.legal-back a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.legal-back a:hover {
  color: var(--lava-2);
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--lava-2);
  font-family: var(--cond);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal h1 {
  margin: 0 0 0.4rem;
  font-family: var(--cond);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
}

.legal-meta {
  margin: 0 0 1.5rem;
  color: var(--soft);
  font-size: 0.85rem;
}

.legal h2 {
  margin: 1.6rem 0 0.55rem;
  font-family: var(--cond);
  font-size: 1.1rem;
  font-weight: 600;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal a {
  color: var(--lava-2);
}

.legal ul {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.75rem 0 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.legal th,
.legal td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.legal th {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
}

.legal tr:last-child td {
  border-bottom: 0;
}

.panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.1rem, 2.2vh, 1.6rem) clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 28, 34, 0.92), rgba(18, 18, 22, 0.92));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

.panel-head h2 {
  margin: 0 0 0.25rem;
  font-family: var(--cond);
  font-size: 1.15rem;
  font-weight: 600;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

form {
  display: grid;
  gap: 0.7rem;
  min-height: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

label.msg {
  grid-template-rows: auto 1fr;
}

label span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  padding: 0.62rem 0.75rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 106, 26, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
}

textarea {
  resize: none;
  min-height: 0;
  height: clamp(84px, 14vh, 130px);
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

button[type="submit"] {
  justify-self: center;
  width: min(100%, 220px);
  margin-top: 0.35rem;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.4rem;
  background: linear-gradient(135deg, #ffb347 0%, #ff6a1a 48%, #d1310c 100%);
  color: #fff8f2;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 1px 1px rgba(80, 20, 0, 0.25);
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(255, 106, 26, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(255, 106, 26, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

button[type="submit"]:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* legacy catch-all for other buttons */
button {
  font: inherit;
}

.flash {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.flash.ok {
  background: rgba(40, 140, 80, 0.14);
  border: 1px solid rgba(80, 180, 110, 0.3);
  color: #b7ebc6;
}

.flash.err {
  background: rgba(180, 40, 30, 0.14);
  border: 1px solid rgba(255, 100, 80, 0.3);
  color: #ffc4b8;
}

@media (max-width: 900px) {
  html,
  body {
    overflow: auto;
    height: auto;
    min-height: 100dvh;
  }

  .shell {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    width: min(640px, calc(100% - 1.5rem));
    padding: 1.25rem 0 1.5rem;
    align-content: start;
  }

  .intro {
    padding-right: 0;
  }

  .intro h1 {
    max-width: none;
  }

  .logo-plate {
    padding: 0.7rem 0.9rem;
  }

  .logo {
    width: min(100%, 340px);
  }

  .row {
    grid-template-columns: 1fr;
  }

  .stage-ridge::before {
    opacity: 0.35;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .points {
    display: none;
  }

  .intro {
    gap: 0.65rem;
  }

  .logo {
    width: min(100%, 380px);
  }

  .intro h1 {
    font-size: 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(12, 12, 16, 0.94);
  border-top: 1px solid rgba(255, 106, 26, 0.28);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.cookie-bar.is-show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-bar.is-hide {
  transform: translateY(110%);
  opacity: 0;
}

.cookie-bar-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-bar p {
  margin: 0;
  color: #c9c3b8;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 52rem;
}

.cookie-bar a {
  color: var(--lava-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-btn {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  background: linear-gradient(135deg, #ffb347, #ff6a1a 55%, #d1310c);
  color: #fff8f2;
  font-family: var(--font);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 1px rgba(80, 20, 0, 0.25);
  cursor: pointer;
}

.cookie-bar-btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 700px) {
  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-bar-btn {
    width: 100%;
  }
}
