/* Frame Remote Play project page. Colors are taken from the project artwork. */
:root {
  --bg: #070b1d;
  --bg-2: #0d1330;
  --card: rgba(22, 30, 70, 0.55);
  --line: rgba(120, 150, 255, 0.18);
  --text: #eef1ff;
  --muted: #a9b2d8;
  --cyan: #3fc8ff;
  --violet: #9a5cff;
  --glow: linear-gradient(90deg, var(--violet), var(--cyan));
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); }
a:hover { color: #8fe0ff; }
img { max-width: 100%; height: auto; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(120, 150, 255, 0.12); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: #050817; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.2rem; letter-spacing: -0.01em; }
h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

/* ---- navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 11, 29, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:hover { color: var(--text); }

/* ---- hero */
.hero { position: relative; min-height: min(88vh, 760px); display: grid; align-items: center; overflow: hidden; }
.hero-art {
  position: absolute; inset: 0;
  background: url("art/hero.png") 70% center / cover no-repeat;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 29, 0.92) 0%, rgba(7, 11, 29, 0.55) 45%, rgba(7, 11, 29, 0.1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero-text { position: relative; padding: 48px max(16px, calc((100vw - var(--max)) / 2)); max-width: calc(var(--max) * 0.62 + max(16px, (100vw - var(--max)) / 2)); }
.hero h1 { margin: 0 0 0.5rem; }
.hero h1 img { width: min(520px, 100%); margin-left: -4%; filter: drop-shadow(0 0 24px rgba(63, 200, 255, 0.25)); }
.lead { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 600; margin: 0 0 0.6rem; line-height: 1.3; }
.sub { color: var(--muted); margin: 0 0 1.6rem; max-width: 34rem; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600;
  background: rgba(20, 28, 64, 0.6);
}
.btn:hover { color: var(--text); border-color: rgba(120, 150, 255, 0.45); }
.btn.primary { border: 0; background: var(--glow); color: #06081a; box-shadow: 0 0 28px rgba(63, 200, 255, 0.35); }
.btn.primary:hover { color: #06081a; box-shadow: 0 0 36px rgba(154, 92, 255, 0.5); }

/* ---- sections */
section:not(.hero) { padding: 72px max(16px, calc((100vw - var(--max)) / 2)); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; position: relative; overflow: hidden;
}
.grid article::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: var(--glow); opacity: 0.7; }
.grid p { color: var(--muted); margin: 0; }

/* ---- default controls */
kbd {
  display: inline-block; min-width: 1.9em; padding: 0.05em 0.5em; text-align: center;
  font: 600 0.85em/1.6 system-ui, sans-serif; color: var(--text);
  background: linear-gradient(180deg, rgba(154, 92, 255, 0.28), rgba(63, 200, 255, 0.18));
  border: 1px solid rgba(140, 170, 255, 0.4); border-radius: 7px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}
.controls .intro { color: var(--muted); margin: -0.4rem 0 1.4rem; }
.pads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.pad { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.pad h3 { margin-bottom: 0.8rem; }
.pad dl { margin: 0; }
.pad dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.pad dl div:first-child { border-top: 0; }
.pad dt { white-space: nowrap; }
.pad dd { margin: 0; color: var(--muted); }
.both { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 18px 0; }
@media (min-width: 1000px) { .both { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .both { grid-template-columns: 1fr; } }
.both > div { background: rgba(22, 30, 70, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.both span { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

.how { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 48px; align-items: center; background: var(--bg-2); }
.cover { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(154, 92, 255, 0.2); }
.flow { padding-left: 1.2rem; margin: 0 0 1rem; }
.flow li { margin-bottom: 0.7rem; }
.flow li::marker { color: var(--cyan); font-weight: 700; }
.note { color: var(--muted); margin: 0; }

.need { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 72px;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glow); color: #06081a; font-weight: 800;
}
.steps p { margin: 0 0 0.6rem; color: var(--muted); }
.steps p:last-child { margin-bottom: 0; }
.steps pre { margin: 0.4rem 0 0; }

footer { padding: 32px max(16px, calc((100vw - var(--max)) / 2)) 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer p { margin: 0 0 0.5rem; }

/* ---- small screens */
@media (max-width: 720px) {
  .nav nav { gap: 12px; }
  .nav nav a:nth-child(1), .nav nav a:nth-child(2), .nav nav a:nth-child(3) { display: none; }
  .pad dl div { grid-template-columns: 1fr; gap: 4px; }
  .hero { min-height: 0; }
  .hero-art { background-position: 85% top; }
  .hero-art::after { background: linear-gradient(0deg, var(--bg) 25%, rgba(7, 11, 29, 0.55) 100%); }
  .hero-text { padding-top: 140px; }
  .how { grid-template-columns: 1fr; gap: 28px; }
  .cover { max-width: 260px; justify-self: center; }
  .steps li { padding-left: 22px; padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
