/* Recomp: Grandia's sky-and-sea adventure, framed in the game's own blue-and-gold windows. */
:root {
  --bg: #07142e;
  --bg-2: #0c1f45;
  --surface: rgba(140, 180, 255, .06);
  --surface-2: rgba(140, 180, 255, .12);
  --border: rgba(160, 196, 255, .22);
  --text: #eef4ff;
  --muted: #a7b9dc;
  --accent: #ffd36b;
  --accent-2: #8fd3ff;
  --accent-ink: #2a1c00;
  --glow: rgba(255, 211, 107, .45);
}
body { background: linear-gradient(180deg, #0a2350 0%, var(--bg) 30%, #050d20 100%); }
.eyebrow { color: var(--accent-2); }

.recomp-hero .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.kenburns img { animation: kenburns 30s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05) translate(0, 0); } to { transform: scale(1.18) translate(-3%, -2%); } }
.recomp-hero .hero-shade { background: linear-gradient(180deg, rgba(7, 20, 46, .35) 0%, rgba(7, 20, 46, .55) 50%, var(--bg) 98%), linear-gradient(90deg, rgba(7, 20, 46, .92) 0%, rgba(7, 20, 46, .4) 60%, transparent); }
.clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: radial-gradient(120px 40px at 20% 30%, #fff, transparent), radial-gradient(180px 50px at 70% 18%, #fff, transparent), radial-gradient(140px 40px at 45% 70%, #fff, transparent);
  filter: blur(18px); animation: clouds 40s linear infinite; }
@keyframes clouds { from { transform: translateX(-10%); } to { transform: translateX(10%); } }
.hero-title { display: inline-flex; flex-direction: column; gap: 4px; padding: 20px 30px 18px; margin-bottom: 26px; }
.hero-title .g-menu:last-child { color: #ffd84d; letter-spacing: .3em; }
.hero-clip { position: relative; }
.crt { border: 3px solid #e9edf7; border-radius: 8px; box-shadow: inset 0 0 0 2px #233a85, 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 80px rgba(143, 211, 255, .25); transform: perspective(1200px) rotateY(-8deg) rotateX(3deg); transition: transform .6s; }
.crt:hover { transform: none; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 1px, transparent 1px 3px); }
.banner { position: absolute; right: -14px; bottom: -22px; padding: 6px 22px; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }

.stat b.g-menu { font-size: 32px; line-height: 40px; color: var(--accent); text-shadow: 3px 3px 0 #3a2a00; }
.stat { background: linear-gradient(180deg, rgba(43, 79, 179, .35), rgba(14, 31, 87, .35)); }

.retro .slide { border: 3px solid #e9edf7; border-radius: 8px; box-shadow: inset 0 0 0 2px #233a85; }
.retro { --slide: min(82%, 760px); }
.retro .slide img { aspect-ratio: 4 / 3; }

.clips-section { background: radial-gradient(800px 400px at 50% 0%, rgba(143, 211, 255, .12), transparent 70%); }
.clips { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.clip { margin: 0; position: relative; }
.clip video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 3px solid #e9edf7; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); }
.clip figcaption { position: absolute; left: 12px; bottom: -14px; padding: 6px 14px; }
.clip:nth-child(odd) { transform: translateY(16px); }

.shape-switch { border-radius: 14px; border: 1px solid var(--border); background: rgba(0, 0, 0, .25); padding: 18px; }
.shape-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.shape-tabs button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font: 600 .85rem/1 var(--font-mono); }
.shape-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.shape-stage { display: grid; place-items: center; min-height: 200px; }
.shape-stage img { max-height: 420px; width: auto; max-width: 100%; border-radius: 6px; border: 3px solid #e9edf7; animation: grow .5s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes grow { from { transform: scaleX(.8); opacity: .3; } }
.wides .slide img { aspect-ratio: 16 / 9; }
.spells { margin: 48px 0 0; }
.spells img { border-radius: 10px; border: 1px solid var(--border); }
.spells figcaption { margin-top: 12px; font-size: .9rem; }

.restoration { background: linear-gradient(180deg, transparent, rgba(255, 211, 107, .05), transparent); }
.pairs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); margin-top: 24px; }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.pair div { position: relative; background: #000; border-radius: 8px; overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 3; }
.pair img { width: 100%; height: auto; }
.pair .tag { position: absolute; top: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); font: 600 .68rem/1 var(--font-mono); letter-spacing: .1em; }

.features .feature { padding: 22px 24px; transition: transform .3s; }
.features .feature:hover { transform: translateY(-4px); }
.features h3 { font: 600 1.1rem/1.2 var(--font-display); color: #ffd84d; display: flex; align-items: center; }
.features p { color: #dce6ff; margin: 0; font-size: .95rem; text-shadow: none; }
.tools-shot { margin: 40px 0 0; }
.tools-shot img { border-radius: 12px; border: 1px solid var(--border); }
.tools-shot figcaption { margin-top: 10px; font-size: .9rem; }

.next-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; flex-wrap: wrap; }
.next-row a { display: grid; gap: 4px; padding: 18px 24px; border-radius: 12px; border: 1px solid var(--border); text-decoration: none; transition: background .2s; flex: 1; min-width: 220px; }
.next-row a:last-child { text-align: right; }
.next-row a:hover { background: var(--surface-2); }
.next-row small { color: var(--muted); font: 500 .75rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .14em; }
.next-row b { font: 600 1.25rem/1.2 var(--font-display); }

@media (max-width: 900px) {
  .recomp-hero .hero-grid { grid-template-columns: 1fr; }
  .crt { transform: none; }
  .clip:nth-child(odd) { transform: none; }
  .hero-title .g-x3 { font-size: 32px; line-height: 40px; }
}

/* Phones: keep wide shapes tall enough to see, and let them be swiped sideways. */
@media (max-width: 700px) {
  .shape-stage { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .shape-stage img { max-width: none; width: auto; height: 220px; max-height: none; }
  .shape-stage::after { content: "Swipe to see the whole width \2192"; display: block; margin-top: 8px; font: 500 .75rem/1 var(--font-mono); color: var(--muted); }
}
