:root { color-scheme: light; --ink: #272052; --navy: #211b60; --purple: #4a247e; --pink: #ff6fa8; --yellow: #ffeb56; --blue: #3ad8fa; --cream: #fffcdf; --line: #353080; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 15px/1.7 "MS PGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; background: #100d34; }
.stars { position: fixed; z-index: -1; inset: 0; pointer-events:none; background-color:#100d34; background-image: radial-gradient(#fbf5a9 1.1px, transparent 1.3px), radial-gradient(#99aeff 1.5px,transparent 1.7px), radial-gradient(#fff 1px,transparent 1.2px), linear-gradient(135deg,#20124c,#090a26 65%,#25144c); background-size: 57px 68px, 103px 95px, 141px 123px,auto; background-position: 5px 11px, 30px 60px, 74px 25px,0; }
a { color:#18259d; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #e40075; }
a:focus-visible { outline: 3px dashed #fa4a98; outline-offset: 4px; }
.site-shell { width: min(100% - 32px, 990px); margin: 35px auto 45px; border: 4px ridge #d5bfff; background: #fff9d9; box-shadow: 0 0 0 5px #14113d, 0 12px 50px #05021b; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; min-height: 34px; padding: 4px 13px; color:#fffbc1; background: #241761; font: bold 12px/1.5 "Courier New", monospace; letter-spacing: .5px; }
.topbar-right { color: #aff7ff; font-size: 10px; }
.site-header { position: relative; overflow: hidden; min-height: 207px; border-bottom: 5px double var(--yellow); background: radial-gradient(circle at 28% 20%,#513cac 0,#251668 48%,#181251 100%); }
.site-header::before { content: ""; position:absolute; inset:0; opacity:.24; background-image:linear-gradient(transparent 49%, #fff 50%, transparent 51%); background-size:100% 8px; }
.site-header::after { content:"✧"; position:absolute; top:4px; right:12%; color:#ffec72; font-size:28px; text-shadow: 0 0 16px #f5b8ff; }
.header-sparkles { position:absolute; top:8px; left:18%; color:#ffe86d; letter-spacing:25px; font-size:14px; }
.header-inner { position:relative; display:flex; justify-content:center; align-items:center; gap:19px; padding:25px 22px 27px; }
.header-rocket { filter:drop-shadow(6px 6px 0 #0c0c3e); transform:rotate(-9deg); animation:rocket-float 3.5s ease-in-out infinite; flex:0 0 auto; }
.header-copy { text-align:center; }
.overline { margin:0 0 2px; color:#fff8a3; font-weight:bold; letter-spacing:5px; text-shadow:2px 2px #54226d; }
.retro-logo { display:flex; justify-content:center; gap:0; flex-direction:column; margin:0; line-height:.95; font: 900 clamp(44px,7.5vw,80px)/.93 "Arial Black", Impact, sans-serif; letter-spacing:-3px; transform: skew(-5deg); text-shadow: 4px 4px 0 #3b165d, 7px 7px 0 #0d0d35, -2px -2px 0 #fff; -webkit-text-stroke: 1.5px #fff; }
.retro-logo span:first-child { color:#fbdc52; }
.retro-logo span:last-child { color:#ff87d8; }
.subtitle { color: white; margin:13px 0 0; font-size:14px; font-weight:800; letter-spacing:1px; text-shadow:2px 2px #3e1f86; }
.retro-stamp { display:grid; place-items:center; width:76px; height:76px; flex:0 0 auto; border:3px dashed #fff5a5; transform:rotate(12deg); color:#0c246b; background:#f9f183; font-weight:900; font-size:17px; line-height:1.1; text-align:center; box-shadow:5px 6px 0 #0d0a3a; }
.ticker { display:flex; height:36px; align-items:stretch; background:var(--yellow); border-bottom:3px solid var(--ink); font-weight:bold; overflow:hidden; }
.ticker-label { display:flex; align-items:center; padding:0 12px; background:#f54990; border-right:2px solid var(--ink); color:white; font:bold 16px "Courier New",monospace; }
.ticker-window { position:relative; display:flex; align-items:center; min-width:0; flex:1; overflow:hidden; white-space:nowrap; color:#4b2461; }
.ticker-window span { display:inline-block; animation:marquee 24s linear infinite; padding-left:100%; }
.content-grid { display:grid; grid-template-columns:234px minmax(0,1fr); }
.sidebar { padding:14px 12px; border-right:3px dashed #5d4d92; background: repeating-linear-gradient(0deg,#e4ddff 0,#e4ddff 21px,#f4edff 22px,#f4edff 44px); }
.side-section { margin-bottom:17px; background:#fffdf4; border:3px ridge #7161b2; box-shadow:3px 4px 0 #aca0ce; }
.side-heading { margin:0; padding:5px 7px; background:#3c3289; color:#fff8b8; text-align:center; font:bold 13px/1.6 "Courier New", monospace; letter-spacing:.5px; }
.side-nav { display:flex; flex-direction:column; padding:9px; gap:6px; }
.side-nav a { display:flex; align-items:center; gap:7px; min-height:38px; padding:6px 7px; color:#27235a; background:#ffec95; border:2px outset #ffffc4; text-decoration:none; font-size:14px; font-weight:800; box-shadow:1px 1px 0 #bca550; }
.side-nav a:hover { color:#f22174; background:#fff7c8; border-style:inset; }
.side-nav a[aria-current="page"] { background:#bdf5fe; border-color:#edffff; }
.nav-icon { display:inline-grid; place-items:center; font:900 18px/1 monospace; width:20px; }
.nav-new { margin-left:auto; font:900 10px/1 monospace; color:#f92468; animation:flash 1.2s steps(1,end) infinite; }
.side-pad { padding:10px 12px; text-align:center; }
.side-pad p { margin:5px 0; }
.mini-title { font-size:13px; font-weight:900; color:#ed217b; }
.pixel-rule { color:#6f58b9; margin:5px 0; }
.fineprint { font-size:12px; }
.side-counter { border-color:#f4906a; }
.side-counter .side-heading { background:#b13568; }
.counter-wrapper { padding-top:12px; padding-bottom:13px; }
.counter-kicker { font-size:12px; font-weight:900; }
.counter-digits { display:inline-block; min-width:7ch; padding:1px 7px; font:bold clamp(22px,2.5vw,28px)/1.3 "Courier New", monospace; letter-spacing:2px; color:#8cff91; background:#131624; border:4px ridge #a5a8ac; text-align:center; font-variant-numeric:tabular-nums; box-shadow:inset 2px 2px 0 #000; }
.counter-help { font-size:10px; line-height:1.4; color:#605d83; }
.side-badges { display:grid; justify-items:center; gap:7px; }
.side-badges span { display:block; width:100%; text-align:center; padding:3px; border:2px outset white; background:#24245d; color:#fcf9c5; font:bold 10px/1.6 "Courier New", monospace; }
.side-badges span:nth-child(2) { background:#f5759f; color:#24245d; }
.side-badges span:nth-child(3) { background:#d9fbad; color:#25445a; }
.main-panel { min-width:0; padding:16px; background:#fffbee; }
.section-heading { display:flex; align-items:center; justify-content:center; gap:9px; padding:7px 12px; border-bottom:2px solid #635397; background:#e4d8ff; text-align:center; color:#342668; }
.section-heading h2 { margin:0; font:bold 15px/1.4 "Courier New", "Yu Gothic",sans-serif; letter-spacing:.3px; }
.mini-star { color:#ff52a0; }
.welcome-card,.feature-box,.link-section,.update-box { margin-bottom:19px; border:3px double #62539b; background:white; box-shadow:3px 4px 0 #d2c7aa; }
.welcome-body { padding:13px 19px 10px; text-align:center; }
.welcome-body p { margin:7px 0; }
.rainbow-text { font-size:20px; font-weight:900; letter-spacing:1px; background:linear-gradient(90deg,#fd5398,#da5be0,#6151ca,#0aaacc,#3ca45a,#dd7700); -webkit-background-clip:text; background-clip:text; color:transparent; }
.blinky { color:#de2270; font-size:13px; font-weight:800; animation:flash 2.2s steps(1,end) infinite; }
.feature-box { border-color:#382671; }
.section-heading-dark { justify-content:flex-start; background:#34246e; color:#fff9b7; border-bottom:3px solid #f6e96b; }
.section-heading-dark h2 { flex:1; }
.sparkle-tag { padding:1px 7px; color:#30175f; background:#ffdb45; font:bold 12px monospace; transform:rotate(5deg); }
.feature-inner { display:grid; grid-template-columns:minmax(190px, 45%) 1fr; gap:15px; padding:15px; background: #f8f7ff; }
.feature-visual { position:relative; min-height:205px; overflow:hidden; border:5px ridge #8b84d4; background:radial-gradient(ellipse at 65% 30%,#51348d,#130f41 75%); color:#fff; }
.feature-visual::before { content:""; position:absolute; inset:0; background-image:radial-gradient(#fffbdd 1px,transparent 2px); background-size:29px 35px; opacity:.7; }
.game-moon { position:absolute; right:19px; top:24px; width:71px; height:71px; background:radial-gradient(circle at 28% 25%,#fce6a8 0,#eb8ebc 60%,#8d68be); border-radius:50%; box-shadow:0 0 25px #ffc9f466; }
.game-ship { position:absolute; z-index:1; top:23px; left:18px; font-size:62px; transform:rotate(31deg); filter:drop-shadow(4px 6px 0 #0007); }
.game-star { position:absolute; color:#fded87; font-size:26px; }
.game-star.s1 { right:100px; top:35px; }.game-star.s2 { left:95px; top:90px; }.game-star.s3 { right:15px; bottom:65px; }
.game-label { position:absolute; z-index:1; left:12px; right:12px; bottom:8px; text-align:center; color:#ffed63; font:900 33px/.95 Impact,"Arial Black",sans-serif; letter-spacing:2px; text-shadow:3px 3px 0 #d34481,5px 5px 0 #32103e; transform:skew(-6deg); }
.feature-description { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.new-label { color:#e12a70; font:bold 12px "Courier New",monospace; }
.feature-description h3 { margin:4px 0; color:#2c215f; font:900 clamp(22px,3vw,30px) Impact,"Arial Black",sans-serif; letter-spacing:.3px; }
.feature-description p { margin:5px 0; font-size:14px; }
.feature-description .meta { color:#766c92; font:bold 11px monospace; }
.play-button { display:inline-block; margin-top:11px; padding:8px 18px; border:3px outset #fff8a8; background:#fff05a; box-shadow:3px 3px 0 #3e337f; color:#291c62; font:900 16px "Courier New",monospace; text-decoration:none; text-align:center; }
.play-button:hover { background:#ffa7d2; color:#241451; transform:translate(1px,1px); box-shadow:2px 2px 0 #3e337f; }
.portal-cards { display:grid; grid-template-columns:1fr 1fr; gap:11px; padding:12px; background:#fbf8ff; }
.portal-card { display:flex; align-items:center; gap:10px; min-width:0; min-height:112px; padding:10px; border:3px outset white; color:#372c69; text-decoration:none; box-shadow:2px 3px 0 #b5a3c4; }
.portal-card:hover { transform:translateY(-2px); box-shadow:2px 5px 0 #b5a3c4; color:#a70e61; }
.magazine-card { background:#ffe0ed; }.tools-card { background:#d6faff; }
.card-icon { font-size:31px; }.card-content { display:flex; flex:1; flex-direction:column; min-width:0; }.card-content strong { font-size:16px; line-height:1.5; }.card-content small { font-size:11px; line-height:1.5; }.card-content em { color:#ba3766; font-style:normal; font-weight:bold; font-size:12px; margin-top:5px; }.card-arrow { font:900 24px monospace; }
.update-heading { justify-content:flex-start; background:#e7f3c5; border-bottom-color:#789044; }
.update-lines { padding:7px 13px; background:repeating-linear-gradient(0deg,#fff 0,#fff 29px,#eef0f1 30px); }
.update-lines p { margin:6px 0; font-size:13px; line-height:24px; }.update-lines time { margin-right:5px; color:#333ca0; font:bold 12px monospace; }.update-mark { padding:1px 3px; color:white; background:#f23589; font:bold 10px monospace; }
.closing-note { text-align:center; color:#9d368a; font-weight:bold; font-size:13px; }
.site-footer { padding:12px 10px 14px; border-top:4px double #fedc4d; background:#292068; color:#f8f5c4; text-align:center; font:12px/1.7 "Courier New","Yu Gothic",sans-serif; }
.footer-mini { font-size:10px; color:#cad3fa; }
/* Construction pages */
.under-shell { width:min(100% - 32px,780px); margin-top:56px; }
.under-header { padding:20px 14px 22px; border-bottom:5px double #fff2a3; background:radial-gradient(ellipse at center,#543a9d,#21165c 75%); color:#fff9a6; text-align:center; }
.under-header p { margin:4px 0; font:bold 13px "Courier New",monospace; letter-spacing:2px; }.under-header h1 { margin:10px 0; font-weight:900; font-size:clamp(35px,8vw,58px); letter-spacing:6px; color:#ffe93e; text-shadow:4px 4px 0 #ec5e8b,7px 7px 0 #17133c; animation:warning-glow 2s ease-in-out infinite; }
.construction-window { margin:20px; border:5px ridge #bfb6d4; background:#fffcf0; box-shadow:5px 6px 0 #3f3378; }
.construction-window-title { background:#c44e84; color:#fff; padding:5px 12px; font-weight:900; border-bottom:3px solid #442868; }
.tools-theme .construction-window-title { background:#258eb3; }
.construction-body { display:flex; align-items:center; justify-content:center; gap:20px; min-height:240px; padding:18px; }
.worker-art { width:176px; max-width:40%; height:auto; border:3px outset #fff; background:#f8edca; image-rendering:pixelated; flex:0 0 auto; }
.construction-copy { flex:1; min-width:0; }.warning-light { color:#ea2474; font-weight:900; font-size:15px; animation:flash 1.5s steps(1,end) infinite; }.construction-copy h2 { color:#392467; font-size:27px; margin:3px 0 9px; border-bottom:3px dashed #d9c5f2; }.construction-copy p { margin:7px 0; }.construction-ascii { display:inline-block; margin-top:9px; padding:5px; border:2px solid #5c5594; background:#f9f6d1; color:#43348a; font:bold 12px monospace; }
.caution-stripe { height:22px; border-block:2px solid #332e4a; background:repeating-linear-gradient(120deg,#fddd33 0,#fddd33 19px,#2f2c4a 20px,#2f2c4a 38px); }
.construction-small { text-align:center; font-size:11px; color:#7a7290; margin:12px; }.construction-actions { display:flex; justify-content:space-evenly; align-items:center; flex-wrap:wrap; gap:8px 14px; padding:8px 12px 19px; }.return-home { display:inline-block; padding:8px 16px; border:3px outset #eeeaff; background:#d9d1fb; color:#241b68; font-weight:900; text-decoration:none; }.text-game-link { font-weight:bold; }
.under-counter { margin:0 20px 18px; text-align:center; font:bold 14px/1.8 "Courier New",monospace; }.under-counter .counter-digits { margin-left:5px; font-size:20px; }
@keyframes marquee { from { transform:translateX(0); } to {transform:translateX(-100%);} }
@keyframes rocket-float { 0%,100% {transform:translateY(0) rotate(-9deg);}50% {transform:translateY(-7px) rotate(-6deg);} }
@keyframes flash { 0%,48% {opacity:1;}49%,70% {opacity:.22;}71%,100% {opacity:1;} }
@keyframes warning-glow { 0%,100% {filter:brightness(1);}50% {filter:brightness(1.2);} }
@media (max-width: 760px) { .site-shell { width:min(100% - 16px,620px); margin-top:12px; }.header-inner {gap:9px;padding:20px 10px;}.header-rocket {width:75px;height:90px;}.retro-stamp {width:51px;height:51px;font-size:11px;}.retro-logo {font-size:clamp(34px,9vw,62px);}.overline {font-size:11px;letter-spacing:2px;}.subtitle {font-size:11px;}.content-grid {grid-template-columns:1fr;}.sidebar {border-right:0;border-bottom:3px dashed #6954a1;display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px;}.side-section {margin-bottom:0;}.side-counter {grid-column:2;}.side-welcome {grid-column:1;}.side-badges {display:none;}.main-panel {padding:12px;}.feature-inner {grid-template-columns: 1fr 1fr;}.feature-visual {min-height:190px;}.site-header {min-height:165px;}.construction-body {gap:12px;} }
@media (max-width: 520px) { .topbar-right {display:none;}.header-rocket {width:62px;height:75px;}.retro-stamp {display:none;}.header-inner {padding:22px 6px;}.retro-logo {letter-spacing:-2px;-webkit-text-stroke:1px white;}.subtitle {margin-top:8px;}.sidebar {grid-template-columns:1fr;}.side-counter,.side-welcome {grid-column:auto;}.side-nav {display:grid;grid-template-columns:1fr 1fr;gap:6px;}.side-nav a {font-size:12px;min-height:42px;}.side-pad {padding:8px 12px;}.welcome-body {padding:10px;}.rainbow-text {font-size:17px;}.section-heading h2 {font-size:13px;}.feature-inner {grid-template-columns:1fr;}.feature-visual {min-height:182px;}.feature-description {align-items:center;text-align:center;}.portal-cards {grid-template-columns:1fr;}.under-shell {width:min(100% - 14px,620px);margin-top:15px;}.construction-window {margin:12px;}.construction-body {flex-direction:column;text-align:center;}.worker-art {max-width:180px;width:60%;}.under-header h1 {letter-spacing:2px;}.construction-copy h2 {font-size:24px;}.under-counter {font-size:11px;}.under-counter .counter-digits {font-size:16px;} }
@media (prefers-reduced-motion: reduce) { html {scroll-behavior:auto;} *, *::before, *::after {animation-duration:.01ms !important;animation-iteration-count:1 !important;} .ticker-window span {animation:none;padding-left:14px;} }
.topbar a { color:#aafaff; text-decoration:none; }
.topbar a:hover { color:#fff5a4; text-decoration:underline; }

/* Welcome visitor counter */
.welcome-counter { margin:12px auto; padding:10px 12px 7px; max-width:500px; border:2px dashed #d5a1be; background:#fff6fb; color:#70386c; }
.visitor-number { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; font-weight:900; }
.welcome-body .counter-help { margin:5px 0 0; }

/* Keep the optional AI entry hidden until a protected URL is configured. */
[data-character-link][hidden] { display: none !important; }

/* Game collection: each entry stays readable as the collection grows. */
.games-header h1 { font-size:clamp(30px,7vw,58px); letter-spacing:2px; animation:none; }
.games-breadcrumb { margin:0 0 16px; font-size:13px; }
.game-collection { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:18px; padding:16px; background:#fbf8ff; }
.game-entry { min-width:0; display:flex; flex-direction:column; border:3px outset #eeeaff; background:#f8f7ff; box-shadow:3px 3px 0 #b5a3c4; }
.game-entry .feature-visual { border:0; border-bottom:3px solid #382671; min-height:205px; }
.game-entry-body { display:flex; flex:1; flex-direction:column; align-items:flex-start; padding:16px; overflow-wrap:anywhere; }
.game-entry h3 { margin:4px 0 8px; color:#2c215f; font-size:24px; }
.game-entry p { margin:0 0 12px; }
.game-category { color:#a31d65; font-weight:bold; font-size:12px; }
.game-details { color:#625478; font-size:12px; }
.game-entry .play-button { margin-top:auto; max-width:100%; font-size:14px; }
.asteroid-preview { background:radial-gradient(ellipse at 65% 30%,#27697b,#10283f 75%); }
.asteroid-preview .game-moon { border-radius:35% 45% 30% 40%; background:radial-gradient(circle at 30% 25%,#cbbba5,#675d6b); transform:rotate(25deg); }
.games-home { text-align:center; margin:22px 0; }
.games-page a:focus-visible { outline:3px solid #a31d65; outline-offset:4px; }
.quick-draw-preview{background:linear-gradient(#281b3540,#281b3580),url('/arcade/western.svg') center / cover}.quick-draw-preview .game-ship{display:none}.tank-battle-preview{background:repeating-linear-gradient(0deg,transparent 0 38px,#6b839833 39px 40px),repeating-linear-gradient(90deg,#162b38 0 38px,#6b839833 39px 40px)}.tank-battle-preview .game-ship{color:#74c7ff}.button-mash-preview{background:radial-gradient(ellipse at 65% 30%,#26765f,#122c34 75%)}

.solo-flight-preview { background:linear-gradient(0deg,#0b101cb3,transparent),url('/flight/horizon.webp') 75% center / cover; }
.solo-flight-preview::before { display:none; }
.solo-flight-preview .game-label { color:#ffdfae; text-shadow:3px 4px #171b25; letter-spacing:1px; }
.leaderboard-jump { margin:0 0 12px; }
.leaderboard-links { display:flex; flex-wrap:wrap; gap:10px; padding:12px; }
.leaderboard-links .play-button { min-height:44px; display:inline-flex; align-items:center; }
.orbit-preview { background-position:24% 32%; }
.orbit-preview .game-label { color:#a5fff1; }
