:root {
  --ink: #071b23;
  --ink-soft: #0b252d;
  --card: #103038;
  --card-deep: #0c2830;
  --cream: #f8f3e8;
  --paper: #fff9ec;
  --teal: #86cdbb;
  --teal-strong: #2aa5b8;
  --orange: #e19a58;
  --orange-bright: #f26b4f;
  --slate: #a7bbb6;
  --line: rgba(248, 243, 232, .13);
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 86% 8%, rgba(42, 165, 184, .12), transparent 27rem),
    var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

::selection { color: var(--ink); background: var(--teal); }

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  border-radius: .3rem;
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.section-shell,
.page-shell {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.site-header,
.product-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 27, 35, .92);
  backdrop-filter: blur(14px);
}

.header-inner,
.product-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
}

.brand,
.product-brand {
  display: inline-flex;
  align-items: center;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  letter-spacing: .005em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 3vw, 2.25rem);
  color: #c7d5d2;
  font-size: .88rem;
  font-weight: 750;
}

.site-nav a,
.footer-links a,
.product-tabs a { transition: color .16s, background .16s, border-color .16s; }
.site-nav a:hover,
.footer-links a:hover { color: var(--orange); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, .5fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 5.4rem) clamp(4rem, 8vw, 6rem);
}

.hero-copy { max-width: 760px; }

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 1.25rem;
  font-size: clamp(3.35rem, 6vw, 5.55rem);
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 1.7rem;
  color: #c2d0cd;
  font-size: clamp(1.06rem, 1.7vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.2rem;
  gap: .45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 800;
  transition: transform .16s, background .16s;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: #efad70; }
.hero-mark { display: grid; place-items: center; }
.hero-mark img { width: min(100%, 270px); height: auto; }

.feature-section {
  display: grid;
  grid-template-columns: minmax(190px, .45fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--card);
}

.feature-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
}

.feature-heading .eyebrow { margin-bottom: 0; }
.feature-status { color: var(--slate); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.feature-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(1.75rem, 5vw, 3.5rem);
}

.feature-content h2,
.company-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.55rem, 5vw, 4.4rem);
}

.feature-content p {
  max-width: 650px;
  margin-bottom: 0;
  color: #b8c9c6;
  font-size: 1.02rem;
}

.feature-link,
.text-link,
.back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: .4rem;
  font-weight: 800;
}

.feature-link,
.text-link { color: var(--orange); }
.feature-link { white-space: nowrap; }

.company-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 6rem);
  padding-block: clamp(4rem, 8vw, 6rem);
}

.company-section h2 { margin-bottom: 0; }
.company-detail p { margin-bottom: 1.2rem; color: #b8c9c6; font-size: 1.05rem; }

.site-footer,
.product-footer {
  border-top: 1px solid var(--line);
}

.footer-inner,
.product-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
  padding-block: 1.45rem 1.8rem;
}

.footer-contact,
.product-footer-copy { display: grid; gap: .2rem; }
.footer-contact > span,
.product-footer-copy strong { color: var(--cream); font-size: .86rem; font-weight: 750; }
.footer-contact > p,
.product-footer-copy span { margin: 0; color: #718b8d; font-size: .73rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .65rem 1.25rem;
  color: #b7c8c4;
  font-size: .78rem;
  font-weight: 750;
}

.product-header { position: relative; z-index: 10; }

.product-brand { gap: .7rem; }
.product-brand img { width: 42px; height: 42px; border: 2px solid rgba(248, 243, 232, .18); border-radius: 11px; box-shadow: 0 5px 14px rgba(0, 0, 0, .24); }
.product-brand span { display: grid; gap: .02rem; line-height: 1.05; }
.product-brand small { color: var(--teal); font-size: .56rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.product-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; letter-spacing: -.015em; }

.support-link {
  padding: .48rem .82rem;
  border: 1px solid rgba(134, 205, 187, .34);
  border-radius: 999px;
  color: #d7e7e2;
  font-size: .78rem;
  font-weight: 800;
}

.support-link:hover { color: var(--ink); background: var(--teal); border-color: var(--teal); }

.product-tabs-wrap { border-bottom: 1px solid var(--line); background: rgba(11, 37, 45, .62); }
.product-tabs { display: flex; min-height: 44px; align-items: stretch; gap: .25rem; }
.product-tabs a { display: grid; place-items: center; padding: 0 .9rem; border-bottom: 2px solid transparent; color: var(--slate); font-size: .76rem; font-weight: 800; }
.product-tabs a:hover { color: var(--cream); }
.product-tabs a[aria-current="page"] { color: var(--cream); border-bottom-color: var(--orange); }

.product-main { padding-block: clamp(2.25rem, 5vw, 4.25rem) 3.5rem; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  align-items: center;
  gap: clamp(2rem, 7vw, 5rem);
  padding-bottom: clamp(2.25rem, 5vw, 3.5rem);
}

.product-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
}

.product-lede {
  max-width: 720px;
  margin-bottom: 1.35rem;
  color: #c4d4d0;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.release-line { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.release-label { color: var(--orange); font-size: .75rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.platform-list { color: var(--slate); font-size: .88rem; font-weight: 700; }

.app-icon-wrap { position: relative; }
.app-icon-wrap::before { content: ""; position: absolute; inset: 10% -12% -12% 10%; border-radius: 28%; background: rgba(42, 165, 184, .18); filter: blur(24px); }
.app-icon-wrap img { position: relative; width: 190px; height: auto; aspect-ratio: 1; border: 3px solid rgba(248, 243, 232, .24); border-radius: 24%; box-shadow: var(--shadow); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.stat { padding: 1.2rem 1.25rem; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--paper); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; line-height: 1; }
.stat span { display: block; margin-top: .35rem; color: var(--slate); font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.about-copy-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}

.about-copy-grid h2 { margin-bottom: 0; font-size: clamp(2.4rem, 4.6vw, 4rem); }
.about-prose p { color: #bdccc8; font-size: 1.02rem; }
.about-prose p:last-child { margin-bottom: 0; }

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.feature-item { min-height: 150px; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(16, 48, 56, .54); }
.feature-item span { color: var(--orange); font-family: Georgia, "Times New Roman", serif; font-size: .82rem; font-weight: 700; }
.feature-item h3 { margin: .65rem 0 .45rem; font-size: 1rem; }
.feature-item p { margin: 0; color: var(--slate); font-size: .86rem; line-height: 1.55; }

.publisher-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(134, 205, 187, .22);
  border-radius: .9rem;
  background: var(--card-deep);
}

.publisher-band p { max-width: 760px; margin: 0; color: #bacbc7; font-size: .9rem; }
.publisher-band a { flex: 0 0 auto; color: var(--orange); font-size: .84rem; font-weight: 800; }

.legal-page { padding-block: clamp(2rem, 5vw, 3.5rem) 3.5rem; }
.legal-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; padding-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.legal-heading h1 { margin: 0; font-size: clamp(2.85rem, 6vw, 5.1rem); }
.effective-date { margin: 0 0 .28rem; color: var(--slate); font-size: .8rem; font-weight: 750; white-space: nowrap; }
.legal-intro { max-width: 840px; margin: 1.45rem 0 0; color: #c3d2cf; font-size: 1.03rem; }

.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 5rem); padding-top: 2rem; }
.legal-aside { align-self: start; position: sticky; top: 1.25rem; display: grid; gap: .75rem; }
.privacy-points { margin: 0; padding: 0; list-style: none; }
.privacy-points li { padding: .7rem 0; border-bottom: 1px solid var(--line); color: #c8d6d2; font-size: .82rem; font-weight: 750; }
.privacy-points li:first-child { padding-top: 0; }
.legal-contact { padding: .9rem; border-radius: .7rem; background: var(--card); }
.legal-contact small { display: block; margin-bottom: .25rem; color: var(--slate); font-size: .64rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.legal-contact a { color: var(--orange); font-size: .78rem; font-weight: 800; overflow-wrap: anywhere; }

.legal-copy { max-width: 760px; }
.legal-copy section { padding: 0 0 1.55rem; margin-bottom: 1.55rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.legal-copy section:last-child { margin-bottom: 0; border-bottom: 0; }
.legal-copy h2 { margin: 0 0 .7rem; color: var(--paper); font-family: Inter, ui-sans-serif, sans-serif; font-size: 1.1rem; font-weight: 850; letter-spacing: -.01em; }
.legal-copy p { margin-bottom: .8rem; color: #b8c9c6; }
.legal-copy p:last-child { margin-bottom: 0; }
.legal-copy ul { margin-bottom: .8rem; padding-left: 1.15rem; color: #b8c9c6; }
.legal-copy li + li { margin-top: .45rem; }
.legal-copy a { color: var(--teal); text-decoration: underline; text-underline-offset: .18em; }
.legal-copy strong { color: var(--cream); }

.not-found { display: grid; min-height: calc(100vh - 72px); place-items: center; padding-block: 4rem; }
.not-found > div { max-width: 680px; }
.not-found h1 { margin-bottom: 1.2rem; font-size: clamp(3.2rem, 8vw, 5.7rem); }
.not-found p { margin-bottom: 1.7rem; color: #c2d0cd; font-size: 1.06rem; }

@media (width <= 840px) {
  .hero { grid-template-columns: 1fr; }
  .hero-mark { justify-content: start; }
  .hero-mark img { width: 210px; }
  .feature-section { grid-template-columns: 1fr; gap: 2rem; }
  .feature-heading { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .company-section { grid-template-columns: 1fr; gap: 1.75rem; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; grid-template-columns: minmax(0, 1fr) 230px; }
}

@media (width <= 640px) {
  .section-shell,
  .page-shell { width: min(100% - 2rem, 1120px); }
  .header-inner,
  .product-header-inner { min-height: 64px; gap: .75rem; }
  .brand strong { font-size: .9rem; }
  .site-nav { gap: .85rem; font-size: .78rem; }
  .hero { gap: 1.8rem; padding-block: 2.7rem 3.75rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.15rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-mark img { width: 165px; }
  .feature-section { padding: 1.35rem; }
  .feature-heading { flex-direction: column; gap: .45rem; }
  .feature-content { grid-template-columns: 1fr; gap: 1.35rem; }
  .feature-link { white-space: normal; }
  .company-section { padding-block: 3.6rem; }
  .footer-inner,
  .product-footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }

  .product-brand img { width: 38px; height: 38px; border-radius: 10px; }
  .product-brand small { font-size: .49rem; }
  .product-brand strong { font-size: 1.02rem; }
  .support-link { padding: .42rem .68rem; font-size: .72rem; }
  .product-tabs { overflow-x: auto; scrollbar-width: none; }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tabs a { flex: 1 0 auto; padding-inline: .7rem; }
  .product-main { padding-top: 2rem; }
  .product-hero { grid-template-columns: 1fr 96px; align-items: end; gap: 1rem; }
  .product-hero h1 { font-size: clamp(2.7rem, 13.5vw, 4rem); }
  .product-lede { grid-column: 1 / -1; }
  .app-icon-wrap { grid-column: 2; grid-row: 1; align-self: start; margin-top: .2rem; }
  .app-icon-wrap img { width: 96px; border-radius: 22%; }
  .release-line { grid-column: 1 / -1; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .about-copy-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { min-height: 0; }
  .publisher-band { align-items: flex-start; flex-direction: column; }
  .legal-heading { grid-template-columns: 1fr; gap: .55rem; }
  .effective-date { margin: 0; }
  .legal-layout { padding-top: 1.5rem; }
  .legal-aside { grid-template-columns: 1fr; }
}

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

.deletion-actions { margin-block: 1rem .75rem; }
.deletion-page .button { font-family: inherit; line-height: 1.4; cursor: pointer; }
.deletion-page .button-primary { color: var(--ink); text-decoration: none; }
.deletion-page .button-danger { color: var(--ink); background: #f0b4a7; }
.deletion-page .button-danger:hover { background: #f6c6bc; }
.deletion-page .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.deletion-page .button:focus-visible,
.deletion-confirmation input:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.deletion-page .deletion-note { color: var(--slate); font-size: .85rem; }
.deletion-panel { margin-block: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--card); }
.deletion-confirmation { display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1rem; color: var(--cream); font-size: .9rem; cursor: pointer; }
.deletion-confirmation input { flex: 0 0 auto; width: 18px; height: 18px; margin: .3rem 0 0; accent-color: var(--teal); }
.deletion-page .deletion-status { min-height: 1.7em; margin: .85rem 0 0; color: var(--teal); font-size: .88rem; }
.deletion-page .deletion-status[data-state="error"] { color: #ffccc3; }
.deletion-page .legal-copy section { scroll-margin-top: 1.5rem; }

/* Game information pages share the existing studio design. */
.feature-section + .feature-section { margin-top: 1.5rem; }
.faq-item + .faq-item { margin-top: 1.4rem; }
.faq-item h3 { margin-bottom: .5rem; font-size: 1rem; }
.publisher-band p a { font-size: inherit; }

@media (width <= 640px) {
  .header-inner { flex-wrap: wrap; padding-block: .8rem; row-gap: .6rem; }
}

/* Store links use the same accessible badge layout on both game pages. */
.store-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  width: 100%;
  max-width: 540px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  min-height: 76px;
  padding: .9rem 1rem;
  border: 1px solid #3b5961;
  border-radius: 12px;
  color: #fff;
  background: #08151b;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .14);
  text-decoration: none;
  transition: background .16s, border-color .16s, transform .16s;
}
.store-badge:hover {
  border-color: var(--teal);
  background: #123039;
  transform: translateY(-2px);
}
.store-badge:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.store-badge img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.store-badge-copy { display: grid; min-width: 0; gap: .15rem; }
.store-badge-copy strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
}
.store-badge-copy small {
  color: #b7cbd2;
  font-size: .875rem;
  line-height: 1.35;
}
.game-actions { display: grid; gap: 1rem; }
.feature-content--game { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.product-hero { row-gap: 1.5rem; }
.release-area { grid-column: 1 / -1; display: grid; gap: .75rem; }
.release-area .release-label { margin: 0; font-size: .875rem; }
@media (width <= 540px) {
  .store-badges { grid-template-columns: minmax(0, 1fr); }
  .store-badge { min-height: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .store-badge { transition: none; }
  .store-badge:hover { transform: none; }
}
