/* mooclassic.com: the wiki's dark navy (tools/wiki/wiki.css) with gold and green, PT Serif headings. Phone first. */
:root {
  --page: #0b111e; --band: #0f1626; --panel: #172136; --panel2: #1d2a42; --border: #2e3c59; --text: #e6e6e6; --muted: #9aa7bf;
  --gold: #f0c060; --gold-dim: #c99a3e; --green: #5c9d2f; --green-hi: #6fb53a; --link: #cbd9f4;
  --serif: "PT Serif", Georgia, "Times New Roman", serif; --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.45, 0, .55, 1);  /* ease in and out, for every hover */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--page); font: 16px/1.6 var(--sans); }
a { color: var(--link); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0; text-wrap: balance; }
p, li, figcaption, summary { text-wrap: pretty; }  /* no word left alone on the last line (site.js does it where unsupported) */
h2 { font-size: 28px; color: var(--gold); }
/* the one word a heading leans on: brighter gold with a slow light passing over it */
em.shine { font-style: normal; background: linear-gradient(100deg, #f0c060 20%, #fff3cc 40%, #f0c060 60%) 0 0 / 250% 100%; -webkit-background-clip: text;
  background-clip: text; color: transparent; text-shadow: 0 0 24px rgba(240,192,96,.25); animation: sheen 5s var(--ease) infinite; }
@keyframes sheen { 0%, 40% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.lede { color: var(--muted); margin: 8px 0 22px; max-width: 640px; }

/* header */
.top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 19px var(--serif); letter-spacing: .3px; }
.brand img { width: 40px; height: 40px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { color: #e9eefa; text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 10px; border-radius: 6px; }
.top nav a:hover { background: rgba(255,255,255,.08); }
.top nav .nav-play { background: var(--green); color: #fff; }

/* hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; padding: 96px 0 56px; overflow: hidden;
  background: var(--band) url("img/hero.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,17,30,.94) 0%, rgba(11,17,30,.78) 45%, rgba(11,17,30,.25) 100%),
              linear-gradient(0deg, var(--page) 0%, rgba(11,17,30,0) 30%); }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1fr; gap: 24px; width: 100%; }
.hero-art { display: none; }
.kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.hero h1 { font-size: 46px; color: #fff; margin: 6px 0 10px; text-shadow: 0 3px 12px rgba(0,0,0,.6); }
.hero h1 span { color: var(--gold); }
.hero p.pitch { font-size: 18px; max-width: 560px; margin: 0 0 24px; color: #dfe5f1; }
.cta { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 13px 18px; border-radius: 8px; color: #fff; background: var(--panel2); border: 1px solid var(--border); }
.btn { transition: filter .5s var(--ease), box-shadow .5s var(--ease); }
.btn:hover { filter: brightness(1.12); }
.btn.go { background: linear-gradient(180deg, var(--green-hi), var(--green)); border-color: #7cc449; font-size: 19px; padding: 16px 22px;
  box-shadow: 0 6px 20px rgba(92,157,47,.35); }
.btn.gold { background: transparent; border-color: var(--gold-dim); color: var(--gold); }
.btn small { font-weight: 400; opacity: .8; font-size: 13px; }
.others { font-size: 14px; color: var(--muted); }
.others a { color: var(--link); margin-left: 10px; white-space: nowrap; }
.others a[hidden] { display: none; }
.online { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #dfe5f1; margin-top: 4px; }
.online[hidden] { display: none; }
.online i { width: 9px; height: 9px; border-radius: 50%; background: #64d35a; box-shadow: 0 0 0 4px rgba(100,211,90,.18); }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--band); border-top: 1px solid #18223a; border-bottom: 1px solid #18223a; }
.pillars { display: grid; gap: 14px; }
.pillar { position: relative; display: flex; gap: 16px; align-items: flex-start; padding: 22px 22px 22px 20px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, #1d2a45 0%, #141d31 70%); border: 1px solid var(--border); transition: border-color .55s var(--ease), box-shadow .55s var(--ease); }
.pillar::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.pillar:hover { border-color: var(--gold-dim); box-shadow: 0 0 28px rgba(240,192,96,.1); }
.medal { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--gold);
  background: radial-gradient(circle at 50% 40%, #3a3014 0%, #1a1a1f 70%); border: 1px solid var(--gold-dim); box-shadow: 0 0 18px rgba(240,192,96,.18), inset 0 0 12px rgba(240,192,96,.12); }
.medal img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.medal svg { width: 26px; height: 26px; }
/* the devices: phone, PC and browser take turns, each turning in as the last turns away */
.medal.devices { position: relative; perspective: 200px; }
.medal.devices .d { position: absolute; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.medal.devices .pc, .medal.devices .web { opacity: 0; transform: rotateY(90deg); }
.pillar:hover .devices .d { animation: device 2.4s var(--ease) infinite; }
.pillar:hover .devices .pc { animation-delay: .8s; }
.pillar:hover .devices .web { animation-delay: 1.6s; }
@keyframes device { 0% { opacity: 0; transform: rotateY(-90deg); } 8%, 30% { opacity: 1; transform: rotateY(0); } 38%, 100% { opacity: 0; transform: rotateY(90deg); } }
/* an item turns once while the box is hovered (site.js plays its turntable when it has one) */
.pillar:hover .medal img:not([data-turning]) { animation: wobble 1.4s var(--ease); }
@keyframes wobble { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 2px 0 4px; }
.pillar h3 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.pillar p { margin: 0; color: #b8c3d8; font-size: 15px; }

.classes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cls { background: radial-gradient(ellipse at 50% 35%, #26355a 0%, var(--panel) 70%); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 12px 16px; text-align: center; }
.cls:last-child { grid-column: span 2; }
.cls img { width: 100%; height: 170px; object-fit: contain; margin: 0 auto 8px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.cls h3 { font-size: 18px; color: #fff; }
.cls .line { font-size: 12.5px; color: var(--gold); margin: 4px 0 6px; }
.cls p { font-size: 13.5px; color: var(--muted); margin: 0; }

.events { display: grid; gap: 14px; }
.ev { position: relative; display: block; min-height: 190px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border);
  text-decoration: none; color: #fff; background: var(--panel) center / cover no-repeat; }
.ev::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,12,22,.95) 10%, rgba(8,12,22,.15) 75%); }
.ev div { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; }
.ev h3 { font-size: 22px; }
.ev p { margin: 4px 0 0; font-size: 14px; color: #d2d9e8; }
.ev { transition: border-color .55s var(--ease), box-shadow .55s var(--ease); }
.ev:hover { border-color: var(--gold-dim); box-shadow: 0 0 26px rgba(240,192,96,.12); }
.ev.render { background: #172136 url("img/ev-golden.jpg") center / cover no-repeat; }
.ev.render::before { background: linear-gradient(90deg, rgba(8,12,22,.94) 0%, rgba(8,12,22,.7) 45%, rgba(8,12,22,.1) 80%), linear-gradient(0deg, rgba(8,12,22,.85) 0%, transparent 50%); }
.ev.render div { right: 42%; }
.ev.render img { position: absolute; right: 6px; top: 6px; height: 88%; width: auto; filter: drop-shadow(0 8px 14px rgba(0,0,0,.7)); }

.worlds { display: grid; gap: 14px; }
.world { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.world.main { border-color: var(--gold-dim); }
.world h3 { font-size: 21px; color: #fff; }
.world .tag { display: inline-block; font: 700 11px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #0b111e; background: var(--gold);
  padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.world { display: flex; flex-direction: column; padding: 22px 24px; }
.world p { margin: 8px 0 14px; color: #b8c3d8; font-size: 15.5px; max-width: 30em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; color: #e9eefa; padding: 5px 11px; border-radius: 99px; background: #0f1626; border: 1px solid var(--border); }
.world.main .chips li { border-color: var(--gold-dim); color: var(--gold); }

.news { display: grid; gap: 12px; }
.news article { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 8px; padding: 14px 18px; }
.news time { font-size: 13px; color: var(--muted); }
.news h3 { font-size: 19px; color: #fff; margin: 2px 0 6px; }
.news p { margin: 0; font-size: 15px; color: #cfd6e4; white-space: pre-line; }

.wiki { display: grid; gap: 22px; align-items: center; background: linear-gradient(120deg, #1d2a42, #141d31); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 20px; }
.wiki-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.wiki-icons img { width: 56px; height: 56px; object-fit: contain; background: #0f1626; border: 1px solid var(--border); border-radius: 8px; padding: 4px; }
.wiki p { color: var(--muted); margin: 8px 0 16px; }

.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: #fff; }


/* header pill, beta badge, the four numbers */
.live { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #dff5d8; background: rgba(100,211,90,.12);
  border: 1px solid rgba(100,211,90,.35); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.live[hidden] { display: none; }
.live i, .beta i, .online i, .live-badge::before { width: 8px; height: 8px; border-radius: 50%; background: #64d35a; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(100,211,90,.6); } 70% { box-shadow: 0 0 0 9px rgba(100,211,90,0); } 100% { box-shadow: 0 0 0 0 rgba(100,211,90,0); } }
.top nav .nav-sign { border: 1px solid var(--gold-dim); color: var(--gold); }
.beta { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 6px 14px; border-radius: 99px; text-decoration: none;
  font-weight: 700; font-size: 14px; color: #0b111e; background: linear-gradient(90deg, #f0c060, #ffe29a); box-shadow: 0 4px 18px rgba(240,192,96,.3); }
.beta i { background: #2e8a1e; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 22px; max-width: 560px; }
.stats li { background: rgba(15,22,38,.78); border: 1px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; backdrop-filter: blur(4px); }
.stats b { display: block; font: 700 26px/1.1 var(--serif); color: var(--gold); }
.stats span { font-size: 12px; color: #cfd6e4; }
.online { font-size: 16px; font-weight: 600; }
.online i { width: 10px; height: 10px; }
.hero-art img { transition: opacity .25s; }
.hero-art img.swap { opacity: 0; }

/* the progression road (front page): a track with a node per step, lit up to where we are; vertical on phones */
.road { list-style: none; position: relative; display: grid; gap: 0; margin: 8px 0 26px; padding: 0 0 0 34px; }
.road::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px;
  background: linear-gradient(180deg, var(--green-hi) 0, var(--green-hi) 12%, #3a4766 24%, #3a4766 100%); }
.road li { position: relative; padding: 0 0 26px; }
.road .dot { position: absolute; left: -31px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: #0b111e; border: 2px solid #4a5878; }
.road li.now .dot { background: var(--green-hi); border-color: #b8f08a; box-shadow: 0 0 0 0 rgba(111,181,58,.6); animation: ring 2.2s var(--ease) infinite; }
.road li.next .dot { border-color: var(--gold); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(111,181,58,.55); } 70% { box-shadow: 0 0 0 12px rgba(111,181,58,0); } 100% { box-shadow: 0 0 0 0 rgba(111,181,58,0); } }
.road .art { display: flex; gap: 2px; align-items: center; height: 56px; margin-bottom: 8px; }
.road .art img { height: 52px; width: auto; max-width: 64px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.road .art.four img { height: 46px; max-width: 30px; }
.road a { display: block; color: inherit; text-decoration: none; border-radius: 12px; margin: -10px; padding: 10px; transition: background .55s var(--ease); }
.road a:hover { background: rgba(240,192,96,.06); }
.road .art img { transition: transform .55s var(--ease), filter .55s var(--ease); }
.road a:hover .art img { transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(240,192,96,.45)) drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.road a:hover b { color: var(--gold); }
.road b { transition: color .55s var(--ease); }
.timeline > li { scroll-margin-top: 90px; }
.timeline > li:target { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 0 30px rgba(240,192,96,.15); }
.road .st { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8a97b3; }
.road li.now .st { color: #8ee36a; }
.road li.next .st { color: var(--gold); }
.road b { display: block; color: #fff; font-family: var(--serif); font-size: 19px; margin: 2px 0 4px; }
.road p { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 22em; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 2px solid var(--border); }
.timeline > li { position: relative; margin: 0 0 26px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.timeline > li::before { content: ""; position: absolute; left: -32px; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--border); }
.timeline > li.now { border-color: var(--green); }
.timeline > li.now::before { background: var(--green); border-color: #9be36e; }
.timeline h2 { font-size: 24px; color: #fff; margin: 6px 0 6px; }
.timeline p, .timeline ul { color: #cfd6e4; margin: 0 0 6px; }
.timeline ul { padding-left: 20px; }
.opens { display: grid; gap: 10px 18px; margin: 12px 0 8px; }
.opens h3 { font: 700 11px var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.opens ul { margin: 0; padding-left: 18px; font-size: 15px; }
.rules { margin-top: 8px !important; font-size: 13.5px; color: var(--muted) !important; }
.when { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; font: 700 11px var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #0b111e;
  background: var(--gold); padding: 3px 9px; border-radius: 99px; margin-right: 6px; }
.live-badge { background: #64d35a; }
.live-badge::before { content: ""; background: #1d5c12; }
.note { background: linear-gradient(120deg, #1d2a42, #141d31); border: 1px solid var(--border); border-radius: 12px; padding: 22px 22px; }
.note h3 { color: var(--gold); font-size: 22px; }
.note p { color: #cfd6e4; }

/* classes: the locked one */
.cls { position: relative; }
.cls.locked img { filter: grayscale(.85) brightness(.55) drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.cls.locked h3, .cls.locked .line, .cls.locked p { opacity: .55; }
.cls .lock { display: inline-block; margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold);
  border: 1px solid var(--gold-dim); border-radius: 99px; padding: 3px 9px; }

/* features */
.feats { display: grid; gap: 14px; }
.feat { margin: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.feat img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f1626; }
.feat.big { margin-bottom: 14px; }
.feat.big img { aspect-ratio: 874 / 402; }
.feat.big ul { margin: 6px 0 0; padding-left: 18px; color: #cfd6e4; font-size: 15px; }
.feat.big li { margin: 4px 0; }
.feat figcaption { padding: 14px 18px 16px; }
.feat h3 { color: #fff; font-size: 19px; margin-bottom: 4px; }
.feat p { margin: 0 0 10px; color: var(--muted); font-size: 14.5px; }
.feat-strip { display: grid; gap: 14px; margin-top: 14px; }
.mini { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); }
.mini h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.mini p { margin: 0; color: var(--muted); font-size: 14.5px; }
.medal.small { width: 48px; height: 48px; }
.medal.small svg { width: 24px; height: 24px; }
.medal.small img { width: 38px; height: 38px; }
.mini.more { position: relative; flex-direction: column; gap: 0; text-decoration: none; padding-right: 56px; border-color: var(--gold-dim);
  background: linear-gradient(135deg, #2a2412, #172136 70%); transition: box-shadow .55s var(--ease), border-color .55s var(--ease); }
.mini.more h3 { color: var(--gold); }
.mini.more .arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--gold); transition: transform .55s var(--ease); }
.mini.more:hover { border-color: var(--gold); box-shadow: 0 0 26px rgba(240,192,96,.15); }
.mini.more:hover .arrow { transform: translate(4px, -50%); }

/* links to the wiki's guides about what we built */
.explore-title { margin: 30px 0 12px; font-size: 20px; color: #fff; }
.explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.explore a { display: block; padding: 14px 16px; border-radius: 10px; text-decoration: none; background: #121b2e; border: 1px solid var(--border);
  transition: border-color .55s var(--ease), box-shadow .55s var(--ease); }
.explore a:hover { border-color: var(--gold-dim); box-shadow: 0 0 22px rgba(240,192,96,.1); }
.explore b { display: block; color: #fff; font-size: 15.5px; transition: color .55s var(--ease); }
.explore a:hover b { color: var(--gold); }
.explore span { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }

/* events: the entry ticket */
.ev .ticket { position: absolute; right: 12px; top: 12px; width: 72px; height: 72px; padding: 6px; border-radius: 12px;
  background: rgba(11,17,30,.72); border: 1px solid var(--gold-dim); transition: box-shadow .55s var(--ease), border-color .55s var(--ease); }
.ev .ticket img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); transition: filter .55s var(--ease); }
.ev:hover .ticket { border-color: var(--gold); box-shadow: 0 0 22px rgba(240,192,96,.32), inset 0 0 14px rgba(240,192,96,.14); }
.ev:hover .ticket img { filter: drop-shadow(0 0 7px rgba(255,214,120,.55)) brightness(1.08); }
/* sparkles: four small stars that twinkle, faded in and out with the hover */
.ticket i { position: absolute; width: 9px; height: 9px; opacity: 0; transition: opacity .55s var(--ease);
  background: radial-gradient(circle, #fffbe8 0 18%, rgba(255,226,154,.9) 30%, transparent 62%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.ticket i:nth-of-type(1) { left: 8px; top: 10px; }
.ticket i:nth-of-type(2) { right: 9px; top: 18px; width: 7px; height: 7px; }
.ticket i:nth-of-type(3) { left: 18px; bottom: 8px; width: 6px; height: 6px; }
.ticket i:nth-of-type(4) { right: 14px; bottom: 14px; }
.ev:hover .ticket i { opacity: 1; animation: twinkle 2.6s var(--ease) infinite; }
.ev:hover .ticket i:nth-of-type(2) { animation-delay: .7s; }
.ev:hover .ticket i:nth-of-type(3) { animation-delay: 1.4s; }
.ev:hover .ticket i:nth-of-type(4) { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.3); opacity: 0; } 45% { transform: scale(1); opacity: 1; } 70% { transform: scale(.8); opacity: .6; } }
.ev .entry { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--gold); }
.ev.render img { right: 0; top: 0; height: 100%; width: 70%; object-fit: contain; object-position: right center; }
.world .tag.temp { background: #8fb3ff; }

/* sign-up: a window */
dialog.signup { width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 26px 24px 20px; color: var(--text);
  background: linear-gradient(160deg, #1d2a42, #121a2c); border: 1px solid var(--gold-dim); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.signup::backdrop { background: rgba(5,8,15,.72); backdrop-filter: blur(3px); }
dialog.signup[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.signup h2 { font-size: 26px; }
.signup .sub { color: var(--muted); font-size: 14.5px; margin: 6px 0 18px; }
.signup .x { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; }
.signup .x:hover { background: rgba(255,255,255,.08); color: #fff; }
.oauth { display: grid; gap: 10px; }
.btn.sso { width: 100%; justify-content: center; font-size: 15px; padding: 11px 14px; background: #0f1626; cursor: pointer; }
.btn.sso:disabled { opacity: .55; cursor: default; filter: none; }
.btn.sso small { margin-left: 6px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-dim);
  border-radius: 99px; padding: 1px 6px; opacity: 1; }
.or { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#signup-form { display: grid; gap: 12px; }
#signup-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; color: #e9eefa; }
#signup-form label[hidden], #signup-form button[hidden] { display: none; }
#signup-form input { font: 16px var(--sans); color: #fff; background: #0f1626; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; }
#signup-form input:focus { outline: 2px solid var(--gold-dim); border-color: var(--gold-dim); }
#signup-form button.go { width: 100%; font-size: 17px; padding: 13px; cursor: pointer; }
#signup-form button:disabled { opacity: .6; }
.form-msg { margin: 0; color: #ffb4a8; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #9be36e; font: 700 22px var(--serif); }
.signup .fine { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }

/* wiki search and picture */
.search { position: relative; margin: 0 0 16px; }
.search input { width: 100%; font: 16px var(--sans); color: #fff; background: #0f1626; border: 1px solid var(--border); border-radius: 10px; padding: 13px 14px 13px 44px; }
.search > svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input:focus { outline: 2px solid var(--gold-dim); }
.search ul { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 4; list-style: none; margin: 0; padding: 6px; background: #121b2e;
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.search li a { display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 6px 8px;
  border-radius: 7px; text-decoration: none; color: #fff; }
.search li a:hover { background: var(--panel2); }
.search li img { grid-row: span 2; width: 36px; height: 36px; object-fit: contain; }
.search li b { font-weight: 600; font-size: 15px; }
.search li small { color: var(--muted); font-size: 12px; }
.search li.none { padding: 8px; color: var(--muted); font-size: 14px; }
.search li.loading::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--gold); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wiki-shot img { border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0,0,0,.5); transition: box-shadow .55s var(--ease), border-color .55s var(--ease); }
.wiki-shot:hover img { border-color: var(--gold-dim); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 26px rgba(240,192,96,.22); }

/* FAQ: one open at a time, its height and fade eased in and out together (site.js) */
.qa { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden;
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }
.qa.open { border-color: var(--gold-dim); box-shadow: 0 0 22px rgba(240,192,96,.08); }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 0; background: none;
  color: #fff; font: 600 16px/1.4 var(--sans); text-align: left; cursor: pointer; }
.qa button:hover span { color: var(--gold); }
.qa button span { transition: color .3s var(--ease); text-wrap: balance; }
.qa button:focus-visible { outline: 2px solid var(--gold-dim); outline-offset: -2px; border-radius: 10px; }
.qa i { position: relative; flex: none; width: 14px; height: 14px; }
.qa i::before, .qa i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--gold);
  transition: transform .35s var(--ease); }
.qa i::after { transform: rotate(90deg); }
.qa.open i::after { transform: rotate(0deg); }
.qa .a { height: 0; opacity: 0; overflow: hidden; transition: height .35s var(--ease), opacity .3s var(--ease); }
.qa .a p { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--border); color: #cfd6e4; }

/* downloads page */
.page-head { padding: 104px 0 24px; background: linear-gradient(180deg, #131c30, var(--page)); }
.page-head h1 { font-size: 38px; color: #fff; }
.dl { display: grid; gap: 14px; }
.dl article { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.dl article.mine { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.dl h2 { font-size: 22px; color: #fff; }
.dl .meta { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.dl ol { margin: 12px 0 0; padding-left: 20px; color: #cfd6e4; font-size: 15px; }

/* footer: centred */
footer { border-top: 1px solid #18223a; background: #080d18; padding: 40px 0 44px; font-size: 14px; color: var(--muted); text-align: center; }
footer .brand { justify-content: center; }
footer .tagline { max-width: 34em; margin: 10px auto 16px; text-wrap: balance; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
footer nav a { color: var(--link); text-decoration: none; white-space: nowrap; line-height: 2; transition: color .4s var(--ease); }
footer nav a:hover { color: var(--gold); }
footer .legal { font-size: 13px; margin: 18px 0 0; opacity: .8; }

@media (min-width: 720px) {
  .hero h1 { font-size: 64px; }
  .cta { flex-direction: row; flex-wrap: wrap; max-width: none; align-items: center; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .classes { grid-template-columns: repeat(5, 1fr); }
  .cls:last-child { grid-column: auto; }
  .hero { min-height: 640px; }
  .events { grid-template-columns: repeat(6, 1fr); }
  .events .ev { grid-column: span 2; min-height: 220px; }
  .events .ev.wide { grid-column: span 3; min-height: 260px; }
  .worlds { grid-template-columns: 1fr 1fr; }
  .wiki { grid-template-columns: 1fr 1.1fr; padding: 32px 36px; }
  .road { grid-template-columns: repeat(5, 1fr); gap: 18px; padding: 0; }
  .opens { grid-template-columns: repeat(3, 1fr); }
  .road::before { left: 9px; right: 9px; top: 9px; bottom: auto; width: auto; height: 2px;
    background: linear-gradient(90deg, var(--green-hi) 0, var(--green-hi) 10%, #3a4766 20%, #3a4766 100%); }
  .road li { padding: 38px 0 0; }
  .road .dot { left: 0; top: 0; }
  .feats { grid-template-columns: repeat(3, 1fr); }
  .feat.big { display: grid; grid-template-columns: 1.7fr 1fr; align-items: center; }
  .feat.big figcaption { padding: 18px 24px; }
  .feat.big h3 { font-size: 24px; }
  .feat-strip { grid-template-columns: repeat(3, 1fr); }
  .dl { grid-template-columns: repeat(2, 1fr); }
  h2 { font-size: 34px; }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1.25fr 1fr; align-items: center; }
  .hero-art { display: block; justify-self: center; position: relative; }
  .hero-art img { width: 380px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.8)); }
  .hero-art::before { content: ""; position: absolute; inset: 15% 5% 5%; background: radial-gradient(circle, rgba(240,140,40,.35), transparent 65%); }
}
@media (max-width: 720px) {
  .top nav a:not(.nav-play):not(.nav-sign) { display: none; }
  .stats b { font-size: 22px; }
  .stats span { font-size: 11px; }
}
@media (max-width: 380px) {
  .top .live { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.hero-art.alive img { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.hero-art.alive img:active { cursor: grabbing; }
