/* ============================================================
   studio.css — Home (Warm Cosmic) + shared content pages
   (press / support / contact / legal). Pairs with base.css.
   ============================================================ */

/* ---------- Decorative pixel divider ---------- */
.pix-rule { height: 0; border: none; border-top: 3px dashed var(--border-soft); margin: 0; }

/* ---------- Arcade marquee ticker (monadraft-inspired) ---------- */
.marquee { overflow: hidden; border-top: 3px solid var(--border); border-bottom: 3px solid var(--border); background: var(--gold); color: #1a0f14; }
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee__grp { display: flex; align-items: center; padding: .7rem 0; }
.marquee__grp span {
  font-family: var(--font-display); letter-spacing: 1px; font-size: .95rem;
  padding: 0 1.4rem; display: inline-flex; align-items: center; gap: 1.4rem; white-space: nowrap;
}
.marquee__grp span::after { content: "⚽"; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero__copy { max-width: 38ch; }
.hero__title { margin: .6rem 0 1rem; }
.hero__title .line { display: block; }
.hero__title .line--3 {
  color: var(--gold);
  position: relative; width: max-content; max-width: 100%;
  font-size: 1.18em;
  text-shadow: 4px 4px 0 var(--shadow-col);
}
.hero__title .line--3::after {
  content: ""; display: block; height: 10px; margin-top: .2rem;
  background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px);
}
.hero__sub { font-size: 1.1rem; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* hero art: pixel-framed game window + floating ball */
.hero__art { position: relative; }
.hero__frame {
  position: relative; border: 4px solid var(--border); box-shadow: var(--hard-shadow);
  background: #04140d; overflow: hidden; aspect-ratio: 4/5;
}
.hero__frame img, .hero__frame video { width: 100%; height: 100%; object-fit: cover; }
.hero__frame .gllogo {
  position: absolute; inset: auto 0 8% 0; margin: auto; width: 64%; height: auto;
  filter: drop-shadow(3px 3px 0 rgba(0,0,0,.6));
}
.hero__scan { position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; }
.hero__ball {
  position: absolute; top: -22px; right: -14px; width: 78px; z-index: 2;
  animation: spin 9s linear infinite;
}
.hero__chip {
  position: absolute; left: -12px; bottom: 14%; z-index: 2;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: 1px;
  background: var(--purple); color: #fff; border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm);
  padding: .4rem .6rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero__ball { animation: none; } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 360px; }
  .hero__copy { max-width: none; }
}
@media (max-width: 480px) {
  .hero__title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero__title .line--3 { font-size: 1.05em; }
}

/* ---------- GAMES showcase ---------- */
.games-grid { grid-template-columns: 1.25fr 1fr; align-items: stretch; }
@media (max-width: 800px) { .games-grid { grid-template-columns: 1fr; } }

.gcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 3px solid var(--border); box-shadow: var(--hard-shadow);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.gcard:hover { transform: translate(-2px,-3px); box-shadow: 9px 11px 0 var(--shadow-col); }
.gcard__media { position: relative; aspect-ratio: 16/9; overflow: hidden; border-bottom: 3px solid var(--border); background:#04140d; }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gcard:hover .gcard__media img { transform: scale(1.05); }
.gcard__media .tag { position: absolute; top: 10px; left: 10px; }
.gcard__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.gcard__title { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.gcard__desc { font-size: .95rem; }
.gcard__row { margin-top: auto; display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* pixel store badges */
.store {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm);
  padding: .45rem .7rem; background: var(--surface-2); position: relative;
}
.store svg { width: 20px; height: 20px; flex: none; }
.store .lab { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.store .lab small { font-size: .58rem; letter-spacing: .5px; color: var(--muted); }
.store .lab b { font-family: var(--font-display); font-size: .82rem; letter-spacing: .5px; }
.store--soon { opacity: .72; cursor: not-allowed; }
.store--soon::after {
  content: attr(data-soon); position: absolute; top: -10px; right: -8px;
  font-family: var(--font-display); font-size: .56rem; letter-spacing: .5px;
  background: var(--purple); color: #fff; border: 2px solid var(--border); padding: .1rem .3rem;
}
.store--live { background: var(--gold); color: #1a0f14; }
.store--live .lab small { color: rgba(26,15,20,.7); }

/* coming-soon card */
.gcard--soon { align-items: stretch; }
.gcard--soon .gcard__media {
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, var(--surface) 14px 28px);
}
.gcard--soon .qmark { font-family: var(--font-display); font-size: 4rem; color: var(--purple-lt); text-shadow: 4px 4px 0 var(--shadow-col); }

/* ---------- STUDIO philosophy ---------- */
.studio { background: var(--bg-2); border-top: 3px solid var(--border); border-bottom: 3px solid var(--border); }
.studio__grid { grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.studio__quote { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2.2rem); line-height: 1.25; }
.studio__quote em { color: var(--gold); font-style: normal; }
.studio__points { display: grid; gap: 1rem; }
.studio__point { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm); padding: 1rem 1.1rem; }
.studio__point .ic { font-size: 1.5rem; line-height: 1; flex: none; }
.studio__point b { font-family: var(--font-display); display: block; margin-bottom: .15rem; }
.studio__point span { font-size: .9rem; color: var(--text-dim); }
@media (max-width: 800px) { .studio__grid { grid-template-columns: 1fr; } }

/* ---------- COMMUNITY ---------- */
.community { text-align: center; }
.community__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.6rem; }
.community__links a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); letter-spacing: .5px;
  border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm);
  padding: .7rem 1rem; background: var(--surface); transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.community__links a:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--shadow-col); }
.community__links img { width: 22px; height: 22px; }

/* ---------- Generic content pages (press/support/contact/legal) ---------- */
.page-hero { padding-block: clamp(2.5rem,6vw,4.5rem) 1rem; }
.page-hero h1 { font-size: clamp(2rem,5vw,3.4rem); }
.page-hero p { max-width: 60ch; margin-top: .8rem; font-size: 1.05rem; }

.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: .8rem 1rem; border-bottom: 2px solid var(--border-soft); vertical-align: top; }
.facts th { font-family: var(--font-display); font-size: .85rem; letter-spacing: .5px; color: var(--gold); width: 38%; white-space: nowrap; }

.faq { display: grid; gap: 1rem; }
.faq details { background: var(--surface); border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm); padding: 0 1.1rem; }
.faq summary { font-family: var(--font-display); cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 1.1rem; }

.dl-grid { grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); }
.dl-card { background: var(--surface); border: 3px solid var(--border); box-shadow: var(--hard-shadow-sm); padding: 1rem; text-align: center; }
.dl-card img { height: 90px; margin: 0 auto .8rem; width: auto; object-fit: contain; }

.notice { border-left: 6px solid var(--purple); background: var(--surface); padding: 1rem 1.1rem; font-size: .92rem; }

.contact-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.big-link { font-family: var(--font-display); font-size: 1.3rem; color: var(--gold); word-break: break-word; }

/* prose (legal) */
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; color: var(--gold); }
.prose h3 { font-size: 1.05rem; margin: 1.3rem 0 .4rem; }
.prose p, .prose li { color: var(--text-dim); margin-bottom: .7rem; }
.prose ul { padding-left: 1.2rem; list-style: square; }
.prose a { color: var(--purple-lt); text-decoration: underline; }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* theme-adaptive white logos */
:root[data-theme="light"] .foot__brand img,
:root[data-theme="light"] .hero__frame .gllogo { filter: invert(1); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .foot__brand img,
  :root:not([data-theme]) .hero__frame .gllogo { filter: invert(1); }
}
.brand-ball { color: var(--gold); }
