/* Neon Mania's world: chapter skies, Fredoka, frosted panels and the glossy PLAY button. */

.nm { background: #EAF3FC; }
.nm .nav { background: color-mix(in srgb, #EAF3FC 78%, transparent); }
.nm .nav-links a:hover, .nm .nav-links a[aria-current] { background: rgba(255, 255, 255, 0.7); }
@media (max-width: 760px) { .nm .nav-links { background: #EAF3FC; } }

.game { font-family: var(--font-game); }
.nm-title {
  font-family: var(--font-game); font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.02;
  text-shadow: 0 3px 0 #2B6FD6, 0 10px 26px rgba(20, 70, 160, 0.35);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}
.nm-title.dark { color: #10284A; text-shadow: none; }
.nm-eyebrow { font-family: var(--font-game); font-weight: 600; font-size: 0.95rem; color: #1B5BB8; letter-spacing: 0.02em; }
.nm-lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: #23436B; max-width: 34em; }

/* Hero */
.nm-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(70px, 9vw, 120px); isolation: isolate; margin-top: -68px; padding-top: calc(68px + clamp(40px, 7vw, 90px)); }
.nm-hero .sky { position: absolute; inset: 0; z-index: -2; background: #A9D2F5 url('/assets/img/skies/dawn.webp') center 30% / cover no-repeat; }
.nm-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(234, 243, 252, 0.88) 0%, rgba(234, 243, 252, 0.55) 45%, rgba(234, 243, 252, 0.05) 75%), linear-gradient(180deg, rgba(234, 243, 252, 0) 70%, #EAF3FC 100%); }
.nm-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.nm-logo { width: min(440px, 92%); height: auto; filter: drop-shadow(0 18px 30px rgba(20, 80, 180, 0.3)); margin: 6px 0 4px -2%; }
.nm-tagline { font-family: var(--font-game); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #10284A; margin: 10px 0 16px; }
.nm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 30px; }
.nm-actions .arrow-link { color: #10284A; font-family: var(--font-game); font-size: 1.05rem; }

.gloss {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-game); font-weight: 700; font-size: 1.05rem; color: #fff; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px; border: 3px solid #CDEBFF;
  background: linear-gradient(180deg, #5FD0FF 0%, #2C9BFF 45%, #1474F0 55%, #2C9BFF 100%);
  box-shadow: 0 6px 0 #0E58C2, 0 14px 26px -8px rgba(14, 88, 194, 0.6);
  text-shadow: 0 2px 0 rgba(10, 60, 150, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.gloss::before { content: ''; position: absolute; left: 14px; right: 40%; top: 5px; height: 38%; border-radius: 999px; background: rgba(255, 255, 255, 0.45); }
.gloss:hover { transform: translateY(-2px); }
.gloss:active { transform: translateY(3px); box-shadow: 0 3px 0 #0E58C2; }
.gloss[disabled] { opacity: 0.5; pointer-events: none; }

/* Play card */
.play-card { padding: 16px; width: min(440px, 100%); justify-self: center; }
.play-tabs { display: flex; gap: 6px; padding: 4px; background: rgba(255, 255, 255, 0.55); border-radius: 999px; margin-bottom: 12px; }
.play-tabs button {
  flex: 1; font-family: var(--font-game); font-weight: 600; font-size: 0.92rem; color: #2B4A73;
  padding: 9px 6px; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.play-tabs button[aria-selected="true"] { background: #fff; color: #10284A; box-shadow: 0 4px 12px -6px rgba(20, 60, 130, 0.5); }
.play-hud { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 12px; }
.play-hint { font-family: var(--font-game); font-weight: 600; color: #23436B; font-size: 0.95rem; padding-left: 6px; }
.hud-box { font-family: var(--font-game); font-weight: 600; font-size: 0.85rem; color: #23436B; background: rgba(255, 255, 255, 0.8); border-radius: 12px; padding: 6px 12px; text-align: center; min-width: 72px; }
.hud-box b { display: block; font-size: 1.15rem; color: #10284A; line-height: 1.1; }
.play-win {
  display: none; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px;
  padding: 12px 12px 12px 18px; border-radius: 18px; background: #fff;
  font-family: var(--font-game); font-weight: 600; color: #10284A;
  animation: pop 0.5s var(--ease);
}
.play-win.show { display: flex; }
.play-win .stars { color: #FFB302; letter-spacing: 2px; }
.play-win .stars .off { color: #D3DBE6; }
.play-win .gloss { padding: 10px 18px; font-size: 0.95rem; box-shadow: 0 4px 0 #0E58C2; }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } }

/* Mechanics */
.mech-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mech { background: #fff; border-radius: 26px; padding: 18px 18px 24px; box-shadow: 0 1px 0 rgba(20, 60, 130, 0.06), 0 18px 40px -26px rgba(20, 60, 130, 0.45); }
.mech-board { background: linear-gradient(160deg, #DDEEFE, #F3E7F7); border-radius: 18px; padding: 12px; margin-bottom: 20px; }
.mech h3 { font-family: var(--font-game); font-weight: 700; font-size: 1.4rem; color: #10284A; }
.mech p { color: #3C5577; font-size: 0.97rem; margin-top: 6px; }

/* Colour wheel */
.wheel { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.recipes { display: grid; gap: 12px; }
.recipe { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 12px 16px; font-family: var(--font-game); font-weight: 600; color: #23436B; box-shadow: 0 10px 30px -24px rgba(20, 60, 130, 0.6); }
.recipe i { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12), 0 0 0 3px #fff, 0 0 0 4px rgba(20, 60, 130, 0.08); }
.recipe .op { color: #8AA0BC; font-weight: 500; }
.recipe .name { margin-left: auto; color: #10284A; }
.c-blue { background: var(--nm-blue); } .c-pink { background: var(--nm-pink); } .c-yellow { background: var(--nm-yellow); }
.c-green { background: var(--nm-green); } .c-orange { background: var(--nm-orange); } .c-violet { background: var(--nm-violet); }
.c-white { background: radial-gradient(circle at 35% 30%, #fff, #DCE2FF 60%, #BFC9FF); }
.venn { width: min(440px, 100%); height: auto; justify-self: center; filter: drop-shadow(0 24px 40px rgba(20, 60, 130, 0.25)); }
.venn-labels text { paint-order: stroke; stroke: rgba(0, 0, 0, 0.12); stroke-width: 3px; }

/* Chapters */
.chapters { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.chapter { scroll-snap-align: start; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4.2; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; isolation: isolate; }
.chapter img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.8s var(--ease); }
.chapter:hover img { transform: scale(1.06); }
.chapter::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(8, 20, 45, 0.7) 100%); }
.chapter .n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; opacity: 0.85; }
.chapter h3 { font-family: var(--font-game); font-weight: 700; font-size: 1.6rem; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.chapter p { font-size: 0.9rem; opacity: 0.92; }

/* Features */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: rgba(255, 255, 255, 0.72); border: 1.5px solid #fff; border-radius: 24px; padding: 24px; }
.feat-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.feat-ico svg { width: 24px; height: 24px; }
.feat h3 { font-family: var(--font-game); font-weight: 700; font-size: 1.2rem; color: #10284A; }
.feat p { color: #3C5577; font-size: 0.97rem; margin-top: 6px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { background: #fff; border-radius: 20px; margin-bottom: 12px; box-shadow: 0 10px 30px -26px rgba(20, 60, 130, 0.6); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-game); font-weight: 600; font-size: 1.1rem; color: #10284A; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; line-height: 1; color: #2C9BFF; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: #3C5577; }
.faq a { color: #1474F0; text-decoration: underline; text-underline-offset: 3px; }

/* CTA band */
.nm-cta { position: relative; border-radius: 34px; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 72px); text-align: center; isolation: isolate; color: #fff; }
.nm-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.nm-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10, 18, 50, 0.35); }
.nm-cta p { color: #E3EAFF; max-width: 32em; margin: 14px auto 28px; font-size: 1.1rem; }
.nm-cta .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.nm-cta .play-badge.is-soon { background: rgba(255, 255, 255, 0.92); }
.nm-cta .arrow-link { color: #fff; font-family: var(--font-game); }

@media (max-width: 980px) {
  .nm-hero-grid, .wheel { grid-template-columns: 1fr; }
  .nm-hero::after { background: linear-gradient(180deg, rgba(234, 243, 252, 0.8) 0%, rgba(234, 243, 252, 0.4) 60%, #EAF3FC 100%); }
  .mech-grid { grid-template-columns: 1fr 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .venn { width: min(300px, 80%); }
}
@media (max-width: 640px) {
  .mech-grid, .feats { grid-template-columns: 1fr; }
  .play-hud { grid-template-columns: 1fr 1fr; }
  .play-hint { grid-column: 1 / -1; }
  .play-tabs button { font-size: 0.85rem; }
}
