:root {
  color-scheme: dark;
  --bg: #07070c;
  --bg-deep: #030306;
  --panel: rgba(17, 18, 30, 0.88);
  --panel-solid: #11121e;
  --panel-bright: #181a2a;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f8f6ff;
  --muted: #aaa8bd;
  --muted-bright: #d3d0df;
  --pink: #ff4f9a;
  --pink-hot: #ff2e7f;
  --cyan: #4de7ff;
  --violet: #9a75ff;
  --yellow: #ffd166;
  --green: #61f2ad;
  --red: #ff7272;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shell: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -10%, rgba(154, 117, 255, 0.17), transparent 36rem),
    radial-gradient(circle at 95% 12%, rgba(255, 79, 154, 0.14), transparent 32rem),
    linear-gradient(180deg, #090910 0%, var(--bg) 38%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .045;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.45) 4px);
}
img, video, iframe { max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: rgba(255,79,154,.38); color: white; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.section { padding: 92px 0; position: relative; }
.section--tight { padding: 58px 0; }
.section--top { padding-top: 62px; }
.stack { display: grid; gap: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 14px; top: -60px; z-index: 10000; padding: 10px 14px; border-radius: 10px; background: white; color: #090910; font-weight: 800; transition: top .2s ease; }
.skip-link:focus { top: 14px; }

.ambient { position: fixed; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(100px); opacity: .12; z-index: -2; pointer-events: none; animation: floatGlow 14s ease-in-out infinite alternate; }
.ambient--one { background: var(--violet); left: -12rem; top: 24%; }
.ambient--two { background: var(--pink); right: -14rem; top: 58%; animation-delay: -5s; }
@keyframes floatGlow { to { transform: translate3d(6rem, -4rem, 0) scale(1.12); } }

.site-header { position: sticky; top: 0; z-index: 1000; border-bottom: 1px solid transparent; background: rgba(7,7,12,.76); backdrop-filter: blur(18px); transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 14px 34px rgba(0,0,0,.28); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand__mark { flex: 0 0 auto; filter: drop-shadow(0 0 16px rgba(77,231,255,.25)); }
.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-size: .92rem; letter-spacing: .14em; }
.brand__text small { margin-top: 5px; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__link { padding: 10px 12px; border-radius: 10px; color: var(--muted-bright); text-decoration: none; font-size: .91rem; font-weight: 700; transition: color .2s, background .2s; }
.site-nav__link:hover, .site-nav__link:focus-visible { color: white; background: rgba(255,255,255,.07); }
.site-nav__link.is-active { color: white; background: linear-gradient(135deg, rgba(255,79,154,.18), rgba(154,117,255,.16)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { width: 20px; height: 2px; border-radius: 10px; background: currentColor; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; box-shadow: 0 0 12px currentColor; }
.display-title { margin: 0; max-width: 900px; font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: .88; letter-spacing: -.07em; text-wrap: balance; }
.display-title .gradient-text { display: block; font-size: .9em; white-space: nowrap; }
.display-title .gradient-text, .gradient-text { color: transparent; background: linear-gradient(110deg, #fff 8%, var(--pink) 48%, var(--cyan)); background-clip: text; -webkit-background-clip: text; }
.lede { max-width: 720px; margin: 24px 0 0; color: var(--muted-bright); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.page-hero { padding: 86px 0 60px; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .42fr); gap: 56px; align-items: end; }
.page-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.055em; text-wrap: balance; }
.page-hero p { margin: 22px 0 0; max-width: 720px; color: var(--muted-bright); font-size: 1.12rem; }
.page-hero__aside { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); padding: 22px; box-shadow: var(--shadow); }

.hero-home { padding: 76px 0 48px; min-height: calc(100vh - 78px); display: grid; align-items: center; }
.hero-home__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(330px, .72fr); gap: 62px; align-items: center; }
.hero-home__copy { position: relative; z-index: 1; min-width: 0; }
.hero-home__actions, .button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 13px; padding: 12px 18px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { color: #09070e; background: linear-gradient(110deg, var(--pink), #ff8a5c); box-shadow: 0 14px 34px rgba(255,79,154,.22); }
.button--primary:hover { box-shadow: 0 18px 42px rgba(255,79,154,.33); }
.button--secondary { border-color: var(--line-strong); background: rgba(255,255,255,.045); color: white; }
.button--secondary:hover { border-color: rgba(77,231,255,.48); background: rgba(77,231,255,.07); }
.button--small { min-height: 40px; padding: 8px 13px; border-radius: 10px; font-size: .88rem; }
.button:focus-visible, .site-nav__link:focus-visible, .project-card a:focus-visible, .nav-toggle:focus-visible, input:focus-visible, button:focus-visible { outline: 3px solid rgba(77,231,255,.78); outline-offset: 3px; }

.hero-feature { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.018)); box-shadow: var(--shadow); transform: rotate(1deg); }
.hero-feature::before { content: ""; position: absolute; inset: 9% -6% -7% 12%; border-radius: inherit; background: linear-gradient(135deg, rgba(154,117,255,.3), rgba(255,79,154,.17)); filter: blur(44px); z-index: -1; }
.hero-feature__screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 21px; background: #000; }
.hero-feature__screen img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-feature:hover img { transform: scale(1.035); }
.hero-feature__label { position: absolute; left: 15px; top: 15px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.17); border-radius: 999px; padding: 8px 11px; background: rgba(5,5,10,.78); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.hero-feature__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.hero-feature__body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 10px 8px; }
.hero-feature__body h2 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.hero-feature__body p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; }
.play-orb { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: white; color: #090910; text-decoration: none; box-shadow: 0 8px 28px rgba(255,255,255,.16); }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.stat { background: rgba(12,12,20,.94); padding: 24px; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; letter-spacing: -.04em; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .84rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1; letter-spacing: -.045em; }
.section-heading p { max-width: 580px; margin: 14px 0 0; color: var(--muted); }
.section-heading__action { flex: 0 0 auto; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.category-card { position: relative; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: linear-gradient(155deg, rgba(255,255,255,.07), rgba(255,255,255,.018)); text-decoration: none; box-shadow: 0 18px 50px rgba(0,0,0,.22); transition: transform .22s ease, border-color .22s ease; }
.category-card:hover { transform: translateY(-5px); border-color: rgba(77,231,255,.38); }
.category-card::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; bottom: -80px; border-radius: 50%; background: var(--card-glow, var(--violet)); filter: blur(40px); opacity: .23; }
.category-card__number { color: var(--cyan); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.category-card h3 { margin: 62px 0 10px; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.035em; }
.category-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.category-card__arrow { position: absolute; right: 22px; top: 22px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(165deg, rgba(24,26,42,.96), rgba(12,12,20,.96)); box-shadow: 0 20px 60px rgba(0,0,0,.22); transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(255,79,154,.34); box-shadow: 0 28px 70px rgba(0,0,0,.36); }
.project-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #08080d; }
.project-card__media::after { content: ""; position: absolute; inset: auto 0 0; height: 44%; background: linear-gradient(transparent, rgba(8,8,13,.8)); pointer-events: none; }
.project-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .38s ease; }
.project-card:hover .project-card__media img { transform: scale(1.035); }
.project-card__year { position: absolute; z-index: 1; top: 13px; right: 13px; }
.project-card__body { padding: 22px; }
.project-card h3 { margin: 10px 0 10px; font-size: 1.35rem; line-height: 1.15; letter-spacing: -.025em; }
.project-card h3 a { text-decoration: none; }
.project-card p { display: -webkit-box; min-height: 4.8em; margin: 0; overflow: hidden; color: var(--muted); font-size: .93rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.project-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.arrow-link { color: white; font-size: .86rem; font-weight: 850; text-decoration: none; white-space: nowrap; }
.arrow-link:hover { color: var(--cyan); }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; background: rgba(255,255,255,.045); color: var(--muted-bright); font-size: .69rem; font-weight: 900; letter-spacing: .075em; text-transform: uppercase; }
.badge--flash { border-color: rgba(255,79,154,.27); color: #ff9cc7; background: rgba(255,79,154,.08); }
.badge--animation { border-color: rgba(154,117,255,.3); color: #c5b5ff; background: rgba(154,117,255,.09); }
.badge--html5 { border-color: rgba(77,231,255,.28); color: #9af1ff; background: rgba(77,231,255,.08); }
.badge--year { border-color: rgba(255,255,255,.15); background: rgba(5,5,9,.78); color: white; backdrop-filter: blur(9px); }
.compat { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-bright); font-size: .74rem; font-weight: 760; line-height: 1.25; }
.compat > span { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--compat-color, var(--yellow)); box-shadow: 0 0 11px var(--compat-color, var(--yellow)); }
.compat--keyboard { --compat-color: var(--yellow); }
.compat--desktop { --compat-color: var(--pink); }
.compat--mobile-check, .compat--untested { --compat-color: var(--violet); }
.compat--fixed { --compat-color: var(--cyan); }

.filter-panel { display: grid; grid-template-columns: minmax(240px, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 32px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(17,18,30,.74); box-shadow: 0 18px 50px rgba(0,0,0,.18); }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 15px; top: 50%; width: 19px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 15px 10px 45px; background: rgba(5,5,10,.62); color: white; }
.search-field input::placeholder { color: #858398; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter-chip { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: rgba(255,255,255,.035); cursor: pointer; color: var(--muted-bright); font-size: .82rem; font-weight: 800; }
.filter-chip:hover, .filter-chip.is-active { border-color: rgba(77,231,255,.37); background: rgba(77,231,255,.09); color: white; }
.filter-result { margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.no-results { display: none; padding: 44px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }
.no-results.is-visible { display: block; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.breadcrumbs a { color: var(--muted-bright); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.project-hero { padding: 62px 0 44px; }
.project-hero__grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.2fr); gap: 54px; align-items: center; }
.project-art { position: relative; min-width: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(circle at 30% 20%, rgba(154,117,255,.18), transparent 50%), #090910; box-shadow: var(--shadow); }
.project-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 10px rgba(255,255,255,.025); pointer-events: none; }
.project-art img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.project-hero h1 { margin: 15px 0 18px; font-size: clamp(2.8rem, 6vw, 5.5rem); line-height: .93; letter-spacing: -.06em; text-wrap: balance; }
.project-hero__description { margin: 0; max-width: 760px; color: var(--muted-bright); font-size: 1.12rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.meta-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.035); color: var(--muted-bright); font-size: .8rem; font-weight: 780; }
.meta-pill strong { color: white; }

.player-shell { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #050508; box-shadow: var(--shadow); }
.player-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); }
.player-status { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted-bright); font-size: .82rem; font-weight: 780; }
.player-status__dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.player-shell.is-ready .player-status__dot { background: var(--green); box-shadow: 0 0 12px var(--green); }
.player-shell.is-error .player-status__dot { background: var(--red); box-shadow: 0 0 12px var(--red); }
.player-toolbar__actions { display: flex; gap: 7px; }
.icon-button { min-height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; background: rgba(255,255,255,.04); cursor: pointer; font-size: .77rem; font-weight: 850; }
.icon-button:hover { border-color: rgba(77,231,255,.35); background: rgba(77,231,255,.075); }
/* Flash projects: 640x480 maximum on desktop, fluid on smaller screens.
   Ruffle itself is configured to show the whole SWF stage without cropping. */
.player-shell[data-flash-player] { width: min(100%, 640px); margin-inline: auto; }
.flash-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}
.flash-stage ruffle-player,
.flash-stage .ruffle-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  z-index: 3;
}

/* In fullscreen the stage gets the entire viewport. The toolbar floats over it
   instead of taking away height, which is especially useful on landscape phones. */
.player-shell[data-flash-player]:fullscreen,
.player-shell[data-flash-player]:-webkit-full-screen {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}
.player-shell[data-flash-player]:fullscreen .player-toolbar,
.player-shell[data-flash-player]:-webkit-full-screen .player-toolbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  border-bottom-color: rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(5,5,8,.90), rgba(5,5,8,.62), transparent);
  backdrop-filter: blur(8px);
}
.player-shell[data-flash-player]:fullscreen .flash-stage,
.player-shell[data-flash-player]:-webkit-full-screen .flash-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
/* Clickteam HTML5 exports are genuinely fixed at 640x480. The site adapts around them; the games themselves are never stretched or squeezed. */
.html5-stage { position: relative; width: 100%; overflow-x: auto; overflow-y: hidden; padding: 24px; background: radial-gradient(circle at 50% 0%, rgba(154,117,255,.09), transparent 44%), #000; scrollbar-gutter: stable; }
.html5-fixed-frame { width: 640px; height: 480px; margin: 0 auto; overflow: hidden; outline: 1px solid rgba(255,255,255,.14); outline-offset: 0; background: #000; box-shadow: 0 16px 48px rgba(0,0,0,.42); }
.html5-stage iframe { position: static; display: block; width: 640px; height: 480px; max-width: none; max-height: none; border: 0; background: #000; }
.player-shell:fullscreen .html5-stage { height: calc(100vh - 59px); padding-top: max(24px, calc((100vh - 539px) / 2)); }
.player-shell:-webkit-full-screen .html5-stage { height: calc(100vh - 59px); padding-top: max(24px, calc((100vh - 539px) / 2)); }
.player-poster { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at center, rgba(154,117,255,.17), transparent 52%), #050508; transition: opacity .25s; }
.player-poster img { width: 76%; height: 76%; object-fit: contain; opacity: .36; filter: saturate(.65); }
.player-shell.is-ready .player-poster { opacity: 0; pointer-events: none; }
.player-message { position: relative; z-index: 4; width: min(86%, 540px); border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px; background: rgba(12,12,20,.92); text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.42); backdrop-filter: blur(14px); }
.player-message[hidden] { display: none; }
.player-message__icon { width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 15px; background: linear-gradient(135deg, rgba(255,79,154,.2), rgba(77,231,255,.14)); font-size: 1.45rem; }
.player-message h3 { margin: 0; font-size: 1.25rem; }
.player-message p { margin: 10px 0 0; color: var(--muted); font-size: .92rem; }
.player-message code { display: block; max-width: 100%; overflow-wrap: anywhere; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px; background: rgba(0,0,0,.42); color: var(--cyan); font-size: .82rem; }
.player-note { margin: 14px 0 0; color: var(--muted); font-size: .83rem; }


/* Mobile launcher for fixed-size Clickteam HTML5 games. Desktop keeps the embedded 640x480 player; phone-sized/touch-first screens get a clean standalone launch path instead. */
.html5-desktop-player { display: block; }
.html5-mobile-launcher { display: none; }
.mobile-game-launch-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  background:
    radial-gradient(circle at 88% 8%, rgba(77,231,255,.16), transparent 34%),
    radial-gradient(circle at 4% 100%, rgba(255,79,154,.16), transparent 38%),
    linear-gradient(145deg, rgba(24,26,42,.95), rgba(8,8,14,.98));
  box-shadow: var(--shadow);
}
.mobile-game-launch-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0 54%, rgba(255,255,255,.025) 54% 55%, transparent 55% 100%);
}
.mobile-game-launch-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(77,231,255,.28);
  border-radius: 17px;
  background: rgba(77,231,255,.09);
  color: var(--cyan);
  font-size: 1.55rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(77,231,255,.09);
}
.mobile-game-launch-card .eyebrow { margin-bottom: 12px; }
.mobile-game-launch-card h3 { margin: 0; max-width: 640px; font-size: clamp(1.55rem, 7vw, 2.35rem); line-height: 1.03; letter-spacing: -.035em; }
.mobile-game-launch-card > p:not(.eyebrow):not(.mobile-game-launch-card__fineprint) { max-width: 720px; margin: 16px 0 0; color: var(--muted-bright); }
.mobile-game-launch-card__facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.mobile-game-launch-card__facts span { display: inline-flex; gap: 7px; min-height: 36px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; background: rgba(255,255,255,.035); color: var(--muted-bright); font-size: .78rem; }
.mobile-game-launch-card__facts strong { color: white; }
.mobile-game-launch-card__actions { margin-top: 24px; }
.mobile-game-launch-card__actions .button { width: 100%; }
.mobile-game-launch-card__fineprint { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 23px; background: linear-gradient(155deg, rgba(255,255,255,.055), rgba(255,255,255,.015)); }
.info-card__label { display: block; margin-bottom: 12px; color: var(--cyan); font-size: .72rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.info-card h3 { margin: 0 0 9px; font-size: 1.12rem; }
.info-card p { margin: 0; color: var(--muted); font-size: .91rem; }
.info-card code { color: #ffc4de; overflow-wrap: anywhere; }

.feature-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(154,117,255,.13), rgba(255,79,154,.08) 55%, rgba(77,231,255,.08)); box-shadow: var(--shadow); }
.feature-panel__grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 420px; }
.feature-panel__media { min-height: 360px; overflow: hidden; }
.feature-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel__content { padding: clamp(30px, 5vw, 66px); align-self: center; }
.feature-panel__content h2 { margin: 12px 0 16px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: .98; letter-spacing: -.05em; }
.feature-panel__content p { margin: 0; color: var(--muted-bright); }

.document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.document-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.document-card__cover { position: relative; aspect-ratio: 4 / 5; padding: 22px 22px 0; overflow: hidden; background: radial-gradient(circle at 50% 0%, rgba(154,117,255,.2), transparent 55%), #0a0a11; }
.document-card__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; box-shadow: 0 -5px 30px rgba(0,0,0,.4); }
.document-card__body { padding: 21px; }
.document-card h2, .document-card h3 { margin: 10px 0 8px; font-size: 1.2rem; line-height: 1.15; }
.document-card p { min-height: 4.4em; margin: 0; color: var(--muted); font-size: .9rem; }
.document-card__actions { display: flex; gap: 8px; margin-top: 18px; }

.video-card { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.018)); box-shadow: var(--shadow); }
.video-card__poster { min-height: 360px; position: relative; overflow: hidden; }
.video-card__poster img { width: 100%; height: 100%; object-fit: cover; }
.video-card__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(10,10,17,.3)); }
.video-card__content { align-self: center; padding: clamp(30px, 6vw, 72px); }
.video-card__content h2 { margin: 12px 0 16px; font-size: clamp(2.2rem, 4.5vw, 4.5rem); line-height: .95; letter-spacing: -.055em; }
.video-card__content p { color: var(--muted-bright); }
.video-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-frame video { width: 100%; display: block; aspect-ratio: 4 / 3; background: black; }

.exhibit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.exhibit { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(155deg, rgba(255,255,255,.068), rgba(255,255,255,.018)); box-shadow: var(--shadow); }
.exhibit__header { padding: 28px 28px 0; }
.exhibit__header h2 { margin: 12px 0 8px; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; letter-spacing: -.045em; }
.exhibit__header p { margin: 0; color: var(--muted); }
.exhibit__body { padding: 28px; }
.signed-shirt { display: block; width: 100%; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #000; cursor: zoom-in; }
.signed-shirt img { width: 100%; display: block; aspect-ratio: 1280 / 909; object-fit: contain; transition: transform .35s ease; }
.signed-shirt:hover img { transform: scale(1.02); }
.caption { margin: 13px 0 0; color: var(--muted); font-size: .84rem; }

.audio-player { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: radial-gradient(circle at 5% 0%, rgba(255,79,154,.18), transparent 48%), rgba(7,7,12,.75); }
.audio-player__top { display: flex; align-items: center; gap: 18px; }
.audio-toggle { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--pink), #ff9064); color: #09070e; cursor: pointer; box-shadow: 0 12px 34px rgba(255,79,154,.25); }
.audio-toggle svg { width: 25px; height: 25px; }
.audio-toggle [data-icon-pause] { display: none; }
.audio-player.is-playing .audio-toggle [data-icon-play] { display: none; }
.audio-player.is-playing .audio-toggle [data-icon-pause] { display: block; }
.audio-wave { height: 66px; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 3px; overflow: hidden; }
.audio-wave span { width: 4px; min-width: 2px; height: var(--h, 40%); border-radius: 99px; background: linear-gradient(to top, var(--violet), var(--cyan)); opacity: .72; transform-origin: center; }
.audio-player.is-playing .audio-wave span { animation: wave 750ms ease-in-out infinite alternate; animation-delay: var(--d, 0ms); }
@keyframes wave { to { transform: scaleY(.42); opacity: 1; } }
.audio-progress { width: 100%; margin: 20px 0 7px; accent-color: var(--pink); cursor: pointer; }
.audio-player__time { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.audio-native-fallback { width: 100%; margin-top: 16px; }
.audio-player.is-enhanced .audio-native-fallback { display: none; }

.notice { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: rgba(255,255,255,.035); color: var(--muted-bright); }
.notice strong { color: white; }
.notice--accent { border-color: rgba(77,231,255,.25); background: rgba(77,231,255,.055); }

.lightbox { width: min(1000px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 12px; background: #08080d; color: white; box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(8px); }
.lightbox img { display: block; max-width: 100%; max-height: calc(100vh - 100px); margin: auto; object-fit: contain; }
.lightbox__close { position: absolute; right: 20px; top: 20px; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(5,5,9,.85); cursor: pointer; font-size: 1.2rem; }

.prose { max-width: 820px; }
.prose h2 { margin: 2.2em 0 .55em; font-size: 2rem; letter-spacing: -.035em; }
.prose h3 { margin: 1.8em 0 .45em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--muted-bright); }
.prose code { border: 1px solid var(--line); border-radius: 7px; padding: 2px 6px; background: rgba(255,255,255,.05); color: var(--cyan); }
.compatibility-list { display: grid; gap: 12px; margin-top: 24px; }
.compatibility-item { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; border: 1px solid var(--line); border-radius: 15px; padding: 17px; background: rgba(255,255,255,.028); }
.compatibility-item p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); margin-top: 80px; background: rgba(3,3,6,.72); }
.site-footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding-top: 48px; padding-bottom: 38px; }
.brand--footer .brand__text strong { font-size: .84rem; }
.site-footer__note { max-width: 540px; margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.site-footer__links { display: grid; align-content: start; gap: 8px; }
.site-footer__links a { color: var(--muted-bright); text-decoration: none; font-size: .88rem; font-weight: 750; }
.site-footer__links a:hover { color: var(--cyan); }
.site-footer__bottom { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #797789; font-size: .78rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .site-nav__link { padding-inline: 9px; font-size: .84rem; }
  .hero-home__grid { gap: 38px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .document-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .section { padding: 68px 0; }
  .site-header__inner { min-height: 68px; }
  .nav-toggle { display: flex; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: calc(100% + 8px); display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 16px; padding: 9px; background: rgba(12,12,20,.97); box-shadow: var(--shadow); transform: translateY(-8px) scale(.98); transform-origin: top; opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav__link { padding: 12px 13px; }
  .hero-home { min-height: 0; padding-top: 58px; }
  .hero-home__grid, .page-hero__grid, .project-hero__grid, .feature-panel__grid, .video-card, .exhibit-grid { grid-template-columns: 1fr; }
  .hero-feature { max-width: 620px; transform: none; }
  .page-hero__aside { display: none; }
  .project-art { max-width: 620px; width: 100%; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-chips { justify-content: flex-start; }
  .info-grid { grid-template-columns: 1fr; }
  .feature-panel__media { min-height: 320px; order: -1; }
  .video-card__poster { min-height: 300px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .brand__text small { display: none; }
  .display-title { font-size: clamp(2.15rem, 10.5vw, 3rem); letter-spacing: -.06em; }
  .hero-home__actions .button { width: 100%; flex: 1 1 100%; }
  .page-hero { padding-top: 58px; }
  .page-hero h1, .project-hero h1 { font-size: clamp(2.65rem, 14vw, 4.2rem); }
  .category-grid, .project-grid, .document-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 215px; }
  .category-card h3 { margin-top: 45px; }
  .stat { padding: 19px; }
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .project-card p { min-height: 0; }
  .project-card__footer { align-items: flex-start; flex-direction: column; }
  .player-toolbar { align-items: flex-start; flex-direction: column; padding: 12px; }
  .player-toolbar__actions { width: 100%; }
  .player-toolbar__actions .icon-button { flex: 1; }
  .player-message { width: 90%; padding: 20px 15px; }
  .feature-panel__content, .exhibit__header, .exhibit__body { padding-left: 22px; padding-right: 22px; }
  .audio-player { padding: 17px; }
  .audio-toggle { width: 54px; height: 54px; }
  .compatibility-item { grid-template-columns: 1fr; gap: 9px; }
  .site-footer__bottom { padding-block: 18px; align-items: flex-start; flex-direction: column; justify-content: center; }
}


@media (max-width: 520px) {
  .player-shell[data-flash-player] .player-toolbar { padding-left: 12px; gap: 8px; }
  .player-shell[data-flash-player] .player-status { font-size: .74rem; }
  .player-shell[data-flash-player] .player-toolbar__actions { gap: 5px; }
  .player-shell[data-flash-player] .icon-button { min-height: 36px; padding-inline: 9px; font-size: .72rem; }
}

@media (max-width: 700px), (max-width: 900px) and (pointer: coarse) {
  .html5-desktop-player { display: none; }
  .html5-mobile-launcher { display: block; }
  .mobile-game-launch-card { padding: 24px 20px; }
}

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