:root {
  --ink: #171923;
  --muted: #6b6270;
  --pink: #f85f9d;
  --pink-2: #ff8bbd;
  --mint: #54d7bf;
  --lilac: #c783ee;
  --peach: #ffc879;
  --line: rgba(31, 23, 36, 0.1);
  --glass: rgba(255, 255, 255, 0.74);
  --shadow: 0 24px 70px rgba(224, 82, 140, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 76% 9%, rgba(255, 132, 186, 0.16), transparent 28rem),
    radial-gradient(circle at 4% 18%, rgba(91, 216, 199, 0.12), transparent 24rem),
    linear-gradient(180deg, #fff8f8 0%, #fffdfc 45%, #fff8fb 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(248, 95, 157, 0.45) 0 2px, transparent 2.5px),
    radial-gradient(circle, rgba(91, 216, 199, 0.32) 0 1.5px, transparent 2px);
  background-size: 170px 170px, 230px 230px;
  background-position: 20px 40px, 110px 30px;
  opacity: 0.35;
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 72px) 0;
}

.site-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 58px;
}

.brand {
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--pink);
  text-shadow: 0 4px 0 rgba(255, 186, 212, 0.36);
  letter-spacing: 0;
}

.site-nav {
  justify-self: center;
  display: none;
  align-items: center;
  gap: clamp(18px, 4vw, 62px);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  transform: translateX(-50%);
}

.socials {
  display: none;
  gap: 14px;
  font-size: 0.85rem;
  font-weight: 900;
}

.socials a {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  transition: transform 0.2s ease, background 0.2s ease;
}

.socials a:hover {
  background: #fff;
  transform: translateY(-2px);
}

.pill-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pill-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.pill-button {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff77b2);
  box-shadow: 0 16px 30px rgba(248, 95, 157, 0.22);
}

.pill-button span,
.ghost-button span {
  margin-left: 12px;
}

.ghost-button {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.42);
}

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

.header-link {
  min-height: 48px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.68);
}

.header-cta {
  min-height: 48px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(31, 23, 36, 0.08);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  min-height: 660px;
  padding: clamp(40px, 6vw, 86px) 0 38px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--pink);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(5rem, 12vw, 10.5rem);
  line-height: 0.84;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 470px;
  margin: 24px 0 0;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.24;
}

.status {
  display: grid;
  grid-template-columns: auto auto auto 150px;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  max-width: 360px;
}

.status span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.status strong {
  color: #25c889;
  font-size: 1.08rem;
  text-transform: uppercase;
}

.status i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ee0b0;
  box-shadow: 0 0 0 8px rgba(94, 224, 176, 0.18);
}

.status svg {
  width: 140px;
  height: 24px;
}

.status polyline {
  fill: none;
  stroke: var(--pink);
  stroke-width: 2;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 620px;
  place-items: center;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-art::before {
  width: min(52vw, 740px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 119, 178, 0.22);
}

.hero-art::after {
  width: min(44vw, 610px);
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(248, 95, 157, 0.18);
}

.orbit.one {
  width: min(39vw, 520px);
  aspect-ratio: 1;
}

.orbit.two {
  width: min(31vw, 420px);
  aspect-ratio: 1;
  border-color: rgba(84, 215, 191, 0.2);
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  border-radius: 24px;
  filter: drop-shadow(0 34px 36px rgba(169, 71, 112, 0.18));
}

.section,
.mint-panel,
.site-footer {
  position: relative;
  z-index: 2;
}

.section {
  padding-top: 54px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.24rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head h2 span,
.section-head a {
  color: var(--pink);
}

.section-head a {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.specimen-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.specimen-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 23, 36, 0.06);
}

.specimen-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #ffd5ea, #f9f0ff);
}

.specimen-card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.specimen-card footer span {
  color: var(--pink);
  font-weight: 900;
}

.mint-panel {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr minmax(280px, 430px);
  align-items: center;
  gap: clamp(20px, 4vw, 58px);
  margin-top: 34px;
  padding: 34px;
  border: 1px solid rgba(248, 95, 157, 0.2);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 214, 233, 0.9), rgba(255, 247, 250, 0.82)),
    #fff;
  box-shadow: 0 24px 70px rgba(224, 82, 140, 0.12);
}

.capsule-wrap {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 260px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd2e7, #dff9ff);
  box-shadow: inset 0 0 34px rgba(255, 255, 255, 0.42);
}

.capsule-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.mint-copy h2 {
  max-width: 480px;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.mint-copy h2 span {
  color: var(--pink);
}

.mint-copy p:last-child {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.mint-box {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
}

.mint-box dl {
  display: grid;
  gap: 18px;
  margin: 0 0 28px;
}

.mint-box div {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.mint-box dt,
.mint-box dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mint-box dt {
  color: var(--muted);
}

.mint-box .pill-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

#submit-application {
  scroll-margin-top: 110px;
}

.application-page-link {
  width: 100%;
}

.application-form {
  display: grid;
  gap: 14px;
}

.application-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-form input,
.application-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  padding: 13px 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  text-transform: none;
  resize: vertical;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: rgba(248, 95, 157, 0.56);
  box-shadow: 0 0 0 4px rgba(248, 95, 157, 0.1);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.form-actions .ghost-button {
  min-height: 52px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.collection-overview {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(248, 95, 157, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(248, 95, 157, 0.12), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 250, 0.78));
  box-shadow: 0 24px 70px rgba(224, 82, 140, 0.1);
}

.overview-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.overview-title span {
  color: var(--pink);
  font-size: 1.5rem;
  font-weight: 900;
}

.overview-title h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  line-height: 1.1;
  text-transform: uppercase;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.overview-stats article {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.overview-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.overview-stats strong {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1;
}

.application-gate {
  display: grid;
  gap: 16px;
}

.application-gate .ghost-button {
  width: 100%;
  cursor: pointer;
}

.application-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.application-modal.open {
  display: flex;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.info-modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 35, 0.26);
  backdrop-filter: blur(10px);
}

.application-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 166, 205, 0.36);
  border-radius: 30px;
  color: var(--ink);
  background: #fffaf7;
  box-shadow: 0 34px 90px rgba(48, 36, 52, 0.24);
}

.info-dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: min(88vh, 680px);
  overflow: auto;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(255, 166, 205, 0.36);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 252, 0.94)),
    #fff;
  box-shadow: 0 34px 90px rgba(48, 36, 52, 0.24);
}

.info-dialog h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.info-content {
  display: grid;
  gap: 16px;
  color: var(--muted);
  line-height: 1.65;
}

.info-content h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.info-content p {
  margin: 0;
}

.info-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.whitelist-page {
  min-height: 100vh;
  background: #fff5e8;
}

.whitelist-page::before {
  background-image: none;
  opacity: 0;
}

.quest-shell {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(1180px, calc(100% - 36px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 36px;
  text-align: center;
}

.quest-brand {
  margin-bottom: 24px;
}

.quest-shell .eyebrow {
  margin-bottom: 12px;
  letter-spacing: 0.18em;
}

.quest-shell h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 0.94;
  text-transform: uppercase;
}

.quest-lede {
  max-width: 760px;
  margin: 20px 0 46px;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 800;
}

.quest-card {
  width: 100%;
  border: 1px solid rgba(248, 95, 157, 0.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 95, 157, 0.13), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 252, 0.9)),
    #fff;
  box-shadow: 0 26px 80px rgba(224, 82, 140, 0.16);
}

.quest-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

.quest-dots {
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  gap: 16px;
  padding: 16px 26px 0;
}

.quest-dots span {
  width: 10px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(248, 95, 157, 0.34), rgba(84, 215, 191, 0.22));
}

.x-entry,
.quest-tasks {
  padding: clamp(24px, 5vw, 42px) clamp(22px, 5vw, 38px) 34px;
}

.quest-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(248, 95, 157, 0.28);
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, var(--pink), #ff8fc3);
  box-shadow: 0 14px 30px rgba(248, 95, 157, 0.28);
  font-family: Fredoka, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.x-entry h2,
.quest-tasks h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
}

.x-entry p {
  margin: 0 0 24px;
  font-weight: 900;
}

.quest-field {
  display: grid;
  gap: 8px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-field input {
  width: 100%;
  min-height: 58px;
  border: 2px solid rgba(23, 25, 35, 0.26);
  border-radius: 14px;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: none;
}

.quest-field input:focus {
  border-color: rgba(248, 95, 157, 0.7);
  box-shadow: 0 0 0 5px rgba(248, 95, 157, 0.12);
}

.quest-continue {
  width: 100%;
  margin-top: 14px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff8fc3);
  box-shadow: 0 16px 30px rgba(248, 95, 157, 0.22);
  cursor: pointer;
}

.quest-continue span {
  margin: 0 8px 0 0;
}

.quest-tasks .task-list,
.quest-tasks .modal-field {
  text-align: left;
}

.quest-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
  text-align: left;
}

.quest-user > span {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff8fc3);
  font-size: 1.35rem;
  font-weight: 900;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(248, 95, 157, 0.18);
}

.quest-user > span img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quest-user > span b {
  font: inherit;
}

.quest-user p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.quest-user strong {
  font-size: 1.25rem;
}

.switch-x {
  min-height: 38px;
  border: 1px solid rgba(248, 95, 157, 0.34);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.switch-x:hover {
  background: #fff;
  box-shadow: 0 10px 24px rgba(248, 95, 157, 0.12);
}

.application-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(248, 95, 157, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.application-status span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.application-status strong {
  color: var(--pink);
  font-size: 0.92rem;
  text-transform: uppercase;
}

.submission-receipt {
  padding: clamp(24px, 5vw, 42px) clamp(22px, 5vw, 38px) 34px;
  text-align: center;
}

.receipt-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), transparent 24%),
    linear-gradient(135deg, var(--pink), #ff8fc3);
  box-shadow: 0 16px 34px rgba(248, 95, 157, 0.24);
  font-family: Fredoka, Inter, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.submission-receipt h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
}

.submission-receipt > p:not(.eyebrow):not(.form-note) {
  margin: 0 auto 24px;
  max-width: 430px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.55;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  text-align: left;
}

.receipt-grid div {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.receipt-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-grid strong {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.copy-referral {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.receipt-switch {
  width: 100%;
  margin-top: 12px;
}

.leaderboard-panel {
  position: relative;
  width: 100%;
  margin-top: 0;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(248, 95, 157, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(248, 95, 157, 0.12), transparent 18rem),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 24px 70px rgba(224, 82, 140, 0.12);
  text-align: left;
}

.leaderboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.leaderboard-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.leaderboard-head strong {
  max-width: 220px;
  color: var(--pink);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.leaderboard-copy {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

.leaderboard-table {
  overflow: hidden;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 72px 1fr 92px;
  gap: 12px;
  align-items: center;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(31, 23, 36, 0.08);
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-row span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.leaderboard-row strong {
  overflow-wrap: anywhere;
  font-size: 0.96rem;
}

.leaderboard-row span:last-child {
  color: var(--pink);
  text-align: right;
}

.leaderboard-header {
  min-height: 44px;
  background: rgba(248, 95, 157, 0.08);
}

.leaderboard-empty {
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(248, 95, 157, 0.28);
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.leaderboard-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.leaderboard-nav button {
  min-height: 42px;
  border: 1px solid rgba(248, 95, 157, 0.34);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.leaderboard-nav button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.leaderboard-nav span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 88% 10%, rgba(248, 95, 157, 0.15), transparent 24rem),
    radial-gradient(circle at 6% 18%, rgba(84, 215, 191, 0.12), transparent 20rem),
    #fff5e8;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  border: 1px solid rgba(248, 95, 157, 0.24);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(20, 18, 29, 0.12);
}

.admin-login-card h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.admin-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-login-card input {
  min-height: 52px;
  border: 1px solid rgba(20, 18, 29, 0.16);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
}

.admin-login-card button,
.admin-header button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), #ff82c0);
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.admin-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.6rem);
  line-height: 0.95;
  text-align: right;
  text-transform: uppercase;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-stats article,
.admin-panel {
  border: 1px solid rgba(248, 95, 157, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 58px rgba(224, 82, 140, 0.1);
}

.admin-stats article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: center;
  padding: 18px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-stats strong {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.admin-panel {
  padding: clamp(18px, 3vw, 28px);
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  text-transform: uppercase;
}

.admin-panel-head button {
  min-height: 42px;
  border: 1px solid rgba(248, 95, 157, 0.34);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--pink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 150px 150px auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.admin-toolbar input,
.admin-toolbar select {
  min-height: 44px;
  border: 1px solid rgba(31, 23, 36, 0.18);
  border-radius: 12px;
  outline: 0;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
  border-color: rgba(248, 95, 157, 0.56);
  box-shadow: 0 0 0 4px rgba(248, 95, 157, 0.1);
}

.admin-toolbar button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), #ff8fc3);
  box-shadow: 0 10px 24px rgba(248, 95, 157, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-toolbar button:last-child {
  background: #171923;
  box-shadow: 0 10px 24px rgba(23, 25, 35, 0.12);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 14px;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(31, 23, 36, 0.08);
  font-size: 0.88rem;
}

.admin-table th {
  color: var(--muted);
  background: rgba(248, 95, 157, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

.admin-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--pink);
  background: rgba(248, 95, 157, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-comment {
  display: block;
  margin-top: 6px;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-approve {
  color: #171923;
  background: #c5ff3d;
}

.admin-reject {
  color: #171923;
  background: #ffc0c8;
}

.admin-remove {
  color: var(--pink);
  background: #fff;
  border-color: rgba(248, 95, 157, 0.34) !important;
}

.admin-remove:hover {
  color: #fff;
  background: var(--pink);
}

.admin-empty {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed rgba(248, 95, 157, 0.28);
  border-radius: 14px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.quest-back {
  margin-top: 28px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--pink);
  background: #ffe3f1;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.application-dialog h2 {
  max-width: 480px;
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.35rem);
  line-height: 1.05;
}

.modal-lede {
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.task-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.task-progress strong {
  font-size: 0.98rem;
}

.task-progress i {
  overflow: hidden;
  display: block;
  height: 10px;
  border-radius: 999px;
  background: #f2e5e9;
}

.task-progress span[data-task-progress-bar] {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), #ff8fc3);
  transition: width 0.25s ease;
}

.task-list {
  display: grid;
  margin-bottom: 20px;
}

.task-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid rgba(31, 23, 36, 0.1);
  font-size: 1rem;
  font-weight: 900;
}

.task-row:has(input:disabled) {
  color: rgba(23, 25, 35, 0.58);
}

.task-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--pink);
}

.task-row input:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.task-row a {
  color: var(--pink);
  font-weight: 900;
}

.task-row.task-opened {
  color: var(--ink);
}

.task-row.task-complete-pulse {
  animation: taskCompletePulse 0.6s ease;
}

@keyframes taskCompletePulse {
  0% {
    background: rgba(248, 95, 157, 0);
    box-shadow: none;
  }
  45% {
    background: rgba(248, 95, 157, 0.12);
    box-shadow: 0 0 0 5px rgba(248, 95, 157, 0.08);
  }
  100% {
    background: rgba(248, 95, 157, 0);
    box-shadow: none;
  }
}

.modal-field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 900;
}

.modal-field input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(31, 23, 36, 0.12);
  border-radius: 14px;
  outline: 0;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.modal-field input:focus {
  border-color: rgba(248, 95, 157, 0.56);
  box-shadow: 0 0 0 4px rgba(248, 95, 157, 0.1);
}

.final-submit {
  width: 100%;
  margin-top: 22px;
  border: 0;
  cursor: pointer;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  column-gap: 18px;
  align-items: center;
  min-height: 142px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.timeline span {
  grid-row: span 3;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(248, 95, 157, 0.13);
  font-family: Fredoka, Inter, sans-serif;
  font-size: 1.5rem;
}

.timeline small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline strong {
  margin-top: 4px;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 34px;
  align-items: end;
  margin: 64px calc(clamp(18px, 4vw, 72px) * -1) 0;
  padding: 40px clamp(18px, 4vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.lab-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(84, 215, 191, 0.16), transparent 22rem),
    radial-gradient(circle at 82% 8%, rgba(248, 95, 157, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff6e9 0%, #fff1df 48%, #fff8f1 100%);
}

.lab-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 72px) 54px;
}

.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lab-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.lab-hero {
  width: min(960px, 100%);
  margin: 62px auto 28px;
  text-align: center;
}

.lab-hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-hero p:last-child {
  width: min(760px, 100%);
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
}

.lab-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 34px 0 24px;
}

.lab-stats article {
  min-height: 116px;
  padding: 24px;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(105, 57, 83, 0.08);
}

.lab-stats span,
.jar-copy span {
  display: block;
  color: #7a7180;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-stats strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1;
}

.lab-bench {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.lab-jar-card {
  overflow: hidden;
  border: 1px solid rgba(31, 23, 36, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 70px rgba(158, 88, 114, 0.13);
}

.jar-visual {
  position: relative;
  display: grid;
  min-height: 370px;
  padding: 42px 26px 28px;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.66), transparent 15rem);
  background-size: 34px 34px, 34px 34px, auto;
}

.jar-visual::after {
  content: "";
  position: absolute;
  inset: auto 26px 22px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 23, 36, 0.12);
  filter: blur(9px);
}

.jar-pink {
  background-color: #ffe2ed;
}

.jar-mint {
  background-color: #e4fbef;
}

.jar-blue {
  background-color: #dff4ff;
}

.jar-coral {
  background-color: #ffe1d8;
}

.jar-green {
  background-color: #e9fbd8;
}

.jar-violet {
  background-color: #eee4ff;
}

.jar-cap {
  position: absolute;
  top: 22px;
  left: 50%;
  z-index: 4;
  width: 118px;
  height: 26px;
  border: 2px solid rgba(31, 23, 36, 0.18);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #ffd4e7);
  box-shadow: 0 8px 0 rgba(31, 23, 36, 0.08);
  transform: translateX(-50%);
}

.jar-glass {
  position: relative;
  z-index: 2;
  width: min(82%, 270px);
  aspect-ratio: 0.74;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 52px 52px 34px 34px;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 0 0 2px rgba(31, 23, 36, 0.06),
    inset 18px 0 26px rgba(255, 255, 255, 0.42),
    0 18px 38px rgba(53, 35, 45, 0.16);
}

.jar-glass::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 4;
  width: 22%;
  height: 70%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent);
  opacity: 0.82;
}

.jar-glass img {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 3;
  width: 88%;
  height: 82%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: saturate(1.08) contrast(1.02);
}

.jar-liquid {
  position: absolute;
  inset: auto -10% 0;
  z-index: 1;
  height: 56%;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.72) 0 9px, transparent 10px),
    radial-gradient(circle at 66% 28%, rgba(255, 255, 255, 0.5) 0 6px, transparent 7px),
    linear-gradient(135deg, rgba(248, 95, 157, 0.5), rgba(84, 215, 191, 0.45), rgba(255, 200, 121, 0.46));
  opacity: 0.62;
}

.jar-copy {
  padding: 20px 22px 24px;
}

.jar-copy h2 {
  margin: 8px 0 8px;
  font-size: 1.45rem;
  line-height: 1;
}

.jar-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.jar-copy i {
  position: relative;
  display: block;
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 23, 36, 0.08);
}

.jar-copy i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--mint), var(--peach));
}

.lab-process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.lab-process article {
  min-height: 170px;
  padding: 24px;
  border: 1px solid rgba(31, 23, 36, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
}

.lab-process span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-weight: 900;
}

.lab-process strong {
  display: block;
  font-size: 1.2rem;
}

.lab-process p {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-art {
    min-height: 470px;
    margin-top: 18px;
  }

  .specimen-grid,
  .overview-stats,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .mint-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: start;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .quest-board {
    grid-template-columns: 1fr;
    width: min(680px, 100%);
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-stats,
  .lab-process {
    grid-template-columns: repeat(2, 1fr);
  }

  .lab-bench {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-top: 18px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand {
    font-size: 2.2rem;
  }

  .header-actions {
    justify-self: stretch;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .header-actions .ghost-button,
  .header-actions .pill-button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.7rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 22vw, 6rem);
  }

  .hero-art {
    min-height: 340px;
  }

  .hero-art img {
    width: min(112%, 520px);
  }

  .specimen-grid,
  .overview-stats,
  .timeline {
    grid-template-columns: 1fr;
  }

  .mint-panel {
    padding: 20px;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .capsule-wrap {
    min-height: 220px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .status {
    grid-template-columns: auto auto auto;
  }

  .status svg {
    grid-column: 1 / -1;
  }

  .application-modal {
    padding: 12px;
  }

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

  .task-row a {
    grid-column: 2;
    width: max-content;
    margin-bottom: 10px;
  }

  .quest-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

  .quest-shell h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .quest-lede {
    margin-bottom: 30px;
  }

  .quest-card {
    border-width: 1px;
    box-shadow: 0 22px 60px rgba(224, 82, 140, 0.16);
  }

  .quest-dots {
    grid-template-columns: repeat(8, 1fr);
  }

  .quest-user {
    flex-wrap: wrap;
  }

  .switch-x {
    width: 100%;
  }

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

  .leaderboard-head {
    display: grid;
  }

  .leaderboard-head strong {
    max-width: none;
    text-align: left;
  }

  .leaderboard-row {
    grid-template-columns: 54px 1fr 72px;
    padding: 0 12px;
  }

  .leaderboard-nav {
    grid-template-columns: 1fr;
    justify-items: stretch;
    text-align: center;
  }

  .admin-header {
    display: grid;
    align-items: start;
  }

  .admin-header h1 {
    text-align: left;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-panel-head {
    display: grid;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .lab-shell {
    padding-top: 18px;
  }

  .lab-header {
    display: grid;
  }

  .lab-header-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .lab-hero {
    margin-top: 42px;
    text-align: left;
  }

  .lab-hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.4rem);
  }

  .lab-stats,
  .lab-bench,
  .lab-process {
    grid-template-columns: 1fr;
  }

  .jar-visual {
    min-height: 330px;
  }

  .jar-glass {
    width: min(78%, 250px);
  }
}

.lab-page {
  background:
    radial-gradient(circle at 18% 16%, rgba(84, 215, 191, 0.18), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(248, 95, 157, 0.18), transparent 26rem),
    linear-gradient(180deg, #fff3e2 0%, #f7ead7 48%, #fff8ef 100%);
}

.lab-page::before {
  opacity: 0.22;
}

.lab-page .lab-hero {
  width: min(820px, 100%);
  margin: 48px auto 24px;
}

.lab-page .lab-hero .eyebrow {
  margin-bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.lab-page .lab-hero h1 {
  font-size: clamp(2.55rem, 5.4vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lab-page .lab-hero p:last-child {
  width: min(660px, 100%);
  margin-top: 18px;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  font-weight: 650;
  line-height: 1.55;
}

.lab-stage {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 210px 26px 32px;
  border: 1px solid rgba(31, 23, 36, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(31, 23, 36, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(31, 23, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 246, 232, 0.7));
  background-size: 46px 46px, 46px 46px, auto;
  box-shadow: 0 34px 90px rgba(98, 57, 70, 0.16);
}

.lab-stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(79, 50, 58, 0.12));
  pointer-events: none;
}

.lab-wall {
  position: absolute;
  inset: 0 0 auto;
  height: 250px;
  border-bottom: 8px solid rgba(31, 23, 36, 0.1);
  background:
    radial-gradient(circle at 8% 34%, rgba(248, 95, 157, 0.22) 0 12px, transparent 13px),
    radial-gradient(circle at 86% 30%, rgba(84, 215, 191, 0.2) 0 14px, transparent 15px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 238, 215, 0.82));
}

.wall-pipe {
  position: absolute;
  border: 9px solid rgba(31, 23, 36, 0.16);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.pipe-one {
  left: 5%;
  top: 44px;
  width: 210px;
  height: 84px;
}

.pipe-two {
  right: 10%;
  top: 34px;
  width: 260px;
  height: 104px;
}

.pipe-three {
  left: 44%;
  top: 72px;
  width: 170px;
  height: 74px;
  border-color: rgba(248, 95, 157, 0.22);
}

.lab-shelf {
  position: absolute;
  display: flex;
  align-items: end;
  gap: 22px;
  height: 72px;
  padding: 0 24px 12px;
  border-bottom: 10px solid rgba(31, 23, 36, 0.16);
}

.lab-shelf::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 23, 36, 0.12);
  filter: blur(5px);
}

.top-shelf {
  left: 8%;
  top: 34px;
  width: 38%;
}

.bottom-shelf {
  right: 7%;
  top: 126px;
  width: 34%;
}

.flask,
.tube,
.beaker {
  position: relative;
  display: block;
  border: 2px solid rgba(31, 23, 36, 0.18);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 8px 0 16px rgba(255, 255, 255, 0.55);
}

.flask {
  width: 38px;
  height: 54px;
  border-radius: 14px 14px 20px 20px;
}

.tube {
  width: 24px;
  height: 62px;
  border-radius: 999px;
}

.beaker {
  width: 52px;
  height: 46px;
  border-radius: 8px 8px 18px 18px;
}

.flask::after,
.tube::after,
.beaker::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 52%;
  border-radius: inherit;
  background: var(--liquid, rgba(248, 95, 157, 0.5));
}

.flask-pink,
.tube-pink {
  --liquid: rgba(248, 95, 157, 0.62);
}

.flask-mint,
.beaker-mint {
  --liquid: rgba(84, 215, 191, 0.62);
}

.flask-yellow,
.tube-yellow {
  --liquid: rgba(255, 200, 121, 0.72);
}

.tube-blue {
  --liquid: rgba(91, 186, 255, 0.62);
}

.beaker-violet,
.tube-violet {
  --liquid: rgba(199, 131, 238, 0.62);
}

.lab-machine {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr auto auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 18px;
  border: 2px solid rgba(31, 23, 36, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 245, 233, 0.74));
  box-shadow: 0 18px 45px rgba(31, 23, 36, 0.1);
}

.machine-screen {
  min-height: 126px;
  padding: 22px;
  border: 2px solid rgba(31, 23, 36, 0.18);
  border-radius: 16px;
  color: #17231f;
  background:
    linear-gradient(90deg, rgba(84, 215, 191, 0.18) 1px, transparent 1px),
    linear-gradient(0deg, rgba(84, 215, 191, 0.18) 1px, transparent 1px),
    linear-gradient(135deg, rgba(214, 255, 235, 0.92), rgba(255, 224, 240, 0.86));
  background-size: 18px 18px, 18px 18px, auto;
}

.machine-screen span,
.machine-screen p {
  color: rgba(23, 25, 35, 0.68);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.machine-screen strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 0.9;
}

.machine-screen p {
  margin: 0;
  text-transform: none;
}

.machine-gauges {
  display: grid;
  gap: 12px;
}

.machine-gauges i {
  display: block;
  width: 66px;
  height: 66px;
  border: 8px solid rgba(31, 23, 36, 0.12);
  border-top-color: var(--pink);
  border-right-color: var(--mint);
  border-radius: 50%;
  background: #fff;
}

.machine-bars {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 118px;
  padding: 12px;
  border: 2px solid rgba(31, 23, 36, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.machine-bars span {
  width: 24px;
  height: var(--level);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--pink), var(--mint));
}

.lab-stage .lab-stats,
.lab-stage .lab-bench,
.lab-stage .lab-process {
  position: relative;
  z-index: 2;
}

.lab-stage .lab-stats {
  margin: 0 0 24px;
}

.lab-stage .lab-stats article {
  border: 2px solid rgba(31, 23, 36, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.lab-stage .lab-bench {
  gap: 0;
  margin: 0;
  border: 2px solid rgba(31, 23, 36, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, transparent calc(50% - 8px), rgba(31, 23, 36, 0.16) calc(50% - 8px) calc(50% + 8px), transparent calc(50% + 8px)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 238, 220, 0.78));
  box-shadow: inset 0 -24px 0 rgba(31, 23, 36, 0.08);
}

.lab-stage .lab-jar-card {
  border: 0;
  border-right: 1px solid rgba(31, 23, 36, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.lab-stage .jar-visual {
  min-height: 410px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.76), transparent 10rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
}

.jar-hook {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  width: 2px;
  height: 52px;
  background: rgba(31, 23, 36, 0.18);
}

.jar-hook::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46px;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(31, 23, 36, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
}

.jar-tube {
  position: absolute;
  top: 60px;
  left: 50%;
  z-index: 1;
  width: 64%;
  height: 56px;
  border: 6px solid rgba(84, 215, 191, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.lab-stage .jar-cap {
  top: 68px;
  background: linear-gradient(180deg, #fff, #ffd1e4 52%, #f85f9d);
}

.lab-stage .jar-glass {
  margin-top: 56px;
  width: min(78%, 250px);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 70px 70px 38px 38px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
}

.lab-stage .jar-copy {
  min-height: 142px;
  border-top: 1px solid rgba(31, 23, 36, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.lab-stage .lab-process {
  margin-top: 26px;
}

@media (max-width: 1120px) {
  .lab-stage {
    padding-top: 190px;
  }

  .top-shelf,
  .bottom-shelf {
    width: 44%;
  }

  .lab-machine {
    grid-template-columns: 1fr;
  }

  .machine-gauges {
    grid-template-columns: repeat(3, max-content);
  }

  .machine-bars {
    height: 92px;
  }

  .lab-stage .lab-bench {
    gap: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 238, 220, 0.78));
  }
}

@media (max-width: 720px) {
  .lab-stage {
    margin-top: 24px;
    padding: 156px 12px 18px;
    border-radius: 22px;
  }

  .lab-page .lab-hero {
    margin-top: 34px;
  }

  .lab-page .lab-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.35rem);
    line-height: 1;
  }

  .lab-page .lab-hero p:last-child {
    margin-top: 14px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .lab-wall {
    height: 190px;
  }

  .wall-pipe {
    border-width: 6px;
  }

  .pipe-one {
    left: 4%;
    top: 42px;
    width: 130px;
    height: 58px;
  }

  .pipe-two {
    right: -10%;
    top: 30px;
    width: 170px;
    height: 74px;
  }

  .pipe-three {
    display: none;
  }

  .top-shelf {
    left: 5%;
    top: 24px;
    width: 58%;
  }

  .bottom-shelf {
    right: 5%;
    top: 104px;
    width: 58%;
  }

  .lab-shelf {
    gap: 12px;
    height: 54px;
    padding: 0 12px 8px;
  }

  .flask {
    width: 28px;
    height: 40px;
  }

  .tube {
    width: 18px;
    height: 44px;
  }

  .beaker {
    width: 38px;
    height: 34px;
  }

  .machine-screen {
    min-height: 0;
  }

  .machine-gauges {
    grid-template-columns: repeat(3, 1fr);
  }

  .machine-gauges i {
    width: 54px;
    height: 54px;
  }

  .lab-stage .jar-visual {
    min-height: 370px;
  }

  .lab-stage .jar-glass {
    width: min(76%, 236px);
  }
}

.lab-page {
  color: #eefcff;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 52, 210, 0.18), transparent 22rem),
    radial-gradient(circle at 82% 12%, rgba(0, 246, 255, 0.2), transparent 24rem),
    linear-gradient(180deg, #07152b 0%, #101b3c 45%, #1a1534 100%);
}

.lab-page::before {
  background-image:
    linear-gradient(90deg, rgba(78, 246, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 75, 214, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
}

.lab-page .brand {
  color: #7ffcff;
  text-shadow:
    0 0 14px rgba(58, 244, 255, 0.9),
    0 0 28px rgba(255, 63, 216, 0.35);
}

.lab-page .ghost-button {
  color: #bdfcff;
  border-color: rgba(78, 246, 255, 0.54);
  background: rgba(9, 23, 49, 0.72);
  box-shadow: inset 0 0 18px rgba(78, 246, 255, 0.12);
}

.lab-page .pill-button {
  border-color: rgba(255, 89, 209, 0.78);
  background: linear-gradient(135deg, #ff4fc7, #35eaff);
  box-shadow: 0 0 28px rgba(255, 79, 199, 0.32);
}

.lab-page .lab-hero {
  margin: 38px auto 22px;
}

.lab-page .lab-hero .eyebrow {
  color: #62f6ff;
}

.lab-page .lab-hero h1 {
  color: #efffff;
  font-size: clamp(2.35rem, 4.5vw, 4.35rem);
  text-shadow:
    0 0 18px rgba(83, 245, 255, 0.55),
    0 0 36px rgba(255, 71, 216, 0.22);
}

.lab-page .lab-hero p:last-child {
  color: rgba(223, 250, 255, 0.72);
}

.lab-page .lab-stage {
  padding-top: 178px;
  border: 1px solid rgba(106, 246, 255, 0.28);
  background:
    radial-gradient(circle at 50% 13%, rgba(77, 241, 255, 0.22), transparent 22rem),
    radial-gradient(circle at 11% 42%, rgba(255, 74, 210, 0.18), transparent 18rem),
    radial-gradient(circle at 90% 42%, rgba(142, 84, 255, 0.2), transparent 20rem),
    linear-gradient(90deg, rgba(107, 242, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(107, 242, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #0c1833 0%, #111d3d 48%, #171631 100%);
  background-size: auto, auto, auto, 50px 50px, 50px 50px, auto;
  box-shadow:
    0 36px 120px rgba(0, 0, 0, 0.28),
    inset 0 0 80px rgba(56, 238, 255, 0.12);
}

.lab-page .lab-stage::before {
  content: "";
  position: absolute;
  inset: 126px 0 auto;
  z-index: 1;
  height: 14px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 70, 214, 0.85), rgba(57, 238, 255, 0.9), rgba(255, 70, 214, 0.85), transparent);
  box-shadow:
    0 0 24px rgba(57, 238, 255, 0.9),
    0 0 44px rgba(255, 70, 214, 0.55);
}

.lab-page .lab-stage::after {
  height: 190px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 59, 221, 0.12), rgba(0, 0, 0, 0.3));
}

.lab-neon-sign {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 18px;
  width: min(560px, calc(100% - 44px));
  min-height: 104px;
  padding: 16px 24px;
  border: 2px solid rgba(96, 250, 255, 0.68);
  border-radius: 14px;
  color: #efffff;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(7, 34, 61, 0.98), rgba(5, 16, 36, 0.94));
  box-shadow:
    0 0 0 5px rgba(96, 250, 255, 0.08),
    0 0 32px rgba(76, 246, 255, 0.62),
    inset 0 0 26px rgba(76, 246, 255, 0.16);
  transform: translateX(-50%);
}

.lab-neon-sign strong {
  display: block;
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow:
    0 0 14px rgba(101, 250, 255, 0.95),
    0 0 36px rgba(101, 250, 255, 0.65);
}

.lab-neon-sign em {
  grid-column: 2;
  color: #81fbff;
  font-style: normal;
  font-size: clamp(0.78rem, 1.8vw, 1.15rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(101, 250, 255, 0.85);
}

.lab-neon-sign span {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(101, 250, 255, 0.85);
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 0 18px rgba(101, 250, 255, 0.28), 0 0 18px rgba(101, 250, 255, 0.45);
}

.lab-neon-sign span::before,
.lab-neon-sign span::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 18px;
  border: 2px solid rgba(101, 250, 255, 0.9);
  border-radius: 50%;
}

.lab-neon-sign span::before {
  transform: rotate(34deg);
}

.lab-neon-sign span::after {
  transform: rotate(-34deg);
}

.lab-page .lab-wall {
  height: 178px;
  border-bottom: 0;
  background:
    linear-gradient(90deg, rgba(52, 238, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(52, 238, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 21, 46, 0.88), rgba(12, 26, 58, 0.55));
  background-size: 44px 44px, 44px 44px, auto;
}

.lab-page .wall-pipe {
  border-color: rgba(60, 240, 255, 0.52);
  box-shadow: 0 0 16px rgba(60, 240, 255, 0.36), inset 0 0 16px rgba(255, 69, 213, 0.2);
}

.lab-page .pipe-three {
  border-color: rgba(255, 69, 213, 0.62);
}

.lab-page .lab-shelf {
  display: none;
}

.lab-page .lab-machine {
  grid-template-columns: 1fr auto;
  border-color: rgba(101, 250, 255, 0.28);
  color: #eaffff;
  background: rgba(7, 18, 38, 0.72);
  box-shadow: inset 0 0 34px rgba(69, 237, 255, 0.08), 0 0 24px rgba(69, 237, 255, 0.12);
}

.lab-page .machine-screen {
  border-color: rgba(101, 250, 255, 0.4);
  background:
    linear-gradient(90deg, rgba(101, 250, 255, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(101, 250, 255, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, rgba(8, 41, 70, 0.94), rgba(46, 18, 74, 0.82));
  background-size: 18px 18px, 18px 18px, auto;
}

.lab-page .machine-screen span,
.lab-page .machine-screen p {
  color: rgba(206, 251, 255, 0.72);
}

.lab-page .machine-screen strong {
  color: #76fbff;
  text-shadow: 0 0 18px rgba(97, 250, 255, 0.7);
}

.lab-page .machine-gauges i {
  background: #11162c;
  border-color: rgba(101, 250, 255, 0.18);
  border-top-color: #5efaff;
  border-right-color: #ff52ca;
  box-shadow: 0 0 18px rgba(101, 250, 255, 0.24);
}

.lab-page .machine-bars {
  border-color: rgba(101, 250, 255, 0.2);
  background: rgba(5, 13, 28, 0.64);
}

.lab-page .lab-stats article {
  min-height: 92px;
  border-color: rgba(101, 250, 255, 0.24);
  background: rgba(6, 18, 39, 0.72);
  box-shadow: inset 0 0 24px rgba(101, 250, 255, 0.08);
}

.lab-page .lab-stats span,
.lab-page .jar-copy span {
  color: rgba(190, 246, 255, 0.68);
}

.lab-page .lab-stats strong {
  color: #ffffff;
}

.lab-page .lab-bench,
.lab-page .lab-output-bench {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 0;
  border: 1px solid rgba(101, 250, 255, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 37, 75, 0.74), rgba(10, 18, 42, 0.92));
  box-shadow:
    inset 0 -18px 0 rgba(0, 0, 0, 0.22),
    0 0 32px rgba(101, 250, 255, 0.16);
}

.lab-page .lab-output-bench {
  margin-top: 0;
  background:
    linear-gradient(180deg, rgba(18, 31, 63, 0.8), rgba(11, 15, 34, 0.96));
}

.lab-page .lab-jar-card {
  border-right: 1px solid rgba(101, 250, 255, 0.12);
}

.lab-page .lab-jar-card:last-child {
  border-right: 0;
}

.lab-page .jar-visual {
  min-height: 320px;
  padding: 34px 12px 18px;
  background:
    radial-gradient(circle at 50% 36%, rgba(75, 239, 255, 0.24), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.lab-page .jar-visual::after {
  background: rgba(69, 241, 255, 0.28);
  filter: blur(12px);
}

.lab-page .jar-cap {
  top: 22px;
  width: 112px;
  height: 28px;
  border-color: rgba(205, 245, 255, 0.58);
  background: linear-gradient(180deg, #c9fcff, #23375b 48%, #070c1d);
  box-shadow:
    0 0 18px rgba(101, 250, 255, 0.45),
    0 9px 0 rgba(0, 0, 0, 0.3);
}

.lab-page .jar-hook,
.lab-page .jar-tube {
  display: none;
}

.lab-page .jar-glass {
  margin-top: 32px;
  width: min(92%, 188px);
  aspect-ratio: 0.62;
  border: 2px solid rgba(171, 249, 255, 0.82);
  border-radius: 34px 34px 18px 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.45), transparent 16%),
    radial-gradient(circle at 50% 28%, rgba(89, 248, 255, 0.22), transparent 7rem),
    linear-gradient(180deg, rgba(95, 245, 255, 0.12), rgba(255, 69, 213, 0.08));
  box-shadow:
    inset 0 0 28px rgba(96, 246, 255, 0.34),
    0 0 26px rgba(96, 246, 255, 0.34),
    0 0 52px rgba(255, 61, 214, 0.14);
}

.lab-page .jar-glass img {
  top: 50%;
  width: 94%;
  height: 84%;
}

.lab-page .jar-output .jar-glass img {
  width: 105%;
  height: 88%;
}

.lab-page .jar-liquid {
  height: 64%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.78) 0 6px, transparent 7px),
    radial-gradient(circle at 66% 24%, rgba(255, 255, 255, 0.55) 0 4px, transparent 5px),
    linear-gradient(135deg, rgba(57, 238, 255, 0.45), rgba(255, 69, 213, 0.32));
  opacity: 0.5;
}

.lab-page .jar-copy {
  min-height: 118px;
  padding: 16px 14px 18px;
  border-top: 1px solid rgba(101, 250, 255, 0.14);
  background: rgba(5, 13, 30, 0.74);
}

.lab-page .jar-copy h2 {
  color: #ffffff;
  font-size: 1rem;
  text-shadow: 0 0 10px rgba(101, 250, 255, 0.25);
}

.lab-page .jar-copy p {
  color: rgba(226, 252, 255, 0.62);
  font-size: 0.78rem;
}

.lab-page .jar-copy i {
  background: rgba(94, 247, 255, 0.12);
}

.lab-page .jar-copy i::before {
  background: linear-gradient(90deg, #43f6ff, #ff4bc9);
  box-shadow: 0 0 12px rgba(67, 246, 255, 0.5);
}

.lab-transfer-beams {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  min-height: 82px;
  padding: 0 2%;
  pointer-events: none;
}

.lab-transfer-beams span {
  position: relative;
  display: block;
}

.lab-transfer-beams span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 75, 214, 0), rgba(255, 75, 214, 0.88), rgba(255, 75, 214, 0));
  box-shadow:
    0 0 20px rgba(255, 75, 214, 0.92),
    0 0 38px rgba(97, 250, 255, 0.48);
  transform: translateX(-50%);
}

.lab-transfer-beams span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 24px solid rgba(255, 75, 214, 0.92);
  filter: drop-shadow(0 0 12px rgba(255, 75, 214, 0.9));
  transform: translateX(-50%);
}

.lab-page .lab-process article {
  border-color: rgba(101, 250, 255, 0.22);
  color: #f3ffff;
  background: rgba(8, 18, 39, 0.72);
  box-shadow: inset 0 0 22px rgba(101, 250, 255, 0.08);
}

.lab-page .lab-process span {
  background: linear-gradient(135deg, #43f6ff, #ff4bc9);
  box-shadow: 0 0 18px rgba(67, 246, 255, 0.35);
}

.lab-page .lab-process p {
  color: rgba(226, 252, 255, 0.64);
}

@media (max-width: 1120px) {
  .lab-page .lab-bench,
  .lab-page .lab-output-bench,
  .lab-transfer-beams {
    grid-template-columns: repeat(3, 1fr);
  }

  .lab-transfer-beams {
    min-height: 64px;
  }

  .lab-transfer-beams span::before {
    height: 64px;
  }
}

@media (max-width: 720px) {
  .lab-page .lab-stage {
    padding-top: 148px;
  }

  .lab-neon-sign {
    grid-template-columns: 1fr;
    min-height: 92px;
    padding: 14px 18px;
  }

  .lab-neon-sign span {
    display: none;
  }

  .lab-neon-sign em {
    grid-column: 1;
  }

  .lab-page .lab-machine {
    grid-template-columns: 1fr;
  }

  .lab-page .lab-bench,
  .lab-page .lab-output-bench,
  .lab-transfer-beams {
    grid-template-columns: 1fr;
  }

  .lab-transfer-beams {
    display: none;
  }

  .lab-page .jar-visual {
    min-height: 330px;
  }

  .lab-page .jar-glass {
    width: min(70%, 210px);
  }
}

.lab-scene {
  position: relative;
  margin-top: 30px;
}

.lab-scene-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111, 249, 255, 0.36);
  border-radius: 30px;
  background: #071126;
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.34),
    0 0 58px rgba(75, 244, 255, 0.18),
    inset 0 0 0 1px rgba(255, 84, 218, 0.16);
}

.lab-scene-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 8, 23, 0.34), rgba(3, 8, 23, 0.1) 46%, rgba(3, 8, 23, 0.38)),
    radial-gradient(circle at 50% 44%, rgba(90, 247, 255, 0.2), transparent 22rem);
}

.lab-scene-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  filter: blur(3px) brightness(0.78) saturate(1.08);
  transform: scale(1.025);
}

.lab-scene-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(520px, calc(100% - 36px));
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(116, 251, 255, 0.34);
  border-radius: 22px;
  color: #efffff;
  text-align: center;
  background: rgba(4, 13, 31, 0.7);
  box-shadow:
    0 0 30px rgba(67, 246, 255, 0.18),
    inset 0 0 24px rgba(67, 246, 255, 0.08);
  backdrop-filter: blur(14px);
  transform: translate(-50%, -50%);
}

.lab-scene-overlay span {
  display: block;
  color: #64f8ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-scene-overlay strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(96, 250, 255, 0.64);
}

.lab-scene-overlay p {
  margin: 12px 0 0;
  color: rgba(231, 253, 255, 0.72);
  font-weight: 700;
  line-height: 1.5;
}

.lab-scene-stats {
  margin-top: 18px;
}

.craft-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: 22px;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(116, 251, 255, 0.26);
  border-radius: 24px;
  color: #efffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 73, 213, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(6, 18, 42, 0.86), rgba(16, 20, 55, 0.78));
  box-shadow:
    inset 0 0 34px rgba(89, 246, 255, 0.08),
    0 20px 58px rgba(0, 0, 0, 0.22);
}

.craft-copy span {
  display: block;
  color: #63f7ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.craft-copy h2 {
  margin: 10px 0;
  font-size: clamp(1.65rem, 3.2vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(96, 250, 255, 0.34);
}

.craft-copy p {
  margin: 0;
  color: rgba(231, 253, 255, 0.66);
  font-weight: 700;
  line-height: 1.55;
}

.craft-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.craft-form label {
  display: grid;
  gap: 9px;
  color: rgba(231, 253, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.craft-form input {
  min-height: 58px;
  width: 100%;
  border: 1px solid rgba(116, 251, 255, 0.24);
  border-radius: 16px;
  color: rgba(231, 253, 255, 0.8);
  background: rgba(5, 13, 31, 0.7);
  box-shadow: inset 0 0 18px rgba(89, 246, 255, 0.08);
  padding: 0 18px;
}

.craft-form input::placeholder {
  color: rgba(231, 253, 255, 0.42);
}

.craft-form input:disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.craft-form button {
  grid-column: 1 / -1;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, rgba(255, 79, 199, 0.78), rgba(53, 234, 255, 0.78));
  box-shadow: 0 0 28px rgba(255, 79, 199, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.72;
}

@media (max-width: 720px) {
  .lab-scene {
    margin-top: 22px;
  }

  .lab-scene-frame {
    border-radius: 20px;
  }

  .lab-scene-frame img {
    aspect-ratio: 4 / 5;
    object-position: center;
  }

  .lab-scene-overlay {
    width: min(86%, 360px);
    padding: 22px;
    transform: translate(-50%, -50%);
  }

  .lab-scene-overlay strong {
    font-size: clamp(2.2rem, 13vw, 3.7rem);
  }

  .craft-panel,
  .craft-form {
    grid-template-columns: 1fr;
  }
}

.game-page {
  min-height: 100vh;
  color: #efffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(143, 255, 54, 0.15), transparent 22rem),
    radial-gradient(circle at 82% 8%, rgba(255, 67, 211, 0.18), transparent 24rem),
    linear-gradient(180deg, #071326 0%, #10183a 52%, #160f2a 100%);
}

.game-page::before {
  background-image:
    linear-gradient(90deg, rgba(94, 246, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(94, 246, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

.game-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 30px clamp(18px, 4vw, 72px) 56px;
}

.game-page .brand {
  color: #75fbff;
  text-shadow: 0 0 22px rgba(95, 247, 255, 0.7);
}

.game-hero {
  width: min(920px, 100%);
  margin: 54px auto 30px;
  text-align: center;
}

.game-hero .eyebrow {
  color: #9aff43;
}

.game-hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 8.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 0 24px rgba(94, 246, 255, 0.58),
    0 0 42px rgba(255, 67, 211, 0.3);
}

.game-hero p {
  margin: 18px auto 0;
  color: rgba(231, 253, 255, 0.72);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  font-weight: 800;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(520px, 1fr);
  gap: 22px;
}

.game-card,
.mutation-board {
  border: 1px solid rgba(104, 249, 255, 0.26);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(154, 255, 67, 0.08), transparent 18rem),
    linear-gradient(135deg, rgba(6, 18, 42, 0.86), rgba(16, 20, 55, 0.78));
  box-shadow:
    inset 0 0 34px rgba(89, 246, 255, 0.08),
    0 20px 58px rgba(0, 0, 0, 0.22);
}

.game-entry-card {
  padding: 24px;
}

.game-tag {
  color: #9aff43;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-entry-card h2 {
  margin: 10px 0 22px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.game-entry-card label {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
  color: rgba(231, 253, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-entry-card input,
.board-search input {
  width: 100%;
  min-height: 56px;
  border: 1px solid rgba(116, 251, 255, 0.24);
  border-radius: 16px;
  color: rgba(231, 253, 255, 0.9);
  background: rgba(5, 13, 31, 0.72);
  box-shadow: inset 0 0 18px rgba(89, 246, 255, 0.08);
  padding: 0 18px;
}

.game-entry-card input::placeholder,
.board-search input::placeholder {
  color: rgba(231, 253, 255, 0.42);
}

.game-start {
  width: 100%;
  margin-top: 6px;
}

.game-entry-card.is-locked {
  opacity: 0.72;
}

.game-arena-card {
  overflow: hidden;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(104, 249, 255, 0.12);
  border-bottom: 1px solid rgba(104, 249, 255, 0.18);
}

.game-hud div {
  padding: 16px;
  background: rgba(5, 13, 31, 0.68);
}

.game-hud span {
  display: block;
  color: rgba(231, 253, 255, 0.56);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-hud strong {
  display: block;
  margin-top: 7px;
  color: #9aff43;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  line-height: 1;
  text-shadow: 0 0 14px rgba(154, 255, 67, 0.42);
}

.canvas-wrap {
  position: relative;
  background: #071326;
}

.canvas-wrap canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.game-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 13, 31, 0.72);
  backdrop-filter: blur(10px);
}

.game-cover[hidden] {
  display: none;
}

.game-cover strong {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(104, 249, 255, 0.56);
}

.game-cover span {
  color: rgba(231, 253, 255, 0.72);
  font-weight: 800;
}

.touch-joystick {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: none;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(104, 249, 255, 0.28);
  border-radius: 50%;
  background: rgba(5, 13, 31, 0.55);
  touch-action: none;
}

.touch-joystick i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9aff43, #5efaff);
  box-shadow: 0 0 18px rgba(94, 250, 255, 0.42);
}

.game-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(104, 249, 255, 0.18);
  background: rgba(5, 13, 31, 0.56);
}

.game-actions button {
  min-height: 46px;
  border: 1px solid rgba(104, 249, 255, 0.25);
  border-radius: 999px;
  color: #efffff;
  background: rgba(10, 28, 58, 0.84);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-actions button:hover:not(:disabled) {
  border-color: #9aff43;
  color: #9aff43;
}

.game-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.game-message {
  min-height: 22px;
  margin: 14px 0 0;
  color: #9aff43;
  font-size: 0.85rem;
  font-weight: 800;
}

.mutation-board {
  margin-top: 28px;
  padding: 24px;
}

.game-page .section-head h2 {
  color: #efffff;
}

.board-search {
  width: min(320px, 100%);
}

.board-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(104, 249, 255, 0.16);
  border-radius: 18px;
}

.board-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(104, 249, 255, 0.12);
  text-align: left;
  white-space: nowrap;
}

.board-table th {
  color: rgba(231, 253, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.board-table td {
  color: rgba(239, 255, 255, 0.88);
  font-weight: 800;
}

.reward-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #061326;
  background: linear-gradient(135deg, #9aff43, #5efaff);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .game-hud {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .game-shell {
    padding-top: 18px;
  }

  .game-header {
    display: grid;
  }

  .game-hero {
    margin-top: 38px;
    text-align: left;
  }

  .game-hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.7rem);
  }

  .game-hud,
  .game-actions {
    grid-template-columns: 1fr 1fr;
  }

  .touch-joystick {
    display: grid;
  }

  .mutation-board {
    padding: 18px;
  }
}

.game-page {
  background:
    radial-gradient(circle at 15% 20%, rgba(154, 255, 67, 0.18), transparent 24rem),
    radial-gradient(circle at 80% 18%, rgba(138, 47, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, #03050d 0%, #090d1a 52%, #050713 100%);
}

.game-page .brand {
  color: #8fff2f;
  font-family: Fredoka, Inter, sans-serif;
  text-shadow:
    0 0 12px rgba(143, 255, 47, 0.86),
    0 0 28px rgba(143, 255, 47, 0.46);
}

.game-page .lab-header-actions {
  align-items: center;
  gap: 10px;
}

.game-page .lab-header-actions .ghost-button,
.game-page .lab-header-actions .pill-button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.game-page .lab-header-actions .ghost-button {
  color: rgba(239, 255, 255, 0.84);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.game-page .lab-header-actions .ghost-button:hover {
  color: #9aff43;
  background: rgba(154, 255, 67, 0.08);
}

.game-page .lab-header-actions .pill-button {
  color: #9aff43;
  border-color: rgba(154, 255, 67, 0.72);
  background: rgba(10, 20, 20, 0.78);
  box-shadow: inset 0 0 18px rgba(154, 255, 67, 0.14), 0 0 18px rgba(154, 255, 67, 0.18);
}

.game-hero {
  margin-top: 48px;
}

.game-hero .eyebrow {
  color: rgba(239, 255, 255, 0.8);
  letter-spacing: 0.22em;
}

.game-hero h1,
.game-entry-card h2,
.mutation-board h2 {
  color: #93ff38;
  text-shadow:
    0 0 12px rgba(143, 255, 47, 0.8),
    0 0 30px rgba(143, 255, 47, 0.36);
}

.game-card,
.mutation-board {
  border-color: rgba(141, 132, 184, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 12%, rgba(154, 255, 67, 0.08), transparent 18rem),
    linear-gradient(135deg, rgba(6, 8, 20, 0.94), rgba(15, 10, 32, 0.88));
  box-shadow:
    inset 0 0 34px rgba(154, 255, 67, 0.045),
    0 18px 60px rgba(0, 0, 0, 0.34);
}

.game-entry-card {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 28%, rgba(154, 255, 67, 0.18), transparent 10rem),
    linear-gradient(135deg, rgba(5, 8, 20, 0.96), rgba(12, 8, 30, 0.88));
}

.entry-lede {
  margin: -8px 0 20px;
  color: rgba(239, 255, 255, 0.72);
  font-weight: 700;
  line-height: 1.5;
}

.game-entry-card input,
.board-search input {
  border-color: rgba(141, 132, 184, 0.32);
  border-radius: 8px;
  background: rgba(4, 5, 14, 0.74);
}

.game-start {
  color: #071006;
  border-color: #9aff43;
  background: linear-gradient(135deg, #9aff43, #67e92c);
  box-shadow: 0 0 28px rgba(154, 255, 67, 0.25);
}

.game-hud {
  background: rgba(141, 132, 184, 0.2);
}

.game-hud div {
  background: rgba(4, 5, 14, 0.86);
}

.game-hud strong {
  color: #9aff43;
}

.canvas-wrap canvas {
  border-top: 1px solid rgba(141, 132, 184, 0.22);
  border-bottom: 1px solid rgba(141, 132, 184, 0.22);
}

.game-cover {
  background:
    radial-gradient(circle at 50% 44%, rgba(154, 255, 67, 0.12), transparent 16rem),
    rgba(4, 5, 14, 0.72);
}

.game-cover strong {
  color: #93ff38;
  text-shadow: 0 0 20px rgba(143, 255, 47, 0.72);
}

.game-actions button {
  border-color: rgba(141, 132, 184, 0.32);
  border-radius: 8px;
  background: rgba(12, 9, 28, 0.86);
}

.game-actions button:first-child {
  color: #071006;
  border-color: #9aff43;
  background: #9aff43;
}

.reward-badge {
  color: #071006;
  background: #9aff43;
}

@media (max-width: 720px) {
  .game-page .lab-header-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-entry-card {
    min-height: 0;
  }
}

.game-page {
  --toxic: #8cff2e;
  --void-purple: #8a2cff;
  --reactor-cyan: #00e5ff;
  --game-bg: #070a12;
  --game-panel: #111827;
  color: #f3fbff;
  background:
    radial-gradient(circle at 18% 18%, rgba(140, 255, 46, 0.12), transparent 24rem),
    radial-gradient(circle at 78% 14%, rgba(138, 44, 255, 0.18), transparent 26rem),
    linear-gradient(180deg, #02040a 0%, #070a12 48%, #090713 100%);
}

.game-page::before {
  background-image:
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(140, 255, 46, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.62;
}

.game-shell {
  width: min(1680px, 100%);
  padding: 10px clamp(10px, 1.3vw, 18px) 22px;
}

.game-header {
  min-height: 72px;
  padding: 0 22px;
  border: 1px solid rgba(139, 133, 186, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.94), rgba(9, 12, 26, 0.88)),
    radial-gradient(circle at 8% 50%, rgba(140, 255, 46, 0.14), transparent 18rem);
  box-shadow: inset 0 0 34px rgba(0, 229, 255, 0.04), 0 18px 60px rgba(0, 0, 0, 0.34);
}

.game-page .brand {
  color: var(--toxic);
  font-size: clamp(2.1rem, 3vw, 3.25rem);
  letter-spacing: 0;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.92),
    0 0 24px rgba(140, 255, 46, 0.44),
    0 5px 0 rgba(32, 84, 10, 0.56);
}

.game-page .lab-header-actions .ghost-button,
.game-page .lab-header-actions .pill-button {
  min-height: 40px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}

.game-page .lab-header-actions .pill-button {
  color: var(--toxic);
  border: 1px solid rgba(140, 255, 46, 0.78);
  background: rgba(10, 17, 16, 0.7);
}

.game-dashboard {
  display: grid;
  grid-template-columns: minmax(390px, 0.93fr) minmax(620px, 1.07fr);
  gap: 18px;
  margin-top: 18px;
}

.game-lobby {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.game-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 530px;
  margin: 0;
  padding: clamp(28px, 4vw, 58px);
  border: 1px solid rgba(139, 133, 186, 0.42);
  border-radius: 10px;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.54), rgba(2, 4, 10, 0.1)),
    radial-gradient(circle at 20% 48%, rgba(140, 255, 46, 0.18), transparent 12rem),
    radial-gradient(circle at 86% 42%, rgba(138, 44, 255, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(5, 8, 17, 0.98), rgba(12, 10, 28, 0.96));
  box-shadow: inset 0 0 60px rgba(0, 229, 255, 0.055), 0 20px 70px rgba(0, 0, 0, 0.35);
}

.game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 58%, rgba(0, 229, 255, 0.06) 58% 59%, transparent 59%),
    linear-gradient(0deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 100% 42px;
  pointer-events: none;
}

.slime-vault {
  position: absolute;
  left: 7%;
  bottom: 18%;
  width: min(28%, 190px);
  aspect-ratio: 0.72;
  border: 2px solid rgba(0, 229, 255, 0.26);
  border-radius: 46px 46px 26px 26px;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(0, 229, 255, 0.035));
  box-shadow:
    inset 0 0 34px rgba(0, 229, 255, 0.24),
    0 0 34px rgba(140, 255, 46, 0.18);
}

.vault-cap {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 118%;
  height: 38px;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 999px;
  background: linear-gradient(180deg, #1d2436, #070a12);
  transform: translateX(-50%);
}

.vault-glow {
  position: absolute;
  inset: auto 8% 8%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 255, 46, 0.54), rgba(140, 255, 46, 0.08) 58%, transparent 70%);
  filter: blur(5px);
}

.vault-slime {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 58%;
  height: 48%;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #b7ff4f, #63e52b);
  box-shadow: 0 0 32px rgba(140, 255, 46, 0.72);
  transform: translateX(-50%);
}

.vault-face::before,
.vault-face::after {
  content: "";
  position: absolute;
  z-index: 2;
  bottom: 38%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #071006;
}

.vault-face::before {
  left: 42%;
}

.vault-face::after {
  left: 55%;
}

.game-hero .eyebrow,
.game-hero h1,
.game-hero p,
.lobby-stats {
  position: relative;
  z-index: 2;
}

.game-hero .eyebrow {
  margin-top: 80px;
  color: rgba(243, 251, 255, 0.86);
  letter-spacing: 0.3em;
}

.game-hero h1 {
  color: var(--toxic);
  font-size: clamp(3.8rem, 7.5vw, 7.8rem);
  text-shadow:
    0 0 14px rgba(140, 255, 46, 0.9),
    0 0 38px rgba(140, 255, 46, 0.38);
}

.game-hero p {
  width: min(420px, 72%);
  margin-left: auto;
  margin-right: auto;
}

.lobby-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 76px;
  border: 1px solid rgba(139, 133, 186, 0.36);
  border-radius: 10px;
  background: rgba(7, 10, 18, 0.76);
}

.lobby-stats article {
  padding: 18px;
  text-align: left;
}

.lobby-stats span {
  display: block;
  color: var(--toxic);
  font-weight: 900;
  text-transform: uppercase;
}

.lobby-stats small {
  display: block;
  margin-top: 6px;
  color: rgba(243, 251, 255, 0.62);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.game-entry-card {
  min-height: 0;
  padding: 24px;
  border-radius: 10px;
}

.game-entry-card h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.game-arena-card {
  border-radius: 10px;
}

.arena-title {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 4px;
  padding: 18px 22px 12px;
  border-bottom: 1px solid rgba(139, 133, 186, 0.28);
  background: rgba(2, 4, 10, 0.72);
}

.arena-title span {
  color: var(--toxic);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(140, 255, 46, 0.7);
}

.arena-title small {
  color: rgba(243, 251, 255, 0.56);
  font-weight: 800;
}

.game-hud {
  grid-template-columns: repeat(4, 1fr);
  border-bottom-color: rgba(139, 133, 186, 0.28);
  background: rgba(2, 4, 10, 0.84);
}

.game-hud div {
  padding: 14px 18px;
  background: rgba(7, 10, 18, 0.86);
}

.game-hud span {
  color: rgba(243, 251, 255, 0.58);
}

.game-hud strong {
  color: var(--toxic);
  text-shadow: 0 0 14px rgba(140, 255, 46, 0.45);
}

.canvas-wrap {
  background:
    radial-gradient(circle at 52% 42%, rgba(140, 255, 46, 0.08), transparent 18rem),
    #070a12;
}

.canvas-wrap canvas {
  display: block;
  border: 0;
  filter: saturate(1.08) contrast(1.05);
}

.game-actions {
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  padding: 18px 22px;
  background: rgba(2, 4, 10, 0.78);
}

.game-actions button {
  border-radius: 8px;
  border-color: rgba(139, 133, 186, 0.36);
  background: rgba(10, 12, 28, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.game-actions button:hover:not(:disabled) {
  border-color: var(--toxic);
  color: var(--toxic);
  box-shadow: 0 0 20px rgba(140, 255, 46, 0.16);
  transform: translateY(-1px);
}

.game-actions button:first-child {
  color: #071006;
  background: linear-gradient(135deg, var(--toxic), #6ee52b);
}

.game-cover {
  background:
    radial-gradient(circle at 50% 46%, rgba(140, 255, 46, 0.12), transparent 18rem),
    rgba(2, 4, 10, 0.78);
}

.game-cover strong {
  color: var(--toxic);
  text-shadow: 0 0 22px rgba(140, 255, 46, 0.68);
}

.mutation-board {
  margin-top: 18px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 0%, rgba(140, 255, 46, 0.09), transparent 22rem),
    linear-gradient(135deg, rgba(6, 8, 20, 0.96), rgba(12, 8, 30, 0.9));
}

.mutation-board.is-hidden {
  display: none;
}

.mutation-board .section-head {
  align-items: center;
  padding: 0 8px 16px;
}

.mutation-board h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.mutation-board h2 em {
  color: inherit;
  font-style: normal;
}

.board-search input {
  border-radius: 8px;
}

.board-table-wrap {
  border-color: rgba(139, 133, 186, 0.28);
  border-radius: 10px;
  background: rgba(2, 4, 10, 0.42);
}

.board-table th,
.board-table td {
  border-bottom-color: rgba(139, 133, 186, 0.16);
}

.reward-badge {
  background: rgba(140, 255, 46, 0.14);
  border: 1px solid rgba(140, 255, 46, 0.38);
  color: var(--toxic);
}

@media (max-width: 1180px) {
  .game-dashboard {
    grid-template-columns: 1fr;
  }

  .game-hero {
    min-height: 460px;
  }
}

@media (max-width: 720px) {
  .game-shell {
    padding: 8px 10px 20px;
  }

  .game-header {
    padding: 14px;
  }

  .game-page .lab-header-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-page .lab-header-actions .ghost-button,
  .game-page .lab-header-actions .pill-button {
    padding: 0 10px;
  }

  .game-hero {
    min-height: 420px;
    padding: 24px;
  }

  .slime-vault {
    left: 50%;
    top: 36px;
    bottom: auto;
    width: 130px;
    transform: translateX(-50%);
  }

  .game-hero .eyebrow {
    margin-top: 190px;
  }

  .game-hero p {
    width: 100%;
  }

  .lobby-stats,
  .game-hud,
  .game-actions {
    grid-template-columns: 1fr;
  }

  .arena-title {
    text-align: center;
  }
}

.game-hero {
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.1) 0%, rgba(2, 4, 10, 0.42) 43%, rgba(2, 4, 10, 0.82) 100%),
    radial-gradient(circle at 28% 58%, rgba(140, 255, 46, 0.2), transparent 16rem),
    url("assets/game-lobby-bg.png");
  background-color: #02040a;
  background-position: center, center, left center;
  background-repeat: no-repeat;
  background-size: auto, auto, contain;
}

.game-hero::before {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 28%, rgba(138, 44, 255, 0.09)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: auto, 100% 42px;
}

.game-hero .slime-vault {
  display: none;
}

.game-hero .eyebrow {
  margin-top: 112px;
  color: rgba(243, 251, 255, 0.9);
  font-size: 0.88rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.game-hero h1 {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--toxic);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 5.1rem);
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.96),
    0 0 30px rgba(140, 255, 46, 0.62),
    0 0 62px rgba(140, 255, 46, 0.28),
    0 7px 0 rgba(25, 83, 6, 0.72);
}

.game-hero p {
  max-width: 360px;
  color: rgba(243, 251, 255, 0.82);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  line-height: 1.45;
}

.canvas-wrap {
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.18),
    inset 0 0 70px rgba(0, 0, 0, 0.42);
}

.canvas-wrap canvas {
  filter: saturate(1.16) contrast(1.1) brightness(0.94);
}

@media (max-width: 720px) {
  .game-hero {
    min-height: 460px;
    background-position: center, center, center top;
    background-size: auto, auto, contain;
  }

  .game-hero .eyebrow {
    margin-top: 184px;
  }

  .game-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.8rem);
  }
}

.game-arena-card {
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(139, 133, 186, 0.46);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(140, 255, 46, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(5, 7, 18, 0.98), rgba(3, 4, 10, 0.98));
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.08),
    0 26px 80px rgba(0, 0, 0, 0.5),
    inset 0 0 54px rgba(0, 229, 255, 0.045);
}

.game-arena-card:focus {
  outline: none;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.22),
    0 26px 80px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(140, 255, 46, 0.08),
    inset 0 0 54px rgba(0, 229, 255, 0.055);
}

.game-hud {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 1.45fr) 1fr 1fr;
  align-items: center;
  gap: 0;
  padding: 0 26px;
  min-height: 76px;
  border-bottom: 1px solid rgba(139, 133, 186, 0.28);
  background:
    linear-gradient(180deg, rgba(3, 4, 12, 0.98), rgba(5, 7, 17, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(140, 255, 46, 0.12), transparent 22rem);
}

.game-hud div {
  padding: 0;
  background: transparent;
}

.game-hud span,
.energy-card span,
.attempt-card span {
  display: block;
  color: rgba(244, 248, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-hud strong,
.energy-card strong,
.attempt-card strong {
  display: block;
  margin-top: 4px;
  color: #f6fbff;
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 0 16px rgba(140, 255, 46, 0.22);
}

.hud-time strong,
.energy-card strong {
  color: var(--toxic);
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.8),
    0 0 26px rgba(140, 255, 46, 0.3);
}

.hud-health strong {
  color: var(--toxic);
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  letter-spacing: 0.1em;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.86),
    0 0 20px rgba(140, 255, 46, 0.3);
}

.hud-score {
  text-align: right;
}

.hud-health {
  text-align: left;
}

.arena-title {
  display: block;
  padding: 0;
  border: 0;
  text-align: center;
  background: transparent;
}

.arena-title span {
  color: var(--toxic);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.9),
    0 0 24px rgba(140, 255, 46, 0.38),
    0 3px 0 rgba(28, 75, 9, 0.72);
}

.arena-title small {
  display: none;
}

.canvas-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 229, 255, 0.08);
  border-bottom: 1px solid rgba(139, 133, 186, 0.26);
  background: #03050c;
  box-shadow:
    inset 0 0 0 1px rgba(0, 229, 255, 0.08),
    inset 0 0 70px rgba(0, 0, 0, 0.34);
}

.canvas-wrap::before,
.canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.canvas-wrap::before {
  background:
    radial-gradient(circle at 50% 48%, transparent 34%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(180deg, rgba(3, 4, 12, 0.04), rgba(3, 4, 12, 0.26));
}

.canvas-wrap::after {
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.06), transparent 15%, transparent 85%, rgba(138, 44, 255, 0.08));
  mix-blend-mode: screen;
}

.canvas-wrap canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  filter: saturate(1.25) contrast(1.13) brightness(0.86);
}

.game-cover,
.touch-joystick {
  z-index: 3;
}

.game-control-deck {
  display: grid;
  grid-template-columns: minmax(160px, 0.82fr) minmax(280px, 1.8fr) minmax(160px, 0.92fr);
  gap: 16px;
  align-items: stretch;
  padding: 18px 22px 20px;
  background:
    linear-gradient(180deg, rgba(3, 4, 12, 0.96), rgba(5, 7, 18, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(138, 44, 255, 0.12), transparent 24rem);
}

.energy-card,
.attempt-card {
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid rgba(139, 133, 186, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.84), rgba(6, 8, 20, 0.9)),
    radial-gradient(circle at 18% 18%, rgba(0, 229, 255, 0.09), transparent 8rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.32);
}

.energy-card strong::before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: -2px;
  background: radial-gradient(circle at 34% 28%, #ffffff, var(--toxic) 34%, #4bc80f 72%);
  box-shadow: 0 0 14px rgba(140, 255, 46, 0.7);
}

.attempt-card {
  text-align: center;
}

.attempt-card small {
  display: block;
  margin-top: 8px;
  color: rgba(244, 248, 255, 0.48);
  font-size: 0.74rem;
}

.game-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  padding: 0;
  background: transparent;
}

.game-actions[hidden] {
  display: none;
}

.game-actions button {
  min-height: 46px;
  border: 1px solid rgba(139, 133, 186, 0.48);
  border-radius: 7px;
  color: rgba(244, 248, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(14, 18, 35, 0.86), rgba(7, 9, 21, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 12px 28px rgba(0, 0, 0, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-actions button:first-child {
  border-color: rgba(140, 255, 46, 0.88);
  color: var(--toxic);
  background:
    linear-gradient(180deg, rgba(140, 255, 46, 0.16), rgba(35, 57, 17, 0.46)),
    rgba(7, 10, 18, 0.96);
  box-shadow:
    inset 0 0 22px rgba(140, 255, 46, 0.12),
    0 0 22px rgba(140, 255, 46, 0.16);
}

.game-actions button:nth-child(2) {
  border-color: rgba(138, 44, 255, 0.78);
  box-shadow:
    inset 0 0 20px rgba(138, 44, 255, 0.11),
    0 0 22px rgba(138, 44, 255, 0.12);
}

.game-actions button:hover:not(:disabled) {
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow:
    inset 0 0 24px rgba(0, 229, 255, 0.13),
    0 0 26px rgba(0, 229, 255, 0.2);
}

@media (max-width: 920px) {
  .game-hud {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 18px;
  }

  .arena-title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hud-score {
    text-align: left;
  }

  .game-control-deck {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .game-hud {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hud-score,
  .hud-health {
    text-align: center;
  }

  .game-actions {
    grid-template-columns: 1fr;
  }
}

.game-dashboard.is-hidden {
  display: none;
}

.game-hub {
  display: block;
  margin-top: 18px;
}

.game-hub-copy,
.game-select-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 133, 186, 0.4);
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 12%, rgba(140, 255, 46, 0.11), transparent 16rem),
    radial-gradient(circle at 90% 80%, rgba(138, 44, 255, 0.18), transparent 20rem),
    linear-gradient(145deg, rgba(7, 10, 18, 0.96), rgba(10, 11, 28, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 24px 70px rgba(0, 0, 0, 0.36);
}

.game-hub-copy {
  min-height: 420px;
  padding: clamp(28px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.game-hub-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.18), rgba(2, 4, 10, 0.78)),
    url("assets/game-lobby-bg.png") left center / contain no-repeat;
  opacity: 0.8;
}

.game-hub-copy > * {
  position: relative;
  z-index: 1;
}

.game-hub-copy h1 {
  max-width: 520px;
  margin: 16px 0 12px;
  color: var(--toxic);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.96),
    0 0 34px rgba(140, 255, 46, 0.36),
    0 6px 0 rgba(25, 83, 6, 0.68);
}

.game-hub-copy p {
  max-width: 460px;
  margin: 0;
  color: rgba(244, 248, 255, 0.78);
  font-weight: 700;
  line-height: 1.55;
}

.game-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
}

.game-select-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 158px;
  padding: 18px;
}

.game-select-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.065), transparent 32%, rgba(138, 44, 255, 0.08)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: auto, 100% 34px;
}

.game-select-card > * {
  position: relative;
  z-index: 1;
}

.game-select-card.is-featured {
  border-color: rgba(140, 255, 46, 0.5);
  box-shadow:
    inset 0 0 42px rgba(140, 255, 46, 0.05),
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(140, 255, 46, 0.08);
}

.game-select-card.is-selected {
  border-color: rgba(0, 229, 255, 0.72);
  box-shadow:
    inset 0 0 42px rgba(0, 229, 255, 0.08),
    0 24px 70px rgba(0, 0, 0, 0.38),
    0 0 30px rgba(0, 229, 255, 0.12);
}

.game-select-card.is-locked {
  opacity: 0.72;
}

.game-card-art {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(140, 255, 46, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(5, 7, 18, 0.94));
}

.game-card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/game-arena-bg.png") center / cover no-repeat;
  opacity: 0.72;
  filter: saturate(1.18) brightness(0.78);
}

.game-card-art span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 46px;
  border-radius: 48% 48% 42% 42%;
  background: radial-gradient(circle at 34% 28%, #f4ffd9, var(--toxic) 28%, #57d41d 72%);
  box-shadow: 0 0 28px rgba(140, 255, 46, 0.74);
  transform: translate(-50%, -50%);
}

.game-card-art span::before,
.game-card-art span::after {
  content: "";
  position: absolute;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #061208;
}

.game-card-art span::before {
  left: 16px;
}

.game-card-art span::after {
  right: 16px;
}

.sprint-art span {
  background: radial-gradient(circle at 34% 28%, #ffffff, #00e5ff 28%, #185bff 78%);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.74);
}

.mixer-art span {
  background: radial-gradient(circle at 34% 28%, #ffffff, #8a2cff 28%, #301063 78%);
  box-shadow: 0 0 26px rgba(138, 44, 255, 0.74);
}

.star-collect-art span {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #ffffff 0 10%, #9b30ff 11% 34%, #00e5ff 35% 58%, #8cff2e 59% 100%);
  box-shadow:
    0 0 24px rgba(138, 44, 255, 0.88),
    0 0 38px rgba(0, 229, 255, 0.36);
}

.star-collect-art span::before,
.star-collect-art span::after {
  width: 12px;
  height: 12px;
  top: auto;
  background: #8cff2e;
  box-shadow: 0 0 16px rgba(140, 255, 46, 0.8);
}

.star-collect-art span::before {
  left: -28px;
  bottom: 8px;
}

.star-collect-art span::after {
  right: -28px;
  top: 8px;
}

.game-select-card small {
  color: var(--toxic);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.game-select-card h2 {
  margin: 8px 0 8px;
  color: #f6fbff;
  font-size: clamp(1.35rem, 2vw, 2.15rem);
  line-height: 1;
  text-transform: uppercase;
}

.game-select-card p {
  max-width: 420px;
  margin: 0;
  color: rgba(244, 248, 255, 0.64);
  font-weight: 700;
  line-height: 1.45;
}

.game-select-card .pill-button,
.game-select-card .ghost-button {
  min-width: 126px;
  border-radius: 8px;
}

.game-select-card .ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.star-game-shell {
  max-width: 1480px;
}

.star-game-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.36fr) minmax(680px, 1fr);
  gap: 18px;
  align-items: start;
}

.star-entry-panel,
.star-stage-card {
  position: relative;
}

.star-entry-panel {
  overflow: hidden;
  border: 1px solid rgba(139, 133, 186, 0.36);
  border-radius: 12px;
  padding: clamp(22px, 3vw, 34px);
  color: #f6fbff;
  background:
    radial-gradient(circle at 26% 16%, rgba(140, 255, 46, 0.16), transparent 15rem),
    radial-gradient(circle at 92% 90%, rgba(138, 44, 255, 0.18), transparent 19rem),
    linear-gradient(150deg, rgba(6, 9, 20, 0.96), rgba(10, 13, 31, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 24px 80px rgba(0, 0, 0, 0.34);
}

.star-entry-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.24;
}

.star-entry-panel > * {
  position: relative;
  z-index: 1;
}

.star-entry-panel h1 {
  margin: 14px 0 12px;
  color: var(--toxic);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2.45rem, 4vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(140, 255, 46, 0.92),
    0 0 28px rgba(140, 255, 46, 0.32),
    0 5px 0 rgba(25, 83, 6, 0.58);
}

.star-entry-panel > p {
  margin: 0 0 20px;
  color: rgba(244, 248, 255, 0.72);
  font-weight: 750;
  line-height: 1.5;
}

.star-mini-rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.star-mini-rules article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(4, 10, 23, 0.62);
}

.star-mini-rules strong {
  color: #f6fbff;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.star-mini-rules span {
  color: var(--toxic);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
  text-transform: uppercase;
}

.star-stage-card {
  overflow: hidden;
  border-color: rgba(0, 229, 255, 0.34);
  background:
    radial-gradient(circle at 52% 24%, rgba(140, 255, 46, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(4, 6, 15, 0.98), rgba(8, 10, 24, 0.98));
  box-shadow:
    0 0 34px rgba(0, 229, 255, 0.08),
    0 28px 90px rgba(0, 0, 0, 0.44);
}

.star-phaser-mount {
  position: relative;
  display: grid;
  min-height: 520px;
  border-top: 1px solid rgba(0, 229, 255, 0.16);
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
  background:
    radial-gradient(circle at 35% 18%, rgba(138, 44, 255, 0.2), transparent 15rem),
    radial-gradient(circle at 78% 68%, rgba(140, 255, 46, 0.14), transparent 16rem),
    #030711;
}

.star-phaser-mount canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: 70vh;
  margin: auto;
  filter: saturate(1.12) contrast(1.06);
}

.star-game-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  gap: 12px;
  color: #f6fbff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(140, 255, 46, 0.16), transparent 16rem),
    rgba(3, 7, 17, 0.72);
  backdrop-filter: blur(6px);
}

.star-game-cover[hidden] {
  display: none;
}

.star-game-cover strong {
  color: var(--toxic);
  font-family: Fredoka, Inter, sans-serif;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(140, 255, 46, 0.9),
    0 0 36px rgba(140, 255, 46, 0.3);
}

.star-game-cover span {
  color: rgba(244, 248, 255, 0.74);
  font-weight: 900;
}

.star-control-deck {
  grid-template-columns: minmax(170px, 0.82fr) minmax(340px, 1.6fr) minmax(170px, 0.82fr);
}

.star-board {
  grid-column: 1 / -1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 28px;
  border: 1px solid rgba(244, 248, 255, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  color: rgba(244, 248, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(244, 248, 255, 0.06);
}

.status-pill.approved {
  border-color: rgba(140, 255, 46, 0.54);
  color: var(--toxic);
  background: rgba(140, 255, 46, 0.12);
}

.status-pill.pending {
  border-color: rgba(138, 44, 255, 0.46);
  color: #cfaeff;
  background: rgba(138, 44, 255, 0.12);
}

@media (max-width: 1080px) {
  .game-hub {
    grid-template-columns: 1fr;
  }

  .star-game-layout {
    grid-template-columns: 1fr;
  }

  .star-phaser-mount {
    min-height: 430px;
  }
}

@media (max-width: 720px) {
  .game-hub-copy {
    min-height: 360px;
  }

  .game-select-card {
    grid-template-columns: 1fr;
  }

  .game-card-art {
    min-height: 170px;
  }

  .game-select-card .pill-button,
  .game-select-card .ghost-button {
    width: 100%;
  }

  .star-game-layout {
    gap: 14px;
  }

  .star-entry-panel {
    padding: 20px;
  }

  .star-phaser-mount {
    min-height: 360px;
  }

  .star-control-deck {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
