:root {
  color-scheme: light;
  --ink: #24213b;
  --muted: #74728a;
  --surface: rgba(255, 255, 255, 0.78);
  --line: rgba(67, 57, 114, 0.11);
  --violet: #6955f5;
  --violet-dark: #4934c7;
  --pink: #ff6796;
  --green: #46dda7;
  --yellow: #ffd34e;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --font-body: Inter, ui-rounded, "Nunito", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #f8f6ff;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 3%, rgba(255, 211, 78, 0.15), transparent 23rem),
    radial-gradient(circle at 88% 16%, rgba(105, 85, 245, 0.12), transparent 27rem),
    linear-gradient(180deg, #fbfaff 0, #f6f3ff 54%, #fff8f1 100%);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 5px;
}

.access-gate {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  min-width: 320px;
  padding: 24px;
  place-items: center;
  overflow-y: auto;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 211, 78, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(105, 85, 245, 0.2), transparent 28rem),
    linear-gradient(150deg, #faf8ff, #f4efff 58%, #fff6ed);
  transition: opacity 0.16s ease;
}

html.access-session-pending .access-gate {
  opacity: 0;
  pointer-events: none;
}

.access-gate[hidden] {
  display: none;
}

body.access-locked {
  overflow: hidden;
}

body.access-locked > :not(.access-gate):not(script) {
  visibility: hidden;
  pointer-events: none;
}

.access-gate-card {
  width: min(100%, 440px);
  padding: 40px;
  border: 1px solid rgba(105, 85, 245, 0.16);
  border-radius: 30px;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 90px rgba(64, 48, 129, 0.19);
  backdrop-filter: blur(18px);
}

.access-gate-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 23px;
  font-size: 33px;
  background: linear-gradient(145deg, #fff0a9, #ffd34e);
  box-shadow: 0 15px 30px rgba(151, 113, 7, 0.18);
  transform: rotate(-4deg);
}

.access-gate-kicker {
  margin: 0 0 9px;
  color: var(--violet);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.access-gate-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(31px, 8vw, 43px);
  line-height: 1;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.access-gate-card > p:not(.access-gate-kicker) {
  margin: 17px auto 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.access-gate-card label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#access-code-input {
  width: 100%;
  height: 60px;
  border: 2px solid rgba(105, 85, 245, 0.18);
  border-radius: 17px;
  color: var(--ink);
  font: 900 25px/1 var(--font-body);
  letter-spacing: 0.42em;
  text-align: center;
  background: rgba(248, 246, 255, 0.96);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

#access-code-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(105, 85, 245, 0.12);
}

#access-gate-error {
  min-height: 21px;
  margin: 10px 0 5px;
  color: #c33959;
  font-size: 12px;
  font-weight: 750;
}

.access-gate-submit {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 17px;
  color: white;
  font: 900 14px/1 var(--font-body);
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  box-shadow: 0 15px 28px rgba(73, 52, 199, 0.25);
  cursor: pointer;
}

.access-gate-submit:hover {
  transform: translateY(-1px);
}

.access-gate-submit:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.access-gate-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.1;
  pointer-events: none;
}

.page-glow-one {
  top: 38%;
  left: -260px;
  background: var(--pink);
}

.page-glow-two {
  right: -230px;
  bottom: 4%;
  background: var(--green);
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  height: 96px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-icon {
  position: relative;
  display: block;
  width: 47px;
  height: 47px;
}

.brand-icon i {
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 8px;
  transform: rotate(11deg);
}

.brand-icon i:nth-child(1) { top: 1px; left: 1px; background: var(--pink); }
.brand-icon i:nth-child(2) { top: 1px; right: 1px; background: var(--yellow); transform: rotate(-9deg); }
.brand-icon i:nth-child(3) { right: 1px; bottom: 1px; background: var(--green); transform: rotate(9deg); }
.brand-icon i:nth-child(4) { bottom: 1px; left: 1px; background: var(--violet); transform: rotate(-11deg); }
.brand-icon b {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  color: var(--violet-dark);
  font-size: 9px;
  background: white;
  box-shadow: 0 2px 7px rgba(31, 24, 76, 0.16);
  transform: translate(-50%, -50%);
}

.site-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-brand strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.site-brand small {
  margin-top: 3px;
  color: var(--violet);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.22em;
}

.collection-count {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid rgba(70, 221, 167, 0.28);
  border-radius: 99px;
  color: #267e62;
  font-size: 11px;
  font-weight: 850;
  background: rgba(70, 221, 167, 0.08);
}

.collection-count i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(70, 221, 167, 0.13);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-button,
.settings-close,
.theme-option {
  font: inherit;
}

.settings-button {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 13px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 850;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(62, 49, 116, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.settings-button:hover {
  border-color: rgba(105, 85, 245, 0.28);
  background: white;
  transform: translateY(-1px);
}

.settings-button > span:first-child {
  color: var(--violet);
  font-size: 17px;
  line-height: 1;
}

.settings-dialog {
  width: min(92vw, 510px);
  max-height: min(88dvh, 700px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: transparent;
  box-shadow: 0 28px 100px rgba(30, 23, 69, 0.3);
}

.settings-dialog::backdrop {
  background: rgba(27, 22, 55, 0.52);
  backdrop-filter: blur(8px);
}

.settings-panel {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: #fcfbff;
}

.settings-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.settings-heading p {
  margin: 0 0 6px;
  color: var(--violet);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.settings-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.settings-close {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
  background: var(--surface);
  cursor: pointer;
}

.settings-description {
  margin: 15px 0 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.theme-options {
  display: grid;
  gap: 10px;
}

.theme-option {
  display: grid;
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  text-align: left;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.theme-option:hover {
  transform: translateY(-1px);
}

.theme-option[aria-pressed="true"] {
  border-color: var(--violet);
  background: rgba(105, 85, 245, 0.07);
  box-shadow: 0 0 0 3px rgba(105, 85, 245, 0.1);
}

.theme-icon {
  font-size: 25px;
}

.theme-name {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.theme-description {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.option-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 950;
}

.theme-option[aria-pressed="true"] .option-check {
  background: var(--green);
}

.theme-option[aria-pressed="true"] .option-check::before {
  content: "✓";
}

.theme-status {
  min-height: 1.4em;
  margin: 13px 0 0;
  color: #267e62;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.hero {
  max-width: 940px;
  padding: clamp(68px, 9vw, 118px) 0 clamp(54px, 7vw, 86px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid rgba(105, 85, 245, 0.16);
  border-radius: 99px;
  color: var(--violet-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: rgba(105, 85, 245, 0.055);
}

.hero-badge > span:first-child {
  color: var(--pink);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.1vw, 112px);
  line-height: 0.87;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2.5px var(--violet);
  text-stroke: 2.5px var(--violet);
}

.hero > p {
  max-width: 670px;
  margin: 31px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 590;
  line-height: 1.65;
}

.hero-hint {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 28px;
  color: #65627b;
  font-size: 12px;
  font-weight: 700;
}

.player-dots {
  display: flex;
  padding-left: 7px;
}

.player-dots i {
  width: 26px;
  height: 26px;
  margin-left: -7px;
  border: 3px solid #f8f6ff;
  border-radius: 50%;
}

.player-dots i:nth-child(1) { background: var(--pink); }
.player-dots i:nth-child(2) { background: var(--yellow); }
.player-dots i:nth-child(3) { background: var(--green); }
.player-dots i:nth-child(4) { background: var(--violet); }

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-portal {
  --pointer-x: 50%;
  --pointer-y: 30%;
  position: relative;
  display: flex;
  min-height: 610px;
  padding: 24px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 29px;
  color: white;
  text-decoration: none;
  box-shadow:
    0 24px 70px rgba(51, 38, 105, 0.14),
    inset 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-portal:hover {
  z-index: 2;
  transform: translateY(-8px);
  box-shadow:
    0 34px 90px rgba(51, 38, 105, 0.23),
    inset 0 1px rgba(255, 255, 255, 0.28);
}

.portal-julia {
  background:
    radial-gradient(circle at 22% 23%, rgba(255, 255, 255, 0.19), transparent 22%),
    linear-gradient(145deg, #ee5a9e, #9a53e7 58%, #6b4ad0);
}

.portal-mateo {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 234, 103, 0.19), transparent 25%),
    linear-gradient(145deg, #087ab6, #1265bb 50%, #2449a8);
}

.portal-cuatro {
  background:
    radial-gradient(circle at 50% 26%, rgba(114, 91, 255, 0.3), transparent 30%),
    linear-gradient(155deg, #15172f, #0b0d1b 60%, #121426);
}

.portal-coop {
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 204, 69, 0.18), transparent 27%),
    radial-gradient(circle at 22% 37%, rgba(57, 224, 171, 0.17), transparent 28%),
    linear-gradient(150deg, #32307a, #1b244d 55%, #112c37);
}

.portal-glare {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 255, 255, 0.18),
    transparent 28%
  );
  transition: opacity 0.25s ease;
}

.game-portal:hover .portal-glare {
  opacity: 1;
}

.portal-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.portal-type i {
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.portal-arrow {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.game-portal:hover .portal-arrow {
  color: var(--ink);
  background: white;
  transform: rotate(12deg);
}

.portal-art {
  position: relative;
  height: 296px;
  margin: 20px -24px 0;
  overflow: hidden;
}

.magic-art {
  background:
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at center, rgba(255, 211, 78, 0.1) 1px, transparent 1px);
  background-size: auto, 19px 19px;
}

.rainbow {
  position: absolute;
  top: 52px;
  left: 50%;
  width: 250px;
  height: 220px;
  overflow: hidden;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.rainbow i {
  position: absolute;
  left: 50%;
  border-style: solid;
  border-radius: 50% 50% 0 0;
  transform: translateX(-50%);
}

.rainbow i:nth-child(1) {
  bottom: -132px;
  width: 250px;
  height: 250px;
  border-width: 25px;
  border-color: rgba(255, 213, 80, 0.95);
}

.rainbow i:nth-child(2) {
  bottom: -108px;
  width: 202px;
  height: 202px;
  border-width: 23px;
  border-color: rgba(255, 255, 255, 0.88);
}

.rainbow i:nth-child(3) {
  bottom: -85px;
  width: 156px;
  height: 156px;
  border-width: 21px;
  border-color: rgba(112, 226, 187, 0.95);
}

.unicorn,
.butterfly {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 8px 13px rgba(59, 27, 91, 0.2));
}

.unicorn {
  bottom: 25px;
  left: 22%;
  font-size: 66px;
  transform: rotate(-9deg);
}

.butterfly {
  top: 52px;
  right: 20%;
  font-size: 48px;
  transform: rotate(11deg);
}

.magic-star {
  position: absolute;
  z-index: 2;
  color: white;
}

.star-one { top: 28px; left: 20%; font-size: 24px; }
.star-two { top: 88px; right: 13%; font-size: 18px; }
.star-three { bottom: 43px; right: 23%; font-size: 16px; }

.name-orbits {
  position: absolute;
  z-index: 4;
  right: 17%;
  bottom: 26px;
  display: flex;
}

.name-orbits span {
  display: grid;
  width: 43px;
  height: 43px;
  margin-left: -8px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--violet-dark);
  font-family: var(--font-display);
  font-size: 14px;
  background: var(--yellow);
}

.name-orbits span:last-child {
  color: white;
  background: var(--green);
}

.football-art {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(165deg, rgba(24, 182, 145, 0.42), rgba(6, 111, 149, 0.13));
  background-size: 28px 28px, 28px 28px, auto;
}

.pitch-lines {
  position: absolute;
  top: 33px;
  left: 50%;
  width: 82%;
  height: 235px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 17px;
  transform: translateX(-50%) perspective(430px) rotateX(42deg);
}

.pitch-lines::before,
.pitch-lines::after {
  content: "";
  position: absolute;
  top: 0;
  width: 38%;
  height: 43px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.pitch-lines::before { left: 50%; transform: translateX(-50%); border-top: 0; }
.pitch-lines::after { bottom: 0; left: 50%; top: auto; transform: translateX(-50%); border-bottom: 0; }

.pitch-lines i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.pitch-lines b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.football {
  position: absolute;
  z-index: 5;
  right: 14%;
  bottom: 36px;
  font-size: 60px;
  filter: drop-shadow(0 13px 8px rgba(8, 43, 88, 0.25));
  transform: rotate(13deg);
}

.shirt {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 93px;
  height: 108px;
  place-items: center;
  border-radius: 18px 18px 26px 26px;
  background: linear-gradient(145deg, #f5d94f, #f0b632);
  box-shadow: 0 16px 28px rgba(7, 46, 101, 0.22);
}

.shirt::before,
.shirt::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 39px;
  height: 53px;
  border-radius: 12px;
  background: inherit;
}

.shirt::before { left: -25px; transform: rotate(31deg); }
.shirt::after { right: -25px; transform: rotate(-31deg); }

.shirt i {
  z-index: 2;
  color: #193b83;
  font-family: var(--font-display);
  font-size: 32px;
  font-style: normal;
}

.shirt-ten {
  top: 60px;
  left: 25%;
  transform: rotate(-8deg);
}

.shirt-eight {
  top: 111px;
  left: 55%;
  width: 72px;
  height: 88px;
  background: linear-gradient(145deg, #e7f3ff, #b9d8ef);
  transform: rotate(9deg) scale(0.8);
}

.speed-line {
  position: absolute;
  width: 62px;
  height: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.line-one { top: 62px; right: 10%; }
.line-two { top: 82px; right: 19%; width: 40px; }
.line-three { bottom: 50px; left: 9%; width: 46px; }

.arena-art {
  background:
    radial-gradient(circle at center, rgba(115, 88, 255, 0.22), transparent 44%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

.arena-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 270px;
  height: 270px;
  transform: translate(-50%, -50%);
}

.arena-rings i {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(139, 119, 255, 0.22);
  border-radius: 50%;
}

.arena-rings i:nth-child(2) { inset: 31px; }
.arena-rings i:nth-child(3) { inset: 63px; }

.arena-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%) rotate(45deg);
}

.arena-logo i {
  position: absolute;
  width: 63px;
  height: 63px;
  border-radius: 35px 35px 10px 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.arena-logo i:nth-child(1) { top: 2px; left: 2px; background: #ff4f7c; }
.arena-logo i:nth-child(2) { top: 2px; right: 2px; transform: rotate(90deg); background: var(--yellow); }
.arena-logo i:nth-child(3) { right: 2px; bottom: 2px; transform: rotate(180deg); background: var(--green); }
.arena-logo i:nth-child(4) { bottom: 2px; left: 2px; transform: rotate(270deg); background: #735cff; }
.arena-logo b {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border-radius: 50%;
  color: #111329;
  font-family: var(--font-display);
  font-size: 31px;
  background: white;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.online-badge {
  position: absolute;
  right: 11%;
  bottom: 35px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(70, 221, 167, 0.25);
  border-radius: 99px;
  color: var(--green);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.14em;
  background: rgba(70, 221, 167, 0.08);
}

.online-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.arena-spark {
  position: absolute;
  color: rgba(255, 255, 255, 0.85);
}

.spark-one { top: 33px; left: 17%; font-size: 20px; }
.spark-two { right: 17%; top: 65px; font-size: 12px; }

.coop-art {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: auto, 19px 19px;
}

.coop-device {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 255px;
  height: 178px;
  padding: 7px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 6px solid rgba(9, 12, 26, 0.82);
  border-radius: 24px;
  background: #0a0c18;
  box-shadow: 0 24px 45px rgba(5, 8, 22, 0.35);
  transform: translate(-50%, -50%) rotate(-5deg);
}

.coop-device i {
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 19px;
  font-style: normal;
}

.coop-device i:nth-child(1) { background: #b63455; transform: rotate(180deg); }
.coop-device i:nth-child(2) { background: #357bd2; transform: rotate(180deg); }
.coop-device i:nth-child(3) { background: #209e76; }
.coop-device i:nth-child(4) { color: #322c14; background: #e5ba3d; }

.coop-device b {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 6px solid #0a0c18;
  border-radius: 50%;
  color: #282150;
  font-size: 20px;
  background: white;
  transform: translate(-50%, -50%);
}

.coop-tap {
  position: absolute;
  z-index: 3;
  font-size: 45px;
  filter: drop-shadow(0 9px 8px rgba(6, 8, 20, 0.35));
}

.tap-one { right: 10%; bottom: 38px; transform: rotate(-28deg); }
.tap-two { top: 24px; left: 12%; transform: rotate(150deg); }

.local-badge {
  position: absolute;
  left: 9%;
  bottom: 27px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 211, 78, 0.26);
  border-radius: 99px;
  color: var(--yellow);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.12em;
  background: rgba(255, 211, 78, 0.08);
}

.local-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}

.portal-copy {
  position: relative;
  z-index: 4;
  display: grid;
  margin-top: auto;
  grid-template-columns: 1fr;
  gap: 17px;
}

.portal-copy > div:first-child > p {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.portal-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(37px, 4vw, 48px);
  line-height: 0.87;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.portal-coop .portal-copy h2 {
  font-size: clamp(34px, 3.8vw, 45px);
}

.portal-description {
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.portal-description > p {
  min-height: 44px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 590;
  line-height: 1.5;
}

.portal-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-meta b {
  display: grid;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  place-items: center;
  border-radius: 99px;
  color: var(--ink);
  font-size: 10px;
  background: white;
}

.family-note {
  display: flex;
  margin: 76px 0 24px;
  padding: 28px 32px;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 14px 50px rgba(62, 49, 116, 0.07);
  backdrop-filter: blur(14px);
}

.family-note > span {
  display: grid;
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 17px;
  color: white;
  font-size: 24px;
  background: linear-gradient(145deg, var(--pink), #f44f6c);
  transform: rotate(-5deg);
}

.family-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.family-note strong {
  display: block;
  color: var(--ink);
}

footer {
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  color: #9996aa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7f7ff;
  --muted: #b7b6c9;
  --surface: rgba(31, 34, 59, 0.82);
  --line: rgba(187, 181, 255, 0.15);
  --violet: #a99eff;
  --violet-dark: #d0cbff;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #111426;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 15% 3%, rgba(255, 211, 78, 0.08), transparent 23rem),
    radial-gradient(circle at 88% 16%, rgba(132, 113, 255, 0.13), transparent 27rem),
    linear-gradient(180deg, #17152a 0, #111426 54%, #151422 100%);
}

html[data-theme="dark"] .brand-icon b,
html[data-theme="dark"] .portal-meta b {
  color: #24213b;
}

html[data-theme="dark"] .collection-count,
html[data-theme="dark"] .theme-status {
  color: #71e6ba;
}

html[data-theme="dark"] .hero-hint {
  color: #aaa8bd;
}

html[data-theme="dark"] .player-dots i {
  border-color: #151426;
}

html[data-theme="dark"] .settings-button:hover,
html[data-theme="dark"] .theme-option {
  background: #20243d;
}

html[data-theme="dark"] .settings-panel {
  background: #191c31;
}

html[data-theme="dark"] .theme-option[aria-pressed="true"] {
  border-color: var(--violet);
  background: #292650;
  box-shadow: 0 0 0 3px rgba(169, 158, 255, 0.12);
}

html[data-theme="dark"] .family-note {
  box-shadow: 0 14px 50px rgba(0, 0, 0, 0.16);
}

html[data-theme="dark"] .access-gate {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 211, 78, 0.1), transparent 24rem),
    radial-gradient(circle at 82% 18%, rgba(132, 113, 255, 0.18), transparent 28rem),
    linear-gradient(150deg, #17152a, #111426 58%, #191525);
}

html[data-theme="dark"] .access-gate-card {
  border-color: rgba(169, 158, 255, 0.2);
  background: rgba(25, 28, 49, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] #access-code-input {
  border-color: rgba(169, 158, 255, 0.23);
  background: #20243d;
}

@media (max-width: 980px) {
  .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .access-gate {
    padding: 15px;
  }

  .access-gate-card {
    padding: 31px 23px;
    border-radius: 25px;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 28px, 510px);
  }

  .site-header {
    height: 80px;
  }

  .collection-count {
    padding: 9px;
  }

  .collection-count span {
    display: none;
  }

  .settings-button {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .settings-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero {
    padding: 59px 0 51px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 76px);
    line-height: 0.9;
  }

  .hero h1 em {
    -webkit-text-stroke-width: 1.5px;
  }

  .hero > p {
    margin-top: 24px;
    font-size: 15px;
  }

  .hero-hint {
    align-items: flex-start;
    line-height: 1.4;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .game-portal {
    min-height: 570px;
    grid-column: auto;
    border-radius: 24px;
  }

  .portal-art {
    height: 270px;
  }

  .portal-copy h2 {
    font-size: 41px;
  }

  .portal-coop .portal-copy h2 {
    font-size: 34px;
  }

  .portal-description > p {
    min-height: auto;
  }

  .family-note {
    margin-top: 51px;
    padding: 22px;
    align-items: flex-start;
  }

  .settings-panel {
    padding: 23px 19px;
  }

  footer {
    min-height: 85px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
  }
}

@media (max-width: 365px) {
  .site-brand strong {
    font-size: 16px;
  }

  .game-portal {
    padding-inline: 20px;
  }

  .portal-art {
    margin-inline: -20px;
  }

  .unicorn {
    left: 15%;
  }
}

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