:root {
  color-scheme: light;
  --paper: #f8f7f2;
  --white: #fff;
  --ink: #191820;
  --quiet: #595663;
  --line: #dfddd7;
  --yellow: #ffcf48;
  --yellow-hover: #ffdf77;
  --purple: #5e3ec2;
  --radius: 17px;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.shell { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 3; top: 12px; left: 12px; background: var(--yellow); padding: 9px 14px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 34px; min-height: 76px; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  font-size: 27px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.065em;
}
.brand-icon { margin-right: 9px; color: var(--yellow); filter: drop-shadow(1px 1px 0 var(--ink)); }
.brand-period { color: var(--purple); }
.site-nav { display: flex; align-items: center; gap: 23px; font-size: 14px; font-weight: 700; }
.site-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; color: var(--quiet); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav .nav-active { color: var(--ink); }
.site-nav .nav-active { box-shadow: inset 0 -2px var(--yellow); }
.site-search {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  width: min(275px, 30vw);
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--quiet);
}
.site-search:focus-within { border-color: var(--purple); }
.site-search input { width: 100%; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--ink); outline: none; }
.site-search kbd { display: grid; place-items: center; width: 21px; height: 21px; flex: none; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-size: 12px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 415px;
  margin: 29px 0 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #211b28;
  background: var(--hero-ink);
  color: white;
}
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; height: 100%; width: 73%; object-fit: cover; object-position: center 53%; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--hero-ink) 14%, var(--hero-ink) 25%, color-mix(in srgb, var(--hero-ink) 85%, transparent) 37%, color-mix(in srgb, var(--hero-ink) 26%, transparent) 57%, transparent 77%); }
.hero-content { width: min(490px, 60%); padding: 38px 48px; }
.hero-label { display: inline-flex; align-items: center; gap: 7px; color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-title { max-width: 450px; margin: 13px 0 15px; font-size: clamp(54px, 7vw, 88px); font-weight: 900; line-height: .91; letter-spacing: -.075em; overflow-wrap: anywhere; }
.hero-description { max-width: 300px; margin-bottom: 25px; color: #f1e9f3; font-size: 16px; line-height: 1.6; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 45px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 770;
  font-size: 14px;
  text-decoration: none;
}
.button.primary { color: var(--ink); background: var(--yellow); }
.button.primary:hover { background: var(--yellow-hover); }
.hero .button { min-height: 49px; padding-inline: 19px; }
.hero :focus-visible, .player-screen :focus-visible { outline-color: #fff; }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button.secondary:hover { border-color: var(--ink); }

.catalog { margin-block: 43px 54px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.section-heading :is(h1, h2) { font-size: clamp(28px, 4.3vw, 42px); font-weight: 850; letter-spacing: -.065em; line-height: 1.12; }
.section-heading :is(h1, h2) span, .play-heading h1 span { color: var(--purple); }
.section-heading p { flex-shrink: 0; color: var(--quiet); font-size: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 19px; }
.filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 680;
}
.filter:hover { border-color: var(--quiet); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.favorite-filter { margin-left: auto; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.game-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, transform .2s;
  min-width: 0;
}
.game-card:has(.card-link:hover) { border-color: #928b9f; transform: translateY(-3px); }
.card-link { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.card-art { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; background: #292130; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-play { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); }
.card-body { padding: 14px 16px 16px; }
.card-body :is(h2, h3) { font-size: 23px; letter-spacing: -.045em; font-weight: 820; line-height: 1.2; }
.card-body > p:last-child { margin-top: 5px; color: var(--quiet); font-size: 14px; }
.card-category { margin-bottom: 4px; color: var(--purple); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.favorite-button { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; padding: 0; border: 1px solid #fff5; border-radius: 9px; background: color-mix(in srgb, var(--hero-ink) 87%, transparent); color: white; }
.favorite-button:hover { background: var(--ink); }
[data-favorite][aria-pressed="true"] svg { fill: currentColor; }
.favorite-button[aria-pressed="true"] { background: #fff; color: var(--purple); }
.empty-state { display: grid; justify-items: center; gap: 12px; padding: 36px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--quiet); text-align: center; }

.play-page, .text-page { margin-block: 31px 56px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: var(--quiet); font-size: 14px; font-weight: 720; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.play-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 17px 0 20px; }
.play-heading h1, .text-page h1 { font-size: clamp(37px, 6vw, 66px); letter-spacing: -.067em; font-weight: 880; line-height: 1.02; }
.play-heading .button { flex: none; }
.player { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; }
.player-screen { position: relative; display: grid; place-items: stretch; aspect-ratio: var(--player-ratio); max-height: 72dvh; min-height: 265px; background: var(--hero-ink); }
.player-screen iframe { width: 100%; height: 100%; border: 0; }
.player-poster { position: relative; isolation: isolate; display: grid; place-content: center; justify-items: center; gap: 12px; overflow: hidden; }
.player-poster img { position: absolute; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.player-poster::after { position: absolute; z-index: -1; inset: 0; content: ""; background: color-mix(in srgb, var(--hero-ink) 37%, transparent); }
.player-poster .button { min-height: 53px; padding-inline: 21px; font-size: 16px; }
.player-poster noscript { color: white; text-align: center; }
.player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; }
.player-toolbar p { display: flex; align-items: center; gap: 8px; color: var(--quiet); font-size: 13px; }
.player:fullscreen { display: flex; flex-direction: column; border: 0; border-radius: 0; }
.player:fullscreen .player-screen { flex: 1; max-height: none; min-height: 0; aspect-ratio: auto; }
.player-source, .player-status { margin-top: 12px; font-size: 14px; color: var(--quiet); }
.player-source a, .text-page p a { color: var(--purple); font-weight: 650; }

.game-notes { display: grid; grid-template-columns: 1.35fr 1fr; gap: 17px; margin-block: 26px 40px; }
.game-notes section { padding: 19px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.game-notes h2, .text-page h2 { margin-bottom: 6px; font-size: 23px; letter-spacing: -.035em; }
.game-notes p, .text-page p { color: var(--quiet); }
.text-page { max-width: 680px; }
.text-page h2 { margin-top: 26px; }
.text-page > .button { margin-top: 20px; }
.ad-slot { width: 100%; min-height: 112px; margin: 40px auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.ad-slot p { color: var(--quiet); text-align: center; font-size: 12px; }
.ad-slot:has(ins[data-ad-status="unfilled"]) { display: none; }

.site-footer { border-top: 1px solid var(--line); color: var(--quiet); }
.footer-inner { display: flex; align-items: center; gap: 19px; min-height: 83px; font-size: 13px; }
.site-footer .brand { font-size: 21px; color: var(--ink); }
.site-footer .brand-icon svg { width: 23px; height: 23px; }
.site-footer a:last-child { margin-left: auto; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 44px); }
  .header-inner { gap: 20px; }
  .site-nav { gap: 15px; }
  .hero-content { padding-inline: 32px; }
  .card-grid { gap: 12px; }
  .card-body { padding-inline: 12px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 68px; gap: 10px 14px; flex-wrap: wrap; padding-block: 11px; }
  .brand { font-size: 23px; }
  .brand-icon { margin-right: 6px; }
  .brand-icon svg { width: 25px; height: 25px; }
  .site-nav { margin-left: auto; }
  .site-nav a { padding-block: 7px; }
  .site-search { width: 100%; }
  .site-search kbd { display: none; }
  .hero { min-height: 385px; align-items: flex-end; margin-top: 14px; border-radius: 16px; }
  .hero-art { width: 100%; height: 81%; object-position: 56% 34%; }
  .hero::after { background: linear-gradient(0deg, var(--hero-ink) 8%, color-mix(in srgb, var(--hero-ink) 96%, transparent) 25%, color-mix(in srgb, var(--hero-ink) 67%, transparent) 46%, color-mix(in srgb, var(--hero-ink) 15%, transparent) 68%, transparent); }
  .hero-content { width: 100%; padding: 21px 23px; }
  .hero-title { font-size: clamp(43px, 12vw, 63px); margin-block: 6px 9px; }
  .hero-description { margin-bottom: 15px; font-size: 14px; }
  .catalog { margin-block: 30px 37px; }
  .favorite-filter { margin-left: 0; }
  .card-grid, .game-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-page, .text-page { margin-block: 21px 38px; }
  .player-screen { min-height: 250px; }
}
@media (max-width: 440px) {
  .card-grid, .game-notes { grid-template-columns: 1fr; }
  .site-nav { gap: 10px; font-size: 13px; }
  .play-heading { align-items: flex-start; }
  .footer-inner { flex-wrap: wrap; padding-block: 15px; gap: 8px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

:root { --hero-ink: #1d1723; }
.hero-art { object-position: center bottom; }
.header-inner .brand { white-space: nowrap; }
.footer-inner .footer-links { margin-left: auto; display: flex; gap: 14px; }
.footer-inner .footer-links a { margin: 0; }
.catalog-faq { margin: 0 0 45px; max-width: 740px; }
.catalog-faq h2 { margin-bottom: 10px; font-size: 23px; letter-spacing: -.04em; }
.catalog-faq details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.catalog-faq summary { cursor: pointer; font-weight: 700; }
.catalog-faq p { margin-top: 7px; color: var(--quiet); }

.player-screen { max-height: none; }
.player-screen.player-portrait { max-width: 440px; margin-inline: auto; }
.player-loading { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; gap: 13px; color: var(--white); font-weight: 700; text-align: center; padding: 12px; }
.player-screen[data-gf-state="loading"] .player-loading { display: grid; }
.loading-spinner { width: 29px; height: 29px; border: 3px solid color-mix(in srgb,var(--white) 30%, transparent); border-top-color: var(--yellow); border-radius: 50%; animation: loading .7s linear infinite; }
@keyframes loading { to { transform: rotate(360deg); } }
.player-toolbar { flex-wrap: wrap; }
.player-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.player-status:empty, [data-gf-comment-msg]:empty, [data-gf-reply-to]:empty { display: none; }
.player-status { flex-basis: 100%; margin-top: 0; }
[data-gf-liked] svg { fill: currentColor; }
.player-screen:fullscreen { width: 100%; max-width: none; height: 100%; border-radius: 0; }
.player-screen:fullscreen iframe { height: 100%; max-width: none; }
.game-notes { align-items: start; }
.game-guide, .discussion { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.game-guide p + h2, .game-guide ul + h2 { margin-top: 24px; }
.game-guide li { color: var(--quiet); margin-bottom: 6px; }
.discussion label { display: block; margin-top: 8px; font-weight: 690; font-size: 14px; }
.discussion input, .discussion textarea { display: block; width: 100%; margin: 4px 0 12px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; }
.discussion textarea { resize: vertical; min-height: 78px; }
[data-gf-comments][data-gf-empty]::after { content: "No comments yet."; font-size: 14px; display: block; margin-top: 12px; color: var(--quiet); }
.comment { border-top: 1px solid var(--line); padding-block: 8px; overflow-wrap: anywhere; }
.comment time { font-size: 13px; color: var(--quiet); }
.text-page h1 { margin-bottom: 23px; }
.text-page p + p { margin-top: 12px; }
@media (max-width: 640px) {
  .game-notes { grid-template-columns: 1fr; }
  .player-toolbar { align-items: flex-start; }
  .player-actions .button { padding-inline: 8px; }
  .player-screen { min-height: 0; }
  .player-screen.player-portrait { max-width: min(100%, 420px); }
}
@media (prefers-reduced-motion: reduce) { .loading-spinner { animation: none; } }


.home-notes { max-width: 68ch; margin-block: 64px; }
.home-notes h2 { font-size: clamp(23px, 3.2vw, 30px); line-height: 1.25; letter-spacing: -.035em; margin-bottom: 10px; }
.home-notes > * + h2 { margin-top: 32px; }
.home-notes h3 { margin: 20px 0 6px; font-size: 16px; }
.home-notes p { margin-bottom: 12px; color: var(--quiet); font-size: 17px; line-height: 1.7; }
.home-notes a { color: var(--purple); text-underline-offset: .14em; }
@media (max-width: 640px) { .home-notes { margin-block: 42px; } }
