:root {
  color-scheme: dark;
  --bg: #0d0d12;
  --panel: #16161f;
  --line: #30303c;
  --text: #faf8ff;
  --muted: #b7b2c7;
  --accent: #fa76b0;
  --peach: #ffaf8a;
  --cyan: #82e6eb;
  --display: Impact, 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Cascadia Mono', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: #ffc0db; }
svg { display: block; }
img { max-width: 100%; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.13; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.wrap { width: min(calc(100% - 64px), 1160px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 9; top: .6rem; left: .6rem; padding: .65rem 1rem; background: var(--panel); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 2; border-bottom: 1px solid #ffffff19; background: #101017; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); white-space: nowrap; font-size: 1.25rem; font-weight: 820; letter-spacing: -.052em; }
.brand:hover { color: var(--text); }
.brand strong { color: var(--accent); font-weight: inherit; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #f98cb96b; border-radius: 8px; background: #321d33; color: #ff9acd; }
.brand-mark svg { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; column-gap: clamp(.8rem, 2vw, 2rem); }
.main-nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 650; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

.home-hero { position: relative; isolation: isolate; background: radial-gradient(ellipse at 76% 20%, #3a1e3b, transparent 57%), var(--bg); }
.home-hero::before, .home-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-hero::before { background: var(--hero-art, none) center 47% / cover no-repeat; }
.home-hero::after { background: linear-gradient(90deg, #0c0b12ec 1%, #0c0b12a8 51%, #0c0b1210 100%), linear-gradient(0deg, #0d0d12 0%, #0d0d1260 40%, #0d0d1210 95%); }
.hero-content { padding-block: clamp(2.3rem, 5.7vw, 5rem) 1.4rem; }
.hero-content h1 { max-width: 1100px; font: 750 clamp(2.55rem, 6.1vw, 5.4rem)/1.01 var(--display); text-transform: uppercase; letter-spacing: -.025em; text-wrap: balance; }
.hero-content h1 span { display: block; width: fit-content; color: var(--accent); background: linear-gradient(105deg, #ffa383, #ff71af 48%, #c79aff); background-clip: text; -webkit-text-fill-color: transparent; text-wrap: initial; }
.hero-summary { margin-top: 1.15rem; color: #eee5f6; font-size: clamp(1rem, 2vw, 1.16rem); }
.estimate-note { display: flex; align-items: flex-start; gap: .75rem; max-width: 790px; margin-top: 1.25rem; padding: .72rem .85rem; border: 1px solid #e8b4a94b; border-left: 3px solid var(--peach); border-radius: 7px; background: #1c141ded; color: #e2cddc; font-size: .88rem; line-height: 1.55; }
.estimate-note strong { color: #ffd3ba; }
.estimate-note a { color: #f0d2e3; }
.notice-icon { display: grid; place-items: center; flex: none; width: 18px; height: 18px; margin-top: .13rem; border: 1px solid var(--peach); border-radius: 50%; color: var(--peach); font: 700 .76rem/1 var(--sans); }

.checker { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin-top: 1.6rem; border: 1px solid #834c793d; border-radius: 17px; background: #15141df5; box-shadow: 0 24px 75px #0006, 0 0 52px #7a2d591f; }
.checker-form, .checker-result { min-width: 0; padding: clamp(1.1rem, 3vw, 2rem); }
.checker-form h2, .checker-result h2 { margin-bottom: 1.12rem; font-size: clamp(1.35rem, 2.1vw, 1.66rem); letter-spacing: -.035em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem 1rem; }
.field label { display: block; margin-bottom: .32rem; color: #e9e0ef; font-size: .9rem; font-weight: 650; }
.field input, .field select { width: 100%; min-height: 46px; padding: .55rem .75rem; border: 1px solid #494454; border-radius: 8px; background-color: #0e0d15; color: var(--text); }
.field input::placeholder { color: #a49caf; }
.field input:hover, .field select:hover { border-color: #80758a; }
.field input[aria-invalid="true"] { border-color: #ff9b98; }
.field select { appearance: none; padding-right: 2rem; background: #0e0d15 url('/assets/chevron.svg') right .75rem center / 12px auto no-repeat; }
.memory-field { position: relative; }
.memory-field input { padding-right: 3.45rem; }
.memory-field span { position: absolute; top: 50%; right: .85rem; transform: translateY(-50%); color: var(--muted); font-size: .83rem; pointer-events: none; }
.part-field { position: relative; }
.part-options { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; max-height: 240px; overflow-y: auto; margin: .3rem 0 0; padding: .25rem; list-style: none; border: 1px solid #63556b; border-radius: 8px; background: #1b1724; box-shadow: 0 12px 36px #0009; }
.part-options li { display: flex; min-height: 44px; align-items: center; padding: .38rem .52rem; border-radius: 5px; color: #f0e9f7; font-size: .88rem; line-height: 1.35; cursor: pointer; }
.part-options li:hover, .part-options li[aria-selected="true"] { background: #48233f; color: #fff; }
.form-error { margin-top: .6rem; color: #ffb6b3; font-size: .88rem; }
.action-button { display: block; width: 100%; min-height: 49px; margin-top: 1.15rem; border: 0; border-radius: 8px; background: linear-gradient(100deg, #ffac88, #fb79af 63%, #e18fdd); color: #1c101d; font-weight: 800; box-shadow: 0 4px 18px #f981a42b; }
.action-button:hover { background: linear-gradient(100deg, #ffbd9e, #ff94c4 63%, #efa2eb); }
.action-button:disabled { opacity: .55; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin-top: .64rem; color: var(--muted); font-size: .83rem; }
.examples span { margin-right: .23rem; }
.examples button { min-height: 44px; padding: .25rem .55rem; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #e8c3dc; font-size: .83rem; text-decoration: underline; text-decoration-color: #e8c3dc72; text-underline-offset: .19em; }
.examples button:hover { background: #361d35; }

.checker-result { --meter-color: #d692bd; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid #49374b; border-radius: 0 17px 17px 0; background: radial-gradient(ellipse at 15% 32%, #542b4b62, transparent 65%), #15131e; }
.checker-result[data-status="can"] { --meter-color: #8cf0cf; }
.checker-result[data-status="borderline"] { --meter-color: #ffd293; }
.checker-result[data-status="cannot"] { --meter-color: #ffa0a6; }
.result-label { color: #d4bdcf; font: 600 .82rem/1.25 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.result-main { display: flex; align-items: center; gap: .95rem; min-height: 112px; margin: .45rem 0 .7rem; }
.checker-result h2 { margin-bottom: .3rem; }
.result-main p, .result-foot { color: var(--muted); font-size: .88rem; }
.result-gauge { position: relative; display: grid; place-items: center; flex: 0 0 70px; width: 70px; height: 70px; border: 1px solid var(--meter-color); border-radius: 50%; color: var(--meter-color); box-shadow: 0 0 24px #f384bd22; font: 700 1.65rem/1 var(--mono); }
.result-gauge::before { content: ''; position: absolute; inset: 5px; border: 1px dashed var(--meter-color); border-radius: inherit; opacity: .53; }
.result-specs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.result-specs div { min-height: 85px; padding: .65rem .75rem; border: 1px solid #48364a; border-radius: 8px; background: #0d0c1570; }
.result-specs dt { color: var(--muted); font-size: .84rem; }
.result-specs dd { margin-top: .1rem; color: var(--meter-color); font: 700 clamp(1.15rem, 2.45vw, 1.75rem)/1.3 var(--mono); }
.result-foot { margin-top: .6rem; }

.resource-section { padding-block: 2.25rem; }
.resource-section h2, .requirements h2, .requirements-faq h2 { margin-bottom: 1.05rem; font-size: clamp(1.55rem, 3vw, 2.05rem); letter-spacing: -.045em; }
.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.resource-card { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr); align-content: center; gap: .35rem .9rem; padding: 1.25rem; border: 1px solid #3a3043; border-radius: 12px; background: linear-gradient(130deg, #23172a, #171621 55%); color: var(--text); }
.resource-card:hover { border-color: var(--accent); color: var(--text); }
.resource-card h3 a { color: var(--text); text-decoration: none; }
.resource-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.resource-card h3 a:focus-visible { outline: 0; }
.resource-card h3 a:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: 4px; }
.resource-card:hover h3 a { text-decoration: underline; text-underline-offset: .24em; }
.resource-ps { background: linear-gradient(130deg, #11252c, #171621 55%); }
.resource-ps:hover { border-color: var(--cyan); }
.resource-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b15c9560; border-radius: 8px; background: #47223e; color: #ffa7d2; }
.resource-icon svg { width: 25px; height: 25px; }
.resource-ps .resource-icon { border-color: #56a9b566; background: #1b3845; color: var(--cyan); }
.resource-card h3 { font-size: 1.18rem; letter-spacing: -.02em; }
.resource-card p, .requirements p, .requirements-faq p { color: var(--muted); }
.requirements { padding-block: 1rem 2.25rem; }
.requirements-intro { max-width: 865px; margin-bottom: 1.3rem; }
.tier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.hardware-tier { display: flex; flex-direction: column; gap: .75rem; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.hardware-tier h3, .estimate-reading h3 { font-size: 1.2rem; }
.hardware-tier .tier-example { margin-top: auto; font-size: .92rem; }
.tier-example strong { display: block; color: var(--text); }
.tier-fps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.tier-fps div { display: grid; align-content: start; gap: .2rem; padding: .55rem .42rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); }
.tier-fps dt { color: var(--muted); font: 600 .8rem/1.25 var(--mono); }
.tier-fps dd { line-height: 1.35; }
.tier-fps dd strong { display: block; color: var(--text); font: 700 .94rem/1.3 var(--mono); }
.tier-fps dd span { display: block; margin-top: .2rem; color: #ffb4bb; font-size: .81rem; }
.tier-fps [data-status="can"] dd span { color: #8cf0cf; }
.tier-fps [data-status="borderline"] dd span { color: #ffd293; }
.estimate-reading { max-width: 865px; margin-top: 1.5rem; }
.estimate-reading h3 { margin-bottom: .5rem; }
.requirements-faq { padding-bottom: 3.6rem; }
.info-panel { border-top: 1px solid var(--line); }
.info-panel:last-child { border-bottom: 1px solid var(--line); }
.info-panel summary { min-height: 44px; padding: .85rem .15rem; color: #f1eaf6; font-weight: 650; cursor: pointer; }
.info-panel summary::marker { color: var(--accent); }
.info-panel p { max-width: 850px; padding: 0 1rem .9rem; }

.site-footer { padding-block: 1.7rem; border-top: 1px solid var(--line); background: #111017; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .55rem 1.8rem; }
.footer-inner p { grid-column: 1 / -1; max-width: 760px; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-self: end; column-gap: 1.2rem; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .9rem; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { color: var(--text); }
.site-info { max-width: 780px; min-height: 54vh; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.site-info h1 { margin-bottom: .85rem; font-size: clamp(2.25rem, 6vw, 3.75rem); letter-spacing: -.045em; }
.site-info section { margin-top: 1.8rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.site-info h2 { margin-bottom: .55rem; font-size: clamp(1.25rem, 3vw, 1.55rem); }
.site-info p, .site-info li { color: var(--muted); }
.site-info p + p, .site-info li + li { margin-top: .55rem; }
.site-info ul { padding-left: 1.15rem; }
.not-found { min-height: 55vh; padding-block: 4rem; }
.not-found p { margin-block: .8rem; }

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 36px), 1160px); }
  .hero-content h1 { max-width: 680px; }
  .home-hero::before { background-size: auto 590px; background-position: 67% 0; }
  .home-hero::after { background: linear-gradient(0deg, #0d0d12 30%, #0d0d1250 80%), linear-gradient(90deg, #0c0b12d9, #0c0b122d); }
}

@media (max-width: 670px) {
  .header-inner { flex-wrap: wrap; gap: 0 1rem; padding-top: .3rem; }
  .main-nav { width: 100%; flex-wrap: wrap; column-gap: 1.05rem; }
  .main-nav a { font-size: .8rem; }
  .checker { grid-template-columns: 1fr; }
  .checker-result { border-top: 1px solid #49374b; border-left: 0; border-radius: 0 0 17px 17px; }
  .resource-grid, .tier-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .footer-inner { grid-template-columns: 1fr; gap: .2rem; }
  .footer-nav { justify-self: start; }
}

@media (max-width: 430px) {
  .wrap { width: calc(100% - 28px); }
  .main-nav { column-gap: .66rem; }
  .main-nav a { font-size: .76rem; }
  .hero-content h1 { font-size: clamp(2.25rem, 9vw, 2.55rem); }
  .field-grid { gap: .75rem .55rem; }
  .field input, .field select { padding-left: .6rem; font-size: .9rem; }
  .result-main { min-height: 88px; }
}
