:root {
  color: #21153b;
  background: #f5f0ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #21153b;
  --paper: #f5f0ff;
  --red: #7139df;
  --blue: #1852d1;
  --acid: #39d9ff;
  --pink: #ff5cc8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; overflow-x: hidden; background:
  linear-gradient(rgba(33,21,59,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(33,21,59,.035) 1px, transparent 1px),
  var(--paper);
  background-size: 22px 22px;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px; color: white; background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.masthead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(12px, 3vw, 38px);
  min-height: 88px;
  padding: 10px clamp(14px, 4vw, 58px);
  border-bottom: 4px solid var(--ink);
  background: rgba(244,239,223,.96);
}
.brand { display: flex; align-items: baseline; text-decoration: none; font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 1000; line-height: .82; letter-spacing: -.095em; }
.brand strong { color: var(--red); }
.brand em { color: var(--blue); font-style: normal; }
.edition { display: flex; flex-direction: column; padding-left: 18px; border-left: 2px solid var(--ink); font-size: .58rem; letter-spacing: .12em; }
.edition b { color: var(--blue); }
.narnia-link { padding: 7px 11px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); text-align: right; text-decoration: none; font-size: .54rem; line-height: 1.2; }
.narnia-link strong { color: var(--red); }

.hero {
  position: relative;
  min-height: min(670px, 78vh);
  padding: clamp(62px, 9vw, 128px) clamp(16px, 5.2vw, 78px) 70px;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(circle at 79% 32%, var(--acid) 0 8%, transparent 8.2%),
    linear-gradient(112deg, transparent 0 57%, var(--red) 57.2% 68%, transparent 68.2%),
    linear-gradient(155deg, transparent 0 66%, var(--blue) 66.2% 80%, transparent 80.2%);
}
.hero::before, .hero::after {
  position: absolute; content: ""; border: 3px solid var(--ink); background: var(--pink); transform: rotate(12deg);
}
.hero::before { right: 14%; bottom: -60px; width: 180px; height: 290px; }
.hero::after { right: 4%; bottom: 16%; width: 72px; height: 72px; border-radius: 50%; background: var(--acid); }
.hero-kicker { display: flex; align-items: center; gap: 10px; max-width: 760px; color: var(--blue); font-size: .62rem; font-weight: 1000; letter-spacing: .16em; }
.hero-kicker i { flex: 1; height: 2px; max-width: 90px; background: var(--ink); }
.hero h1 { max-width: 1050px; margin: 20px 0 25px; font-size: clamp(4.6rem, 12.5vw, 11.5rem); line-height: .72; letter-spacing: -.09em; }
.hero h1 strong { display: inline-block; color: var(--red); transform: rotate(-1.5deg); text-shadow: 6px 6px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
.hero > p { max-width: 590px; margin: 0; padding-left: 16px; border-left: 7px solid var(--blue); font-size: clamp(1rem, 1.8vw, 1.38rem); font-weight: 750; line-height: 1.45; }
.hero-stamp { position: absolute; right: 28%; top: 15%; display: grid; place-items: center; width: 126px; height: 126px; border: 3px solid var(--ink); border-radius: 50%; color: white; background: var(--blue); box-shadow: 8px 8px 0 var(--ink); font-size: .76rem; font-weight: 1000; line-height: .88; text-align: center; transform: rotate(10deg); }

.catalog { padding: clamp(42px, 7vw, 96px) clamp(14px, 4vw, 58px); }
.catalog-heading { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 24px; align-items: end; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 3px solid var(--ink); }
.catalog-heading span { color: var(--blue); font-size: .6rem; font-weight: 1000; letter-spacing: .15em; }
.catalog-heading h2 { margin: 5px 0 0; font-size: clamp(2.2rem, 5vw, 5.2rem); line-height: .87; letter-spacing: -.06em; }
.catalog-heading p { margin: 0; font-weight: 750; line-height: 1.45; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); }
.game-card { position: relative; display: grid; grid-template-rows: auto minmax(280px, 42vw) auto; border: 3px solid var(--ink); background: white; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.card-index { display: flex; justify-content: space-between; align-items: center; padding: 10px 13px; border-bottom: 3px solid var(--ink); }
.card-index span { font-size: 1.45rem; font-weight: 1000; }
.card-index b { font-size: .58rem; letter-spacing: .12em; }
.card-art { position: relative; min-height: 300px; overflow: hidden; border-bottom: 3px solid var(--ink); isolation: isolate; }
.game-card--battle .card-art { background: linear-gradient(#9eeaff 0 60%, #c9b9f5 60%); }
.sun { position: absolute; top: 12%; right: 14%; width: 72px; height: 72px; border: 3px solid var(--ink); border-radius: 50%; background: var(--acid); }
.terrain { position: absolute; bottom: -30px; width: 68%; height: 54%; border: 3px solid var(--ink); border-radius: 50% 50% 0 0; background: #7155c6; transform: rotate(-8deg); }
.terrain--one { left: -18%; }
.terrain--two { right: -25%; bottom: -8px; background: #4b4290; transform: rotate(7deg); }
.projectile { position: absolute; top: 24%; left: 43%; z-index: 2; color: var(--red); font-size: 2rem; filter: drop-shadow(-28px 24px 0 var(--red)) drop-shadow(-28px 24px 0 var(--red)); }
.game-card--battle .card-art > strong { position: absolute; top: 11%; left: 7%; z-index: 3; color: white; font-size: clamp(3.8rem, 8vw, 8rem); letter-spacing: -.1em; transform: rotate(-9deg); text-shadow: 6px 6px 0 var(--ink); -webkit-text-stroke: 2px var(--ink); }
.game-card--jaborg .card-art { color: white; background: repeating-linear-gradient(90deg, #21153b 0 18px, #292764 18px 36px); }
.city { position: absolute; inset: 32% -5% 0; background:
  linear-gradient(90deg, transparent 0 7%, var(--blue) 7% 12%, transparent 12% 20%, #7120b8 20% 29%, transparent 29% 38%, var(--pink) 38% 42%, transparent 42% 54%, var(--blue) 54% 65%, transparent 65% 76%, #7120b8 76% 87%, transparent 87%);
  clip-path: polygon(0 100%, 0 48%, 9% 48%, 9% 12%, 18% 12%, 18% 58%, 29% 58%, 29% 2%, 40% 2%, 40% 48%, 52% 48%, 52% 21%, 61% 21%, 61% 62%, 72% 62%, 72% 8%, 82% 8%, 82% 47%, 100% 47%, 100% 100%);
}
.glitch { position: absolute; z-index: 2; font-weight: 1000; letter-spacing: .08em; }
.glitch--one { top: 9%; left: 6%; color: var(--pink); font-size: clamp(2.4rem, 6vw, 6rem); text-shadow: 5px 4px 0 var(--blue); transform: skew(-8deg); }
.glitch--two { right: 6%; bottom: 8%; color: var(--acid); font-size: clamp(4rem, 10vw, 9rem); line-height: .8; }
.avatar { position: absolute; right: 37%; top: 41%; z-index: 3; font-size: clamp(3rem, 7vw, 6rem); filter: drop-shadow(7px 7px 0 #2b1b68); }
.game-card--jaborg .card-art > strong { position: absolute; left: 6%; bottom: 8%; z-index: 3; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .72; letter-spacing: -.07em; }
.card-copy { display: flex; flex-direction: column; min-height: 315px; padding: clamp(18px, 3vw, 30px); }
.card-copy small { color: var(--blue); font-size: .54rem; font-weight: 1000; letter-spacing: .11em; }
.card-copy h3 { margin: 8px 0 13px; font-size: clamp(2.25rem, 4.8vw, 5rem); line-height: .76; letter-spacing: -.065em; }
.card-copy p { max-width: 560px; margin: 0 0 22px; color: #4d3d66; font-weight: 650; line-height: 1.48; }
.play-button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 60px; margin-top: auto; padding: 12px 16px; border: 3px solid var(--ink); color: white; background: var(--blue); box-shadow: 5px 5px 0 var(--ink); font-weight: 1000; letter-spacing: .06em; }
.game-card--jaborg .play-button { color: var(--ink); background: var(--acid); }
.play-button span { font-size: 1.7rem; }
.play-button:hover, .play-button:focus-visible { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }

.manifesto { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); background: var(--acid); }
.manifesto span { min-height: 105px; padding: 20px; border-right: 2px solid var(--ink); font-size: .7rem; font-weight: 1000; line-height: 1.25; }
.manifesto span:last-child { border: 0; }
.manifesto b { display: block; margin-bottom: 12px; color: var(--blue); font-size: 1.45rem; }
footer { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 20px; padding: 30px clamp(14px, 4vw, 58px); color: white; background: var(--ink); }
footer strong { font-size: 1.35rem; }
footer span { color: var(--acid); font-size: .62rem; font-weight: 1000; }
footer p { justify-self: end; margin: 0; font-size: .72rem; }

.game-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; color: white; background: #15113f; }
.game-dialog::backdrop { background: #15113f; }
.game-dialog[open] { display: grid; grid-template-rows: 64px 1fr; }
.game-dialog > header { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px max(9px, env(safe-area-inset-right)) 7px max(9px, env(safe-area-inset-left)); border-bottom: 2px solid #3956a4; background: #21194b; }
.game-dialog header > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.game-dialog header span { color: #7dcfff; font-size: .5rem; font-weight: 1000; letter-spacing: .12em; }
.game-dialog header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; }
.dialog-actions { display: flex; gap: 6px; }
.dialog-actions button { min-height: 42px; padding: 7px 10px; border: 1px solid #766ab0; color: white; background: #2d2051; font-size: .58rem; font-weight: 1000; }
.dialog-actions [data-close] { width: 44px; color: var(--ink); background: var(--acid); font-size: 1.3rem; }
.game-frame { position: relative; min-height: 0; overflow: hidden; }
.game-frame iframe { position: relative; z-index: 2; display: block; width: 100%; height: 100%; border: 0; background: #15113f; }
.loading-message { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; text-align: center; }
.loading-message b { color: var(--acid); font-size: 1.2rem; }
.loading-message span { color: #b8b6ed; font-size: .72rem; }

@media (max-width: 760px) {
  .masthead { grid-template-columns: 1fr auto; min-height: 72px; padding: 8px 11px; }
  .edition { display: none; }
  .brand { font-size: 2.7rem; }
  .narnia-link { font-size: .46rem; }
  .hero { min-height: 560px; padding: 58px 14px 48px; }
  .hero h1 { margin-top: 35px; font-size: clamp(4.25rem, 22vw, 7rem); }
  .hero h1 strong { text-shadow: 4px 4px 0 var(--ink); }
  .hero-kicker { gap: 6px; font-size: .48rem; }
  .hero-stamp { top: 12%; right: 10%; width: 91px; height: 91px; font-size: .58rem; }
  .hero > p { max-width: 84%; font-size: .92rem; }
  .catalog { padding: 42px 11px 58px; }
  .catalog-heading { grid-template-columns: 1fr; }
  .catalog-heading h2 { font-size: 2.8rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { grid-template-rows: auto minmax(260px, 70vw) auto; box-shadow: 6px 6px 0 var(--ink); }
  .card-copy { min-height: 285px; }
  .manifesto { grid-template-columns: repeat(2, 1fr); }
  .manifesto span:nth-child(2) { border-right: 0; }
  .manifesto span:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; justify-self: start; }
  .game-dialog[open] { grid-template-rows: 54px 1fr; }
  .game-dialog header span { display: none; }
  .dialog-actions button { min-height: 38px; padding: 5px 7px; font-size: .48rem; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .game-dialog[open] { grid-template-rows: 42px 1fr; }
  .game-dialog > header { padding-top: 3px; padding-bottom: 3px; }
  .game-dialog header > div:first-child span { display: none; }
  .dialog-actions button { min-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.community-slot{display:grid;justify-items:end;gap:5px}.community-pulse{max-width:150px;color:#4d3d66;font-size:.46rem;font-weight:950;letter-spacing:.075em;text-align:right}.community-pulse::before{content:'●';margin-right:4px;color:var(--pink)}@media(max-width:760px){.community-slot{gap:3px}.community-pulse{max-width:94px;font-size:.38rem;line-height:1.1}}
