/* Shared visual language, loaded after each game's own styles. */
:root {
    color-scheme: dark;
    --bg: #171320;
    --panel: #241d32;
    --ink: #f6f1ff;
    --muted: #bdb1ce;
    --line: #49375f;
    --accent: #c4a1ff;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
body {
    background: radial-gradient(ellipse at 85% 0%, #54307855, transparent 45%), var(--bg);
    color: var(--ink);
    font-family: 'Segoe UI', system-ui, sans-serif;
}
html { scroll-padding-top: 110px; }
.page { width: 100%; margin: auto; padding-inline: clamp(16px, 2.5vw, 48px); }
.site-header.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 100px;
    padding: 20px 0;
    border-bottom: 1px solid #b991ef30;
    font-size: 14px;
}
.site-header::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 90px; height: 2px; background: #bc8dff; }
.site-header .wordmark { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 750; white-space: nowrap; letter-spacing: -.5px; }
.brand-icon { display: grid; place-items: center; width: 40px; height: 40px; background: #b28af7; color: #241338; border-radius: 12px 12px 12px 3px; font-size: 22px; box-shadow: 0 0 28px #b287f52b; }
.brand-secondary { color: #b5a4c7; font-weight: 400; font-size: 15px; }
.site-header nav { display: flex; gap: 8px; margin-left: auto; }
.site-header nav a { padding: 9px 15px; border-radius: 8px; color: #d3c6e4; font-weight: 550; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: #f9f4ff; background: #a37adb25; }
.header-play { padding: 10px 18px; border: 1px solid #a77bde70; border-radius: 9px; background: #a37adb18; color: #dec7ff; font-weight: 650; white-space: nowrap; }
.arcade-hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; min-height: 590px; gap: 30px; padding: 70px 0 60px; }
.eyebrow { font-family: 'Cascadia Code', Consolas, monospace; font-size: 10px; letter-spacing: 1.7px; color: #bba2d8; margin-bottom: 22px; }
.arcade-hero h1 { font-size: clamp(48px, 6.2vw, 88px); font-weight: 800; line-height: 1.04; letter-spacing: -4px; margin: 0 0 26px; }
.arcade-hero h1 span { color: #c4a1ff; }
.hero-description { color: #c0b2d0; font-size: 17px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 30px 0 42px; font-size: 14px; }
.primary-link { padding: 14px 22px; background: #c3a0ff; color: #21112f; font-weight: 750; border-radius: 9px; box-shadow: 0 5px 30px #b487f725; }
.primary-link:hover { background: #dac3ff; color: #21112f; }
.secondary-link { color: #dac9ed; }
.hero-caption { display: flex; flex-wrap: wrap; gap: 20px; font: 10px Consolas, monospace; letter-spacing: 1px; color: #a392b7; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; background: radial-gradient(ellipse, #9b62de2a, transparent 68%); }
.orbit { position: absolute; width: 95%; aspect-ratio: 1; max-width: 430px; border: 1px solid #b48ad52e; border-radius: 50%; transform: rotate(-25deg) scaleY(.65); }
.orbit::after { content: ''; position: absolute; inset: 25px -20px; border: 1px dashed #b48ad530; border-radius: 50%; }
.arcade-console { width: min(320px, 85%); padding: 18px; background: linear-gradient(135deg, #735395, #392646); border: 1px solid #c2a1df; border-radius: 18px 18px 32px 18px; transform: rotate(-8deg); box-shadow: 12px 15px 0 #261b35, 20px 28px 60px #09050e88, inset 2px 2px 0 #ffffff24; }
.console-top { display: flex; justify-content: space-between; color: #e1c7f7; font: 10px Consolas, monospace; letter-spacing: 2px; padding: 1px 2px 14px; }
.console-screen { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 24px; background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 4px), #21132e; border: 6px solid #30203c; border-radius: 7px; min-height: 250px; }
.screen-label, .screen-bottom { color: #b993d8; font: 8px Consolas, monospace; letter-spacing: 1px; }
.screen-glyph { color: #dab1ff; font-size: 62px; line-height: 1.3; text-align: right; }
.screen-title { color: #e5cdff; font-size: 33px; font-weight: 900; line-height: 1.05; letter-spacing: -1px; }
.screen-bottom { margin-top: 22px; font-size: 7px; }
.console-controls { display: flex; align-items: center; gap: 15px; padding: 10px 6px 0; }
.d-pad { color: #21152c; font-size: 47px; line-height: 1; text-shadow: 1px 2px #ab8bc0; margin-right: auto; }
.console-button { width: 24px; height: 24px; border-radius: 50%; background: #e2b5ff; box-shadow: 2px 4px #32203f; }
.console-button.second { background: #b889e0; transform: translateY(-9px); }
.console-speaker { color: #281932; letter-spacing: 1px; font-weight: 900; margin-left: 5px; }
.art-star { position: absolute; right: 2%; top: 0; font-size: 58px; color: #d6b2ff; }
.art-sticker { position: absolute; right: 0; bottom: 0; transform: rotate(9deg); background: #d9f29d; color: #303e1b; padding: 16px; font-size: 12px; font-weight: 850; line-height: 1.3; border-radius: 50%; }
.marquee-strip { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 19px 0; border-block: 1px solid #a879dd38; color: #b8a4ce; font: 10px Consolas, monospace; letter-spacing: 1.5px; }
.home-page .games { margin: 66px 0; }
.section-heading { margin-bottom: 26px; align-items: flex-end; }
.section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .about-playground h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.2; font-weight: 750; letter-spacing: -1.3px; }
.section-heading h2 span, .about-playground h2 span { color: #c4a1ff; }
.section-summary { color: #b5a7c6; font-size: 13px; margin: 0; }
.home-page .game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; max-width: none; }
.home-page .game-card { position: relative; width: auto; min-width: 0; background: linear-gradient(145deg, #30233f, #241d31); border: 1px solid #84639e45; border-radius: 15px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.home-page .game-card:hover, .home-page .game-card:focus-visible { transform: translateY(-6px); border-color: #b28bdc; box-shadow: 0 14px 32px #08040d50; color: #fff; }
.home-page .game-card svg { aspect-ratio: 2 / 1; object-fit: cover; border-bottom: 1px solid #a879dd25; }
.home-page .game-card .meta { padding: 18px 20px 22px; }
.home-page .game-card strong { font-size: 16px; font-weight: 700; margin-bottom: 6px; padding-right: 12px; }
.home-page .game-card strong::after { content: '↗'; position: absolute; right: 17px; color: #c4a1ff; font-size: 15px; }
.home-page .game-card .meta span { color: #c1b1d1; opacity: 1; font-size: 12px; line-height: 1.65; display: block; }
.about-playground { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 45px 0 70px; }
.about-playground > div > p:not(.eyebrow) { color: #b9aac9; max-width: 470px; font-size: 14px; }
.about-playground h2 { margin-bottom: 22px; }
.experiment { border: 1px solid #9f77cd45; background: #30223e; padding: 26px 30px; border-radius: 16px; }
.experiment h3 { font-weight: 700; }
.experiment .color-button-wrap { margin-top: 22px; }
.experiment .circle-btn { width: 64px; height: 64px; box-shadow: 0 0 32px #e5393520; }
.experiment .shape-toggle { margin-top: 10px; gap: 6px; }
.experiment .shape-toggle label { font-size: 12px; border-color: #6e527e; padding: 5px 8px; background: #21182e; }
.experiment .shape-toggle legend { font-size: 12px; color: #c3add8; }
.site-footer { display: block; padding: 0; border-top: 1px solid #a879dd40; color: #b8a5ca; font-size: 12px; }
.footer-top { display: flex; align-items: center; gap: 50px; padding: 38px 0; }
.footer-brand { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -2px; color: #ede0ff; }
.footer-brand span { color: #c39bfa; margin-left: 10px; }
.footer-top p { font-size: 13px; line-height: 1.6; margin: 0; }
.footer-top p span { color: #e0c5fc; }
.footer-up { margin-left: auto; border: 1px solid #9871bc60; padding: 10px 16px; border-radius: 30px; color: #e1cdf5; white-space: nowrap; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 0 28px; border-top: 1px solid #a879dd25; font-size: 10px; }
.footer-bottom strong { font-weight: 600; color: #dac1f6; }
.footer-wave { display: inline-block; margin-left: 9px; letter-spacing: 2px; color: #be98e9; transform: rotate(-6deg); }
.footer-status { color: #c6dba9; }
.play-page main { margin: 38px auto 60px; }
.play-page .game-page { max-width: 1100px; padding: 0; }
.play-page .all-games { display: block; width: fit-content; color: #c4a1ff; margin: 0 0 24px; font-size: 12px; letter-spacing: .4px; }
.play-page .game-page h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 750; letter-spacing: -1.5px; margin-bottom: 24px; }
.play-page .game-page section { padding: clamp(16px, 3vw, 30px); border: 1px solid #8864a44d; border-radius: 18px; background: #292035; }
.play-page .game-page canvas { border: 1px solid #a879dd40; border-radius: 10px; }
.play-page button:not(.square):not(.cell):not([data-square]) { font-family: inherit; }
.play-page .control, .play-page #playBtn, .play-page #boostBtn { border: 1px solid #9e76c6; background: #61447e; color: #fbf5ff; border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.play-page #playerName { color: #eee0fa; background: #1b1425; border: 1px solid #86649f; border-radius: 8px; max-width: 100%; }
.play-page .game-page aside { background: #21192c !important; border: 1px solid #86649f55; }
:focus-visible { outline: 3px solid #dbbdff; outline-offset: 4px; }
@media (max-width: 1050px) {
    .home-page .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .arcade-hero h1 { letter-spacing: -2.8px; }
    .brand-secondary { display: none; }
    .hero-art { min-height: 380px; }
    .marquee-strip span:last-child { display: none; }
    .footer-top { gap: 25px; }
}
@media (max-width: 740px) {
    .site-header.topbar { min-height: 84px; flex-wrap: wrap; gap: 12px; padding: 18px 0; }
    .site-header .wordmark { font-size: 16px; }
    .site-header nav { gap: 0; }
    .site-header nav a { padding: 8px 10px; font-size: 12px; }
    .header-play { display: none; }
    .arcade-hero { grid-template-columns: 1fr; padding: 44px 0 35px; gap: 15px; }
    .arcade-hero h1 { font-size: clamp(48px, 10vw, 72px); }
    .hero-art { min-height: 410px; max-width: 420px; width: 100%; margin: auto; }
    .hero-actions { gap: 18px; }
    .hero-description { font-size: 15px; }
    .marquee-strip { font-size: 8px; gap: 10px; }
    .marquee-strip span:nth-child(4) { display: none; }
    .home-page .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .home-page .game-card .meta { padding: 14px; }
    .home-page .game-card strong { font-size: 14px; }
    .section-heading { align-items: start; gap: 14px; }
    .section-summary { font-size: 12px; }
    .about-playground { grid-template-columns: 1fr; gap: 26px; }
    .footer-top { flex-wrap: wrap; gap: 20px; }
    .footer-top p { flex: 1; }
    .footer-up { margin-left: 0; }
    .site-footer .footer-bottom > span { display: inline; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .slither-bar { flex-wrap: wrap; }
}
@media (max-width: 390px) {
    .brand-icon { width: 32px; height: 32px; font-size: 18px; }
    .site-header .wordmark { gap: 7px; font-size: 14px; }
    .site-header nav a { padding-inline: 7px; }
    .home-page .game-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .home-page .game-card { transition: none; }
    .home-page .game-card:hover { transform: none; }
}

/* Portfolio: learning, independent experience, and future aerodynamic work. */
.portfolio-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; padding: 85px 0 75px; }
.portfolio-hero h1 { font-size: clamp(56px, 6.4vw, 100px); font-weight: 800; line-height: 1.02; letter-spacing: -4px; }
.portfolio-hero h1 span { color: var(--accent); }
.portfolio-lead { color: #d3c3e5; max-width: 560px; font-size: 20px; line-height: 1.7; }
.portfolio-placeholder { font: 12px Consolas, monospace; color: #b7a2ce; }
.flow-panel { overflow: hidden; border: 1px solid #a279ce60; border-radius: 22px; background: radial-gradient(ellipse at center, #72439455, transparent 70%), #21182e; box-shadow: 0 24px 80px #0b06182e; }
.flow-panel svg { display: block; width: 100%; height: auto; }
.flow-caption { display: flex; justify-content: space-between; gap: 12px; padding: 22px; color: #b8a3cf; font: 10px Consolas, monospace; letter-spacing: 1px; }
.portfolio-section { margin: 0 0 70px; scroll-margin-top: 30px; }
.portfolio-section h2 { font-size: clamp(27px, 3vw, 40px); line-height: 1.2; font-weight: 750; letter-spacing: -1.3px; margin-bottom: 24px; }
.portfolio-section .section-heading h2 { margin-bottom: 0; }
.portfolio-section h2 span { color: var(--accent); }
.portfolio-grid { display: grid; gap: 22px; }
.portfolio-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.portfolio-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px; }
.portfolio-card { padding: clamp(22px, 2.5vw, 36px); background: linear-gradient(140deg, #30223f, #231b30); border: 1px solid #a07bca45; border-radius: 16px; }
.portfolio-card h3 { font-size: 21px; font-weight: 650; margin: 18px 0 14px; color: #eadcfb; }
.portfolio-card p { color: #bdaccd; font-size: 14px; line-height: 1.85; max-width: 850px; }
.portfolio-label { display: inline-block; color: #c5a5ec; font: 10px Consolas, monospace; letter-spacing: 1.3px; }
.placeholder-note { color: #aa94c0; font: 11px Consolas, monospace; line-height: 1.8; }
.portfolio-card hr { border: 0; border-top: 1px solid #a07bca33; margin: 24px 0; }
.interest-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.interest-tags span { padding: 7px 13px; border: 1px solid #b189da50; border-radius: 30px; color: #dac5f2; font-size: 12px; background: #a27adb12; }
@media (max-width: 1050px) {
    .portfolio-hero { gap: 28px; }
    .portfolio-hero h1 { font-size: 66px; }
}
@media (max-width: 740px) {
    .portfolio-hero { grid-template-columns: 1fr; gap: 30px; padding: 48px 0; }
    .portfolio-hero h1 { font-size: clamp(50px, 11vw, 72px); letter-spacing: -2.5px; }
    .portfolio-lead { font-size: 17px; }
    .portfolio-grid.three-up, .portfolio-grid.two-up { grid-template-columns: 1fr; }
    .portfolio-section { margin-bottom: 44px; }
    .site-header.topbar { gap: 8px; }
    .site-header nav a { padding-inline: 8px; font-size: 11px; }
    .flow-caption { padding: 16px; font-size: 8px; }
}
@media (max-width: 430px) {
    .site-header nav { width: 100%; justify-content: space-between; }
    .site-header nav a { padding: 8px 12px; }
}

.about-card .social-links {
    display: flex;
    align-items: center;
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #a07bca33;
}
.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    border: 1px solid #ff707088;
    border-radius: 10px;
    background: #c93640;
    color: #fff;
    box-shadow: 0 2px 5px #0d071d35;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.social-icon:hover, .social-icon:focus-visible {
    background: #e8424b;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px #c9364030;
}
.social-icon:active {
    transform: translateY(1px);
    background: #ad2631;
    box-shadow: none;
}
.social-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}
@media (prefers-reduced-motion: reduce) {
    .social-icon { transition: none; }
}
.about-card .social-links {
    align-items: center;
    gap: 18px;
}
.social-links .social-icon { flex: 0 0 46px; }
.latest-video {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    max-width: 650px;
    padding: 10px 14px 10px 10px;
    border: 1px solid #a07bca45;
    border-radius: 12px;
    background: #17132060;
    cursor: pointer;
}
.latest-video:hover, .latest-video:focus-visible {
    border-color: #d35c6c;
    background: #c9364012;
}
.latest-video-art { position: relative; flex: 0 0 144px; width: 144px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; }
.latest-video-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.latest-video-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 23px; background: #0003; text-shadow: 0 2px 8px #000; }
.latest-video-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.latest-video-label { font: 9px Consolas, monospace; letter-spacing: 1.2px; color: #ef8d99; }
.latest-video-copy strong { color: #f1e4ff; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.latest-video-date { color: #b7a4c9; font-size: 11px; }
@media (max-width: 550px) {
    .about-card .social-links { align-items: flex-start; gap: 12px; }
    .latest-video { flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; }
    .latest-video-art { flex: none; width: 100%; }
}

/* Play the latest upload directly in the portfolio. */
.about-card .social-links { align-items: flex-start; }
.latest-video {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    width: 100%;
    cursor: default;
}
.latest-video:hover { border-color: #a07bca45; background: #17132060; }
.latest-video-player { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #100b18; }
.latest-video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.latest-video-copy { padding: 2px 4px; }
.latest-video-copy:hover strong { color: #ef8d99; }

/* The arcade has its own home, apart from the portfolio. */
.arcade-banner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    gap: 70px;
    padding: 70px 0 60px;
}
.arcade-banner h1 {
    font-size: clamp(46px, 5.5vw, 84px);
    line-height: 1.05;
    letter-spacing: -3px;
    font-weight: 800;
}
.arcade-banner h1 span { color: var(--accent); }
.arcade-description { color: #c5b4d7; font-size: 17px; line-height: 1.8; }
.arcade-surprise {
    font: inherit;
    font-weight: 650;
    color: #dec9f8;
    background: transparent;
    border: 1px solid #a47bcf70;
    border-radius: 9px;
    padding: 13px 20px;
    cursor: pointer;
}
.arcade-surprise:hover { background: #ac7fdc20; border-color: #c4a1ff; }
.arcade-ticket {
    position: relative;
    width: min(100%, 390px);
    justify-self: center;
    transform: rotate(5deg);
    padding: 30px;
    border: 1px solid #d0b0f5;
    border-radius: 18px;
    background: linear-gradient(140deg, #b88cf0, #8c60c2);
    color: #241335;
    box-shadow: 10px 14px 0 #39254e, 0 25px 75px #09051040;
}
.arcade-ticket > span { font: 10px Consolas, monospace; letter-spacing: 2px; }
.arcade-ticket strong { display: block; padding: 34px 0; font-size: clamp(42px, 5vw, 74px); line-height: 1; font-weight: 900; letter-spacing: -3px; }
.arcade-ticket em { font-style: normal; color: #f7edff; }
.ticket-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px dashed #42245470; font: 11px Consolas, monospace; letter-spacing: 1px; }
.ticket-star { font-size: 40px; line-height: 1; }
.arcade-directory { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-block: 1px solid #a879dd38; }
.arcade-directory > div { display: flex; flex-wrap: wrap; gap: 12px; }
.arcade-directory a { border: 1px solid #a47bcf45; border-radius: 30px; padding: 8px 16px; color: #dec9f8; font-size: 12px; background: #a47bcf12; }
.arcade-directory a:hover { background: #a47bcf30; border-color: #c4a1ff; }
.arcade-directory a span { margin-left: 10px; color: #b493d5; }
.arcade-directory > span { color: #a58dbb; font: 10px Consolas, monospace; letter-spacing: 1px; }
.portfolio-signoff { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 0 0 50px; color: #b9a6cc; font-size: 13px; }
.portfolio-signoff .eyebrow { margin: 0; }
.signoff-line { flex: 1; height: 1px; min-width: 30px; background: #a879dd40; }
.signoff-star { color: #b68beb; font-size: 25px; }
@media (max-width: 740px) {
    .arcade-banner { grid-template-columns: 1fr; gap: 35px; padding: 46px 0; }
    .arcade-banner h1 { font-size: clamp(42px, 8vw, 64px); letter-spacing: -2px; }
    .arcade-description { font-size: 15px; }
    .arcade-description br { display: none; }
    .arcade-ticket { width: min(85%, 330px); margin-bottom: 20px; }
    .arcade-ticket strong { font-size: 56px; }
    .arcade-directory > span { display: none; }
    .arcade-directory > div { gap: 8px; }
    .arcade-directory a { padding: 8px 12px; font-size: 11px; }
    .portfolio-signoff { gap: 15px; }
}
