/* Fortune Avenue website. Palette and fonts come from the game's key art. */

@font-face { font-family: "Atma"; src: url("../font/web/bold.woff2") format("woff2"), url("../font/bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Quantico"; src: url("../font/web/normal.woff2") format("woff2"), url("../font/normal.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Quantico"; src: url("../font/web/italic.woff2") format("woff2"), url("../font/italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Quantico"; src: url("../font/web/bold-italic.woff2") format("woff2"), url("../font/bold-italic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --sky: #00bbf6;
  --sky-light: #e1f8ff;
  --sky-mid: #5fd6ff;
  --sky-dark: #0077b6;
  --navy: #003b4d;
  --navy-2: #00546d;
  --pink: #fb298d;
  --pink-dark: #c4116a;
  --pink-shadow: #520028;
  --pink-light: #ffe0ef;
  --yellow: #ffd23f;
  --yellow-dark: #c98a00;
  --purple: #5b2bc4;
  --lime: #a6e22e;
  --white: #ffffff;
  --ink: #12303b;
  --muted: #4f6b75;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 59, 77, .18);
  --wrap: 1200px;
  --nav-h: 64px;
  --font-title: "Atma", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Quantico", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--sky) url("../images/web/motif.webp") center / 444px auto fixed;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- Buttons: candy style from the original site ---------- */
.btn {
  --bg: var(--pink); --fg: var(--white); --edge: var(--pink-shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px;
  font: 700 1.1rem/1.1 var(--font-title); letter-spacing: .02em; text-decoration: none; text-align: center;
  color: var(--fg); background: var(--bg);
  border: 0; border-radius: 12px; box-shadow: 0 4px 0 var(--edge), 0 8px 18px rgba(0, 0, 0, .15);
  transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge), 0 12px 22px rgba(0, 0, 0, .18); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge), 0 4px 10px rgba(0, 0, 0, .15); }
.btn--sm { min-height: 40px; padding: 6px 16px; font-size: 1rem; }
.btn--lg { min-height: 58px; padding: 12px 32px; font-size: 1.35rem; }
.btn--yellow { --bg: var(--yellow); --fg: var(--navy); --edge: var(--yellow-dark); }
.btn--ghost { --bg: rgba(255, 255, 255, .9); --fg: var(--navy); --edge: rgba(0, 59, 77, .35); }
.btn--line { --bg: var(--white); --fg: var(--pink-dark); --edge: var(--pink-light); box-shadow: inset 0 0 0 2px var(--pink), 0 4px 0 var(--pink-light); }
.btn--line:hover { box-shadow: inset 0 0 0 2px var(--pink), 0 6px 0 var(--pink-light); }
.btn--light { --fg: var(--navy); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  background: rgba(0, 59, 77, .0); transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.nav.is-solid { background: rgba(0, 59, 77, .88); backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0, 0, 0, .15); }
.nav__inner { max-width: var(--wrap); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.nav__logo { flex: none; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none; }
.nav__logo img { height: 48px; width: auto; }
.nav.is-solid .nav__logo { opacity: 1; transform: none; pointer-events: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  color: var(--white); text-decoration: none; font: 700 1.05rem var(--font-title);
  padding: 8px 12px; border-radius: 10px; text-shadow: 0 2px 0 rgba(0, 59, 77, .5); transition: background .2s ease;
}
.nav__links a:hover { background: rgba(255, 255, 255, .18); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 40px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .7);
  background: rgba(0, 59, 77, .35); color: var(--white); font: 700 .95rem var(--font-body);
}
.lang:hover { background: rgba(255, 255, 255, .2); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(0, 59, 77, .45); padding: 11px 10px; }
.nav__burger span { display: block; height: 3px; margin: 4px 0; border-radius: 2px; background: var(--white); transition: transform .25s ease, opacity .25s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--sky); }
/* Art is cropped top and bottom so the logo stays fully visible above the panel */
.hero__art { position: relative; aspect-ratio: 1920 / 760; max-height: 74svh; min-height: 420px; overflow: hidden; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.04); will-change: transform; }
.hero__art::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, rgba(0, 187, 246, 0), rgba(0, 187, 246, .9)); }
.hero__panel {
  position: relative; z-index: 1; width: min(100% - 32px, 920px); margin: -96px auto 8px;
  padding: 24px 28px 18px; text-align: center;
  background: rgba(255, 255, 255, .92); border-radius: 24px; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero__status { display: inline-block; margin: 0 0 10px; padding: 4px 14px; border-radius: 99px; background: var(--navy); color: var(--white); font-size: .9rem; }
.hero__title { font-size: clamp(1.6rem, 3.6vw, 2.5rem); color: var(--pink); text-shadow: 0 3px 0 var(--pink-light); margin-bottom: .3em; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 640px; margin: 0 auto 18px; }

.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.store {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  padding: 10px 14px; text-align: left; text-decoration: none; color: var(--white);
  background: var(--navy); border-radius: 14px; box-shadow: 0 4px 0 #00202a;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.store img, .store svg { grid-row: span 2; width: 40px; height: 40px; }
.store__name { font: 700 1.05rem/1.1 var(--font-title); }
.store__price { font-size: .95rem; color: var(--yellow); }
.store:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 6px 0 #00202a; }
.store--switch { background: #e60012; box-shadow: 0 4px 0 #8a000b; }
.store--switch:hover { background: #f5212f; box-shadow: 0 6px 0 #8a000b; }
.store--switch .store__price { color: var(--white); }

.hero__more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 12px; }
.ticker { margin: 0; font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.ticker__label { font-weight: 700; color: var(--sky-dark); }
.ticker__label::after { content: ":"; }
#ticker { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
#ticker.is-out { opacity: 0; transform: translateY(4px); }

/* ---------- How to ---------- */
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -1px; padding-top: 28px; padding-bottom: 8px; }
.howto__col { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.howto__col h3 { color: var(--yellow); font-size: 1.4rem; margin-bottom: .4em; }
.howto__list { display: flex; flex-wrap: wrap; gap: 8px; counter-reset: step; }
.howto__list li { background: rgba(255, 255, 255, .12); border-radius: 99px; padding: 6px 14px 6px 8px; display: flex; align-items: center; gap: 8px; }
.howto__list li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pink); font-weight: 700; font-size: .9rem; }
.howto__list--check li::before { content: "\2713"; background: var(--lime); color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.h2 {
  font-size: clamp(1.9rem, 4.5vw, 3rem); text-align: center; color: var(--white);
  text-shadow: 0 3px 0 var(--purple), 0 6px 0 rgba(0, 0, 0, .12); margin-bottom: .35em; text-wrap: balance;
}
.h2--left { text-align: left; }
.section__lead { text-align: center; max-width: 680px; margin: 0 auto 36px; font-size: 1.15rem; color: var(--white); text-shadow: 0 1px 2px rgba(0, 59, 77, .6); }

/* ---------- Playground ---------- */
.play { background: linear-gradient(180deg, rgba(0, 59, 77, 0) 0%, rgba(0, 59, 77, .25) 100%); }
.board {
  display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 24px;
  background: #ff9e44 radial-gradient(circle at 30% 20%, #ffb766 0%, #ff8a2a 70%);
  border: 8px solid var(--white); border-radius: 28px; padding: 24px; box-shadow: var(--shadow);
}
.board__dice { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.dice-stage { display: flex; gap: 28px; justify-content: center; padding: 20px 0 8px; perspective: 700px; }
.die {
  --size: 76px; position: relative; width: var(--size); height: var(--size);
  transform-style: preserve-3d; transform: rotateX(-14deg) rotateY(16deg) rotateX(0deg) rotateY(0deg);
  transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.05);
}
.die__face {
  position: absolute; inset: 0; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 12%;
  border-radius: 16%; background: var(--face); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), inset -6px -6px 12px rgba(0, 0, 0, .18);
  backface-visibility: hidden;
}
.die__face i { width: 72%; aspect-ratio: 1; margin: auto; border-radius: 50%; background: var(--white); box-shadow: inset 1px 2px 2px rgba(0, 0, 0, .25); }
.die--blue { --face: #3aa7ff; }
.die--pink { --face: #ff3d9a; }
.die__face--1 { transform: translateZ(calc(var(--size) / 2)); }
.die__face--6 { transform: rotateY(180deg) translateZ(calc(var(--size) / 2)); }
.die__face--3 { transform: rotateY(90deg) translateZ(calc(var(--size) / 2)); }
.die__face--4 { transform: rotateY(-90deg) translateZ(calc(var(--size) / 2)); }
.die__face--5 { transform: rotateX(90deg) translateZ(calc(var(--size) / 2)); }
.die__face--2 { transform: rotateX(-90deg) translateZ(calc(var(--size) / 2)); }
.roll-result { margin: 0; min-height: 1.6em; font: 700 1.4rem var(--font-title); color: var(--white); text-shadow: 0 2px 0 var(--pink-shadow); }
.roll-result .double { display: inline-block; margin-left: 8px; padding: 0 10px; border-radius: 8px; background: var(--yellow); color: var(--navy); text-shadow: none; animation: pop .4s ease; }

.vote-meter { width: 100%; max-width: 300px; color: var(--white); }
.vote-meter__label { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 6px; }
.vote-meter__pips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
.vote-meter__pips span { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .3s ease, transform .3s ease; }
.vote-meter__pips span.on { background: var(--white); transform: scaleY(1.3); }

.board__table { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-height: 320px; }
.game-card {
  position: relative; overflow: hidden; padding: 28px 24px; border-radius: 20px; text-align: center; color: var(--white);
  background: var(--pink); border: 6px solid var(--white); box-shadow: 0 8px 0 var(--pink-shadow);
}
.game-card__burst {
  position: absolute; inset: -50%; z-index: 0; opacity: .25;
  background: repeating-conic-gradient(from 0deg, #fff 0 10deg, transparent 10deg 20deg);
  animation: spin 40s linear infinite;
}
.game-card > :not(.game-card__burst) { position: relative; z-index: 1; }
.game-card__kind { display: inline-block; margin-bottom: 8px; padding: 2px 12px; border-radius: 99px; background: rgba(0, 0, 0, .2); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.game-card__title { font-size: clamp(1.5rem, 3vw, 2.1rem); text-transform: uppercase; text-shadow: 0 3px 0 var(--pink-shadow); }
.game-card__text { font-size: 1.15rem; max-width: 520px; margin: 0 auto; }
.game-card.is-new { animation: deal .5s cubic-bezier(.2, .9, .3, 1.2); }

.vote__title { font: 700 1.5rem var(--font-title); color: var(--white); text-align: center; text-shadow: 0 2px 0 var(--pink-shadow); margin: 0; }
.vote__options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rule-btn {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; text-align: center;
  border: 4px solid var(--white); border-radius: 20px; color: var(--white);
  background: radial-gradient(circle at 50% 0%, #66d9ff 0%, #10a9e6 70%); box-shadow: 0 6px 0 var(--sky-dark);
  transition: transform .15s ease, box-shadow .15s ease; animation: deal .45s cubic-bezier(.2, .9, .3, 1.2) both;
}
.rule-btn:nth-child(2) { background: radial-gradient(circle at 50% 0%, #ff8fc6 0%, #f0328f 70%); box-shadow: 0 6px 0 var(--pink-shadow); animation-delay: .08s; }
.rule-btn:hover { transform: translateY(-3px) rotate(-1deg); }
.rule-btn strong { font: 700 1.3rem/1.15 var(--font-title); }
.rule-btn span { font-size: .95rem; }
.rule-btn em { margin-top: auto; font-style: normal; font-weight: 700; font-size: .85rem; opacity: .9; }
.rules-in-play { color: var(--white); text-align: center; }
.rules-in-play p { margin: 0 0 6px; font-weight: 700; }
.rules-in-play ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.rules-in-play li { padding: 4px 12px; border-radius: 99px; background: var(--navy); font-size: .9rem; animation: pop .4s ease; }

/* ---------- Features ---------- */
.features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.feature { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 16px 36px rgba(0, 59, 77, .25); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body { padding: 16px 20px 20px; }
.feature h3 { font-size: 1.45rem; color: var(--pink); margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }
.medals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.medals li { padding: 3px 10px; border-radius: 99px; background: var(--sky-light); color: var(--navy); font-size: .85rem; cursor: help; }

.pieces { margin-top: 32px; text-align: center; }
.pieces__title { font: 700 1.4rem var(--font-title); color: var(--white); text-shadow: 0 2px 0 var(--purple); margin-bottom: 12px; }
.pieces__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pieces__list li { padding: 6px 16px; border-radius: 99px; background: var(--white); color: var(--navy); font-weight: 700; box-shadow: 0 3px 0 rgba(0, 59, 77, .2); transition: transform .2s ease; }
.pieces__list li:nth-child(3n+1) { background: var(--yellow); }
.pieces__list li:nth-child(3n+2) { background: var(--pink-light); }
.pieces__list li:hover { transform: translateY(-3px) rotate(-3deg); }

/* ---------- Buy ---------- */
.buy { background: linear-gradient(180deg, rgba(0, 59, 77, .25), rgba(0, 59, 77, .55)); }
.buy__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plat { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.plat--switch { border: 4px solid #e60012; transform: translateY(-10px); }
.plat__ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 14px; border-radius: 99px; background: #e60012; color: var(--white); font-weight: 700; font-size: .9rem; }
.plat__head { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.plat__head img { padding: 6px; border-radius: 12px; background: var(--navy); }
.plat__head h3 { font-size: 1.4rem; margin: 0; color: var(--navy); }
.plat__os { margin: 0; color: var(--muted); font-size: .9rem; }
.plat__price { font: 700 1.6rem var(--font-title); color: var(--pink); }
.plat__list { display: flex; flex-direction: column; gap: 8px; }
.plat__list li { position: relative; padding-left: 26px; color: var(--ink); }
.plat__list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 4px; background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain; }
.plat__list li.plat__note { color: var(--muted); font-size: .92rem; }
.plat__list li.plat__note::before { background: #c9d7dc; }
.plat__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.plat__regions { margin: 0; text-align: center; font-size: .9rem; color: var(--muted); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.countdown div { background: var(--navy); color: var(--white); border-radius: 10px; padding: 6px 2px; }
.countdown strong { display: block; font: 700 1.5rem/1.1 var(--font-title); font-variant-numeric: tabular-nums; }
.countdown span { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.countdown[hidden] { display: none; }
.buy__fine { margin: 24px auto 0; max-width: 760px; text-align: center; font-size: .9rem; color: var(--white); opacity: .9; }

/* ---------- Trailer ---------- */
.trailer { background: rgba(0, 59, 77, .55); }
.video-facade { position: relative; display: block; width: 100%; max-width: 960px; margin: 0 auto; padding: 0; border: 6px solid var(--white); border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); box-shadow: var(--shadow); }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.video-facade:hover img { transform: scale(1.03); }
.video-facade__play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--pink); color: var(--white); box-shadow: 0 6px 0 var(--pink-shadow); transition: transform .2s ease; }
.video-facade__play svg { width: 48px; height: 48px; margin-left: 6px; }
.video-facade:hover .video-facade__play { transform: scale(1.08); }

/* ---------- Gallery ---------- */
.gallery { background: rgba(0, 59, 77, .55); padding-top: 24px; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 24px; }
.gallery__grid a { display: block; border-radius: 12px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .8); aspect-ratio: 16 / 9; background: var(--navy-2); }
.gallery__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.gallery__grid a:hover img { transform: scale(1.06); filter: saturate(1.15); }
.js .gallery__grid li.is-extra { display: none; }
.js .gallery__grid.is-open li.is-extra { display: block; }

/* ---------- About ---------- */
.about { background: var(--navy); color: var(--white); }
.about__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.about__text p { color: #d0f4ff; font-size: 1.1rem; }
.quote { margin: 0; padding: 32px; background: var(--yellow); color: var(--navy); border-radius: 24px; transform: rotate(2deg); box-shadow: 0 8px 0 var(--yellow-dark); }
.quote blockquote { margin: 0 0 12px; }
.quote p { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--font-title); margin: 0; }
.quote figcaption { font-size: .95rem; }

/* ---------- News (Steam RSS) ---------- */
.news { background: var(--sky-dark); }
.news__list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto 24px; }
.news__list:empty::before { content: ""; display: block; height: 120px; border-radius: var(--radius); background: rgba(255, 255, 255, .12); }
.rss-entry a { display: grid; grid-template-columns: 1fr 220px; gap: 16px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s ease; }
.rss-entry a:hover { transform: translateY(-3px); }
.rss-title { font: 700 1.3rem/1.2 var(--font-title); color: var(--pink); }
.rss-date { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 4px 0 6px; }
.rss-content { font-size: .95rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rss-right img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }

/* ---------- Newsletter ---------- */
.newsletter { background: linear-gradient(180deg, var(--sky-dark), var(--sky)); }
.nl-card { max-width: 560px; margin: 0 auto; padding: 32px; text-align: center; background: var(--white); border-radius: 24px; box-shadow: var(--shadow); }
.nl-card__title { color: var(--pink); font-size: 2rem; }
.nl-card p { color: var(--muted); }
.nl-form { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.nl-form input[type="email"] { width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; color: var(--ink); border: 2px solid #b8e8f7; border-radius: 12px; background: var(--sky-light); }
.nl-form input[type="email"]:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(0, 187, 246, .25); }
.nl-form .btn { width: 100%; }

/* ---------- Final CTA / footer ---------- */
.final { padding: 64px 0 72px; text-align: center; background: var(--pink); background-image: repeating-conic-gradient(from 0deg at 50% 120%, rgba(255, 255, 255, .08) 0 8deg, transparent 8deg 16deg); }
.final .h2 { text-shadow: 0 3px 0 var(--pink-shadow); max-width: 820px; margin: 0 auto 28px; }
.final__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.final .btn--pink { --bg: var(--navy); --edge: #00202a; }

.footer { background: var(--navy); color: #d0f4ff; padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer__studio img { width: 96px; }
.footer__social { display: flex; gap: 14px; }
.footer__social a { display: block; padding: 6px; border-radius: 12px; transition: background .2s ease, transform .2s ease; }
.footer__social a:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin: 0; }
.footer__links a { color: #d0f4ff; text-decoration: none; text-transform: uppercase; font-size: .9rem; letter-spacing: .04em; }
.footer__links a:hover { color: var(--yellow); }
.footer__legal { margin: 0; font-size: .8rem; opacity: .75; }

/* ---------- Sticky buy bar (mobile) ---------- */
.buybar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 20, 28, .94); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 20, 28, .8); }
.lightbox img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); animation: zoom .2s ease; touch-action: pan-y; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: var(--white); font-size: 2rem; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--pink); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 16px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; margin: 0; opacity: .8; }
.video-frame { width: min(92vw, 1280px); aspect-ratio: 16 / 9; }
.video-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .plat--switch.reveal.in { transform: translateY(-10px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes deal { from { transform: translateY(18px) rotate(-4deg) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes zoom { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .buy__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 28px; }
  .plat--switch, .js .plat--switch.reveal.in { transform: none; order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .quote { transform: rotate(1deg); }
  .board { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --nav-h: 56px; }
  .nav { background: rgba(0, 59, 77, .88); backdrop-filter: blur(10px); }
  .nav__logo { opacity: 1; transform: none; pointer-events: auto; }
  .nav__logo img { height: 40px; }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: rgba(0, 59, 77, .97); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a { padding: 14px 8px; font-size: 1.2rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }

  .hero { padding-top: var(--nav-h); }
  .hero__art { aspect-ratio: 16 / 10; min-height: 0; max-height: none; }
  .hero__art::after { display: none; }
  .hero__panel { width: calc(100% - 24px); margin: -28px auto 16px; padding: 20px 16px 14px; }
  .stores { grid-template-columns: 1fr; }
  .store { grid-template-columns: 40px 1fr auto; grid-template-rows: auto; }
  .store img, .store svg { grid-row: auto; }
  .store__price { font-weight: 700; }
  .howto { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .rss-entry a { grid-template-columns: 1fr; }
  .rss-right { order: -1; }

  .buybar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(0, 59, 77, .92); backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .buybar .btn { width: 100%; }
  .buybar.is-visible { transform: none; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 820px) and (max-aspect-ratio: 4/5) {
  .hero__art { aspect-ratio: 748 / 896; max-height: 58svh; }
  .hero__art img { object-position: 50% 40%; }
}

@media (max-width: 520px) {
  .vote__options { grid-template-columns: 1fr; }
  .die { --size: 64px; }
  .board { padding: 16px; border-width: 6px; }
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .lightbox__nav { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
