/* ReplayCove — warm editorial surfaces, unmistakable focus, quiet motion. */
:root {
  --paper: #f8f7f2;
  --ink: #252a29;
  --muted: #68706b;
  --line: #dedfd6;
  --blue: #3154da;
  --coral: #c95339;
  --mint: #e4ebdb;
  --radius: 16px;
  --width: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: not-allowed; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
p { color: var(--muted); }
.wrap { width: min(var(--width), calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { display: block; padding: 12px; background: white; }
.preview-notice { background: #f0dfb8; color: #634515; text-align: center; padding: 9px 20px; font-size: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; height: 100px; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 750; letter-spacing: -1.3px; line-height: 1; white-space: nowrap; }
.brand-light { font-weight: 450; }
.brand-dot { color: var(--coral); }
.main-nav { display: flex; gap: 30px; font-size: 14px; }
.main-nav [aria-current], .collection-link[aria-current] { color: var(--blue); }
.collection-link { border: 1px solid #c9ccc1; padding: 10px 17px; border-radius: 30px; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.collection-link > span:first-child { font-size: 22px; line-height: 1; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--muted); margin-bottom: 18px; }
.small-dot { display: inline-block; width: 7px; height: 7px; background: var(--coral); border-radius: 50%; margin-right: 7px; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; min-height: 590px; gap: 24px; padding-block: 58px; }
.hero h1 { font-size: clamp(58px, 6.6vw, 87px); font-weight: 600; line-height: 1.02; letter-spacing: -5px; }
.hero h1 em { color: var(--coral); letter-spacing: -5px; }
.hero-description { font-size: 17px; margin-top: 26px; line-height: 1.85; }
.hero-search { display: flex; align-items: center; background: #fff; border: 1px solid #d9dcd2; border-radius: 11px; padding: 7px; gap: 11px; margin-top: 30px; max-width: 490px; box-shadow: 0 4px 12px #24332305; }
.hero-search > span { font-size: 29px; padding-left: 11px; line-height: 1; }
.hero-search input { width: 100%; min-width: 0; border: 0; outline: none; padding: 12px 0; background: transparent; font-size: 14px; }
.hero-search:focus-within { outline: 3px solid #3154da60; }
.hero-search button { border: 0; background: var(--blue); color: white; width: 45px; height: 44px; border-radius: 7px; font-size: 22px; flex-shrink: 0; }
.hero-points { display: flex; gap: 20px; margin-top: 18px; font-size: 10px; color: var(--muted); }
.hero-art { position: relative; height: 460px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 22px 0 20px 15px; background: #e9ecdf; border-radius: 50% 44% 47% 50%; transform: rotate(-12deg); z-index: -2; }
.orbit-ring { position: absolute; inset: 26px -3px; border: 1px solid #c8cdbc; border-radius: 50%; transform: rotate(-24deg); z-index: -1; }
.orbit-two { inset: 65px -18px 38px 32px; transform: rotate(34deg); }
.handheld { position: absolute; width: 265px; height: 367px; top: 45px; left: 120px; border: 2px solid #bbbfb0; border-radius: 27px 27px 53px 27px; background: #eeeede; box-shadow: 9px 12px 0 #babeb0, 24px 26px 30px #25352320; transform: rotate(13deg); padding: 18px 20px; }
.device-top { display: flex; justify-content: space-between; font-size: 8px; letter-spacing: 1.9px; color: #555d51; margin-bottom: 12px; }
.device-top span:last-child { color: #a15b41; }
.device-screen { height: 181px; border: 10px solid #39463f; border-radius: 6px 6px 22px 6px; background: #b8c899; position: relative; overflow: hidden; box-shadow: inset 0 0 12px #25352340; }
.screen-sun { position: absolute; width: 37px; height: 37px; border-radius: 50%; top: 15px; right: 23px; background: #ebebad; }
.screen-mountains { position: absolute; bottom: 46px; left: -20px; width: 235px; height: 55px; background: #607c62; clip-path: polygon(0 100%, 18% 14%, 24% 14%, 45% 91%, 66% 0, 75% 0, 100% 100%); }
.screen-water { position: absolute; width: 100%; height: 58px; background: repeating-linear-gradient(0deg,#4d766855 0 3px,#91b598 3px 11px); bottom: 0; }
.screen-text { position: absolute; color: #253f33; top: 42px; left: 12px; font-family: monospace; font-weight: 900; font-size: 20px; letter-spacing: -1px; line-height: 1.1; text-shadow: 1px 1px #cdd9ae; }
.screen-caption { position: absolute; font: 700 8px monospace; letter-spacing: 2px; bottom: 10px; left: 22px; color: #213c31; }
.screen-spark { position: absolute; font-size: 17px; left: 11px; top: 7px; color: #eef0c5; }
.device-controls { height: 91px; display: flex; align-items: center; justify-content: space-between; }
.dpad { width: 64px; height: 64px; position: relative; }
.dpad::before, .dpad::after { content: ""; position: absolute; background: #3f4843; box-shadow: 1px 2px 0 #1e2a23; border-radius: 3px; }
.dpad::before { width: 62px; height: 23px; top: 20px; }
.dpad::after { width: 23px; height: 62px; left: 20px; }
.mini-keys { display: flex; align-self: end; margin-bottom: 13px; gap: 7px; transform: rotate(-33deg); }
.mini-keys i { width: 21px; height: 5px; border-radius: 3px; background: #8c9688; }
.round-keys { display: flex; gap: 10px; transform: rotate(-28deg); }
.round-keys i { font: normal 9px monospace; text-align: center; line-height: 31px; color: #ffd9cb; background: #ba5b44; width: 32px; height: 32px; border-radius: 50%; box-shadow: 1px 3px #783e2e; }
.device-bottom { display: flex; justify-content: space-between; margin-top: 9px; font: 6px monospace; color: #828b7b; }
.device-bottom span:last-child { font-size: 18px; letter-spacing: 2px; color: #afb5a3; }
.small-ticket { position: absolute; top: 46px; left: 14px; z-index: 2; padding: 18px 20px; background: #fcfaf1; border: 1px solid #d6d8cb; box-shadow: 0 5px 15px #182c2110; transform: rotate(-12deg); }
.small-ticket span { display: block; font-size: 6px; letter-spacing: 1.4px; }
.small-ticket strong { display: block; font: 21px Georgia,serif; padding-block: 8px; }
.small-ticket strong span { display: inline; letter-spacing: 0; font-size: 21px; }
.hero-star { position: absolute; color: var(--coral); }
.star-one { top: 12px; right: 24px; font-size: 45px; }
.star-two { bottom: 4px; left: 82px; font-size: 33px; }
.floating-note { position: absolute; right: -6px; bottom: 33px; transform: rotate(-8deg); font-size: 12px; line-height: 1.5; padding: 14px 20px; background: #f2c884; box-shadow: 4px 4px 0 #d5ad68; border-radius: 4px; }
.floating-note > span { font-size: 23px; float: left; margin-right: 12px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { font-size: 32px; font-weight: 550; letter-spacing: -1px; }
.section-heading .eyebrow { margin-bottom: 9px; }
.section-heading > a { font-size: 13px; white-space: nowrap; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.section-heading > a span { margin-left: 10px; }
.compact h2 { font-size: 21px; letter-spacing: -.5px; }
.platform-section { padding-block: 16px 42px; border-bottom: 1px solid var(--line); }
.platform-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
.platform-tile { display: flex; align-items: center; gap: 10px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 11px; background: #f1f2eb; }
.platform-tile:hover { border-color: var(--blue); background: #eeeff9; }
.system-symbol { font-size: 22px; line-height: 1; color: #737d68; }
.tile-arrow { margin-left: auto; font-size: 13px; color: #7c8577; }
.library-section { padding-block: 52px; }
.game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px 22px; }
.game-card { min-width: 0; }
.cover-art { position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: #293f54; color: #d9ecd4; isolation: isolate; }
.cover-art img { width: 100%; height: 100%; object-fit: cover; }
.art-orbit { position: absolute; width: 145%; height: 90%; border: 1px solid #ffffff35; top: -12%; left: -40%; border-radius: 50%; transform: rotate(-30deg); }
.art-moon { position: absolute; top: 12%; right: 12%; width: 24%; aspect-ratio: 1; background: #edc987; border-radius: 50%; }
.art-hill { position: absolute; width: 100%; height: 60%; left: -10%; bottom: -27%; background: #8b9e85; transform: rotate(23deg); border-radius: 38% 45% 0 0; z-index: -1; }
.hill-two { left: 48%; bottom: -36%; background: #597973; transform: rotate(-26deg); height: 91%; }
.art-label { position: absolute; top: 9%; left: 9%; font: 7px monospace; letter-spacing: 2px; }
.art-title { position: absolute; left: 9%; right: 10%; top: 34%; font: 600 clamp(22px,2.8vw,37px)/.98 Georgia,serif; letter-spacing: -.9px; text-shadow: 1px 2px #16283415; }
.art-caption { position: absolute; bottom: 8%; left: 9%; font: 6px monospace; letter-spacing: 2px; }
.art-pixels { position: absolute; top: 25%; left: 13%; width: 3px; height: 3px; background: #fff8; box-shadow: 60px 10px #fff8, 29px 33px #fff5, 125px -16px #fff8, 177px 65px #fff8; }
.cover-art[data-platform="snes"] { background: #b9cfc2; color: #29443c; }
.cover-art[data-platform="snes"] .art-moon { background: #faf2ce; }
.cover-art[data-platform="snes"] .hill-one { background: #749985; }
.cover-art[data-platform="megadrive"] { background: #504d76; color: #f3e4ca; }
.cover-art[data-platform="megadrive"] .art-moon { background: #e99973; border-radius: 50% 50% 0 0; }
.cover-art[data-platform="megadrive"] .art-hill { background: #847199; }
.cover-art[data-platform="gba"] { background: #718965; color: #f5edc6; }
.cover-art[data-platform="gba"] .art-moon { background: #b8cd8a; }
.cover-art[data-platform="gba"] .art-hill { background: #426449; }
.cover-art[data-platform="arcade"] { background: #ba603f; color: #fff0cc; }
.cover-art[data-platform="arcade"] .art-moon { background: #ecc56f; }
.cover-art[data-platform="arcade"] .art-hill { background: #e6a26d; }
.cover-art[data-platform="gb"], .cover-art[data-platform="gbc"] { background: #b8c696; color: #354c33; }
.cover-art[data-platform="gb"] .art-hill, .cover-art[data-platform="gbc"] .art-hill { background: #7c9260; }
.cover-art[data-platform="psx"] { background: #586b94; color: #f2e9dc; }
.card-image-link { display: block; position: relative; }
.card-arrow { position: absolute; bottom: 12px; right: 12px; width: 27px; height: 27px; background: #f9f7eae8; color: #323b33; border-radius: 50%; text-align: center; font-size: 18px; opacity: 0; transform: translateY(4px); transition: .2s ease; }
.card-image-link:hover .card-arrow, .card-image-link:focus-visible .card-arrow { opacity: 1; transform: none; }
.card-meta { display: flex; justify-content: space-between; gap: 5px; font-size: 9px; color: #777e71; margin-top: 14px; text-transform: uppercase; letter-spacing: .5px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.card-title-row h3 { font-size: 18px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.favorite-button { border: 0; background: none; font-size: 23px; min-width: 36px; min-height: 36px; padding: 0; color: #747c6e; }
.favorite-button[aria-pressed="true"], [data-favorite][aria-pressed="true"] { color: var(--coral); }
.card-note { font-size: 10px; margin-top: 3px; }
.library-empty { background: #edf0e6; border: 1px solid var(--line); border-radius: 18px; padding: 42px; display: flex; align-items: center; justify-content: space-between; }
.library-empty h3 { font-size: 32px; font-weight: 550; margin-bottom: 18px; }
.empty-cassette { font-size: 120px; color: #b5c0ac; transform: rotate(-10deg); }
.together { background: #e6eadb; border: 1px solid #dbe1ce; border-radius: 20px; padding: 48px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; overflow: hidden; }
.together h2 { font-size: 44px; line-height: 1.1; font-weight: 550; }
.together h2 em { color: #687d43; }
.together p:not(.eyebrow) { margin-block: 20px 26px; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 20px; min-height: 46px; border-radius: 8px; border: 1px solid transparent; font-size: 13px; font-weight: 600; line-height: 1.5; }
.button.primary { background: var(--blue); color: #fff; }
.button.dark { background: #303c32; color: #fbf9ed; }
.button.secondary { background: transparent; border-color: #c9cec0; color: var(--ink); }
.button:hover:not(:disabled) { filter: brightness(.94); }
.duo-art { position: relative; min-height: 240px; }
.duo-pad { position: absolute; width: 200px; height: 95px; padding: 15px 23px; display: flex; justify-content: space-between; align-items: center; border-radius: 30px 30px 45px 45px; font-size: 43px; box-shadow: 7px 8px #31473630; border: 2px solid #bac4a9; }
.duo-pad span { font-size: 25px; letter-spacing: 2px; color: #a05543; }
.pad-one { top: 20px; left: 0; background: #f0eeda; transform: rotate(-20deg); }
.pad-two { bottom: 30px; right: -10px; background: #b6c7a6; color: #4a6445; transform: rotate(16deg); }
.duo-heart { position: absolute; font-size: 53px; color: #c3694c; top: 11px; right: 15px; transform: rotate(16deg); }
.duo-label { position: absolute; bottom: -3px; left: 30px; font: 8px monospace; letter-spacing: 3px; transform: rotate(-5deg); }
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 60px; padding-block: 65px 72px; }
.feature-number { font: 9px monospace; letter-spacing: 2px; color: var(--coral); }
.features h3 { font-size: 24px; font-weight: 550; margin-block: 14px; line-height: 1.2; }
.features p { font-size: 13px; line-height: 1.8; max-width: 310px; }
.site-footer { padding-block: 38px 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer .brand { font-size: 22px; gap: 0; }
.site-footer p { font-size: 11px; margin-top: 13px; }
.site-footer nav { display: flex; align-items: start; flex-wrap: wrap; gap: 20px; font-size: 11px; }
.site-footer .footer-note { width: 100%; font-size: 9px; border-top: 1px solid var(--line); padding-top: 18px; }
.page-intro { padding-block: 56px 40px; }
.page-intro h1 { font-size: clamp(38px,4.8vw,60px); font-weight: 550; }
.page-intro h1 em { color: var(--coral); }
.page-intro > p:last-child { margin-top: 15px; }
.browse-layout { display: grid; grid-template-columns: 224px minmax(0,1fr); gap: 42px; padding-bottom: 70px; }
.filters { display: flex; flex-direction: column; align-self: start; gap: 9px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f0f1e9; }
.filters label, .field-label, .account-card label { font-size: 11px; font-weight: 600; margin-top: 12px; }
input, select { min-height: 43px; padding: 10px 12px; color: var(--ink); border: 1px solid #cfd4c7; border-radius: 7px; background: #fff; width: 100%; }
select { font-size: 12px; padding-right: 20px; }
.check-label { display: flex; align-items: center; gap: 10px; line-height: 1.5; }
.check-label input { width: 16px; min-height: 16px; accent-color: var(--blue); }
.filters .button { margin-top: 14px; }
.reset-link { font-size: 11px; text-align: center; text-decoration: underline; margin-top: 3px; }
.filter-note { border-top: 1px solid var(--line); font-size: 10px; margin-top: 14px; padding-top: 16px; }
.results-top { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 22px; min-height: 30px; }
.results-top p { font-size: 13px; }
.results-top span { font: 10px monospace; color: var(--muted); }
.browse-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.pagination { display: flex; gap: 20px; justify-content: center; padding-top: 45px; }
.empty-state { padding: 64px 28px; text-align: center; background: #f0f2e9; border: 1px solid var(--line); border-radius: 18px; }
.empty-state h2 { font-size: 29px; font-weight: 500; }
.empty-state p { max-width: 420px; margin: 18px auto 24px; }
.empty-icon { display: block; font-size: 62px; line-height: 1; color: #71865d; margin-bottom: 25px; }
.back-link { display: inline-block; font-size: 12px; color: var(--muted); margin-bottom: 27px; }
.game-detail { padding-block: 30px 48px; }
.detail-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 60px; }
.cover-large { aspect-ratio: 1.16; border-radius: 20px; }
.cover-large .art-title { font-size: 64px; top: 39%; }
.cover-large .art-label { font-size: 11px; }
.cover-large .art-caption { font-size: 9px; }
.art-disclaimer { font-size: 10px; color: var(--muted); margin-top: 12px; }
.detail-copy h1 { font-size: 52px; font-weight: 600; }
.detail-copy .eyebrow span { margin: 0 10px; }
.detail-description { margin-top: 20px; white-space: pre-line; font-size: 15px; line-height: 1.9; max-height: 240px; overflow: auto; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 28px; }
.detail-badges span { background: #e9eddf; padding: 5px 10px; font-size: 10px; border-radius: 4px; color: #59694b; }
.field-label { display: block; margin-bottom: 8px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 18px 15px; align-items: flex-end; }
.local-play-form { display: flex; flex: 1 1 290px; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.local-play-form label { flex-basis: 100%; font-size: 11px; font-weight: 600; }
.local-play-form select { width: auto; min-width: 154px; flex: 1 1 154px; }
.local-play-form .button { min-height: 43px; white-space: nowrap; }
.quiet { font-size: 12px; line-height: 1.75; }
.game-notes { padding-block: 40px 50px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1.25fr 1fr; gap: 75px; }
.game-notes h2 { font-size: 29px; font-weight: 500; }
.controls-list { margin-block: 24px; }
.controls-list > div { display: grid; grid-template-columns: 135px 1fr; padding-block: 10px; border-bottom: 1px solid var(--line); }
.controls-list dt { font-size: 12px; font-weight: 600; }
.controls-list dd { font-size: 12px; margin: 0; color: var(--muted); }
kbd { display: inline-block; padding: 2px 7px; margin-right: 3px; font: 11px/1.8 monospace; background: #eeeee5; color: #3b4337; border: 1px solid #d1d5c8; border-radius: 4px; box-shadow: 0 2px 0 #d1d5c8; }
.progress-note { background: #e8eddf; padding: 29px 35px; border-radius: 15px; }
.progress-note h3 { font-size: 31px; font-weight: 500; }
.progress-note p { margin-top: 17px; font-size: 12px; }
.note-icon { font: 40px Georgia,serif; color: #758e5f; }
.prose { max-width: 820px; padding-block: 62px; }
.prose h1 { font-size: 60px; font-weight: 500; }
.prose h1 em { color: var(--coral); }
.prose .lead { font-size: 18px; margin-block: 25px 35px; }
.prose h2 { font-size: 25px; font-weight: 550; margin-block: 35px 16px; }
.prose p { margin-bottom: 18px; }
.prose a { text-decoration: underline; }
.prose details { border-block-end: 1px solid var(--line); padding-block: 20px; }
.prose summary { font-size: 17px; font-weight: 550; }
.prose details p { margin-top: 14px; }
.saved-section { min-height: 450px; padding-bottom: 60px; }
.saved-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.saved-tabs button { background: none; border: 0; padding: 12px 1px; color: var(--muted); border-bottom: 2px solid transparent; }
.saved-tabs [aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.saved-row { padding: 20px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; background: #fff9; }
.saved-row h3 { font-size: 19px; letter-spacing: -.5px; }
.saved-row p { font-size: 11px; margin-top: 5px; }
.saved-row .button { padding: 7px 12px; font-size: 11px; min-height: 38px; }
.saved-empty { padding: 50px 20px; text-align: center; }
.saved-empty h2 { font-size: 27px; font-weight: 500; }
.saved-empty p { margin-block: 15px 22px; }
.account-layout { padding-block: 72px 100px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; }
.account-intro h1 { font-size: 59px; font-weight: 500; }
.account-intro em { color: var(--coral); }
.account-intro > p:not(.eyebrow) { margin-top: 25px; max-width: 470px; }
.account-notes { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 30px; font-size: 12px; line-height: 2.6; }
.account-card { padding: 34px; background: #eef1e7; border: 1px solid var(--line); border-radius: 17px; align-self: start; }
.account-card h2 { font-size: 24px; font-weight: 550; margin-bottom: 22px; }
.account-card form { display: flex; flex-direction: column; gap: 9px; }
.account-card form button { margin-block: 17px; }
.form-message { color: var(--coral); margin-block: 12px; font-size: 13px; }
.error-page { margin-block: 50px; }
.error-page h1 { font-size: 59px; font-weight: 500; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: min(550px,90vw); z-index: 50; background: #263d34; color: white; padding: 13px 23px; border-radius: 10px; box-shadow: 0 5px 18px #0002; font-size: 13px; }
.noscript { padding: 12px; text-align: center; background: #f0dfb8; color: #634515; }
/* A deliberately isolated, low-distraction playing surface. */
.playing-page { background: #151c1c; color: #e7ecdf; }
.player-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; gap: 20px; border-bottom: 1px solid #35403a; font-size: 12px; }
.player-brand { font-size: 21px; font-weight: 600; letter-spacing: -1px; }
#gamepad-status { font-size: 10px; color: #aab7a9; }
.player-layout { max-width: 1140px; padding: 28px 30px; margin: auto; }
.player-stage { position: relative; min-height: 540px; border: 1px solid #3e4a42; border-radius: 14px; overflow: hidden; background: #0e1413; }
#emulator { width: 100%; height: min(68vh,740px); min-height: 540px; }
.player-stage:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; }
.player-stage:fullscreen #emulator { height: 100vh; }
.launch-panel { position: absolute; inset: 0; padding: 45px 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at 50% 30%,#243a32,#101817 80%); }
.launch-panel h1 { font-size: 43px; font-weight: 500; max-width: 90%; }
.launch-panel p { color: #aab7a9; margin-block: 12px; }
.launch-panel .button { margin-top: 12px; }
.launch-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-block: 20px; font-size: 11px; }
.playing-page .secondary { color: #dce6d3; border-color: #6a7a66; }
.playing-page kbd { background: #36473a; color: #e2ecd8; border-color: #56674c; box-shadow: 0 2px #56674c; }
.player-status { padding: 14px 5px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: #c5d2bf; }
.player-toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.player-toolbar button, .player-toolbar a { background: #29362d; border: 1px solid #46533e; color: #e2eadb; border-radius: 7px; padding: 11px 15px; font-size: 12px; }
.player-footnote { font-size: 11px; margin-top: 23px; color: #9fac99; }
.player-footnote a { text-decoration: underline; }
.recovery-question { background: #304936; padding: 20px; border-radius: 10px; margin-top: 20px; }
.recovery-question p { color: #eef5e5; margin-bottom: 13px; }
.progress-dialog { background: var(--paper); color: var(--ink); border: 1px solid #cbd3c0; border-radius: 17px; padding: 28px; width: min(690px,95vw); max-height: 88vh; }
.progress-dialog::backdrop { background: #091810ad; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 25px; align-items: start; margin-bottom: 20px; }
.dialog-heading h2 { font-size: 33px; font-weight: 500; }
.dialog-heading button { font-size: 26px; border: 0; background: none; min-width: 40px; }
.progress-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px 14px; }
.playing-page .progress-dialog .secondary { color: var(--ink); border-color: #c9cec0; }
.progress-dialog h3 { font-size: 19px; margin-block: 25px 13px; }
.snapshot-row { border-top: 1px solid var(--line); padding-block: 14px; }
.snapshot-row p { font-size: 12px; margin-bottom: 9px; }
.snapshot-row .snapshot-buttons { display: flex; flex-wrap: wrap; gap: 7px; }
.snapshot-buttons button { background: #e7eddd; border: 1px solid #c9d3bb; color: #33492d; font-size: 11px; padding: 7px 10px; border-radius: 5px; }
@media (min-width: 1500px) { .hero-art { transform: translateX(15px); } }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 48px); }
  .hero h1 { font-size: 67px; letter-spacing: -4px; }
  .hero h1 em { letter-spacing: -4px; }
  .hero-art { transform: scale(.86); transform-origin: center; margin-inline: -23px; }
  .handheld { left: 95px; }
  .main-nav { gap: 18px; }
  .platform-grid { grid-template-columns: repeat(3,1fr); }
  .game-grid { gap: 25px 16px; }
  .browse-layout { gap: 25px; grid-template-columns: 205px minmax(0,1fr); }
  .browse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .together { padding: 38px; }
  .detail-grid { gap: 30px; }
  .detail-copy h1 { font-size: 43px; }
  .cover-large .art-title { font-size: 49px; }
  .account-layout { gap: 40px; }
}
@media (max-width: 760px) {
  .site-header { height: 82px; gap: 12px; }
  .brand { font-size: 23px; }
  .brand img { width: 29px; height: 29px; }
  .main-nav { display: none; }
  .collection-link { padding: 8px 11px; font-size: 11px; }
  .hero { grid-template-columns: 1fr; padding-block: 44px 25px; gap: 0; }
  .hero h1 { font-size: clamp(62px,10vw,78px); }
  .hero-description { font-size: 16px; }
  .hero-search { max-width: 100%; }
  .hero-art { overflow: clip; overflow-clip-margin: 8px; max-width: 460px; width: 100%; height: 410px; margin: 25px auto -12px; transform: scale(.92); }
  .handheld { top: 18px; left: calc(50% - 115px); }
  .small-ticket { top: 12px; left: -10px; }
  .star-one { top: 0; right: 0; }
  .floating-note { right: -7px; bottom: 20px; }
  .hero-art::before { inset: 0; }
  .hero-points { gap: 16px; font-size: 9px; }
  .platform-section { padding-bottom: 32px; }
  .platform-tile { font-size: 10px; gap: 8px; padding: 13px 10px; }
  .system-symbol { font-size: 20px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading > a { font-size: 11px; }
  .game-grid, .browse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .art-title { font-size: clamp(22px,4.8vw,34px); }
  .card-meta { font-size: 8px; }
  .card-title-row h3 { font-size: 17px; }
  .library-section { padding-block: 38px; }
  .together { grid-template-columns: 1fr; padding: 31px; gap: 0; }
  .together h2 { font-size: 40px; }
  .duo-art { min-height: 220px; width: min(360px,100%); margin: 30px auto 0; }
  .features { gap: 23px; padding-block: 45px; }
  .features h3 { font-size: 20px; }
  .features p { font-size: 11px; }
  .features .feature-number { font-size: 8px; letter-spacing: 1px; }
  .site-footer { gap: 30px; }
  .page-intro { padding-block: 36px 28px; }
  .browse-layout { grid-template-columns: 1fr; gap: 30px; }
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 15px; }
  .filters > label[for="query"], .filters > input, .filters > .check-label, .filters > .button, .filters > .reset-link { grid-column: 1/-1; }
  .filters label[for="platform"] { grid-column: 1; grid-row: 3; }
  .filters label[for="genre"] { grid-column: 2; grid-row: 3; }
  .filters #platform { grid-column: 1; grid-row: 4; }
  .filters #genre { grid-column: 2; grid-row: 4; }
  .filters label[for="sort"] { grid-column: 1; }
  .filters #sort { grid-column: 2; }
  .filter-note { display: none; }
  .detail-grid, .game-notes, .account-layout { grid-template-columns: 1fr; }
  .detail-copy h1 { font-size: 43px; }
  .cover-large { aspect-ratio: 1.3; }
  .cover-large .art-title { font-size: 59px; }
  .game-notes { gap: 28px; }
  .controls-list > div { grid-template-columns: 110px 1fr; }
  .prose { padding-block: 38px; }
  .prose h1 { font-size: 51px; }
  .account-layout { padding-block: 40px; gap: 35px; }
  .account-intro h1 { font-size: 49px; }
  .saved-row { align-items: start; flex-direction: column; }
  .player-header { padding: 12px 15px; }
  .player-brand { display: none; }
  .player-layout { padding: 14px 10px; }
  #emulator, .player-stage { min-height: 480px; }
  .player-status { flex-direction: column; gap: 4px; }
  .player-toolbar { gap: 7px; }
  .player-toolbar button, .player-toolbar a { flex-grow: 1; text-align: center; padding: 10px; }
  .launch-panel h1 { font-size: 34px; }
  .launch-controls { gap: 11px; }
  .progress-dialog { padding: 22px; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: 61px; }
  .hero-points { gap: 10px; font-size: 8px; }
  .hero-art { transform: scale(.85); margin-block: 6px -15px; }
  .platform-grid { grid-template-columns: repeat(2,1fr); }
  .game-grid { gap: 25px 12px; }
  .card-meta { display: block; font-size: 8px; }
  .card-meta span + span { display: none; }
  .card-note { font-size: 9px; }
  .features { grid-template-columns: 1fr; gap: 26px; }
  .features h3 br { display: none; }
  .features h3 { margin-block: 9px; }
  .features p { max-width: none; font-size: 13px; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 23px; }
  .section-heading > a { white-space: normal; max-width: 95px; text-align: right; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; }
  .together h2 { font-size: 35px; }
  .duo-pad { width: 178px; height: 88px; }
  .cover-large .art-title { font-size: 48px; }
  .library-empty { padding: 27px; }
  .library-empty h3 { font-size: 27px; }
  .library-empty p { font-size: 12px; }
  .empty-cassette { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}
/* Mid-size tablets need a real layout change, not a squeezed desktop illustration. */
@media (min-width: 761px) and (max-width: 950px) {
  .hero { grid-template-columns: 1fr; gap: 0; padding-block: 40px 24px; }
  .hero-art { width: 460px; max-width: 100%; margin: 24px auto 0; transform: none; }
  .hero-search { max-width: 560px; }
}
