/* PlayMyPS5 info pages (how-it-works / faq / about). No framework, no web fonts. */
:root {
  color-scheme: dark;
  --bg: #0b0a12; --bg2: #13111f; --card: #17142a; --line: rgba(255,255,255,.1);
  --fg: #f3f1ff; --dim: #a9a4c4; --accent: #7c5cff; --accent2: #a58bff; --live: #ff3b5c; --ok: #3ddc84;
  --r: 16px; --max: 980px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(11,10,18,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { color: var(--accent2); }
.site-head nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-head nav a { color: var(--dim); font-weight: 600; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--fg); background: rgba(255,255,255,.06); text-decoration: none; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff !important; font-weight: 700; border-radius: 999px; padding: 9px 18px; font-size: 15px; white-space: nowrap; }
.btn:hover { background: #8d71ff; text-decoration: none; }
.btn.big { font-size: 18px; padding: 14px 26px; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg) !important; }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255,59,92,.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 640px) {
  .site-head nav a.hide-sm { display: none; }
  .site-head .btn { padding: 7px 14px; font-size: 14px; }
  .brand span { display: none; }
}

/* hero */
.hero { padding: 56px 0 28px; background: radial-gradient(800px 380px at 15% 0%, rgba(124,92,255,.28), transparent 70%); }
.hero h1 { font-size: clamp(32px, 6vw, 54px); line-height: 1.08; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--dim); max-width: 680px; margin: 0 0 24px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #ffd6de; background: rgba(255,59,92,.14); border: 1px solid rgba(255,59,92,.35); border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }

/* content */
main section { padding: 34px 0; }
h2 { font-size: clamp(25px, 3.6vw, 32px); line-height: 1.2; margin: 0 0 10px; letter-spacing: -.01em; }
h3 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.sub { color: var(--dim); margin-bottom: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 12px; right: 16px; font-weight: 800; font-size: 28px; color: rgba(165,139,255,.25); }
.steps .ic { width: 64px; height: 64px; border-radius: 14px; background: linear-gradient(135deg, #9b7dff, #4b22d6); display: grid; place-items: center; }
.steps .ic svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.steps p { color: var(--dim); margin: 0; }
.steps li > div { padding-right: 24px; }

/* turn timeline diagram */
.timeline { display: flex; border-radius: 12px; overflow: hidden; font-size: 14px; font-weight: 700; margin: 8px 0 10px; border: 1px solid var(--line); }
.timeline div { padding: 14px 10px; text-align: center; }
.timeline small { display: block; font-weight: 500; opacity: .85; font-size: 12px; }
.tl-ready { flex: 1.1; background: #3a2a7a; }
.tl-play { flex: 5; background: linear-gradient(90deg, var(--accent), #5b3be0); }
.tl-next { flex: 1.3; background: #24203a; color: var(--dim); }
.legend { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); color: var(--dim); font-size: 15px; }
.legend b { color: var(--fg); }

/* tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg2); color: var(--dim); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
kbd { display: inline-block; min-width: 1.7em; text-align: center; font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; background: #26223d; border: 1px solid #3b3560; border-bottom-width: 2px; border-radius: 6px; padding: 3px 6px; color: var(--fg); margin: 1px 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { font-weight: 600; font-size: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--fg); }
.tabs a:hover { background: rgba(255,255,255,.06); text-decoration: none; }

/* tips / rules */
.tip { border-left: 3px solid var(--accent); }
.rule { border-left: 3px solid var(--live); }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 6px 0 6px 30px; position: relative; }
.check li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; font-size: 17px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 24px; color: var(--accent2); font-weight: 400; }
details[open] summary::after { content: "–"; }
details .a { padding: 0 18px 16px; color: var(--dim); }
details .a p:last-child { margin: 0; }

/* watch links */
.watch { display: flex; flex-wrap: wrap; gap: 10px; }
.watch a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; color: var(--fg); font-weight: 600; }
.watch a:hover { background: rgba(255,255,255,.06); text-decoration: none; }

/* CTA band + footer */
.band { margin: 20px 0 50px; padding: 30px 22px; text-align: center; border-radius: 22px; background: linear-gradient(135deg, rgba(124,92,255,.35), rgba(75,34,214,.25)); border: 1px solid rgba(165,139,255,.35); }
.band h2 { margin-bottom: 8px; }
.band p { color: var(--dim); }
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.site-foot .links a { color: var(--fg); }
.site-foot small { display: block; opacity: .8; line-height: 1.5; }
@media (max-width: 640px) {
  .steps li { grid-template-columns: 46px 1fr; gap: 12px; padding: 14px; }
  .steps .ic { width: 46px; height: 46px; border-radius: 12px; }
  .steps .ic svg { width: 26px; height: 26px; }
  .steps li > div { padding-right: 18px; }
  .timeline { font-size: 13px; }
  .timeline div { padding: 10px 4px; }
  .timeline small { font-size: 10.5px; }
  .hero { padding-top: 36px; }
}

/* ---- SEO landing pages / blog (added 2026-11-23) ---- */
.live-box { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 15px; color: var(--fg); }
.live-box[hidden] { display: none; }
.quick-sec { padding-top: 10px !important; }
.quick { border-left: 3px solid var(--accent); }
.quick p:last-child, .quick ul:last-child { margin-bottom: 0; }
.qa-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent2); margin: 0 0 8px; }
.tldr { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.toc { margin: 0; padding-left: 20px; }
.toc li { padding: 2px 0; }
.byline { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 14px; margin: -8px 0 20px; }
.byline img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.author-box { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; margin: 10px 0 24px; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; }
.author-name { margin: 0 0 6px; font-weight: 700; }
.author-name span { color: var(--dim); font-weight: 500; }
.author-bio { color: var(--dim); margin: 0; font-size: 15px; }
.author-hero { display: flex; gap: 20px; align-items: center; }
.author-hero img { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.author-hero h1 { margin-bottom: 4px !important; }
.card.rel { display: flex; flex-direction: column; gap: 6px; color: var(--fg); }
.card.rel:hover { border-color: rgba(165,139,255,.5); text-decoration: none; }
.card.rel span { color: var(--dim); font-size: 15px; }
.card.rel small { color: var(--dim); font-size: 13px; }
.crumbs { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
main section ul, main section ol { padding-left: 22px; }
main section li { margin: 4px 0; }
.site-foot .guides { font-size: 13px; }
.site-foot .guides span { color: var(--dim); }
.site-foot .guides a { color: var(--dim); }
[dir="rtl"] .quick, [dir="rtl"] .tip { border-left: 0; border-right: 3px solid var(--accent); }
[dir="rtl"] th, [dir="rtl"] td { text-align: right; }
[dir="rtl"] summary { padding: 16px 18px 16px 48px; }
[dir="rtl"] summary::after { right: auto; left: 18px; }
[dir="rtl"] .steps li::before { right: auto; left: 16px; }
[dir="rtl"] .check li { padding: 6px 30px 6px 0; }
[dir="rtl"] .check li::before { left: auto; right: 4px; }
@media (max-width: 640px) { .author-box { grid-template-columns: 48px 1fr; gap: 12px; } .author-box img { width: 48px; height: 48px; } }

/* ---- images & live clips (added 2026-11-23) ---- */
.fig { margin: 6px 0 22px; }
.fig img, .fig video { display: block; width: 100%; height: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.fig figcaption { font-size: 14px; color: var(--dim); margin-top: 8px; line-height: 1.45; }
.fig .credit { opacity: .75; font-size: 12px; white-space: nowrap; }
.fig .credit::before { content: "· "; }
.fig .credit a { color: inherit; text-decoration: underline; }
.hero-media { margin: 26px 0 0; }
.hero-media img, .hero-media video { aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 18px 60px rgba(124,92,255,.25); }
@media (min-width: 761px) {
  .hero-media img, .hero-media video { aspect-ratio: 21 / 9; }
  .fig.side { float: right; width: 44%; max-width: 420px; margin: 4px 0 16px 24px; }
  .fig.phone { float: right; width: 260px; margin: 4px 0 16px 24px; }
  [dir="rtl"] .fig.side, [dir="rtl"] .fig.phone { float: left; margin: 4px 24px 16px 0; }
}
@media (max-width: 760px) { .fig.phone { max-width: 300px; margin-left: auto; margin-right: auto; } }
main section .wrap::after { content: ""; display: table; clear: both; }
.card.rel .card-img { width: calc(100% + 40px); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: -20px -20px 10px; border-radius: var(--r) var(--r) 0 0; }
details + .fig { margin-top: 16px; }
