/* inner pages */

/* ---------- games ---------- */
.game { display: grid; gap: clamp(18px, 2.4vw, 32px); align-items: center; }
.game--feature { grid-template-columns: 1.45fr 1fr; }
.game--flip { grid-template-columns: 1fr 1.35fr; }
.game--wide { grid-template-columns: 1fr; }
.game__info { padding: clamp(24px, 3vw, 44px); display: grid; gap: 18px; justify-items: start; }
.game__info h2 { font-size: clamp(30px, 3.6vw, 52px); }
.game__info p { color: var(--ice); max-width: 46ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; padding: 0; }
.facts div { padding: 12px 16px; border-radius: 16px; background: rgba(90, 180, 255, .08); border: 1px solid var(--stroke); min-width: 96px; }
.facts dt { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1; }
.facts dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.game--wide .game__info { grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; }
.game--wide .game__info > :not(.facts) { grid-column: 1; }
.game--wide .game__info .facts { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.mosaic { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto auto; gap: 14px; }
.mosaic .m1 { grid-row: span 2; }
.mosaic .m1 img { aspect-ratio: 4 / 5.6; }
.mosaic .m2 img, .mosaic .m4 img { aspect-ratio: 16 / 9; }
.mosaic .m3 { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .game--feature, .game--flip { grid-template-columns: 1fr; }
  .game--flip .game__info { order: 2; }
  .game--wide .game__info { grid-template-columns: 1fr; }
  .game--wide .game__info .facts { grid-column: 1; grid-row: auto; }
}

/* ---------- ui ---------- */
.uiplate { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(18px, 2.4vw, 32px); padding: clamp(14px, 1.6vw, 22px); }
.uiplate .frame img { aspect-ratio: 4 / 3; transition: opacity .25s, transform .6s var(--ease); }
.uiplate .frame img.is-swapping { opacity: 0; transform: scale(1.02); }
.uiplate__side { display: flex; flex-direction: column; gap: 22px; padding: clamp(8px, 1.5vw, 20px); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--stroke); background: transparent; color: var(--muted);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s;
}
.tabs button:hover { color: var(--ink); border-color: var(--stroke-2); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--void); border-color: var(--ink); }
.uiplate h2 { font-size: clamp(28px, 3vw, 44px); margin-top: auto; }
.uiplate p { color: var(--ice); max-width: 38ch; }
.uiplate__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rule { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 10px; align-content: start; }
.rule b { font-family: var(--display); font-size: clamp(30px, 3.4vw, 48px); line-height: 1; color: var(--sky); }
.rule h3 { font-size: 19px; letter-spacing: -.01em; }
.rule p { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .uiplate, .rules { grid-template-columns: 1fr; } }

/* ---------- systems ---------- */
.groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.group { padding: 24px; display: grid; gap: 14px; align-content: start; }
.group h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.group h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--sky)); box-shadow: 0 0 12px var(--c, var(--sky)); }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.group li { display: grid; gap: 2px; font-size: 16px; line-height: 1.4; }
.group li span { font-size: 13px; color: var(--muted); }
@media (max-width: 1100px) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .groups { grid-template-columns: 1fr; } }

.code { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; align-items: stretch; }
.code__side { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 16px; align-content: start; }
.code__side h2 { font-size: clamp(26px, 2.8vw, 40px); }
.code__side p { color: var(--ice); }
.code__panel { border-radius: var(--r); overflow: hidden; border: 1px solid var(--stroke); background: #050b1c; display: flex; flex-direction: column; min-width: 0; }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--stroke); font-size: 13px; color: var(--muted); }
.code__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3a5c; }
.code__bar span { margin-left: 8px; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
pre { font-variant-ligatures: none; margin: 0; padding: 20px 22px 24px; overflow: auto; font: 14px/1.65 ui-monospace, "Cascadia Code", Consolas, monospace; color: #dbe8ff; tab-size: 4; flex: 1; }
.tk-k { color: #7cc4ff; } .tk-s { color: #ffd479; } .tk-c { color: #6f86ad; font-style: italic; } .tk-n { color: #ff9e7a; } .tk-t { color: #9df0c4; } .tk-f { color: #c9b3ff; }
@media (max-width: 900px) { .code { grid-template-columns: 1fr; } pre { font-size: 13px; } }

/* ---------- models: hatch ---------- */
.hatch { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 3vw, 48px); align-items: center; padding: clamp(24px, 3.4vw, 52px); }
.hatch h2 { font-size: clamp(30px, 3.4vw, 50px); }
.hatch__copy p { color: var(--ice); margin-top: 16px; max-width: 34ch; }
.hatch__count { margin-top: 18px; font-weight: 700; color: var(--sky); }
.egg { background: none; border: 0; padding: 18px; cursor: pointer; display: grid; justify-items: center; gap: 22px; }
.egg__shell {
  width: clamp(150px, 15vw, 210px); aspect-ratio: 4 / 5; position: relative; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(60% 50% at 35% 30%, #ffffff, #d9ecff 55%, #8fbfec 100%);
  box-shadow: 0 0 60px rgba(120, 190, 255, .45), inset -14px -18px 30px rgba(31, 111, 178, .45);
  transform-origin: 50% 92%; transition: transform .25s var(--ease);
}
.egg__shell::before, .egg__shell::after { content: ""; position: absolute; border-radius: 50%; background: var(--logo); }
.egg__shell::before { width: 22%; aspect-ratio: 1; top: 24%; left: 22%; }
.egg__shell::after { width: 13%; aspect-ratio: 1; top: 56%; right: 22%; }
.egg:hover .egg__shell { transform: rotate(-5deg) scale(1.04); }
.egg__btn { min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--void); font-weight: 800; display: inline-flex; align-items: center; }
.egg.is-shaking .egg__shell { animation: shake .4s ease-in-out 3; }
.egg.is-burst .egg__shell { animation: burst .3s var(--ease) forwards; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes burst { to { transform: scale(1.35); opacity: 0; filter: brightness(2.5); } }
.flash { position: fixed; inset: 0; z-index: 90; background: #eaf5ff; pointer-events: none; opacity: 0; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 15% { opacity: .85; } 100% { opacity: 0; } }
.card { border-radius: var(--r); background: #0a1630; border: 1px solid var(--stroke); padding: 16px 16px 22px; position: relative; overflow: hidden; transition: transform .5s var(--ease), opacity .3s; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--rc); }
.card[data-rarity="common"] { --rc: #c4c8cf; } .card[data-rarity="uncommon"] { --rc: #57d977; } .card[data-rarity="rare"] { --rc: #4bb3ff; } .card[data-rarity="epic"] { --rc: #b980ff; }
.card img { width: 100%; aspect-ratio: 480 / 525; object-fit: cover; border-radius: 14px; background: #172214; }
.card__rarity { color: var(--rc); font-weight: 800; margin-top: 14px; text-shadow: 0 0 16px var(--rc); }
.card__name { font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; }
.card__meta { color: var(--muted); font-size: 14px; margin-top: 4px; }
.card__new { position: absolute; top: 24px; right: 24px; background: #ffd23a; color: #1a1200; font-weight: 900; padding: 4px 10px; border-radius: 8px; transform: rotate(8deg); }
.card.is-hidden { opacity: 0; transform: translateY(16px) scale(.95); }
@media (max-width: 900px) { .hatch { grid-template-columns: 1fr; text-align: center; } .hatch__copy p { margin-inline: auto; } .card { max-width: 340px; justify-self: center; width: 100%; } }

.gallery { columns: 3 300px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin-bottom: 16px; }
.gallery figcaption { padding: 12px 4px 0; font-size: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 22px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- schedule ---------- */
.now { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.now__card { padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; }
.now__card small { color: var(--muted); font-weight: 600; }
.now__clock { font-family: var(--display); font-size: clamp(44px, 6vw, 84px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.now__state { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.now__state .status-dot { width: 11px; height: 11px; }
.week { padding: clamp(18px, 2.4vw, 32px); }
.week__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.week__head h2 { font-size: clamp(24px, 2.4vw, 34px); }
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: 64px 1fr 150px; gap: 14px; align-items: center; }
.row__day { font-weight: 800; }
.row.is-today .row__day { color: var(--sky); }
.track { position: relative; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--stroke); overflow: hidden; }
.track__on { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; background: linear-gradient(90deg, #2d84d6, #5ab4ff); box-shadow: 0 0 16px rgba(90, 180, 255, .45); }
.track__now { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; box-shadow: 0 0 10px #fff; }
.row__hours { font-size: 14px; color: var(--muted); text-align: right; }
.scale { display: grid; grid-template-columns: 64px 1fr 150px; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.scale div { display: flex; justify-content: space-between; }
.tz-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .now { grid-template-columns: 1fr; }
  .row, .scale { grid-template-columns: 44px 1fr; }
  .row__hours { grid-column: 2; text-align: left; margin-top: -6px; }
  .scale > :last-child { display: none; }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.handle { padding: clamp(26px, 3.4vw, 50px); display: grid; gap: 18px; align-content: space-between; min-height: 340px; }
.handle small { color: var(--muted); font-weight: 600; }
.handle__name { font-family: var(--display); font-size: clamp(56px, 9vw, 140px); font-weight: 800; letter-spacing: -.05em; line-height: .9; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: var(--ink); transition: color .25s, text-shadow .25s; }
.handle__name:hover { color: #fff; text-shadow: 0 0 40px rgba(90, 180, 255, .7); }
.handle__note { color: var(--sky); font-weight: 700; }
.side { display: grid; gap: 16px; }
.side .glass { padding: 26px; display: grid; gap: 10px; align-content: start; }
.side h3 { font-size: 20px; }
.side p { color: var(--muted); }
.ask { counter-reset: ask; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ask li { padding: 24px; display: grid; gap: 8px; align-content: start; }
.ask b { font-family: var(--display); font-size: 18px; }
.ask span { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .ask { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ask { grid-template-columns: 1fr; } }
.side .pill { justify-self: start; }
