/* Zoo Online – second layer on style.css: new start page, ranking, account area, game guide. */
:root { --ok: #8fd694; --bad: #ff8f7a; --blue: #8fc7ff; }
::selection { background: rgba(255, 138, 42, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ember), var(--gold2)); box-shadow: 0 0 12px var(--ember); }

/* nav: more entries, account area */
.nav-links a[aria-current="page"] { color: var(--gold2); }
.nav-acc { display: none; align-items: center; gap: 12px; }
.nav-acc-m { display: flex; gap: 12px; align-items: center; padding: 14px var(--gut) 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.nav-acc-m a.btn, .nav-acc a.btn { padding: .7em 1.1em; }
.acc-in { font: 600 .74rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--fg); white-space: nowrap; }
.acc-in:hover { color: var(--gold2); }
.nav-links .nav-acc-m a.acc-in { padding: 0; }
@media (min-width: 1000px) { .nav-links a { padding: 10px 9px; font-size: .7rem; letter-spacing: .13em; } .nav-acc { display: flex; } .nav-acc-m { display: none; } }
@media (min-width: 1000px) and (max-width: 1180px) { .nav-logo { font-size: .9rem; } .nav-links a { padding: 10px 6px; letter-spacing: .08em; } }

/* start page hero */
.hero { min-height: 100svh; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(0deg, var(--bg), transparent); pointer-events: none; z-index: 1; }
.hero-inner { animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); } }
.logo-main { animation: shine 7s linear infinite; background-size: 100% 220%; }
@keyframes shine { 0%, 100% { background-position: 50% 0; } 50% { background-position: 50% 60%; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 26px; }
.hero-cta .btn { padding: 1.1em 2em; font-size: .9rem; }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite; }
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; list-style: none; padding: 0; margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #d9d0c0; text-shadow: 0 1px 8px #000; }
.hero-meta li::before { content: "◆"; color: var(--ember2); margin-right: .6em; font-size: .7em; }

/* numbers band */
.band { padding: 0; margin-top: -1px; background: linear-gradient(180deg, var(--bg), #100e0d); border-block: 1px solid var(--line); }
.band ul { list-style: none; margin: 0 auto; padding: 26px var(--gut); max-width: var(--max); display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 10px; text-align: center; }
.band b { display: block; font: 700 clamp(2rem, 8vw, 3.2rem)/1 var(--display); background: linear-gradient(180deg, #fff3cf, var(--gold) 70%, #8d5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.band span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
@media (min-width: 720px) { .band ul { grid-template-columns: repeat(4, 1fr); padding-block: 38px; } }

/* class strips */
.strips-sec { padding: 90px 0 70px; background: radial-gradient(ellipse 80% 60% at 50% 60%, #1c1917, #0a0a0c 75%); overflow: hidden; }
.strips-sec .wrap { text-align: center; }
.strips { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px var(--gut) 10px; scrollbar-width: none; }
.strips::-webkit-scrollbar { display: none; }
.strip { position: relative; flex: none; width: 78vw; max-width: 340px; height: min(68svh, 560px); scroll-snap-align: center; overflow: hidden; text-decoration: none; border: 1px solid rgba(255, 255, 255, .08); background: radial-gradient(ellipse at 50% 60%, #2a2521, #0d0d10 75%); transition: flex-grow .6s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; }
.strip video { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 15 / 16; translate: -50% 0; object-fit: cover; filter: saturate(.25) brightness(.55); transition: filter .6s, transform .8s; }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 7, 8, .96) 0%, rgba(7, 7, 8, .35) 38%, transparent 60%); }
.strip-t { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.strip-t small { font: 600 .66rem/1.3 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--ember2); }
.strip-t b { font: 700 1.7rem/1.1 var(--display); color: #fff; letter-spacing: .04em; }
.strip-t em, .strip-t i { font-style: normal; font-size: .86rem; color: #d6cfc3; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
.strip-t i { color: var(--gold2); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.strip.on { border-color: rgba(255, 138, 42, .75); box-shadow: 0 0 50px rgba(255, 120, 40, .22), inset 0 0 60px rgba(255, 120, 40, .08); }
.strip.on video { filter: none; transform: scale(1.04); }
.strip.on .strip-t em { max-height: 9em; opacity: 1; }
.strip.on .strip-t i { max-height: 2em; opacity: 1; margin-top: 6px; }
@media (min-width: 1000px) {
  .strips { overflow: visible; max-width: 1500px; margin: 0 auto; }
  .strip { flex: 1 1 0; width: auto; max-width: none; min-width: 0; height: min(72vh, 640px); }
  .strip.on { flex-grow: 3.2; }
  .strip:not(.on) .strip-t b { font-size: 1.1rem; }
}

/* alternating picture / text rows */
.rows { display: grid; gap: 70px; margin-top: 40px; }
.row { display: grid; gap: 22px; align-items: center; }
.row .pic img { aspect-ratio: 16 / 10; }
.row h3 { font-size: clamp(1.4rem, 4.5vw, 2rem); color: var(--gold2); }
.row p { color: #d6cfc3; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 1.5em; position: relative; color: #d6cfc3; font-size: .94rem; }
.ticks li::before { content: "◆"; position: absolute; left: 0; top: .1em; color: var(--ember); font-size: .7em; }
@media (min-width: 860px) { .row { grid-template-columns: 1.15fr 1fr; gap: 56px; } .row:nth-child(even) .pic { order: 2; } }

/* glowing cards */
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 150, 60, .2), transparent 70%); pointer-events: none; }
.glow:hover::before { opacity: 1; }
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 30px; }
.cardx { background: linear-gradient(180deg, #1a1a21, #121217); border: 1px solid rgba(255, 255, 255, .07); padding: 22px 20px; transition: border-color .25s, transform .25s; }
.cardx:hover { border-color: rgba(255, 179, 71, .5); transform: translateY(-3px); }
.cardx h3 { color: var(--gold2); margin-bottom: .4em; }
.cardx p { color: var(--mut); font-size: .92rem; margin: 0; }
.cardx .when { display: block; font: 600 .7rem/1.4 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--ember2); margin-bottom: 8px; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 16px; } .cards.four { grid-template-columns: repeat(4, 1fr); } }

/* world clock */
.clock { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.clock li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 16px 18px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); border-left: 3px solid var(--ember); }
.clock b { font: 700 1.05rem/1.2 var(--display); letter-spacing: .03em; }
.clock small { grid-column: 1; color: var(--mut); font-size: .84rem; }
.clock time { grid-row: 1 / span 2; grid-column: 2; font: 700 .95rem/1.2 var(--body); color: var(--gold2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.clock time.live { color: var(--ok); text-shadow: 0 0 12px rgba(143, 214, 148, .6); }
@media (min-width: 860px) { .clock { grid-template-columns: 1fr 1fr; } }

/* podium (start page) */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; max-width: 760px; margin: 36px auto 26px; }
.pod { text-align: center; padding: 18px 8px 16px; background: linear-gradient(180deg, #221c15, #131217); border: 1px solid var(--line); position: relative; }
.pod.p1 { padding-top: 34px; border-color: rgba(255, 217, 142, .6); box-shadow: 0 0 40px rgba(255, 170, 60, .18); order: 2; }
.pod.p2 { order: 1; } .pod.p3 { order: 3; }
.pod i { font: 700 2rem/1 var(--display); font-style: normal; color: var(--gold2); display: block; }
.pod.p2 i { color: #cfd6de; } .pod.p3 i { color: #d59a6a; }
.pod b { display: block; margin: 8px 0 2px; font-size: 1.02rem; overflow-wrap: anywhere; }
.pod small { color: var(--mut); font-size: .78rem; }

/* sub-page head */
.phead { padding: calc(var(--nav) + 70px) 0 60px; overflow: hidden; text-align: center; }
.phead-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 14, .55), rgba(11, 11, 14, .78) 60%, var(--bg)), var(--img) center 30%/cover; }
.phead .wrap { position: relative; z-index: 2; }
.phead h1 { font-size: clamp(2.2rem, 9vw, 4.4rem); background: linear-gradient(180deg, #fff3cf, var(--gold2) 45%, var(--gold) 75%, #8d5a1f); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, .7)); }
.phead .lead { margin: 0 auto; color: #e3dbcd; }
.sec { padding: 64px 0; } .sec.alt { background: var(--bg2); }
.center { text-align: center; } .center .lead { margin-inline: auto; }
.note { border: 1px solid var(--line); background: var(--panel); padding: 14px 18px; color: #d6cfc3; font-size: .92rem; }

/* ranking */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 16px; }
.tabs button { flex: none; padding: .8em 1.2em; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); color: var(--mut); font: 600 .74rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.tabs button[aria-selected="true"], .tabs button:hover { border-color: var(--ember); color: #fff; background: rgba(255, 138, 42, .14); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tools input, .tools select, .field input, .field select { background: #0e0e12; border: 1px solid rgba(255, 255, 255, .14); color: var(--fg); font: 400 1rem/1.3 var(--body); padding: .8em .9em; border-radius: 2px; min-width: 0; }
.tools input { flex: 1 1 200px; }
.tools input:focus, .tools select:focus, .field input:focus, .field select:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(233, 179, 92, .2); }
.rank { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rank th { text-align: left; font: 600 .68rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.rank td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.rank td:first-child, .rank th:first-child { width: 3.4em; text-align: center; font-variant-numeric: tabular-nums; }
.rank td:last-child, .rank th:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--gold2); font-weight: 700; }
.rank tr.t1 td { background: linear-gradient(90deg, rgba(255, 200, 100, .16), transparent 70%); }
.rank tr.t2 td { background: linear-gradient(90deg, rgba(200, 210, 225, .12), transparent 70%); }
.rank tr.t3 td { background: linear-gradient(90deg, rgba(213, 154, 106, .12), transparent 70%); }
.rank tr.t1 td:first-child { color: var(--gold2); font-weight: 700; font-size: 1.15em; }
.rank tr.me td { outline: 1px solid var(--ember); outline-offset: -1px; }
.rank .g { color: var(--mut); font-size: .84em; display: block; }
.rank .c { color: var(--mut); }
.rank-wrap { overflow-x: auto; border: 1px solid rgba(255, 255, 255, .07); background: var(--panel); }
.rank .hide-s { display: none; }
@media (min-width: 640px) { .rank .hide-s { display: table-cell; } .rank .g { display: none; } }
.stand { color: var(--mut); font-size: .8rem; margin-top: 10px; }
.empty { padding: 40px 16px; text-align: center; color: var(--mut); }

/* forms */
.auth { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--nav) + 30px) var(--gut) 60px; overflow: hidden; }
.auth-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 14, .7), rgba(11, 11, 14, .9)), var(--img) center/cover; }
.panel { position: relative; z-index: 2; width: 100%; max-width: 440px; background: rgba(18, 18, 23, .92); border: 1px solid var(--line); padding: 30px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); backdrop-filter: blur(8px); }
.panel h1 { font-size: 1.7rem; color: var(--gold2); }
.panel > p { color: var(--mut); font-size: .92rem; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font: 600 .72rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #d6cfc3; }
.field small { color: var(--mut); font-size: .8rem; }
.field input { width: 100%; }
.meter { height: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }
.panel .btn { width: 100%; margin-top: 6px; }
.btn[disabled] { opacity: .5; cursor: wait; }
.msg { min-height: 1.4em; margin: 12px 0 0; font-size: .9rem; }
.msg.bad { color: var(--bad); } .msg.ok { color: var(--ok); }
.alt-link { margin-top: 18px; font-size: .9rem; color: var(--mut); text-align: center; }
.alt-link a { color: var(--gold2); }
.safe { list-style: none; padding: 14px 0 0; margin: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .8rem; color: var(--mut); }
.safe li::before { content: "🔒"; margin-right: .5em; filter: grayscale(1) brightness(1.4); }

/* account */
.dash { padding: calc(var(--nav) + 30px) 0 70px; }
.dash-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 18px; }
.dash-head h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 0; color: var(--gold2); }
.dash-head p { margin: 0; color: var(--mut); font-size: .9rem; }
.box { background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); padding: 20px 18px; margin-bottom: 14px; }
.box h2 { font-size: 1.15rem; color: var(--gold2); margin-bottom: .7em; }
.box h3 { font: 600 .72rem/1.3 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin: 18px 0 10px; }
.heroes { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.heroes button { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .1); color: var(--fg); cursor: pointer; font: inherit; text-align: left; }
.heroes button[aria-selected="true"] { border-color: var(--ember); background: rgba(255, 138, 42, .12); }
.heroes img { width: 40px; height: 48px; object-fit: contain; }
.heroes small { display: block; color: var(--mut); font-size: .76rem; }
.hero-grid { display: grid; gap: 14px; }
.figure { position: relative; min-height: 340px; background: radial-gradient(ellipse at 50% 60%, #2a2521, #0d0d10 75%); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; display: grid; place-items: end center; }
.figure img { height: 100%; max-height: 420px; width: auto; object-fit: contain; position: absolute; bottom: 0; }
.figure .tag { position: absolute; top: 12px; left: 12px; z-index: 2; font: 600 .68rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; padding: 6px 9px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line); color: var(--gold2); }
.figure .tag.on { color: var(--ok); border-color: rgba(143, 214, 148, .5); }
.xp { height: 8px; background: rgba(255, 255, 255, .08); margin: 6px 0 2px; overflow: hidden; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #b5531a, var(--ember), var(--ember2)); box-shadow: 0 0 10px var(--ember); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.kv div { background: #101014; border: 1px solid rgba(255, 255, 255, .06); padding: 10px 12px; }
.kv dt { font: 600 .64rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.kv dd { margin: 4px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold2); overflow-wrap: anywhere; }
.equip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.slot { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; background: #101014; border: 1px solid rgba(255, 255, 255, .06); padding: 9px 10px; min-height: 58px; }
.slot svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.slot small { display: block; font: 600 .6rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.slot b { font-size: .88rem; font-weight: 600; overflow-wrap: anywhere; }
.slot b u { text-decoration: none; color: var(--blue); margin-left: .3em; }
.slot b u.p6 { color: #c9a4ff; } .slot b u.p8 { color: var(--gold2); }
.slot.none { opacity: .45; }
.bag { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.bag li { display: flex; justify-content: space-between; gap: 10px; background: #101014; border: 1px solid rgba(255, 255, 255, .06); padding: 8px 10px; font-size: .88rem; }
.bag b { color: var(--gold2); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font: 600 .66rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 5px 8px; border: 1px solid currentColor; }
.pill.ok { color: var(--ok); } .pill.bad { color: var(--bad); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps li { counter-increment: s; padding-left: 2.4em; position: relative; color: #d6cfc3; font-size: .94rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1em; width: 1.7em; height: 1.7em; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold2); font-weight: 700; font-size: .85em; }
.secret { font: 700 1.05rem/1.5 ui-monospace, Consolas, monospace; letter-spacing: .12em; background: #0b0b0e; border: 1px dashed var(--gold); padding: 12px 14px; overflow-wrap: anywhere; user-select: all; color: var(--gold2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font: 700 .95rem/1 ui-monospace, Consolas, monospace; margin: 12px 0; }
.codes span { background: #0b0b0e; border: 1px solid rgba(255, 255, 255, .1); padding: 10px; text-align: center; user-select: all; }
.inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.inline .field { flex: 1 1 180px; margin: 0; }
.votes { display: grid; gap: 10px; }
.vote { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; background: #101014; border: 1px solid rgba(255, 255, 255, .07); padding: 14px 16px; }
.vote b { font-size: 1.02rem; } .vote small { color: var(--mut); grid-column: 1; }
.vote .btn { grid-row: 1 / span 2; grid-column: 2; }
.hist { list-style: none; padding: 0; margin: 0; font-size: .88rem; color: #d6cfc3; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.linkbtn { background: none; border: 0; color: var(--gold2); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
@media (min-width: 560px) { .kv { grid-template-columns: repeat(3, 1fr); } .bag { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 940px) { .hero-grid { grid-template-columns: 340px 1fr; align-items: start; } .figure { min-height: 460px; position: sticky; top: calc(var(--nav) + 14px); } .equip { grid-template-columns: repeat(3, 1fr); } .dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; } }

/* game guide */
.guide { display: grid; gap: 30px; padding-top: 30px; padding-bottom: 80px; }
.gnav { position: sticky; top: var(--nav); z-index: 5; background: rgba(11, 11, 14, .95); margin: 0 calc(var(--gut) * -1); padding: 10px var(--gut); border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.gnav a { flex: none; padding: .6em .9em; border: 1px solid rgba(255, 255, 255, .1); text-decoration: none; font: 600 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.gnav a:hover, .gnav a.on { border-color: var(--ember); color: #fff; background: rgba(255, 138, 42, .12); }
.gsec { scroll-margin-top: calc(var(--nav) + 70px); padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .06); margin-bottom: 34px; }
.gsec h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--gold2); }
.gsec h3 { color: var(--fg); margin-top: 1.6em; font-size: 1.1rem; }
.gsec p, .gsec li { color: #d6cfc3; }
.gsec ul { padding-left: 1.2em; } .gsec li { margin-bottom: .35em; }
.gsec figure { margin: 22px 0; border: 1px solid var(--line); background: #000; }
.gsec figure img { width: 100%; }
.gsec figcaption { padding: 10px 14px; font-size: .84rem; color: var(--mut); background: var(--panel); }
.gt { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .92rem; }
.gt th, .gt td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
.gt th { font: 600 .68rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.gt-wrap { overflow-x: auto; }
@media (min-width: 1000px) { .guide { grid-template-columns: 230px 1fr; gap: 50px; } .gnav { position: sticky; top: calc(var(--nav) + 20px); align-self: start; flex-direction: column; margin: 0; padding: 0; border: 0; background: none; max-height: calc(100vh - var(--nav) - 40px); overflow-y: auto; } .gsec { scroll-margin-top: calc(var(--nav) + 20px); } }

/* footer */
.foot-cols { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; padding-bottom: 26px; }
.foot-cols > div { grid-column: 1 / -1; }
.foot-claim { color: var(--mut); font-size: .88rem; margin: 10px 0 0; max-width: 300px; }
.foot .foot-cols nav { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot-cols b { font: 600 .68rem/1 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.foot .copy { border-top: 1px solid rgba(255, 255, 255, .06); padding-top: 18px; }
@media (min-width: 720px) { .foot-cols { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .foot-cols > div { grid-column: auto; } }
.shot .hero-inner, .shot .logo-main, .shot .btn-gold::after { animation: none; }
/* ?shot (full-page screenshots in a very tall window): heights that do not follow the window */
.shot .hero, .shot .auth { min-height: 860px; }
.shot .strip { height: 600px; }
.guide > * { min-width: 0; }
/* game guide: chapter pages */
.gpage { padding-top: calc(var(--nav) + 24px); }
.gpage h1 { font-size: clamp(2rem, 7vw, 3.2rem); color: var(--gold2); }
.gpage .eyebrow a { color: inherit; text-decoration: none; }
.gpage .lead { max-width: none; margin-bottom: 1.4em; }
.gpage .gsec { border: 0; margin: 0; min-width: 0; }
.gpage .gsec h2 { margin-top: 1.8em; padding-top: .9em; border-top: 1px solid rgba(255, 255, 255, .07); scroll-margin-top: calc(var(--nav) + 70px); }
.gtoc { list-style: none; padding: 14px 18px; margin: 0 0 10px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .07); columns: 2 220px; }
.gtoc li { margin: 0 0 .4em; } .gtoc a { color: var(--gold2); text-decoration: none; } .gtoc a:hover { text-decoration: underline; }
.gsec figure .g { display: block; width: 100%; border: 0; }
.gsec figure .g img { aspect-ratio: auto; opacity: 1; }
.gsec .note { margin: 16px 0; border-left: 3px solid var(--ember); }
.gsec .steps { margin: 14px 0; }
.gnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.gcard { text-decoration: none; display: block; } .gcard[hidden] { display: none; }

/* podium with turning figures (ranking and start page) */
.podium { max-width: 1040px; gap: 14px; align-items: end; margin: 26px auto 30px; }
.podium[hidden] { display: none; }
.pod { padding: 0 10px 16px; overflow: hidden; background: radial-gradient(ellipse 90% 60% at 50% 38%, #2b241c, #121116 72%); }
.pod.p1 { padding-top: 0; }
.pod-fig { position: relative; height: clamp(190px, 30vw, 330px); margin: 0 -10px; }
.pod.p1 .pod-fig { height: clamp(220px, 36vw, 400px); }
.pod-fig::after { content: ""; position: absolute; inset: auto 12% 4% 12%; height: 26px; background: radial-gradient(ellipse, rgba(255, 150, 60, .4), transparent 70%); filter: blur(7px); }
.pod.p1 .pod-fig::before { content: ""; position: absolute; inset: 0; background: conic-gradient(from 180deg at 50% 62%, transparent 0 42%, rgba(255, 200, 110, .16) 46%, transparent 50%, rgba(255, 200, 110, .16) 54%, transparent 58% 100%); animation: rays 9s ease-in-out infinite alternate; }
@keyframes rays { to { transform: rotate(6deg) scale(1.05); } }
.pod-fig canvas, .pod-fig img { position: absolute; z-index: 1; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; translate: -50% 0; }
.pod-fig [hidden] { display: none; }
.pod i { position: relative; z-index: 2; width: 2.1em; height: 2.1em; margin: -1.05em auto 8px; display: grid; place-items: center; font-size: 1.15rem; background: #0e0d10; border: 1px solid currentColor; rotate: 45deg; }
.pod i::first-letter { rotate: -45deg; }
.pod.p1 i { font-size: 1.4rem; box-shadow: 0 0 22px rgba(255, 190, 90, .45); }
.pod b { font: 700 clamp(1rem, 2.6vw, 1.5rem)/1.2 var(--display); letter-spacing: .03em; }
.pod.p1 b { color: var(--gold2); }
.pod dl { display: flex; justify-content: center; gap: 22px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pod dd { margin: 0; font: 700 1.25rem/1 var(--display); color: var(--fg); font-variant-numeric: tabular-nums; }
.pod dt { font: 600 .58rem/1.6 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.rank .lv { display: block; height: 3px; margin: 5px 0 0 auto; width: min(120px, 100%); background: rgba(255, 255, 255, .08); }
.rank .lv i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--gold2)); }
@media (max-width: 620px) { .podium { grid-template-columns: 1fr; max-width: 340px; } .pod.p1 { order: 1; } .pod.p2 { order: 2; } .pod.p3 { order: 3; } .pod-fig, .pod.p1 .pod-fig { height: 300px; } }
.pod i { rotate: none; background: none; border: 0; isolation: isolate; }
.pod i::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0e0d10; border: 1px solid currentColor; rotate: 45deg; }
.pod.p1 i { box-shadow: none; } .pod.p1 i::before { box-shadow: 0 0 22px rgba(255, 190, 90, .45); }

/* ancient animals */
.ut { padding: 70px 0; overflow: hidden; background: radial-gradient(ellipse 70% 60% at 30% 55%, #241d17, #0b0b0e 75%); }
.ut.alt { background: radial-gradient(ellipse 70% 60% at 70% 55%, #1b1e25, #0b0b0e 75%); }
.ut-grid { position: relative; z-index: 2; display: grid; gap: 20px; align-items: center; }
.ut-fig { position: relative; height: min(70vh, 520px); display: grid; place-items: center; }
.ut-fig::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 6%; height: 34px; background: radial-gradient(ellipse, rgba(255, 150, 60, .35), transparent 70%); filter: blur(8px); }
.ut-fig canvas, .ut-fig img { position: relative; z-index: 1; height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.ut-fig [hidden] { display: none; }
.ut-text h2 { font-size: clamp(2.2rem, 8vw, 3.6rem); color: var(--gold2); margin-bottom: .2em; }
.ut-text p { color: #d6cfc3; }
.ut-forms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 18px 0 14px; }
.ut-forms button { padding: 12px 10px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .1); color: var(--mut); cursor: pointer; font: inherit; text-align: left; transition: border-color .2s, background .2s; }
.ut-forms b { display: block; font: 700 1.05rem/1.2 var(--display); color: var(--fg); letter-spacing: .03em; }
.ut-forms small { font-size: .74rem; letter-spacing: .08em; }
.ut-forms button[aria-selected="true"], .ut-forms button:hover { border-color: var(--ember); background: rgba(255, 138, 42, .14); }
.ut-forms button[aria-selected="true"] b { color: var(--gold2); }
.ut-note { min-height: 1.6em; color: var(--ember2) !important; font-weight: 600; }
.cardx h3 a { color: inherit; text-decoration: none; } .cardx h3 a:hover { text-decoration: underline; }
@media (min-width: 900px) { .ut-grid { grid-template-columns: 1.1fr 1fr; gap: 50px; } .ut.alt .ut-fig { order: 2; } .ut-forms { grid-template-columns: repeat(4, 1fr); } .ut-fig { height: min(76vh, 620px); } }

/* ranking list as rows; every hero is a link */
.rank-wrap { border: 0; background: none; overflow: visible; }
.rl { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rl-row { display: grid; grid-template-columns: 2.6em 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 16px 8px 8px; background: var(--panel); border: 1px solid rgba(255, 255, 255, .06); text-decoration: none; color: var(--fg); transition: border-color .2s, transform .2s, background .2s; }
a.rl-row:hover { border-color: rgba(255, 179, 71, .55); background: #1c1c23; transform: translateX(3px); }
.rl-n { text-align: center; font: 700 1.05rem/1 var(--display); color: var(--mut); font-variant-numeric: tabular-nums; }
.rl-row.top1 .rl-n { color: var(--gold2); font-size: 1.35rem; } .rl-row.top2 .rl-n { color: #cfd6de; font-size: 1.2rem; } .rl-row.top3 .rl-n { color: #d59a6a; font-size: 1.2rem; }
.rl-row.top1 { border-color: rgba(255, 217, 142, .35); }
.rl-row.me { box-shadow: inset 3px 0 0 var(--ember); }
.rl-a { width: 44px; height: 52px; object-fit: contain; background: radial-gradient(circle at 50% 60%, #2a2521, #0d0d10 75%); }
.rl-crest { background: url("../img/crest.svg") center/70% no-repeat, radial-gradient(circle at 50% 60%, #2a2521, #0d0d10 75%); }
.rl-who { min-width: 0; } .rl-who b { display: block; font-size: 1.02rem; overflow-wrap: anywhere; } .rl-who small { color: var(--mut); font-size: .82rem; }
.rl-v { text-align: right; min-width: 104px; } .rl-v b { display: block; color: var(--gold2); font-variant-numeric: tabular-nums; } .rl-v small { color: var(--mut); font-size: .76rem; }
.rl-v .lv { display: block; height: 5px; margin: 5px 0 0 auto; width: 100%; background: rgba(255, 255, 255, .1); border-radius: 3px; overflow: hidden; }
.rl-v .lv i { display: block; height: 100%; min-width: 2px; background: linear-gradient(90deg, var(--ember), var(--gold2)); }
a.pod { display: block; text-decoration: none; color: inherit; transition: transform .25s, border-color .25s; }
a.pod:hover { transform: translateY(-4px); border-color: rgba(255, 217, 142, .8); }
/* hero page */
.back { margin: 0 0 14px; } .back a { color: var(--gold2); text-decoration: none; font-size: .9rem; }
.hero-fig .pod-fig { position: absolute; inset: 0; height: auto; margin: 0; }
.hero-name { font-size: clamp(2rem, 7vw, 3.2rem); color: var(--gold2); margin: 0 0 .1em; }
.hero-sub { color: #d6cfc3; margin-bottom: 14px; }
/* the standing figures fill only the middle of their frame: bring them closer */
.pod-fig { overflow: hidden; }
.pod-fig canvas, .pod-fig img { transform: scale(1.2); transform-origin: 50% 72%; }
