/* BorderlessTek Metaverse Academy: pilot step 1 (landing experience and tasters).
   One deliberate dark "night sky" world in BorderlessTek brand colours.
   Layout: one centred column, max 1000px, 16px side gutters; grids collapse to one column on phones. */
:root {
  --night: #0a0d22;
  --night-2: #10163a;
  --panel: #161d45;
  --panel-2: #1e2758;
  --line: #2f3a74;
  --ink: #eef1fb;
  --muted: #aab2d6;
  --teal: #61c7cc;      /* logo teal */
  --navy: #214396;      /* logo navy */
  --violet: #605be5;    /* website button colour */
  --violet-hi: #7672f2;
  --gold: #f2b54a;      /* keys and Merits */
  --gold-ink: #2a1c02;
  --good: #6fdc9a;
  --bad: #ff8f80;
  --display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.75) 0 1px, transparent 1.6px) 0 0 / 140px 140px,
    radial-gradient(circle at 70% 60%, rgba(255,255,255,.45) 0 1px, transparent 1.6px) 0 0 / 230px 230px,
    radial-gradient(circle at 40% 80%, rgba(97,199,204,.6) 0 1px, transparent 1.6px) 0 0 / 310px 310px,
    radial-gradient(ellipse at 50% -10%, #1f2d78 0, transparent 60%);
}
#app {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding-inline: 16px;
  padding-block: 0 56px;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; }
a { color: var(--teal); }
h1:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.eyebrow {
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}
.stack { display: grid; gap: 16px; }
.screen { display: grid; gap: 24px; padding-top: 8px; animation: rise .35s ease both; }
@keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Buttons */
button { font: inherit; color: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover:not([disabled]) { background: var(--violet-hi); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not([disabled]) { border-color: var(--teal); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-xl { min-height: 58px; padding: 14px 30px; font-size: 1.12rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--teal); text-decoration: underline; cursor: pointer; font: inherit; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-block: 14px;
}
.tb-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand {
  display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.72rem; line-height: 1.15;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); text-align: left;
}
.brand img { height: 34px; width: auto; }
.btn-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 12px 6px 8px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.85rem;
}
.btn-back svg { width: 18px; height: 18px; }
.stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; min-height: 36px;
  border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.chip svg { width: 22px; height: 22px; }
.chip .mini-av { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); overflow: hidden; }
.chip.gold svg { color: var(--gold); }
@media (max-width: 520px) { .brand span { display: none; } .chip.name { display: none; } }

/* Blink */
.blink { display: flex; align-items: flex-end; gap: 12px; max-width: 640px; }
.blink-sprite { width: 72px; flex: none; animation: bob 3.2s ease-in-out infinite; }
.blink-sm .blink-sprite { width: 52px; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(6deg); } }
.bubble {
  position: relative; display: flex; gap: 10px; align-items: flex-start;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px;
  padding: 12px 12px 12px 16px; min-width: 0;
}
.bubble p { font-size: 1.02rem; }
.bubble strong { color: var(--teal); }
.say {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--teal);
}
.say svg { width: 18px; height: 18px; }

/* Portal screen */
.portal-screen { min-height: calc(100vh - 40px); display: grid; place-items: center; text-align: center; padding-block: 32px; }
.portal-inner { display: grid; gap: 18px; justify-items: center; }
.portal-inner .logo { height: clamp(60px, 9vw, 80px); width: auto; }
.ring-wrap { position: relative; width: min(280px, 70vw); aspect-ratio: 1; margin-block: 8px; }
.ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--teal), var(--navy), var(--violet), var(--teal));
  animation: spin 14s linear infinite;
  box-shadow: 0 0 60px rgba(96,91,229,.55), 0 0 120px rgba(97,199,204,.25);
}
.ring::after {
  content: ""; position: absolute; inset: 16px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #233a8f 0, #12184a 45%, var(--night) 75%);
}
.ring-core { position: absolute; inset: 28%; display: grid; place-items: center; z-index: 1; animation: bob 3.2s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.portal-screen h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); }
.portal-screen .lede { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.portal-screen.entering .ring-wrap { animation: zoom .65s ease-in forwards; }
.portal-screen.entering .portal-inner > :not(.ring-wrap) { transition: opacity .3s; opacity: 0; }
@keyframes zoom { to { transform: scale(6); opacity: 0; } }

/* Doors */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.door {
  display: grid; gap: 10px; align-content: start; text-align: left; cursor: pointer;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; min-width: 0; transition: border-color .15s, transform .15s;
}
.door:hover { border-color: var(--c, var(--teal)); transform: translateY(-3px); }
.door .art { height: 120px; border-radius: 12px; overflow: hidden; background: var(--night-2); display: grid; place-items: center; }
.door .art svg { height: 100%; }
.door p { color: var(--muted); font-size: 0.95rem; }
.door .go { font-family: var(--display); font-weight: 700; color: var(--c, var(--teal)); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } .door { grid-template-columns: 110px 1fr; align-items: center; } .door .art { height: 90px; grid-row: span 3; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.footer-links > * { padding-top: 12px; }

/* Choice cards (age bands) */
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.choice {
  display: grid; gap: 6px; text-align: left; cursor: pointer; padding: 18px; min-width: 0;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius);
}
.choice:hover { border-color: var(--teal); }
.choice .age { font-family: var(--display); font-weight: 800; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.choice .tag { justify-self: start; font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.choice.open .tag { background: var(--teal); color: var(--night); }
.choice p { color: var(--muted); font-size: 0.93rem; }
.choice.who { justify-items: center; text-align: center; }
#who-body, #signin-body { display: grid; gap: 14px; }
.choice.who .who-av { width: 84px; }
.choice.who .who-av svg { width: 100%; height: auto; display: block; }
.choice.who .tag { justify-self: center; }
@media (max-width: 640px) { .choices { grid-template-columns: 1fr; } }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; }

/* Avatar maker */
.maker { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.av-stage {
  background: radial-gradient(circle at 50% 40%, var(--panel-2), var(--panel) 70%); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; display: grid; place-items: center; gap: 10px; position: sticky; top: 12px;
}
.av-stage svg { width: 200px; height: auto; }
.av-stage .nameplate { font-family: var(--display); font-weight: 800; font-size: 1.3rem; min-height: 1.6em; }
.controls { display: grid; gap: 18px; min-width: 0; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; }
.hint { font-size: 0.85rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 2px solid var(--line);
  background: var(--night-2); color: var(--ink); font: inherit; font-size: 1rem;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: none; }
textarea { min-height: 100px; resize: vertical; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer;
  background: var(--s); box-shadow: inset 0 0 0 2px rgba(0,0,0,.25);
}
.swatch[aria-pressed=true] { border-color: var(--ink); box-shadow: 0 0 0 3px var(--violet); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--panel); cursor: pointer; font-weight: 600;
}
.pill[aria-pressed=true] { border-color: var(--teal); background: rgba(97,199,204,.14); }
@media (max-width: 680px) { .maker { grid-template-columns: 1fr; } .av-stage { position: static; } .av-stage svg { width: 150px; } }

/* Map */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.realm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.realm {
  position: relative; display: grid; gap: 4px; align-content: start; text-align: left; padding: 0 0 14px;
  background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0;
}
button.realm { cursor: pointer; transition: transform .15s, border-color .15s; }
button.realm:hover { transform: translateY(-3px); border-color: var(--c); }
.realm .art { aspect-ratio: 5 / 3; overflow: hidden; margin-bottom: 8px; }
.realm .art svg { width: 100%; height: 100%; display: block; }
.realm h3, .realm .sub, .realm .status { padding-inline: 14px; }
.realm .sub { font-size: 0.78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.realm .status { font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.realm .status svg { width: 18px; height: 18px; flex: none; }
.realm.earned { border-color: var(--gold); }
.realm.earned .status { color: var(--gold); font-weight: 700; }
.realm.locked .art svg { filter: blur(5px) grayscale(.7); opacity: .55; transform: scale(1.08); }
.realm.locked h3 { color: var(--muted); }
.realm.locked .fog {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 5 / 3; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 0.82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.savebar {
  position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--panel-2); border: 2px solid var(--violet); border-radius: var(--radius); padding: 12px 14px 12px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}
.savebar p { font-weight: 600; }

/* Taster frame */
.taster-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--teal); }
.dots i.done { background: var(--gold); }
.feedback { min-height: 1.6em; font-weight: 700; font-family: var(--display); }
.feedback.good { color: var(--good); }
.feedback.bad { color: var(--bad); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; min-width: 0; }

/* Number Peaks */
.peaks {
  position: relative; height: 220px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(#1a2a6e, #2b3f94 70%, #3a56b8);
}
.peaks .mount { position: absolute; inset: 0; width: 100%; height: 100%; }
.peaks .cliff { position: absolute; bottom: 0; width: 22%; height: 46%; background: #2a3570; border-top: 6px solid #6fdc9a; }
.peaks .cliff.l { left: 0; border-radius: 0 14px 0 0; }
.peaks .cliff.r { right: 0; border-radius: 14px 0 0 0; }
.peaks .sign {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--gold-ink); font-family: var(--display); font-weight: 800;
  padding: 6px 14px; border-radius: 10px; white-space: nowrap; font-size: 1rem;
}
.bridge {
  position: absolute; left: 22%; right: 22%; bottom: calc(46% - 2px); height: 22px; display: flex; overflow: hidden;
  border-bottom: 3px dashed rgba(255,255,255,.35);
}
.bridge .seg {
  height: 100%; background: repeating-linear-gradient(90deg, #b07a43 0 18px, #8f5f31 18px 20px);
  border-right: 2px solid #5e3c1c; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 0.72rem; color: #fff6e8; transition: flex-basis .25s;
  min-width: 0; overflow: hidden; white-space: nowrap;
}
.bridge.over .seg { background: repeating-linear-gradient(90deg, #c0533f 0 18px, #9b3d2c 18px 20px); }
.peaks .walker { position: absolute; bottom: 46%; left: 6%; width: 64px; transition: left 1.6s ease-in-out; }
.peaks .walker svg { width: 100%; height: auto; display: block; }
.peaks.cross .walker { left: calc(94% - 64px); }
.peaks .flag { position: absolute; bottom: 46%; right: 8%; width: 30px; }
.planks { display: flex; flex-wrap: wrap; gap: 10px; }
.plank {
  min-height: 52px; min-width: 88px; padding: 8px 16px; border-radius: 10px; cursor: pointer;
  background: repeating-linear-gradient(90deg, #b07a43 0 22px, #a26f3c 22px 24px); color: #fff6e8;
  border: 3px solid #5e3c1c; font-family: var(--display); font-weight: 800; font-size: 1.15rem;
  font-variant-numeric: tabular-nums; box-shadow: 0 4px 0 #4a2f15;
}
.plank.dots { display: grid; justify-items: center; gap: 6px; min-width: 96px; padding: 10px 12px; }
.plank .pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; max-width: 76px; }
.plank .pips i { width: 12px; height: 12px; border-radius: 50%; background: #fff6e8; box-shadow: 0 1px 0 #5e3c1c; }
.plank .num { font-size: 1.3rem; line-height: 1; }
.plank[aria-pressed=true] { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 4px 0 #4a2f15; transform: translateY(-2px); }
.readout { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.readout b { font-family: var(--display); font-size: 1.2rem; }

/* Code Galaxy */
.galaxy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.space {
  position: relative; aspect-ratio: 6 / 5; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 80% 10%, #3a2f8f, #141a4a 55%, #0b0f2c);
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(5, 1fr);
  border: 2px solid var(--line);
}
.cell { border: 1px dashed rgba(255,255,255,.08); display: grid; place-items: center; }
.cell svg { width: 70%; height: 70%; }
.cell .star { transition: transform .3s, opacity .3s; }
.cell .star.got { transform: scale(1.8); opacity: 0; }
.rocket {
  position: absolute; left: 0; top: 0; width: calc(100% / 6); height: calc(100% / 5);
  display: grid; place-items: center; transition: transform .28s ease-in-out; z-index: 2;
}
.rocket svg { width: 70%; height: 70%; transition: transform .2s; }
.rocket.crash svg { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px) rotate(-8deg); } 75% { transform: translateX(4px) rotate(8deg); } }
.palette { display: flex; gap: 10px; flex-wrap: wrap; }
.blk {
  display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 14px; border-radius: 12px;
  background: var(--violet); color: #fff; border: 0; cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 0 #3c38a8;
}
.blk svg { width: 24px; height: 24px; }
.blk[disabled] { opacity: .45; cursor: not-allowed; }
.program { display: grid; gap: 8px; counter-reset: line; }
.slot {
  display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px 8px 6px 12px;
  border-radius: 12px; border: 2px dashed var(--line); color: var(--muted); font-size: 0.9rem;
}
.slot.filled { border: 2px solid var(--violet); background: rgba(96,91,229,.18); color: var(--ink); }
.slot .dir { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 800; flex: 1; }
.slot .dir svg { width: 24px; height: 24px; }
.times {
  min-width: 64px; min-height: 42px; border-radius: 10px; border: 2px solid var(--gold); background: var(--gold); color: var(--gold-ink);
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; cursor: pointer; font-variant-numeric: tabular-nums;
}
.del { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: grid; place-items: center; }
.del svg { width: 16px; height: 16px; }
@media (max-width: 720px) { .galaxy { grid-template-columns: 1fr; } }

/* Reward */
.reward { text-align: center; justify-items: center; }
.big-key { width: 140px; color: var(--gold); filter: drop-shadow(0 0 24px rgba(242,181,74,.6)); animation: keyin 1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes keyin { from { transform: scale(.2) rotate(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gain { display: inline-flex; gap: 10px; align-items: center; font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--gold); }
.gain svg { width: 30px; height: 30px; }
.clear-card { width: min(360px, 100%); border-radius: var(--radius); overflow: hidden; border: 2px solid var(--gold); }
.clear-card svg { display: block; width: 100%; height: auto; animation: unblur 2.2s .4s ease-out both; }
@keyframes unblur { from { filter: blur(8px) grayscale(.8); opacity: .5; } to { filter: none; opacity: 1; } }

/* Pitch */
.goal-area {
  position: relative; aspect-ratio: 16 / 8; max-width: 640px; width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(#173a8a 0 52%, #2f8f3a 52%);
  border: 2px solid var(--line);
}
.goal-area .frame { position: absolute; left: 8%; right: 8%; top: 14%; height: 56%; border: 6px solid #f4f6ff; border-bottom: 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 14px), repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 2px, transparent 2px 14px); }
.goal-area .keeper { position: absolute; bottom: 30%; left: 50%; width: 16%; transform: translateX(-50%); transition: left .35s ease-out, transform .35s; }
.goal-area .keeper svg { width: 100%; height: auto; display: block; }
.goal-area .aim { position: absolute; top: 34%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 3px rgba(0,0,0,.25); }
.goal-area .aim::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--gold); }
.goal-area .ball { position: absolute; bottom: 6%; left: 50%; width: 9%; aspect-ratio: 1; margin-left: -4.5%; transition: left .45s ease-out, bottom .45s ease-out, width .45s ease-out; }
.goal-area .ball svg { width: 100%; height: 100%; display: block; }
.shots { display: flex; gap: 8px; justify-content: center; }
.shots i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); }
.shots i.goal { background: var(--good); border-color: var(--good); }
.shots i.miss { background: var(--bad); border-color: var(--bad); }
.pitch-play { display: grid; gap: 16px; justify-items: center; text-align: center; }
.score { font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }

/* Parent, Guild, Partner pages */
.hero-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 22px; padding: 24px;
}
.hero-card .lede { font-size: 1.08rem; color: var(--muted); margin-top: 10px; max-width: 52ch; }
@media (max-width: 720px) { .hero-card { grid-template-columns: 1fr; } }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 720px) { .cols-2 { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.ticks li svg { width: 22px; height: 22px; color: var(--good); margin-top: 1px; }
.price { display: grid; gap: 6px; }
.price .amount { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price .local { color: var(--muted); }
.price .local strong { color: var(--ink); }
.ccy { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; }
.ccy select { width: auto; min-height: 40px; padding: 6px 10px; }
.progress-card { border: 2px solid var(--gold); }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.93rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--violet); }
.preview-note { font-size: 0.82rem; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 12px; }
.success { border: 2px solid var(--good); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; background: rgba(111,220,154,.08); }
.success h3 { color: var(--good); }
.tower { display: grid; gap: 10px; }
.floor {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-left: 5px solid #d8b450; border-radius: 14px; padding: 14px 16px;
}
.floor .n { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: #d8b450; text-align: center; font-variant-numeric: tabular-nums; }
.floor p { color: var(--muted); font-size: 0.93rem; }
.floor .rank { font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(216,180,80,.15); color: #e9c86a; white-space: nowrap; }
.floor.soon { border-left-style: dashed; }
@media (max-width: 520px) { .floor { grid-template-columns: 40px minmax(0, 1fr); } .floor .rank { grid-column: 2; justify-self: start; } }
.gate-words { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--teal); letter-spacing: .02em; }
.gate-input { max-width: 220px; font-size: 1.4rem !important; letter-spacing: .3em; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.hero-art { width: min(200px, 60%); justify-self: center; }
.hero-art svg { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .hero-art { width: 120px; } }

/* 3D campus */
.campus {
  position: relative; height: min(72vh, 660px); min-height: 440px; border-radius: 22px; overflow: hidden;
  border: 2px solid var(--line); background: linear-gradient(#8fd3ff, #d4f0ff 70%);
}
.campus-stage { position: absolute; inset: 0; }
.campus-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.campus-stage canvas:active { cursor: grabbing; }
.pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pin {
  position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 12px 3px 3px; border-radius: 999px; background: #ffffff; color: #0f1733; border: 2px solid #ffffff;
  box-shadow: 0 4px 14px rgba(10, 13, 34, .28); font-family: var(--display); font-weight: 700; font-size: .78rem;
  white-space: nowrap; cursor: pointer; will-change: transform;
}
.pin .ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e3eaf7; font-size: 15px; line-height: 1; }
.pin.open .ico { background: #c9eff1; }
.pin.earned { border-color: var(--gold); }
.pin.earned .ico { background: #fbe3b3; }
.pin.locked { background: rgba(255, 255, 255, .72); color: #4f5874; padding-right: 3px; border-color: transparent; }
.pin.locked .ico { filter: grayscale(1); opacity: .7; }
.pin.locked .label, .pin.minor .label { display: none; }
.pin.locked:hover .label, .pin.locked:focus-visible .label, .pin.minor:hover .label, .pin.minor:focus-visible .label { display: inline; padding-right: 9px; }
.pin.minor { padding-right: 3px; }
.campus-tools { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; z-index: 3; }
.tool {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
  border-radius: 999px; border: 0; background: rgba(10, 13, 34, .82); color: #fff; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
}
.tool svg { width: 16px; height: 16px; }
.campus-panel {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 4; max-width: 600px; margin: 0 auto;
  background: rgba(16, 22, 58, .95); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35); animation: rise .3s ease both;
}
.panel-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 36px; gap: 12px; align-items: center; }
.mini-blink svg { width: 46px; height: 46px; display: block; }
.panel-row strong { color: var(--teal); }
.campus-panel .btn { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.tour-count { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .campus { height: 74vh; min-height: 460px; }
  .panel-row { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .mini-blink svg { width: 36px; height: 36px; }
  .campus-panel p { font-size: .93rem; }
}
[hidden] { display: none !important; }
.savebar.flat { position: static; box-shadow: none; }
.campus-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5;
  display: grid; gap: 10px; justify-items: center; padding: 16px 22px; border-radius: 16px;
  background: rgba(10, 13, 34, .82); color: #fff; font-family: var(--display); font-weight: 700; transition: opacity .4s;
}
.campus-loading i { display: block; width: 180px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.campus-loading b { display: block; height: 100%; background: var(--teal); transition: width .2s; }
.campus-loading.done { opacity: 0; }
.pin.plot { background: rgba(255, 255, 255, .8); color: #4f5874; border-color: transparent; padding-right: 3px; }
.pin.plot .label { display: none; }
.pin.plot:hover .label, .pin.plot:focus-visible .label { display: inline; padding-right: 9px; }

/* Children's own sign-ins (parent view on "Who's playing?") */
.own-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.own-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow-wrap: anywhere; }
.own-list li > div:first-child { min-width: 0; flex: 1 1 220px; }
.own-state { display: flex; align-items: center; gap: 10px; }
.own-state .tag { font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.choice.watch { cursor: default; }
