:root {
  --pcv-navy: #182B52;
  --pcv-teal: #25ACBF;
  --bg: #0E1830;
  --surface: #182B52;
  --surface-hover: #213A6B;
  --line: #2C4577;
  --text: #E8ECF6;
  --text-sub: #9FB0CF;
  --play: #FFC93C;
  --alert: #FF5A5A;
  --genre-action: #25ACBF;
  --genre-puzzle: #8C7BFF;
  --genre-board: #4FC37A;
  --genre-cards: #FF7A9A;
  --genre-variety: #FFA24C;
  --genre-original: #FFC93C;
  --pixel: "DotGothic16", "Yu Gothic", monospace;
  --body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; background: var(--bg); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--bg); color: var(--text); font: 500 15px/1.65 var(--body); }
button, input, select { font: inherit; }
a { color: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--pcv-teal); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 99; padding: 10px 16px; background: var(--play); color: var(--bg); border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 10px; }
.page-width { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.eyebrow { margin: 0 0 6px; color: var(--text-sub); font: 400 11px/1.4 var(--pixel); letter-spacing: .12em; }
.eyebrow span { color: var(--pcv-teal); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--pixel); font-weight: 400; }
h2 { margin-bottom: 0; font-size: clamp(24px, 5vw, 32px); line-height: 1.3; }

.site-header { position: sticky; top: 0; z-index: 20; min-height: 56px; background: rgba(24, 43, 82, .97); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { width: min(1120px, calc(100% - 32px)); min-height: 56px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 6px; font: 400 clamp(12px, 3.4vw, 16px)/1.1 var(--pixel); text-decoration: none; white-space: nowrap; }
.brand-mark, .footer-brand span { color: var(--pcv-teal); font-size: 1.4em; line-height: 1; }
.desktop-nav { display: none; align-items: center; gap: 24px; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.desktop-nav a:hover { color: var(--pcv-teal); }
.menu-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; }
.menu-icon { font-size: 21px; }
.mobile-nav { border-top: 1px solid var(--line); padding: 8px 16px 12px; background: var(--pcv-navy); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.mobile-nav a + a { border-top: 1px solid rgba(159, 176, 207, .18); }

.hero-section { position: relative; isolation: isolate; overflow: hidden; padding: 56px 0 40px; background: linear-gradient(135deg, #101D3B 0%, var(--bg) 70%); }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(37,172,191,.36) 1px, transparent 1px), linear-gradient(90deg, transparent, rgba(37,172,191,.04), transparent); background-size: 18px 18px, 100% 100%; mask-image: linear-gradient(to bottom, black, transparent 83%); opacity: .42; }
.hero-radiants { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-radiants span { position: absolute; left: 75%; top: 53%; width: var(--ring-size); aspect-ratio: 1.72 / 1; border: 1px solid rgba(37,172,191,var(--ring-alpha)); border-radius: 54% 46% 49% 51% / 47% 55% 45% 53%; transform: translate(-50%, -50%) rotate(var(--ring-turn)); }
.hero-radiants span:nth-child(1) { --ring-size: 180px; --ring-alpha: .34; --ring-turn: -13deg; }
.hero-radiants span:nth-child(2) { --ring-size: 280px; --ring-alpha: .24; --ring-turn: 18deg; }
.hero-radiants span:nth-child(3) { --ring-size: 390px; --ring-alpha: .17; --ring-turn: -27deg; }
.hero-radiants span:nth-child(4) { --ring-size: 520px; --ring-alpha: .12; --ring-turn: 11deg; }
.hero-radiants span:nth-child(5) { --ring-size: 670px; --ring-alpha: .08; --ring-turn: -20deg; }
.hero-grid { display: grid; gap: 30px; }
.hero-copy, .featured-card { position: relative; z-index: 1; }
.hero-copy { align-self: center; }
.hero-copy h1 { margin-bottom: 16px; font-size: clamp(28px, 8vw, 44px); line-height: 1.35; letter-spacing: .04em; }
.hero-title-line { display: block; width: max-content; max-width: 100%; white-space: nowrap; }
.hero-copy h1.is-animated .hero-character { display: inline-block; opacity: 0; animation: hero-letter .18s ease-out forwards; }
@keyframes hero-letter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-lead { margin-bottom: 18px; color: var(--text-sub); font-size: 15px; }
.hero-credit { margin: -6px 0 10px; color: rgba(159,176,207,.84); font: 400 10px/1.45 var(--pixel); letter-spacing: .04em; }.hero-credit span { color: var(--pcv-teal); }
.count-number { padding-inline: 3px; color: var(--play); font-family: var(--pixel); font-size: 1.25em; font-variant-numeric: tabular-nums; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; color: var(--pcv-teal); font-weight: 700; text-underline-offset: 4px; }
.text-link:hover { color: var(--text); }
.featured-card { padding: 12px; background: rgba(24,43,82,.9); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.18); }
.featured-label { margin: 0 4px 8px; color: var(--text-sub); font-size: 13px; font-weight: 700; }
.featured-link { display: grid; gap: 12px; color: var(--text); text-decoration: none; }
.featured-thumb { min-height: 130px; }
.featured-body { display: grid; gap: 7px; padding: 0 4px 4px; }
.featured-title { font: 400 21px/1.35 var(--pixel); }
.featured-description { color: var(--text-sub); font-size: 13px; line-height: 1.5; }
.play-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 4px; padding: 8px 16px; border-radius: 9px; background: var(--play); color: var(--bg); font-weight: 700; }
.featured-link:hover .play-button { background: #ffda68; }

.favorites-section, .games-section, .coming-section, .request-section, .howto-section { padding-top: 50px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.inline-heading { align-items: center; }
.section-arrow { color: var(--pcv-teal); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-arrow span { font-size: 22px; vertical-align: -1px; }
.result-count { margin: 0; color: var(--text-sub); font-size: 13px; white-space: nowrap; }
.favorites-list { display: flex; gap: 12px; overflow-x: auto; padding: 1px 0 10px; scrollbar-color: var(--line) transparent; }
.favorite-card { flex: 0 0 204px; display: grid; gap: 8px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: transform .18s ease, border-color .18s ease; }
.favorite-card:hover { border-color: var(--pcv-teal); transform: translateY(-2px); }
.favorite-card a { display: grid; gap: 8px; color: var(--text); text-decoration: none; }
.favorite-card .thumbnail { min-height: 96px; }
.favorite-card-title { font: 400 14px/1.4 var(--pixel); }
.favorite-card-meta { color: var(--text-sub); font-size: 12px; }
.favorite-status { min-height: 1.5em; margin: -8px 0 10px; color: var(--text-sub); font-size: 12px; }

.filter-panel { margin-bottom: 20px; padding: 12px; background: rgba(24,43,82,.62); border: 1px solid var(--line); border-radius: 14px; }
.genre-tabs { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.genre-tab { flex: 0 0 auto; min-height: 40px; padding: 6px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--text-sub); font-weight: 700; cursor: pointer; }
.genre-tab[aria-pressed="true"] { border-bottom-color: var(--pcv-teal); color: var(--pcv-teal); }
.genre-tab:hover { color: var(--text); }
.tab-count { margin-left: 3px; color: var(--text-sub); font: 400 10px/1 var(--pixel); font-variant-numeric: tabular-nums; }
.filter-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(126px, .44fr); gap: 8px; }
.search-field, .sort-field { min-height: 44px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.search-field:focus-within, .sort-field:focus-within { border-color: var(--pcv-teal); }
.search-icon { padding-left: 11px; color: var(--text-sub); font-size: 21px; }
.search-field input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-field input::placeholder { color: var(--text-sub); }
.sort-field { position: relative; }
.sort-field::after { content: "⌄"; position: absolute; right: 10px; pointer-events: none; color: var(--text-sub); }
.sort-field select { width: 100%; min-height: 42px; padding: 8px 26px 8px 10px; border: 0; outline: 0; appearance: none; background: transparent; color: var(--text); cursor: pointer; }
.sort-field option { color: var(--text); background: var(--surface); }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.game-card { position: relative; display: grid; gap: 9px; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.game-card:hover { border-color: var(--pcv-teal); transform: translateY(-2px); }
.game-card:active { background: var(--surface-hover); transform: translateY(0); }
.game-card-link { display: grid; gap: 9px; min-width: 0; color: inherit; text-decoration: none; }
.thumbnail { position: relative; isolation: isolate; display: grid; place-content: center; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: linear-gradient(135deg, color-mix(in srgb, var(--genre-color) 68%, var(--pcv-navy)), color-mix(in srgb, var(--genre-color) 28%, var(--bg))); }
.thumbnail::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .42; background-image: linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 12px 12px; }
.thumbnail-title { max-width: 90%; color: var(--text); font: 400 clamp(11px, 3vw, 17px)/1.35 var(--pixel); text-align: center; overflow-wrap: anywhere; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.thumbnail-plus { position: absolute; left: 7px; top: 4px; color: rgba(232,236,246,.68); font: 400 18px/1 var(--pixel); }
.thumbnail img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.thumbnail img.is-missing { display: none; }
.genre-action { --genre-color: var(--genre-action); }.genre-puzzle { --genre-color: var(--genre-puzzle); }.genre-board { --genre-color: var(--genre-board); }.genre-cards { --genre-color: var(--genre-cards); }.genre-variety { --genre-color: var(--genre-variety); }.genre-original { --genre-color: var(--genre-original); }
.game-card-title { overflow: hidden; margin: 0; padding-right: 40px; font: 400 14px/1.42 var(--pixel); text-overflow: ellipsis; white-space: nowrap; }
.game-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; min-width: 0; color: var(--text-sub); font-size: 11px; line-height: 1.4; }
.genre-label { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }.genre-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--genre-color); }
.playtime-label { color: var(--text-sub); }
.game-description { display: -webkit-box; overflow: hidden; margin: 0; color: var(--text-sub); font-size: 11px; line-height: 1.55; line-clamp: 2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.favorite-button { position: absolute; z-index: 4; top: 14px; right: 14px; width: 44px; min-width: 44px; min-height: 44px; display: grid; place-items: center; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(14,24,48,.8); color: var(--text-sub); cursor: pointer; }
.favorite-button:hover:not(:disabled) { border-color: #ff7a9a; color: #ff9bb2; }
.favorite-button.is-favorite { border-color: #ff7a9a; background: rgba(255,122,154,.18); color: #ff9bb2; }
.favorite-button .heart-icon { color: #ff7a9a; font-size: 25px; line-height: 1; }
.favorite-card { position: relative; }
.favorite-card .favorite-button { top: 14px; right: 14px; }
.new-badge { position: absolute; top: 15px; right: 15px; z-index: 2; padding: 3px 6px; border-radius: 4px; background: var(--alert); color: var(--bg); font: 400 10px/1.2 var(--pixel); }
.empty-state { padding: 30px 16px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-sub); text-align: center; }

.coming-list { display: grid; gap: 8px; }
.coming-card { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; padding: 14px; border: 1px solid rgba(44,69,119,.7); border-radius: 10px; background: rgba(24,43,82,.38); opacity: .74; }
.coming-card h3 { margin: 0; font-size: 14px; }.coming-card p { grid-column: 2; margin: 0; color: var(--text-sub); font-size: 12px; }.coming-card .coming-tag { grid-row: span 2; align-self: start; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--text-sub); font: 400 10px/1.2 var(--pixel); }

.request-section { margin-top: 54px; padding-bottom: 4px; text-align: center; }
.request-section h2 { margin-bottom: 12px; }
.request-section > p:not(.eyebrow):not(.request-note) { max-width: 620px; margin: 0 auto 20px; color: var(--text-sub); font-size: 14px; }
.request-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 9px; background: var(--play); color: var(--bg); font-weight: 700; text-decoration: none; }
.request-button:hover { background: #ffda68; }
.request-note { max-width: 520px; margin: 12px auto 0; color: var(--text-sub); font-size: 11px; line-height: 1.6; }

.consult-section { margin-top: 54px; padding: 38px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #16284d, var(--pcv-navy)); }
.consult-inner { display: grid; gap: 20px; align-items: center; }.consult-sign { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--pcv-teal); border-radius: 50%; color: var(--pcv-teal); font: 400 42px/1 var(--pixel); }.consult-inner h2 { font-size: clamp(22px, 5vw, 32px); }.consult-inner p:not(.eyebrow) { margin: 12px 0 0; color: var(--text-sub); font-size: 14px; }.consult-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 15px; border: 1px solid var(--pcv-teal); border-radius: 8px; color: var(--text); font-weight: 700; text-align: center; text-decoration: none; }.consult-button:hover { background: rgba(37,172,191,.12); }

.howto-grid { display: grid; gap: 10px; }.howto-grid article { min-height: 154px; padding: 18px; border-top: 2px solid var(--pcv-teal); background: var(--surface); }.howto-number { color: var(--pcv-teal); font: 400 14px/1 var(--pixel); }.howto-grid h3 { margin: 10px 0 8px; font-size: 17px; }.howto-grid p { margin: 0; color: var(--text-sub); font-size: 13px; }
.site-footer { margin-top: 50px; padding: 24px 0 max(24px, env(safe-area-inset-bottom)); background: var(--pcv-navy); }.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }.footer-inner p { margin: 0; color: var(--text-sub); font-size: 12px; }.footer-brand { margin-right: auto; }

@media (min-width: 540px) { .hero-section { padding-block: 62px 48px; }.featured-thumb { min-height: 152px; }.game-grid { gap: 14px; }.game-card { padding: 11px; }.game-card-title { font-size: 16px; }.game-description { font-size: 12px; }.howto-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .desktop-nav { display: flex; }.menu-button, .mobile-nav { display: none !important; }.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 54px; }.hero-radiants span { left: 69%; top: 51%; }.hero-copy h1 { font-size: 40px; }.featured-card { padding: 14px; }.featured-thumb { min-height: auto; aspect-ratio: 16 / 7; }.favorites-section, .games-section, .coming-section, .request-section, .howto-section { padding-top: 64px; }.filter-panel { display: grid; gap: 12px; grid-template-columns: 1fr minmax(310px, .48fr); align-items: center; }.genre-tabs { padding-bottom: 0; }.filter-controls { grid-template-columns: minmax(0, 1fr) 136px; }.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }.consult-inner { grid-template-columns: auto minmax(0, 1fr) auto; }.consult-button { min-width: 188px; }.coming-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hero-section { padding-block: 72px 58px; }.hero-copy h1 { font-size: 44px; }.game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.game-card { min-height: 318px; }.howto-grid article { min-height: 170px; }.coming-list { grid-template-columns: repeat(4, 1fr); }.coming-card { grid-template-columns: 1fr; }.coming-card p { grid-column: auto; }.coming-card .coming-tag { grid-row: auto; width: fit-content; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.hero-copy h1.is-animated .hero-character { animation: none; opacity: 1; }.game-card, .favorite-card { transition: none; }.game-card:hover, .favorite-card:hover { transform: none; } }
