/* Homepage */
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 520px); gap: 34px; align-items: center; padding-top: 10px; }
.home-hero h1 { margin: 0; line-height: 0; }
.home-hero h1 img { width: min(380px, 80%); height: auto; filter: drop-shadow(0 10px 22px rgba(0,0,0,.45)); }
.home-hero .pitch { font-size: clamp(17px, 2.1vw, 21px); color: #dfe4ff; max-width: 34ch; margin: 18px 0 22px; font-weight: 700; line-height: 1.45; }
.home-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.home-hero .cta .btn { font-size: 16px; padding: 13px 20px; }
.home-hero .cta .btn.gold { font-family: var(--display); font-weight: 400; letter-spacing: .4px; }
.home-hero .cta .btn.down-btn { background: #3a3f63; color: #ffb3bb; box-shadow: none; cursor: not-allowed; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 7px 13px; border-radius: 999px; font-weight: 900; font-size: 13.5px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--muted); }
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9aa2c8; }
.status-pill.status-ok { color: #c9f7df; border-color: rgba(51, 214, 139, .5); }
.status-pill.status-ok::before { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.status-pill.status-bad { color: #ffc7cd; border-color: rgba(255, 90, 106, .5); }
.status-pill.status-bad::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }

/* the wild-encounter screen */
.encounter { border-radius: 26px; padding: 12px; background: linear-gradient(180deg, #f2384c, #b5192e); box-shadow: inset 0 2px 0 rgba(255,255,255,.3), 0 24px 50px rgba(2, 3, 16, .55); }
.encounter .glass { --tc: #62bf45; border-radius: 16px; overflow: hidden; background: #0b1130; box-shadow: inset 0 0 0 3px #5c0a15, inset 0 3px 10px rgba(0,0,0,.6); }
.encounter .scene { position: relative; aspect-ratio: 4 / 3; background:
    radial-gradient(90% 60% at 70% 0%, color-mix(in srgb, var(--tc) 60%, #fff 25%), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--tc) 45%, #9fd2ff 30%) 0%, color-mix(in srgb, var(--tc) 35%, #12163a 65%) 70%, #10153a 100%); }
.encounter .scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, transparent, rgba(4, 6, 22, .45)); }
.encounter .stage { position: absolute; left: 8%; right: 8%; bottom: 10%; top: 8%; z-index: 1; }
.encounter .stage::before { width: 70%; height: 20%; bottom: 4%; }
.encounter .stage .sprite { margin-bottom: 9%; }
.encounter .stage .sprite.enter { animation: dropIn .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes dropIn { from { transform: translateY(-26px) scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.encounter .msg { position: relative; margin: 10px; padding: 14px 16px; border-radius: 12px; background: #f7f8ff; color: #1b2340; box-shadow: inset 0 0 0 3px #3a4170, inset 0 0 0 6px #f7f8ff, inset 0 0 0 8px #c6cbe6; min-height: 92px; }
.encounter .msg p { margin: 0 0 10px; font-family: var(--pixel); font-size: 26px; line-height: 1.1; }
.encounter .msg .row { display: flex; flex-wrap: wrap; gap: 8px; }
.encounter .msg button, .encounter .msg a { border: 0; cursor: pointer; padding: 8px 14px; border-radius: 10px; font-weight: 900; font-size: 14px; text-decoration: none; background: #1b2340; color: #fff; }
.encounter .msg a { background: var(--crimson); }
.encounter .msg button:hover, .encounter .msg a:hover { filter: brightness(1.15); color: #fff; }

.jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 42px 0 10px; }
.jump a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: #fff; background: linear-gradient(180deg, rgba(30, 36, 86, .92), rgba(23, 28, 70, .92)); border: 1px solid var(--line); }
.jump a:hover { border-color: rgba(255,255,255,.65); color: #fff; }
.jump .n { grid-row: span 2; font-family: var(--pixel); font-size: 40px; color: var(--gold); line-height: 1; }
.jump b { font-weight: 900; font-size: 16px; }
.jump span { color: var(--muted); font-size: 13px; font-weight: 700; }
@media (max-width: 900px) { .home-hero { grid-template-columns: 1fr; } .jump { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .jump { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 40px; }
.split .panel { padding: 24px 26px; }
.split h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 10px; letter-spacing: .5px; }
.split p, .split li { color: #d8ddf8; }
.split ul { margin: 0; padding-left: 20px; }
.split li { margin: 8px 0; }
.split li strong { color: #fff; }
.guides { display: grid; gap: 8px; }
.guides a { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: #fff; background: rgba(10, 12, 40, .35); border: 1px solid var(--line); }
.guides a:hover { border-color: rgba(255,255,255,.6); color: #fff; }
.guides a i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: var(--gold); font-size: 17px; }
.guides a b { font-weight: 900; }
.guides a span { color: var(--muted); font-size: 13.5px; font-weight: 700; }
.faq-block { margin-top: 40px; padding: 24px 26px; }
.faq-block h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 12px; }
.faq-block details { padding: 14px 16px; border-radius: 14px; background: rgba(10, 12, 40, .35); border: 1px solid var(--line); margin: 8px 0; }
.faq-block summary { cursor: pointer; font-weight: 900; }
.faq-block details p { margin: 8px 0 0; color: #d8ddf8; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
#confetti { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 100; }
#confetti i { position: absolute; width: 8px; height: 8px; animation: pop .8s ease-out forwards; }
@keyframes pop { to { transform: translate(var(--dx), var(--dy)) rotate(260deg); opacity: 0; } }
