@charset "UTF-8";
:root { color-scheme: dark; --bg: #090d16; --ink: #f2efe8; --muted: #a5afc0; --blue: #5ea8ff; --line: #263041; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin-top: 0; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.wrap { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; background: white; color: black; z-index: 20; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; }
nav { display: flex; gap: 30px; font-size: 14px; color: #c7cedb; }
nav a:hover { color: var(--blue); }
.hero { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 55px; padding-block: 95px 100px; min-height: 590px; }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--blue); font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .18em; margin-bottom: 24px; }
.hero h1 { font-size: clamp(60px, 6.6vw, 94px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 28px; }
.hero h1 em { font-family: inherit; font-style: normal; font-weight: 700; color: var(--blue); }
.hero-description { max-width: 490px; color: #b6bfd0; font-size: 19px; line-height: 1.6; margin-bottom: 30px; }
.game-button { display: inline-flex; align-items: center; gap: 28px; padding: 14px 20px; border: 1px solid var(--ink); border-radius: 6px; background: var(--ink); color: #0b1019; font-size: 14px; font-weight: 600; }
.game-button:hover { background: #cce2ff; border-color: #cce2ff; }
.studio-signature { display: flex; align-items: center; justify-content: flex-end; gap: 30px; }
.studio-mark { width: min(58%, 230px); flex-shrink: 0; }
.signature-copy { border-left: 1px solid var(--line); padding-left: 26px; font-size: 11px; letter-spacing: .32em; line-height: 2.9; color: #c7cedb; }
.games-section { border-top: 1px solid var(--line); padding-block: 65px 85px; }
.project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 46px; }
.project-heading h2 { margin: 0; color: #c4ccda; font-size: 12px; }
.project-heading>span { color: var(--muted); font-size: 13px; }
.game-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 65px; align-items: center; }
.game-copy h3 { font-size: clamp(52px, 5.4vw, 76px); line-height: 1; letter-spacing: -.05em; margin-bottom: 24px; }
.game-copy h3 span { color: var(--blue); }
.game-tagline { font-size: 24px; line-height: 1.4; margin-bottom: 22px; }
.game-description { color: var(--muted); font-size: 15px; line-height: 1.8; margin-bottom: 30px; }
.mode-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode-list>div { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-top: 17px; border-top: 1px solid var(--line); }
.mode-icon { display: block; width: 28px; height: 28px; overflow: visible; color: var(--blue); }
.mode-list h4 { font-size: 14px; margin-bottom: 8px; }
.mode-list p { font-size: 13px; line-height: 1.65; color: var(--muted); margin: 0; }
.game-platforms { display: flex; gap: 18px; margin-top: 30px; padding-top: 18px; border-top: 3px solid transparent; border-image: linear-gradient(to right, #ff5f6d 0% 25%, #5ea8ff 25% 50%, #45d38e 50% 75%, #ffd45a 75% 100%) 1; }
.game-platforms span { font-size: 9px; letter-spacing: .12em; color: var(--muted); }
.game-screenshots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; padding: 18px 8px 58px; }
.game-screenshots figure { margin: 0; min-width: 0; }
.game-screenshots figure:first-child { transform: rotate(-2deg); }
.game-screenshots figure:last-child { transform: translateY(48px) rotate(2deg); }
.game-screenshots a { display: block; border: 1px solid #354159; border-radius: 14px; overflow: hidden; background: #0b0e17; box-shadow: 0 20px 45px #0005; }
.game-screenshots img { display: block; width: 100%; height: auto; }
.game-screenshots figcaption { font-size: 11px; text-align: center; margin-top: 14px; color: var(--muted); line-height: 1.5; }
.studio-section { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; border-top: 1px solid var(--line); padding-block: 75px 85px; }
.studio-section h2 { font-size: clamp(36px, 4vw, 54px); line-height: 1.18; letter-spacing: -.035em; margin-bottom: 0; }
.studio-section h2 em { font-family: inherit; font-style: normal; color: var(--blue); font-weight: 700; }
.studio-description { padding-top: 39px; }
.studio-description p { color: #c1cad9; font-size: 19px; line-height: 1.7; margin-bottom: 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 25px 32px; color: var(--muted); }
.site-footer>span { font-size: 9px; letter-spacing: .12em; }
.site-footer small { font-size: 11px; }
/* Crop the original artwork; preserve its die and custom wordmark. */
.logo-filters { position: absolute; pointer-events: none; }
.logo-crop { display: block; position: relative; overflow: hidden; }
.logo-crop img { position: absolute; max-width: none; height: auto; filter: url(#logo-alpha); }
.logo-header { width: 245px; aspect-ratio: 688 / 134; }
.logo-header-mask { position: absolute; inset: 0; clip-path: polygon(0 0,100% 0,100% 65%,20% 65%,20% 100%,0 100%); }
.logo-header img { width: 210.465%; left: -89.244%; top: -556.716%; }
.logo-icon { width: 100%; aspect-ratio: 330 / 365; }
.logo-icon img { width: 438.788%; left: -168.788%; top: -23.836%; }
.site-footer .logo-header { width: 190px; }
@media (max-width: 1000px) {
  .hero { gap: 28px; }
  .studio-signature { gap: 20px; }
  .studio-mark { width: 150px; }
  .signature-copy { padding-left: 18px; font-size: 9px; }
  .game-feature { gap: 35px; }
  .game-screenshots { gap: 16px; }
  .mode-list { grid-template-columns: 1fr; gap: 18px; }
  .studio-section { gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 72px; }
  .logo-header { width: 195px; }
  nav { gap: 18px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding-block: 55px 60px; gap: 40px; min-height: 0; }
  .hero h1 { font-size: clamp(52px, 10vw, 74px); }
  .hero-description { font-size: 17px; }
  .studio-signature { justify-content: flex-start; }
  .studio-mark { width: 120px; }
  .signature-copy { font-size: 10px; padding-left: 26px; }
  .games-section { padding-block: 40px 55px; }
  .project-heading { margin-bottom: 35px; }
  .game-feature { grid-template-columns: 1fr; gap: 35px; }
  .game-copy h3 { font-size: 58px; }
  .game-tagline { font-size: 22px; }
  .mode-list { grid-template-columns: 1fr 1fr; }
  .game-screenshots { width: min(100%, 520px); justify-self: center; gap: 22px; }
  .studio-section { grid-template-columns: 1fr; gap: 25px; padding-block: 50px; }
  .studio-section h2 { font-size: 42px; }
  .studio-description { padding-top: 0; }
  .studio-description p { font-size: 17px; }
  .site-footer { flex-wrap: wrap; }
  .site-footer>span { display: none; }
}
@media (max-width: 420px) {
  .logo-header { width: 165px; }
  nav { gap: 14px; font-size: 12px; }
  .mode-list { grid-template-columns: 1fr; }
  .game-screenshots { gap: 14px; padding-inline: 5px; }
  .game-screenshots figure:last-child { transform: translateY(30px) rotate(2deg); }
  .studio-section h2 { font-size: 36px; }
  .site-footer .logo-header { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared game-detail page: static layout, responsive native images, no animation loop. */
.details-link { margin-top: 26px; }
.development-note,.capture-note { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; }
.game-copy h3 a:hover { color: #cce2ff; }
nav [aria-current="page"] { color: var(--blue); }
.game-detail-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 55px; padding-block: 40px 90px; }
.detail-intro { min-width: 0; }
.back-link { display: inline-block; color: var(--muted); font-size: 12px; padding-block: 8px; margin-bottom: 38px; }
.back-link:hover,.text-link:hover { color: var(--blue); }
.detail-intro .eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; letter-spacing: .13em; margin-bottom: 22px; }
.status-pill { font-size: 9px; letter-spacing: .08em; color: #d0d9e8; border: 1px solid #354159; border-radius: 99px; padding: 5px 8px; }
.detail-intro h1 { font-size: clamp(56px,6vw,86px); line-height: 1; letter-spacing: -.055em; margin-bottom: 24px; }
.detail-intro h1>span { color: var(--blue); }
.detail-tagline { font-size: clamp(28px,3vw,41px); line-height: 1.2; letter-spacing: -.025em; margin-bottom: 22px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.text-link { font-size: 13px; color: #b7d7ff; line-height: 1.6; }
.color-rule-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.color-rule-strip>div { display: flex; align-items: center; gap: 9px; }
.color-rule-strip .block-icon { display: block; width: 34px; height: 34px; flex-shrink: 0; background-image: url('/assets/colorshift/blocks.webp'); background-size: 400% 100%; background-repeat: no-repeat; }
.color-rule-strip .red .block-icon { background-position: 0 0; }
.color-rule-strip .blue .block-icon { background-position: 33.333333% 0; }
.color-rule-strip .green .block-icon { background-position: 66.666667% 0; }
.color-rule-strip .yellow .block-icon { background-position: 100% 0; }
.color-rule-strip span { font-size: 12px; font-weight: 600; }
.color-rule-strip small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.red { color: #ff667b; }.blue { color: #6aabff; }.green { color: #45d38e; }.yellow { color: #ffd45a; }
.detail-phones { padding-top: 60px; }
.section-intro { margin-bottom: 34px; }
.section-intro .eyebrow { margin-bottom: 15px; }
.section-intro h2,.development-section h2 { font-size: clamp(30px,3.3vw,44px); letter-spacing: -.035em; line-height: 1.2; margin-bottom: 16px; }
.section-intro>p:last-child { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.play-section,.modes-section,.gallery-section { border-top: 1px solid var(--line); padding-block: 65px 75px; }
.play-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 50px; }
.step-number { display: block; font-size: 12px; color: var(--blue); margin-bottom: 17px; }
.play-steps h3 { font-size: 20px; margin-bottom: 12px; }
.play-steps p,.mode-card p { font-size: 15px; line-height: 1.8; color: var(--muted); margin-bottom: 0; }
.detail-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mode-card { padding: 30px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 10px; background: #101725; }
.mode-category { display: block; font-size: 10px; letter-spacing: .12em; color: var(--accent); margin-bottom: 22px; }
.mode-card h3 { font-size: 30px; letter-spacing: -.035em; margin-bottom: 14px; }
.mode-card a { display: inline-flex; gap: 12px; font-size: 13px; font-weight: 600; margin-top: 24px; padding-block: 4px; color: var(--accent); }
.mode-card a:hover { text-decoration: underline; }
.puzzle-mode { --accent: #79a5ff; }.endless-mode { --accent: #55dca2; }.duel-mode { --accent: #c293ff; }.rush-mode { --accent: #ffd45a; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.gallery-heading>p { font-size: 12px!important; }
.screenshot-gallery { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; padding-block: 8px 18px; }
.screenshot-gallery figure { margin: 0; min-width: 0; scroll-snap-align: start; scroll-margin-top: 24px; }
.screenshot-gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid #354159; background: #0b0e17; }
.screenshot-gallery img { width: 100%; height: auto; }
.screenshot-gallery figcaption { font-size: 13px; margin-top: 14px; color: #c6d0e0; }
.screenshot-gallery:focus-visible { outline: 2px solid var(--blue); outline-offset: 8px; }
.development-section { display: flex; align-items: center; justify-content: space-between; gap: 40px; border-top: 1px solid var(--line); padding-block: 60px 80px; }
.development-section .eyebrow { margin-bottom: 16px; }
.development-section p:last-child { color: var(--muted); font-size: 16px; max-width: 620px; line-height: 1.8; margin: 0; }
.development-section>a { flex-shrink: 0; }
@media(max-width:1000px) {
  .game-detail-hero { gap: 28px; }
  .color-rule-strip { gap: 8px; }
  .color-rule-strip>div { flex-direction: column; align-items: start; }
  .play-steps { gap: 24px; }
  .screenshot-gallery { gap: 14px; }
}
@media(max-width:760px) {
  .game-detail-hero { grid-template-columns: 1fr; padding-block: 22px 52px; gap: 30px; }
  .back-link { margin-bottom: 25px; }
  .detail-intro h1 { font-size: clamp(58px,12vw,82px); }
  .detail-tagline { font-size: 34px; }
  .color-rule-strip>div { flex-direction: row; align-items: center; gap: 7px; }
  .color-rule-strip .block-icon { width: 30px; height: 30px; }
  .color-rule-strip span { font-size: 11px; }
  .detail-phones { padding-top: 12px; }
  .play-section,.modes-section,.gallery-section { padding-block: 45px 50px; }
  .play-steps { grid-template-columns: 1fr; gap: 28px; }
  .play-steps>div { padding-left: 40px; position: relative; }
  .step-number { position: absolute; left: 0; top: 4px; }
  .detail-modes { grid-template-columns: 1fr; gap: 16px; }
  .mode-card { padding: 25px; }
  .gallery-heading { display: block; }
  .screenshot-gallery { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 18px; padding-bottom: 22px; }
  .screenshot-gallery figure { flex: 0 0 min(70vw,280px); }
  .development-section { flex-direction: column; align-items: start; gap: 24px; padding-block: 45px 55px; }
}
@media(max-width:360px) { .color-rule-strip>div { flex-direction: column; align-items: start; }.detail-actions { gap: 18px; }.colorshift-page nav { gap: 10px; } }

/* Portrait previews keep a fixed frame and their original still image as fallback. */
.gallery-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; color: var(--muted); font-size: 12px; }
.gallery-controls button,.clip-toggle { color: var(--ink); background: #111d2bea; border: 1px solid #627690; border-radius: 6px; padding: 10px 14px; font: inherit; cursor: pointer; }
.gallery-controls button:hover,.clip-toggle:hover { background: #23446a; }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.clip-frame { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid #354159; border-radius: 12px; background: #09121b; }
.clip-frame>img,.clip-frame>video { display: block; width: 100%; height: 100%; object-fit: contain; }
.clip-frame>video { position: absolute; inset: 0; }
.clip-frame>[hidden],.gallery-controls>[hidden] { display: none; }
.clip-toggle { position: absolute; bottom: 10px; right: 10px; z-index: 1; font-size: 11px; min-height: 36px; }
.screenshot-gallery .preview-card figcaption { display: flex; flex-direction: column; gap: 9px; }
.screenshot-gallery .preview-card figcaption a { display: inline; align-self: start; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
@media (pointer: coarse) { .clip-toggle { min-width: 56px; min-height: 44px; } }
