/* Shared styles for the inner pages. Each page sets its brand theme on <body data-theme="...">. */
body { --accent: var(--cyan); --accent-2: var(--amber); --page-bg: var(--bg); --card: var(--panel); background: var(--page-bg); }
body[data-theme="ricknet"] { --accent: #39FF14; --accent-2: #00C853; --page-bg: #020403; --card: #07110A; --line: #12301A; }
body[data-theme="axel"] { --accent: #FFC93C; --accent-2: #2BB3A3; --page-bg: #0C2A2A; --card: #12393A; --line: #1F5554; --cream: #FFF4DC; --leaf: #8BCB4A; --chestnut: #8A4B2A; }
body[data-theme="thunder"] { --accent: #A99BFF; --accent-2: #5CE1E6; --page-bg: #06051A; --card: #0E0C2B; --line: #241F55; }

body .site-header { position: sticky; background: color-mix(in srgb, var(--page-bg) 92%, transparent); backdrop-filter: blur(8px); }
.page-hero { margin-top: -76px; }
.page-section { scroll-margin-top: 140px; }
.subnav { top: 76px !important; }
.site-header nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.cursor-glow { background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%); }

/* Page arrival: the page emerges from the brand colour after a brain fly-in */
.arrive { position: fixed; inset: 0; z-index: 45; pointer-events: none; background: radial-gradient(circle at 50% 45%, #fff 0, var(--arrive) 22%, color-mix(in srgb, var(--arrive) 40%, #000) 70%); opacity: 1; transition: opacity .7s ease; }
.arrive.gone { opacity: 0; }
.page-main.emerging { animation: emerge .8s cubic-bezier(.2,.8,.2,1) both; }
@keyframes emerge { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

.page-hero { position: relative; overflow: hidden; padding: 128px 0 72px; min-height: min(78vh, 720px); display: flex; align-items: flex-end; }
.page-hero .wrap { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(40px, 7vw, 88px); line-height: .98; }
.page-hero .lede { max-width: 56ch; color: var(--soft); font-size: clamp(16px, 1.6vw, 20px); margin: 0 0 24px; }
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rise.in { opacity: 1; transform: none; }

.btn-accent { background: var(--accent); color: var(--page-bg); }
.btn-accent:hover { color: var(--page-bg); box-shadow: 0 0 30px var(--accent); }
.page-section { padding: clamp(56px, 9vh, 96px) 0; border-top: 1px solid var(--line); }
.page-section h2 { margin: 0 0 12px; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); }
.page-section > .wrap > p { color: var(--soft); max-width: 62ch; margin: 0 0 28px; }
.subnav { position: sticky; top: 0; z-index: 15; display: flex; gap: 8px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 40px); background: color-mix(in srgb, var(--page-bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.subnav a:hover { border-color: var(--accent); color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #111; }
.card .ph { aspect-ratio: 1; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; background: repeating-linear-gradient(135deg, transparent 0 12px, color-mix(in srgb, var(--accent) 6%, transparent) 12px 13px); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.card-body h3 { margin: 0; font-family: var(--display); font-size: 21px; }
.card-body p { margin: 0; color: var(--soft); font-size: 15px; }
.card-body .btn { margin-top: auto; align-self: flex-start; }
.card-link { color: var(--text); text-decoration: none; cursor: pointer; }
.card-link:hover, .card-link:focus-visible { color: var(--text); }
.card-link:hover .btn-accent { box-shadow: 0 0 30px var(--accent); }
.btn[aria-disabled="true"] { opacity: .7; cursor: default; }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--accent); }

.blog-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.blog-list a { display: block; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.blog-list a:hover { border-color: var(--accent); color: var(--text); }
.blog-list .meta { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.blog-list .empty { padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); }

.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--soft); }
.prose h2 { font-family: var(--display); margin: 36px 0 8px; font-size: 28px; }
.draft-flag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--amber); color: var(--amber); font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.embed-ph { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--card); border: 1px dashed var(--line); color: var(--muted); text-align: center; padding: 24px; }
.embed { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 16px; }

/* Rick Net Studio: code rain and the name breaking out */
#rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page-hero.rain-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 40%, var(--page-bg)); pointer-events: none; }
.breakout { position: relative; color: #E9FFE4; text-shadow: 0 0 6px var(--accent), 0 0 24px var(--accent), 0 0 60px rgba(57,255,20,.5); }
.breakout.glitch::before, .breakout.glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.breakout.glitch::before { color: #ff2bd6; mix-blend-mode: screen; animation: split 0.6s steps(2) 2; }
.breakout.glitch::after { color: #00e5ff; mix-blend-mode: screen; animation: split 0.6s steps(2) reverse 2; }
@keyframes split { 0% { transform: translate(-3px, 1px); clip-path: inset(0 0 60% 0); } 50% { transform: translate(3px, -1px); clip-path: inset(40% 0 0 0); } 100% { transform: none; clip-path: inset(0 0 100% 0); } }
.drip { position: absolute; top: 88%; font: 600 14px ui-monospace, Consolas, monospace; color: var(--accent); text-shadow: 0 0 8px var(--accent); animation: drip 2.4s ease-in forwards; pointer-events: none; }
@keyframes drip { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(90px); } }
body[data-theme="ricknet"] .card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: repeating-linear-gradient(transparent 0 3px, rgba(57,255,20,.07) 3px 4px); transition: opacity .3s; }
body[data-theme="ricknet"] .card:hover::after { opacity: 1; animation: scan 1.2s linear infinite; }
body[data-theme="ricknet"] .card:hover { border-color: var(--accent); box-shadow: 0 0 30px rgba(57,255,20,.25); }
@keyframes scan { to { background-position: 0 40px; } }

/* Christmas collection: green code style with a red and gold festive accent, and code-snow */
.xmas { position: relative; overflow: hidden; background: radial-gradient(circle at 80% 0, rgba(214,40,57,.18), transparent 45%), radial-gradient(circle at 10% 100%, rgba(242,193,78,.12), transparent 40%); }
.xmas .wrap { position: relative; z-index: 1; }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.xmas h2 { color: #fff; text-shadow: 0 0 18px rgba(214,40,57,.7), 0 0 40px rgba(242,193,78,.35); }
.xmas-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.xmas .card img { aspect-ratio: 4 / 3; object-fit: contain; background: #F4EFE6; }
.xmas .tag { color: #F2C14E; }
.xmas .card:hover { border-color: #D62839; box-shadow: 0 0 30px rgba(214,40,57,.3); }

/* Shop categories (accordion) */
#shop-cats { display: grid; gap: 14px; }
.cat { border: 1px solid var(--line); border-radius: 16px; background: rgba(7,17,10,.75); overflow: hidden; }
.cat-head { margin: 0; }
.cat-head button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 0 22px; border: 0; background: transparent; color: var(--text); font: 700 22px var(--display); text-align: left; cursor: pointer; }
.cat-head button:hover { color: var(--accent); }
.cat-head .count { margin-left: auto; font: 600 14px var(--body); color: var(--accent); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); }
.cat-head .chev { width: 12px; height: 12px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .3s; }
.cat-head button[aria-expanded="true"] .chev { transform: rotate(-135deg); }
.cat-head button[aria-expanded="true"] { box-shadow: inset 0 -1px 0 var(--line); }
.cat-body { overflow: hidden; transition: height .4s cubic-bezier(.2,.8,.2,1); padding: 0 22px; }
.cat-body > .grid { padding-bottom: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.cat-blurb { color: var(--soft); margin: 16px 0; }
/* Small ranges: centre a few fixed-width cards instead of leaving a gap on the right. */
.cat-originals .cat-body > .grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 300px)); justify-content: center; }
.cat-originals .cat-blurb { text-align: center; }
.cat .card img { aspect-ratio: 4 / 3; object-fit: contain; background: #F4EFE6; }
.cat-originals .card img, .cat-everyday .card img { background: #050a06; }
.cat-christmas .cat-head button { text-shadow: 0 0 14px rgba(214,40,57,.6); }
.cat-christmas .tag { color: #F2C14E; }
.cat-christmas .card:hover { border-color: #D62839; box-shadow: 0 0 30px rgba(214,40,57,.3); }
.cat-winter .card:hover { border-color: #9DF0F2; }

/* Trust strip, maker line and reviews */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.trust li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--soft); font-weight: 500; }
.trust .ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent); font-size: 16px; filter: grayscale(1) brightness(1.6); }
.maker { margin: 24px 0 0; font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); color: var(--text); }
.review-empty { color: var(--soft); margin: 0 0 16px; font-size: 18px; }
.review-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.review { margin: 0; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); scroll-snap-align: start; }
.review figcaption { display: flex; justify-content: space-between; gap: 8px; }
.review blockquote { margin: 10px 0; color: var(--text); }
.review .meta, .review-note { color: var(--muted); font-size: 13px; margin: 0; }
.stars { color: #F2C14E; letter-spacing: 2px; } .stars .off { color: #3a3f4f; }
.review-summary { font-size: 18px; margin: 0 0 16px; }
.game-reviews { margin-top: 28px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, #9ED1FA33, #8BCB4A22); border: 3px solid #FFF4DC; }
.game-reviews h3 { margin: 0 0 8px; font-family: var(--display); color: var(--cream); }

/* Axel: storybook brightness and the two-path choice motif */
body[data-theme="axel"] .page-hero { background: radial-gradient(circle at 75% 30%, rgba(255,201,60,.25), transparent 50%), radial-gradient(circle at 20% 80%, rgba(139,203,74,.2), transparent 50%), var(--page-bg); }
.axel-title { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 32px; align-items: center; }
.axel-title h1 { color: var(--cream); text-shadow: 0 4px 0 var(--chestnut), 0 0 30px rgba(255,201,60,.4); }
.axel-logo { margin: 0 0 12px; line-height: 0; }
.axel-logo img { display: block; width: 100%; max-width: 620px; height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.title-art { position: relative; border-radius: 28px; overflow: hidden; border: 4px solid var(--cream); box-shadow: 0 0 0 4px var(--accent-2), 0 20px 50px rgba(0,0,0,.4); animation: float 5s ease-in-out infinite; }
.title-art img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.title-stack { display: grid; gap: 18px; }
.trailer-card { position: relative; }
.trailer-card .trailer-btn { position: absolute; inset: 0; border: 0; background: none; cursor: pointer; }
.trailer-card.playing { animation: none; background: #000; }
.trailer-card.playing img { visibility: hidden; }
.trailer-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.trailer-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #FFF4DC; background: rgba(12,42,42,.8); color: #FFF4DC; font-size: 18px; cursor: pointer; }
.trailer-close:hover { background: #FFC93C; color: #3a2400; }
.trailer-btn, .game-tile { display: block; width: 100%; padding: 0; cursor: pointer; font: inherit; color: inherit; background: none; }
.trailer-btn .play { position: absolute; left: 50%; top: 56%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255,201,60,.95); box-shadow: 0 0 0 8px rgba(255,244,220,.5), 0 0 40px rgba(255,201,60,.9); animation: pulse-play 2.2s ease-in-out infinite; }
.play::after { content: ""; position: absolute; left: 54%; top: 50%; border-style: solid; border-width: 14px 0 14px 24px; border-color: transparent transparent transparent #3a2400; transform: translate(-50%, -50%); }
.trailer-btn:hover .play, .trailer-btn:focus-visible .play { background: #FFE08A; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes pulse-play { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.game-tile { position: relative; border-radius: 22px; overflow: hidden; border: 4px solid #FFF4DC; box-shadow: 0 0 0 4px #9BF06B, 0 0 30px rgba(155,240,107,.4); }
.game-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 533; object-fit: cover; }
.game-label { position: absolute; inset: auto 0 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px; background: linear-gradient(transparent, rgba(30,80,20,.85)); color: #fff; font: 700 20px var(--display); text-shadow: 0 2px 0 #3a6b1e; }
.play.small { position: relative; display: inline-block; width: 34px; height: 34px; border-radius: 50%; background: #9BF06B; box-shadow: 0 0 16px #9BF06B; }
.play.small::after { border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #1e4a10; }
.player { width: min(1100px, 94vw); max-width: none; padding: 0; border: 4px solid #FFF4DC; border-radius: 24px; background: #0C2A2A; color: #FFF4DC; box-shadow: 0 0 0 4px #2BB3A3, 0 30px 80px rgba(0,0,0,.6); }
.player::backdrop { background: rgba(5,20,20,.8); backdrop-filter: blur(4px); }
.player-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 20px; }
.player-bar h2 { margin: 0 auto 0 0; font: 700 20px var(--display); }
.player-btn { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid #FFF4DC; background: transparent; color: #FFF4DC; font: 600 15px var(--body); cursor: pointer; }
.player-btn:hover { background: #FFC93C; color: #3a2400; border-color: #FFC93C; }
.player-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.player-frame.game iframe { aspect-ratio: auto; height: min(78vh, 760px); }
.player-frame.video { display: grid; place-items: center; background: #000; }
.player-frame.video video { display: block; height: min(80vh, 900px); max-width: 100%; }
.player:has(.player-frame.video) { width: auto; }
@media (max-width: 600px) { .player { width: 100vw; border-radius: 0; border-width: 0; } .player-frame.game iframe { height: 82vh; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.choice-paths { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: .55; }
.choice-paths path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 12; animation: march 3s linear infinite; }
@keyframes march { to { stroke-dashoffset: -56; } }
.sparkle { position: absolute; z-index: 1; width: 10px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle 2.4s ease-in-out infinite; }
.episodes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; counter-reset: ep; }
.episodes li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--cream); }
.episodes li::before { counter-increment: ep; content: counter(ep, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #3a2400; font-weight: 700; }
body[data-theme="axel"] #axel-run { --accent: #9BF06B; background: linear-gradient(180deg, #9ED1FA22, transparent 60%); }
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.features li { padding: 18px; border-radius: 18px; background: var(--card); border: 2px solid var(--line); color: var(--soft); }
.features strong { display: block; color: var(--cream); font-family: var(--display); font-size: 18px; margin-bottom: 4px; }

/* Thunder Head: neural cloud */
#neural { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.th-art { position: absolute; z-index: 0; right: -6%; top: 10%; width: min(760px, 70%); opacity: .55; mix-blend-mode: screen; -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent); mask-image: radial-gradient(closest-side, #000 60%, transparent); }
.th-legend { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; position: relative; z-index: 1; }
.th-legend li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--soft); background: rgba(10,10,25,.55); border: 1px solid rgba(255,255,255,.12); cursor: default; transition: border-color .2s, color .2s; }
.th-legend li::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 8px var(--dot); }
.th-legend li:hover, .th-legend li:focus-visible { color: var(--cream); border-color: var(--dot); outline: none; }
body[data-theme="thunder"] .page-hero h1 { text-shadow: 0 0 20px rgba(169,155,255,.6); }

@media (max-width: 760px) {
  .axel-title { grid-template-columns: 1fr; }
  .title-art { max-width: 260px; }
  .page-hero { padding-top: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
}

/* Who we are + contact addresses (contact and legal pages, 28 Oct 2026). Addresses stay selectable text. */
.who { max-width: 60ch; margin: 8px 0 24px; color: var(--soft); }
.contact-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.contact-list span { color: var(--muted); font-size: 14px; min-width: 190px; }
.contact-list a { color: var(--text); font-weight: 600; font-size: 17px; user-select: text; overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.game-tile.soon { cursor: default; }
.load-error { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(7,11,20,.9); color: #fff; font-weight: 600; text-align: center; }
/* "From the journal" sections (filled from the dashboard via Show on website) */
.blog-list-drop { display: grid; gap: 22px; }
.blog-item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.blog-item h3 { margin: 2px 0 6px; font-family: var(--display); }
.blog-date { margin: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.blog-text { color: var(--soft); margin: 0 0 12px; max-width: 62ch; }
.blog-media { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.layout-single .blog-media, .layout-video .blog-media { grid-template-columns: 1fr; max-width: 720px; }
.blog-shot { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; min-height: 44px; }
.blog-shot img, .blog-media video { width: 100%; display: block; border-radius: 12px; }
.layout-gallery .blog-shot img { aspect-ratio: 1; object-fit: cover; }
body[data-theme="axel"] .blog-shot { background: #FFF4DC; padding: 8px 8px 22px; border-radius: 4px; box-shadow: 0 8px 18px rgba(0,0,0,.35); transform: rotate(-1.5deg); }
body[data-theme="axel"] .blog-shot:nth-child(even) { transform: rotate(1.5deg); }
body[data-theme="axel"] .blog-shot img { border-radius: 2px; }
body[data-theme="ricknet"] .blog-shot img, body[data-theme="ricknet"] .blog-media video { border: 2px solid var(--accent); box-shadow: 0 0 18px rgba(57,255,20,.35); border-radius: 8px; }
body[data-theme="thunder"] .blog-shot img, body[data-theme="thunder"] .blog-media video { box-shadow: 0 0 26px rgba(169,155,255,.5); border-radius: 16px; }
.blog-view { position: fixed; inset: 0; z-index: 50; background: rgba(3,5,10,.94); display: flex; align-items: center; justify-content: center; padding: 56px 12px 16px; }
.blog-view img { max-width: 100%; max-height: calc(100vh - 90px); border-radius: 12px; }
.blog-close { position: absolute; top: 12px; right: 12px; min-height: 44px; min-width: 96px; border-radius: 999px; border: 1px solid var(--accent); background: transparent; color: var(--text); font: 600 15px var(--body); }

/* Axel Run's home on the page: a 9:16 frame (the game is 720x1280). It never needs inner scrolling:
   it's sized to fit the screen height, the column width and 405px, whichever is smallest. */
.game-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 36px auto 44px; }
.game-frame { position: relative; box-sizing: border-box; aspect-ratio: 9 / 16;
  width: min(100%, max(200px, calc((100vh - 270px) * 9 / 16)), 405px);
  width: min(100%, max(200px, calc((100svh - 270px) * 9 / 16)), 405px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  border-radius: 22px; overflow: hidden; border: 4px solid #FFF4DC; box-shadow: 0 0 0 4px #9BF06B, 0 0 30px rgba(155,240,107,.35);
  background: linear-gradient(180deg, #17301f 0%, #21462b 55%, #356b34 100%); }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.game-soon-logo { width: 88%; height: auto; }
.game-soon-text { margin: 0; font-family: var(--display); font-size: clamp(24px, 5vw, 32px); color: var(--cream); }
.game-soon-sub { margin: 0; color: var(--soft); }
.game-full[hidden] { display: none !important; }
.game-badge { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #9BF06B; }
/* Patch 1.0.1: Play goes full screen, so phones don't need the separate button. */
@media (max-width: 899px), (pointer: coarse) { .game-full { display: none !important; } }
.game-frame:fullscreen, .game-frame:-webkit-full-screen { width: 100vw; height: 100vh; height: 100dvh; max-width: none; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: #000; }
.th-legend[hidden] { display: none; }

/* Patch 1.0.1: page-to-page blend for the project pages (and the other inner pages). The browser cross-fades the
   whole page, so backgrounds and glows blend from one colour to the next; swipes add a gentle slide. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
html:active-view-transition-type(next)::view-transition-old(root) { animation-name: vtOutNext; }
html:active-view-transition-type(next)::view-transition-new(root) { animation-name: vtInNext; }
html:active-view-transition-type(prev)::view-transition-old(root) { animation-name: vtOutPrev; }
html:active-view-transition-type(prev)::view-transition-new(root) { animation-name: vtInPrev; }
@keyframes vtOutNext { to { transform: translateX(-25%); opacity: 0; } }
@keyframes vtInNext { from { transform: translateX(25%); opacity: 0; } }
@keyframes vtOutPrev { to { transform: translateX(25%); opacity: 0; } }
@keyframes vtInPrev { from { transform: translateX(-25%); opacity: 0; } }
.swipeable { touch-action: pan-y; will-change: transform; }
/* Animated backgrounds (particles, the cloud) fade in on arrival instead of popping in. */
.page-hero canvas, canvas#neural, canvas.rain { animation: bgFadeIn .9s ease-out both; }
@keyframes bgFadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: .15s ease both fadeOnly !important; }
  ::view-transition-new(root) { animation-direction: reverse !important; }
  @keyframes fadeOnly { to { opacity: 0; } }
}
/* Patch 1.0.1: Axel Run in the Axel page's top card; the trailer in The series. */
.hero-game { margin: 8px auto 0; }
.series-trailer { max-width: 340px; margin: 8px 0 18px; }
@media (max-width: 720px) { .series-trailer { max-width: min(100%, 360px); margin-inline: auto; } }
.game-tile[hidden] { display: none; }
.game-poster { width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 3px #9BF06B, 0 0 30px rgba(155,240,107,.45); }
.swipe-dots ~ * { }
body:has(.swipe-dots) { padding-bottom: 56px; }   /* room for the page dots */
.hero-game .game-frame { justify-content: flex-start; padding-top: 26px; }
.hero-game { margin-top: 0; }
