:root {
  --ink: #020918;
  --ink-2: #08162f;
  --paper: #f7f8fb;
  --accent: #ff4057;
  --accent-soft: #ff7180;
  --blue: #0b2f68;
  --coral: #ff4057;
  --muted: #aeb8ce;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 13% 0%, rgba(18,59,123,.48), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(255,64,87,.18), transparent 30rem),
    var(--ink);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; transform: translateY(-150%); background: var(--accent); color: white; padding: .7rem 1rem; border-radius: .7rem; font-weight: 900; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7,11,36,.82); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-shell { max-width: 1180px; min-height: 78px; margin: auto; padding: .7rem 1.4rem; display: flex; align-items: center; gap: 2rem; }
.brand { position: relative; width: 205px; height: 54px; overflow: hidden; flex: 0 0 auto; text-decoration: none; margin-right: auto; }
.brand img { position: absolute; width: 220px; height: auto; left: -14px; top: -28px; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: white; border-radius: .8rem; width: 44px; height: 44px; font-size: 1.3rem; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav > a, .drop-button { display: block; padding: .7rem .9rem; border-radius: .7rem; text-decoration: none; color: #eef0ff; font-weight: 750; border: 0; background: transparent; font: inherit; cursor: pointer; }
.site-nav > a:hover, .site-nav > a:focus-visible, .drop-button:hover, .drop-button:focus-visible { background: rgba(255,255,255,.09); outline: none; }
.dropdown { position: relative; }
.dropdown::after { content: ""; position: absolute; z-index: 1; top: 100%; left: 0; width: 210px; height: .65rem; }
.drop-button:hover, .drop-button:focus-visible, .dropdown:hover .drop-button, .dropdown:focus-within .drop-button, .dropdown.open .drop-button { background: #fff; color: var(--ink); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.drop-menu { display: none; position: absolute; z-index: 2; top: calc(100% + .6rem); left: 0; width: 210px; padding: .55rem; border-radius: 1rem; background: #fff; color: var(--ink); box-shadow: var(--shadow); border: 1px solid #dfe3f2; }
.dropdown:hover .drop-menu, .dropdown:focus-within .drop-menu, .dropdown.open .drop-menu { display: grid; }
.drop-menu a { text-decoration: none; padding: .75rem .8rem; border-radius: .65rem; font-weight: 800; }
.drop-menu a:hover, .drop-menu a:focus-visible { background: #fff0f2; color: #c72039; outline: none; }

.breadcrumb { max-width: 1180px; margin: 0 auto; padding: 1.35rem 1.4rem 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; font-weight: 750; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .45rem; }
.breadcrumb li + li::before { content: ">"; color: var(--accent-soft); text-decoration: none; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--paper); text-decoration: underline; text-underline-offset: .22em; outline: none; }
.breadcrumb [aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .28em; }

.hero { max-width: 1180px; margin: 0 auto; padding: 5.2rem 1.4rem 3.4rem; }
.eyebrow { margin: 0 0 1rem; color: var(--accent-soft); text-transform: uppercase; letter-spacing: .18em; font-weight: 900; font-size: .82rem; }
.hero h1, .page-hero h1 { margin: 0; font: 950 clamp(3.7rem, 9vw, 7.4rem)/.84 "Arial Black", Impact, sans-serif; letter-spacing: -.07em; text-transform: uppercase; }
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--accent); }

.showcase { max-width: 1180px; margin: 0 auto; padding: 2.2rem 1.4rem 6.4rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font: 900 clamp(2rem, 5vw, 3.7rem)/1 "Arial Black", Impact, sans-serif; letter-spacing: -.05em; text-transform: uppercase; }
.section-heading p { margin: 0; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.game-card { position: relative; min-height: 520px; overflow: hidden; border-radius: 1.4rem; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.14); isolation: isolate; transition: transform .25s ease, border-color .25s ease; }
.game-card:hover { transform: translateY(-7px); border-color: rgba(255,255,255,.45); }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(4,7,26,.98) 5%, rgba(4,7,26,.2) 64%, rgba(4,7,26,.02)); }
.game-image-link { position: absolute; inset: 0; z-index: 0; }
.game-image-link img { width: 100%; height: 100%; object-fit: cover; }
.game-card:nth-child(1) .game-image-link img { object-position: 53% center; }
.game-card:nth-child(2) .game-image-link img { object-position: 47% center; }
.game-card:nth-child(3) .game-image-link img { object-position: 55% center; }
.game-image-link:focus-visible { outline: 4px solid #fff; outline-offset: -6px; }
.card-content { position: absolute; inset: auto 0 0; z-index: 2; padding: 1.5rem; pointer-events: none; }
.card-content a { pointer-events: auto; }
.game-card h2, .game-card h3 { margin: 0 0 1rem; max-width: 90%; font: 950 clamp(2.25rem, 4vw, 3.35rem)/.88 "Arial Black", Impact, sans-serif; letter-spacing: -.06em; text-transform: uppercase; text-shadow: 0 4px 20px rgba(0,0,0,.55); }
.game-card:nth-child(1) :is(h2, h3) { color: #fff4a8; }
.game-card:nth-child(2) :is(h2, h3) { color: #e7c6ff; }
.game-card:nth-child(3) :is(h2, h3) { color: #d8ff77; }
.play-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.1rem; background: var(--accent); color: white; border: 2px solid #33050c; border-radius: .75rem; box-shadow: 4px 4px 0 #fff; text-decoration: none; font-weight: 950; text-transform: uppercase; letter-spacing: .03em; transition: transform .15s ease, box-shadow .15s ease; }
.play-button:hover, .play-button:focus-visible { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #fff; outline: none; }

.info-band { background: var(--paper); color: var(--ink); }
.info-grid { max-width: 1180px; margin: auto; padding: 5rem 1.4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-grid article { border-top: 6px solid var(--blue); padding-top: 1.25rem; }
.info-grid article:nth-child(2) { border-color: var(--coral); }
.info-grid article:nth-child(3) { border-color: #173f7a; }
.info-grid h2 { margin: 0 0 .7rem; font-size: 1.55rem; }
.info-grid p { margin: 0; color: #4b5273; }

.page-hero { max-width: 1180px; margin: auto; padding: 4rem 1.4rem 5rem; }
.page-hero figure { width: min(100%, 760px); aspect-ratio: 2 / 3; margin: 2.3rem auto 0; position: relative; overflow: hidden; border-radius: 1.6rem; box-shadow: var(--shadow); }
.page-hero figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(80deg, rgba(7,11,36,.94), rgba(7,11,36,.16) 70%); }
.page-hero figcaption { position: absolute; z-index: 2; left: clamp(1.3rem, 5vw, 4rem); bottom: clamp(1.3rem, 5vw, 4rem); max-width: 520px; }
.page-hero figcaption p { font-size: 1.15rem; color: #e5e8fa; margin: 0 0 1.2rem; }
.play-panel { margin-top: 1.5rem; padding: 2rem; border-radius: 1.25rem; background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); text-align: center; }
.play-panel h2 { margin-top: 0; }
.play-panel p { color: var(--muted); }

.content-page { min-height: calc(100vh - 319px); }
.content-page > p:not(.eyebrow) { max-width: 720px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08rem; }
.content-card { max-width: 760px; margin-top: 2rem; padding: clamp(1.4rem, 4vw, 2.3rem); border-radius: 1.25rem; background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
.content-card h2 { margin: 0 0 .7rem; font-size: 1.55rem; }
.content-card p { margin: 0; color: var(--muted); }
.content-card p + p { margin-top: 1rem; }
.contact-link { color: var(--paper); font-weight: 850; text-underline-offset: .2em; }
.contact-link:hover, .contact-link:focus-visible { color: var(--accent-soft); outline: none; }

.support-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; max-width: 820px; margin-top: 2rem; padding: clamp(1.4rem, 4vw, 2.3rem); border-radius: 1.25rem; background: var(--ink-2); border: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
.form-field { display: grid; gap: .45rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 800; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: .7rem; background: #fff; color: var(--ink); padding: .8rem .9rem; font: inherit; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); outline: 3px solid rgba(255,64,87,.25); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-actions button { border: 2px solid #33050c; cursor: pointer; }
.form-note, .form-status { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .9rem; }
.form-status:empty { display: none; }

.catalog-hero { max-width: 1180px; margin: auto; padding: 4.6rem 1.4rem 1rem; }
.catalog-hero h1 { max-width: none; margin: 0; white-space: nowrap; font: 950 clamp(2rem, 8vw, 7rem)/.86 "Arial Black", Impact, sans-serif; letter-spacing: -.07em; text-transform: uppercase; }
.catalog-hero p:last-child { max-width: 680px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.1rem; }
.apps-page .showcase { padding-top: 2.5rem; }

.detail-page { max-width: 1180px; margin: auto; padding: 4.6rem 1.4rem 6rem; }
.detail-page h1 { margin: 0; font: 950 clamp(3.5rem, 8vw, 7rem)/.86 "Arial Black", Impact, sans-serif; letter-spacing: -.07em; text-transform: uppercase; }
.app-story { max-width: 860px; margin: 1.6rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.16rem); line-height: 1.75; }
.detail-media { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 2.2rem 0 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 1.6rem; box-shadow: var(--shadow); isolation: isolate; }
.detail-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4,7,26,.96), rgba(4,7,26,.14) 72%); }
.detail-image-link { position: absolute; inset: 0; z-index: 0; }
.detail-image-link img { width: 100%; height: 100%; object-fit: cover; }
.detail-image-link:focus-visible { outline: 4px solid #fff; outline-offset: -7px; }
.detail-media-copy { position: absolute; left: clamp(1.3rem, 5vw, 4rem); right: clamp(1.3rem, 5vw, 4rem); bottom: clamp(1.3rem, 5vw, 4rem); z-index: 2; max-width: 560px; pointer-events: none; }
.detail-media-copy a { pointer-events: auto; }
.detail-media-copy p { margin: 0 0 1.25rem; color: #eef0ff; font-size: 1.12rem; text-shadow: 0 2px 14px rgba(0,0,0,.7); }
.detail-page.hatch .detail-media img { object-position: 50% 38%; }
.detail-page.herder .detail-media img { object-position: 50% 45%; }
.detail-page.cart .detail-media img { object-position: 50% 42%; }
.game-gallery { margin-top: clamp(4rem, 8vw, 7rem); }
.game-gallery h2 { margin: .35rem 0 1.5rem; font: 950 clamp(2.3rem, 5vw, 4.6rem)/.9 "Arial Black", Impact, sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.game-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.9rem, 2vw, 1.5rem); }
.game-gallery figure { margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 1.2rem; background: #11162f; box-shadow: 0 18px 45px rgba(0,0,0,.26); }
.game-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.game-player { position: fixed; inset: 0; z-index: 1000; visibility: hidden; opacity: 0; pointer-events: none; background: #000; transition: opacity .18s ease; }
.game-player.open, .game-player:target { visibility: visible; opacity: 1; pointer-events: auto; }
.game-player iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.game-exit { position: fixed; z-index: 1001; top: max(.65rem, env(safe-area-inset-top)); right: max(.65rem, env(safe-area-inset-right)); min-height: 44px; padding: .55rem .8rem; border: 2px solid rgba(255,255,255,.8); border-radius: .65rem; background: rgba(4,6,23,.82); color: #fff; font: 800 .85rem/1 system-ui, sans-serif; cursor: pointer; backdrop-filter: blur(8px); }
.game-exit:hover, .game-exit:focus-visible { background: #fff; color: var(--ink); outline: none; }
/* Reserve a control-free strip above the game HUD on iPad-sized touch screens. */
@media (any-pointer: coarse) and (orientation: landscape) and (min-width: 601px) and (max-width: 1200px) {
  .game-player { padding-top: 58px; }
  .game-player iframe { height: calc(100% - 58px); }
  .game-exit { top: max(.6rem, env(safe-area-inset-top)); }
}
body.game-playing { overflow: hidden; }

.site-footer { background: #040617; border-top: 1px solid rgba(255,255,255,.1); }
.footer-shell { max-width: 1180px; min-height: 120px; margin: auto; padding: 2rem 1.4rem; display: flex; align-items: center; gap: 1.5rem; }
.footer-shell p { margin: 0 auto 0 0; color: var(--muted); }
.footer-shell a { text-decoration: none; font-weight: 750; }
.footer-shell a:hover, .footer-shell a:focus-visible { color: var(--accent-soft); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; top: calc(100% + .5rem); left: 1rem; right: 1rem; padding: .75rem; border-radius: 1rem; background: #fff; color: var(--ink); box-shadow: var(--shadow); align-items: stretch; }
  .site-nav.open { display: grid; }
  .site-nav > a, .drop-button { color: var(--ink); text-align: left; width: 100%; }
  .site-nav > a:hover, .drop-button:hover { background: #edf2ff; }
  .dropdown::after { display: none; }
  .drop-menu { position: static; box-shadow: none; margin: .2rem 0 .4rem 1rem; border-color: #e4e7f2; width: auto; }
  .hero { padding-top: 3.8rem; }
  .game-grid { grid-template-columns: 1fr; }
  .game-card { min-height: 470px; }
  .info-grid { grid-template-columns: 1fr; }
  .detail-media { aspect-ratio: 4 / 3; }
}

@media (max-width: 560px) {
  .brand { width: 158px; height: 46px; }
  .brand img { width: 172px; left: -11px; top: -20px; }
  .hero h1 { font-size: clamp(2.25rem, 10.5vw, 4.5rem); }
  .hero h1 span { font-size: .84em; }
  .page-hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .section-heading { display: block; }
  .section-heading p { margin-top: .6rem; }
  .page-hero figure { min-height: 0; }
  .catalog-hero h1 { font-size: clamp(1.5rem, 9vw, 4.7rem); }
  .detail-page h1 { font-size: clamp(2.8rem, 15vw, 4.7rem); }
  .detail-media { aspect-ratio: 3 / 4; }
  .detail-media-copy { max-width: none; }
  .detail-media-copy p { font-size: 1rem; }
  .game-gallery-grid { grid-template-columns: 1fr; }
  .footer-shell { flex-wrap: wrap; }
  .footer-shell p { width: 100%; }
  .breadcrumb { padding-top: 1rem; }
  .support-form { grid-template-columns: 1fr; }
  .form-field.full, .form-actions, .form-note, .form-status { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
