:root {
  color-scheme: light;
  --bg: #fff8ed;
  --text: #192c46;
  --muted: #596273;
  --accent: #6841c9;
  --coral: #f48670;
  --line: #ded8cf;
  --panel: #fff;
  --radius: 30px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Trebuchet MS', Arial, sans-serif; font-size: 16px; line-height: 1.65; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #dfd0ff; color: var(--text); }
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 84px; }
.eyebrow { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; line-height: 1.5; }
.accent, .brand-dot { color: var(--accent); }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 20; padding: 12px 20px; background: var(--accent); color: #fff; border-radius: 12px; }
.skip-link:focus { top: 10px; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff8edf5; border-bottom: 1px solid #ded8cf80; backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.05em; flex-shrink: 0; }
.brand-symbol { padding: 4px; }
.brand img { width: 53px; height: 35px; object-fit: contain; }
.main-nav { display: flex; gap: 28px; align-items: center; font-size: 13px; font-weight: 700; }
.main-nav a { padding-block: 12px; transition: color .2s; }
.main-nav a:hover, .text-link:hover { color: var(--accent); }
.main-nav a:last-child { padding: 11px 20px; background: var(--text); color: #fff; border-radius: 30px; }
.main-nav a:last-child:hover { background: var(--accent); }
.main-nav a:last-child span { margin-left: 12px; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 30px; padding: 8px 14px; }
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 62px; align-items: center; padding-block: 76px 68px; }
.hero-grid > * { min-width: 0; }
.hero-label { width: fit-content; color: #40652c; background: #e3f1d7; padding: 8px 14px; border-radius: 30px; margin-bottom: 25px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #53872e; border-radius: 50%; margin-right: 7px; }
.hero h1 { font-size: clamp(44px, 5vw, 66px); letter-spacing: -.06em; }
.hero h1 > span { color: var(--accent); position: relative; display: inline-block; isolation: isolate; }
.hero h1 > span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 7px; background: #f6b8a7; border-radius: 50%; transform: rotate(-3deg); z-index: -1; }
.hero-description { color: var(--muted); max-width: 460px; font-size: 16px; line-height: 1.75; margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 16px 23px; border-radius: 30px; font-weight: 700; font-size: 14px; line-height: 1.4; transition: background .2s, transform .2s, box-shadow .2s; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 0 #42228b; }
.button-primary:hover { background: #5934b5; transform: translateY(-2px); box-shadow: 0 6px 0 #42228b; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; transition: color .2s; }
.hero-note { display: flex; gap: 10px; margin-top: 30px; color: var(--muted); font-size: 11px; }
.hero-note span { color: var(--accent); font-size: 17px; }
.hero-collage { position: relative; padding: 36px 10px 10px; isolation: isolate; }
.hero-collage::before { content: ''; position: absolute; inset: 8% -3% 4%; background: #e9defa; border-radius: 48% 52% 42% 58%; transform: rotate(-10deg); z-index: -2; }
.hero-game { display: block; padding: 10px; border: 2px solid var(--text); background: #fff; border-radius: 20px; box-shadow: 7px 9px 0 #192c4617; transition: transform .25s; position: relative; }
.hero-game img { width: 100%; border-radius: 11px; }
.hero-game-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; padding: 10px 6px 2px; line-height: 1.3; }
.hero-game-caption > span:last-child { font-size: 23px; color: var(--accent); }
.hero-hands { width: 94%; transform: rotate(-5deg); background: #dff3ff; }
.hero-album { width: 67%; margin-left: auto; margin-top: -5px; transform: rotate(7deg); z-index: 1; }
.hero-boss { width: 62%; margin-top: -70px; transform: rotate(-7deg); background: #ffdfba; z-index: 2; }
.hero-game:hover { transform: rotate(0) translateY(-4px); z-index: 3; }
.collage-spark { position: absolute; z-index: 2; line-height: 1; }
.spark-one { top: -8px; right: 2%; color: #ee8b72; font-size: 65px; transform: rotate(15deg); }
.spark-two { left: -18px; top: 51%; color: #578b36; font-size: 36px; }
.hero-bottom { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 14px 24px; padding-block: 24px; border-top: 1px solid var(--line); color: #606777; font-size: 12px; font-weight: 700; }
.hero-bottom i { color: var(--accent); font-style: normal; margin-right: 10px; }
.games { background: #fffdfa; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 38px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 14px; }
.section-heading h2 { font-size: clamp(34px, 4vw, 49px); }
.section-heading > p { color: var(--muted); font-size: 14px; }
.game { border: 1px solid #d9caef; background: #eee5fc; border-radius: var(--radius); padding: 38px; }
.game + .game { margin-top: 38px; }
.game-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-bottom: 30px; }
.game-index { color: #6943a1; margin-bottom: 13px; }
.game h3 { font-size: clamp(29px, 3.5vw, 41px); margin-bottom: 17px; }
.game-heading p:not(.eyebrow) { max-width: 650px; color: #55526b; font-size: 15px; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tags li { border: 1px solid #c8b6e6; color: #604280; background: #ffffff70; border-radius: 30px; font-size: 11px; padding: 5px 12px; }
.store-button { gap: 14px; flex-shrink: 0; min-width: 206px; text-align: left; }
.store-button small { display: block; font-size: 10px; font-weight: 400; margin-bottom: 3px; }
.store-button > span:nth-child(2) { font-size: 18px; }
.game-actions { display: grid; justify-items: center; gap: 20px; }
.gallery { display: grid; gap: 18px; }
.gallery-portrait { grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr)); }
.gallery-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-item { min-width: 0; overflow: hidden; border-radius: 17px; padding: 6px; background: #fff; border: 1px solid #dcd3e5; box-shadow: 0 5px 0 #30234d0c; transition: transform .2s, box-shadow .2s; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 9px 0 #30234d0c; }
.gallery-item img { width: 100%; border-radius: 11px; }
.gallery-item > span { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 11px; line-height: 1.4; color: #545665; padding: 11px 7px 7px; }
.gallery-item > span > span { color: var(--accent); font-size: 17px; }
.gallery-hint { margin-top: 16px; color: #655e75; font-size: 11px; }
.game-boss { background: #ffead6; border-color: #f0d4b9; }
.game-boss .game-index { color: #935a2a; }
.game-boss .game-heading p:not(.eyebrow), .game-boss .gallery-hint { color: #6b584e; }
.game-boss .tags li { border-color: #e4c4a7; color: #795336; }
.game-boss .button-primary { background: var(--text); box-shadow: 0 4px 0 #09192d; }
.game-boss .button-primary:hover { background: #2c4666; box-shadow: 0 6px 0 #09192d; }
.game-hands { background: #e0f2ff; border-color: #b9d9ed; }
.game-hands .gallery-portrait { --gallery-columns: 5; }
.game-hands .game-index { color: #22648b; }
.game-hands .game-heading p:not(.eyebrow), .game-hands .gallery-hint { color: #405d73; }
.game-hands .tags li { border-color: #adcfe4; color: #2b5b7b; }
.about { padding-bottom: 0; }
.about-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; padding: 58px; background: #e3f1d7; border: 1px solid #c9ddba; border-radius: var(--radius); }
.about-intro .eyebrow { color: #4b6f32; margin-bottom: 18px; }
.about-intro h2 { font-size: clamp(33px, 3.5vw, 46px); }
.about-intro h2 > span { color: #41702a; }
.studio-sticker { display: inline-flex; flex-direction: column; align-items: center; background: var(--bg); border: 2px solid var(--text); border-radius: 18px; box-shadow: 4px 4px 0 #192c46; padding: 12px 28px; transform: rotate(-5deg); margin-top: 34px; }
.studio-sticker > span:first-child { font-weight: 800; font-size: 30px; letter-spacing: -.05em; line-height: 1.2; }
.studio-sticker > span:last-child { font-size: 10px; color: #57624e; }
.about-copy { align-self: center; }
.about-copy p { color: #475642; font-size: 15px; }
.about-copy p + p { margin-top: 16px; }
.studio-values { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; font-size: 13px; font-weight: 700; }
.studio-values span { display: inline-flex; width: 28px; color: #41702a; font-size: 19px; }
.projects .section-heading h2 { font-size: clamp(32px, 3.5vw, 44px); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project-card { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; background: #fffdfa; }
.project-image { display: block; background: #edf0ec; overflow: hidden; }
.project-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; transition: transform .3s; }
.project-image:hover img { transform: scale(1.03); }
.project-copy { padding: 25px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.project-copy .eyebrow { color: #6a6680; font-size: 10px; margin-bottom: 10px; }
.project-copy h3 { font-size: 24px; margin-bottom: 14px; }
.project-copy p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.project-copy .text-link { margin-top: auto; color: var(--accent); }
.contact { padding-top: 0; }
.contact-panel { display: grid; grid-template-columns: 1fr; align-items: center; padding: 32px; border-radius: var(--radius); background: var(--coral); border: 1px solid #e87560; }
.contact-link { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 700; font-size: clamp(17px, 2vw, 25px); letter-spacing: -.03em; }
.round-arrow { width: 58px; height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff8ed; color: var(--text); font-size: 28px; border: 1px solid var(--text); box-shadow: 3px 3px 0 var(--text); transition: transform .2s; }
.contact-link:hover .round-arrow { transform: rotate(-10deg); }
.contact-link small { color: #613c3c; font-weight: 400; font-size: 12px; letter-spacing: 0; }
.site-footer { padding-top: 5px; }
.footer-main { display: flex; align-items: center; gap: 40px; padding-bottom: 36px; }
.footer-main p { color: var(--muted); font-size: 12px; }
.footer-main > .text-link { margin-left: auto; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 24px; border-top: 1px solid var(--line); color: #676b78; font-size: 11px; }
.image-dialog { width: max-content; max-width: min(1100px, 94vw); max-height: 94dvh; padding: 46px 18px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); color: var(--text); }
.image-dialog::backdrop { background: #192c46dc; backdrop-filter: blur(5px); }
.dialog-image { max-height: 74dvh; max-width: 100%; width: auto; margin: auto; object-fit: contain; }
.dialog-close { position: absolute; right: 8px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--text); font-size: 30px; }
.image-dialog p { padding-top: 12px; text-align: center; color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) {
  .hero-grid { gap: 32px; padding-block: 60px; }
  .hero h1 { font-size: 52px; }
  .hero-game-caption { font-size: 14px; }
  .game { padding: 28px; }
  .game-heading { gap: 24px; }
  .about-panel { padding: 40px; gap: 40px; }
  .contact-panel { gap: 30px; padding: 38px; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .section { padding-block: 60px; }
  .header-inner { min-height: 76px; flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .brand { font-size: 26px; }
  .brand img { width: 45px; height: 30px; }
  .main-nav { width: 100%; gap: 20px; flex-wrap: wrap; padding-block: 10px; }
  .js .menu-toggle { display: inline-flex; align-items: center; gap: 12px; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 44px; }
  .hero h1 { font-size: clamp(43px, 8vw, 64px); max-width: 640px; }
  .hero-description { max-width: 540px; }
  .hero-collage { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-game-caption { font-size: 16px; }
  .spark-one { right: 0; top: 0; }
  .spark-two { left: -6px; }
  .hero-bottom { font-size: 11px; justify-content: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 30px; }
  .section-heading > p br { display: none; }
  .game-heading { grid-template-columns: 1fr; }
  .game-heading .store-button { justify-self: start; }
  .game-actions { justify-items: start; }
  .gallery-portrait { grid-template-columns: repeat(var(--gallery-columns, 4), minmax(180px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 0 12px; }
  .gallery-item { scroll-snap-align: start; }
  .gallery-landscape { grid-template-columns: 1fr; }
  .about { padding-bottom: 0; }
  .about-panel { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .studio-sticker { margin-top: 25px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-image img { max-height: 250px; }
  .contact { padding-top: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 32px; }
  .contact-link { justify-self: center; font-size: 24px; }
  .footer-main { flex-wrap: wrap; gap: 22px; }
  .footer-main > .text-link { margin-left: 0; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 41px; }
  .hero-game-caption { font-size: 12px; padding: 8px 2px 0; gap: 5px; }
  .hero-game-caption > span:last-child { font-size: 18px; }
  .hero-game { padding: 7px; border-radius: 15px; }
  .game { padding: 20px; }
  .game h3 { font-size: 29px; }
  .about-panel, .contact-panel { padding: 24px; }
  .contact-link { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
