:root {
  --paper: #f4f3ef;
  --white: #fff;
  --ink: #181a17;
  --muted: #62645f;
  --rule: #d5d6d0;
  --red: #d14331;
  --shell: min(1260px, calc(100% - 56px));
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--font); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 9px 13px; background: var(--red); color: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.site-header { position: relative; z-index: 20; background: var(--white); border-bottom: 1px solid var(--ink); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; flex: none; width: max-content; color: var(--ink); line-height: 1; white-space: nowrap; }
.brand-word { display: block; font-size: 1.27rem; font-weight: 900; letter-spacing: -.065em; }
.brand-my { margin-right: 3px; }
.brand-game { padding: 6px 5px 5px; border-radius: 1px; background: var(--red); color: var(--white); }
.brand-plaza { margin-left: 4px; }
.desktop-nav { display: flex; align-items: stretch; align-self: stretch; gap: 31px; margin-left: auto; }
.desktop-nav a { display: inline-flex; align-items: center; border-bottom: 3px solid transparent; color: #444740; font-size: .84rem; font-weight: 800; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--ink); }
.header-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 42px; padding: 0 16px; border-radius: 2px; background: var(--ink); color: var(--white); font-size: .82rem; font-weight: 900; }
.header-cta:hover { background: var(--red); }
.header-cta span { font-size: 1.15rem; }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 39px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 2px; background: var(--white); color: var(--ink); font-size: .8rem; font-weight: 900; }
.menu-toggle i, .menu-toggle i::after { display: block; width: 16px; height: 2px; background: currentColor; content: ""; transition: transform .15s; }
.menu-toggle i::after { transform: translateY(5px); }
.menu-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i::after { transform: rotate(90deg); }
.mobile-nav { position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 65px); overflow-y: auto; padding: 14px 28px 24px; background: var(--white); box-shadow: 0 15px 25px rgb(0 0 0 / .11); }
.mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: .92rem; font-weight: 850; }

h1, h2, h3, p { margin-top: 0; }
.eyebrow { display: block; color: var(--red); font-size: .68rem; font-weight: 900; letter-spacing: .14em; line-height: 1.3; text-transform: uppercase; }
.heading-dot { color: var(--red); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 335px); align-items: end; gap: 50px; padding-block: 49px 38px; border-bottom: 1px solid var(--ink); }
.hero h1 { margin: 9px 0 0; font-size: clamp(4rem, 7vw, 6.5rem); font-weight: 900; letter-spacing: -.085em; line-height: .95; }
.hero > p { max-width: 335px; margin: 0 0 6px; color: #41443e; font-size: 1.04rem; line-height: 1.42; }
.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ink); }
.collections a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; min-height: 65px; padding: 14px 18px 14px 0; border-right: 1px solid var(--rule); }
.collections a + a { padding-left: 18px; }
.collections a:last-child { border-right: 0; }
.collections a:hover strong, .collections a:hover b { color: var(--red); }
.collections span { color: var(--red); font-size: .65rem; font-weight: 900; }
.collections strong { font-size: .92rem; font-weight: 900; white-space: nowrap; }
.collections b { font-size: 1rem; font-weight: 700; }

.browse { padding-block: 38px 92px; }
.browse-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.browse-heading h2 { margin: 6px 0 0; font-size: clamp(2.2rem, 3vw, 3rem); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.browse-heading > a { flex: none; padding-bottom: 3px; border-bottom: 2px solid var(--red); font-size: .85rem; font-weight: 900; }
.browse-heading > a:hover { color: var(--red); }
.search-field { position: relative; display: block; width: min(335px,100%); }
.search-field input { width: 100%; min-height: 44px; padding: 0 42px 0 14px; border: 1px solid var(--ink); border-radius: 2px; outline: 0; background: var(--white); color: var(--ink); font-size: .9rem; }
.search-field input:focus { border: 2px solid var(--red); padding-left: 13px; }
.search-field input::placeholder { color: #72746e; }
.search-field i { position: absolute; top: 12px; right: 16px; width: 13px; height: 13px; border: 2px solid var(--ink); border-radius: 50%; pointer-events: none; }
.search-field i::after { position: absolute; right: -6px; bottom: -4px; width: 7px; height: 2px; transform: rotate(45deg); transform-origin: left; background: var(--ink); content: ""; }
.results-note { margin: 0; color: var(--muted); font-size: .8rem; }
.results-note:not(:empty) { margin: -10px 0 14px; }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 30px 17px; }
.game-card { min-width: 0; }
.card-image { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 13px; background: var(--white); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .22s; }
.game-card:hover .card-image img { transform: scale(1.035); }
.card-copy { padding: 12px 1px 0; }
.card-category { color: var(--red); font-size: .66rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.card-category:hover { text-decoration: underline; }
.card-copy h3 { margin: 4px 0 0; font-size: 1.12rem; font-weight: 900; letter-spacing: -.035em; line-height: 1.22; }
.card-copy h3 a { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.card-copy h3 a:hover { color: var(--red); }
.card-copy h3 span { margin-top: 1px; font-size: .9rem; font-weight: 700; }
.ad-slot { display: grid; place-items: center; min-height: 95px; border: 1px solid var(--rule); background: #edede8; color: #747670; }
.ad-slot span { font-size: .62rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.ad-inline { grid-column: 1 / -1; margin-block: 6px 3px; }
.ad-detail { min-height: 280px; align-self: start; }
.empty-state { margin-top: 18px; padding: 32px; border: 1px solid var(--rule); background: var(--white); }
.empty-state h3 { margin-bottom: 5px; font-size: 1.3rem; }
.empty-state p { margin-bottom: 16px; color: var(--muted); }
.empty-state button { padding: 9px 15px; border: 0; border-radius: 2px; background: var(--ink); color: var(--white); font-weight: 850; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 20px 22px; color: var(--muted); font-size: .77rem; }
.breadcrumbs a { font-weight: 800; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 800; }
.category-hero, .info-hero { padding-block: 31px 39px; border-bottom: 1px solid var(--ink); }
.category-hero h1, .info-hero h1 { margin: 12px 0 12px; font-size: clamp(3.9rem, 7vw, 6rem); font-weight: 900; letter-spacing: -.085em; line-height: .98; }
.category-hero p, .info-hero p { max-width: 620px; margin: 0; color: #454740; font-size: 1.08rem; line-height: 1.45; }
.category-page .browse { padding-top: 40px; }

.game-hero { display: grid; grid-template-columns: minmax(260px, 395px) 1fr; align-items: center; gap: clamp(40px, 7vw, 100px); padding-block: 12px 58px; }
.game-art { overflow: hidden; aspect-ratio: 1; border-radius: 15px; background: var(--white); }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-intro h1 { margin: 12px 0 17px; font-size: clamp(3.4rem, 6vw, 6rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; overflow-wrap: anywhere; }
.game-intro > p { max-width: 620px; margin-bottom: 25px; color: #44463f; font-size: clamp(1.12rem, 1.9vw, 1.34rem); line-height: 1.44; }
.play-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; min-width: 177px; min-height: 51px; padding: 0 18px; border-radius: 2px; background: var(--red); color: var(--white); font-size: .95rem; font-weight: 900; }
.play-cta:hover { background: var(--ink); }
.play-cta span { font-size: 1.25rem; }
.play-note { display: block; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.game-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(235px,300px); gap: 27px; }
.game-guide { padding: 34px 39px 37px; border-top: 3px solid var(--ink); background: var(--white); }
.game-guide h2 { margin: 9px 0 17px; font-size: clamp(2rem, 2.8vw, 2.65rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.game-guide > p { max-width: 710px; margin-bottom: 31px; color: #454740; font-size: 1.02rem; }
.guide-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 23px; border-top: 1px solid var(--rule); }
.guide-columns h3 { margin-bottom: 9px; font-size: .96rem; font-weight: 900; }
.guide-columns ul { margin: 0; padding-left: 18px; color: #454740; }
.guide-columns li + li { margin-top: 7px; }
.guide-columns p { margin-bottom: 0; color: #454740; }
.related { padding-block: 71px 92px; }
.prose { max-width: 850px; padding-block: 32px 92px; }
.prose h2 { margin: 34px 0 9px; font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #454740; }
.prose a { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.not-found { min-height: 55vh; padding-block: 75px; }
.not-found h1 { margin: 12px 0 14px; font-size: clamp(3.5rem, 8vw, 6.5rem); font-weight: 900; letter-spacing: -.08em; line-height: 1; }
.not-found p { margin-bottom: 25px; color: var(--muted); font-size: 1.05rem; }

.site-footer { background: var(--ink); color: var(--white); }
.footer-main { display: grid; grid-template-columns: minmax(260px,1.8fr) repeat(3,1fr); gap: 38px; padding-block: 53px 54px; }
.footer-brand .brand { color: var(--white); }
.footer-brand > p { max-width: 240px; margin: 18px 0 0; color: #bcbfb8; font-size: .87rem; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-group h2 { margin: 2px 0 8px; color: #adb0aa; font-size: .67rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-group a { color: #e7e9e4; font-size: .82rem; }
.footer-group a:hover { color: #ff8d7d; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 17px 22px; border-top: 1px solid #3f423d; color: #aeb1ab; font-size: .75rem; }

.player-page { min-height: 100vh; background: #0f100e; color: var(--white); }
.player-shell { min-height: 100vh; display: flex; flex-direction: column; }
.player-header { min-height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 8px 16px; background: var(--ink); }
.player-back { width: max-content; font-size: .84rem; font-weight: 800; }
.player-back:hover { color: #ff8d7d; }
.player-title { max-width: 40vw; overflow: hidden; font-size: .9rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.player-actions { display: flex; justify-content: flex-end; gap: 8px; }
.player-actions button { min-height: 36px; padding: 0 11px; border: 1px solid #777b73; border-radius: 2px; background: transparent; color: var(--white); font-size: .76rem; font-weight: 800; }
.player-actions button:hover { border-color: #ff8d7d; color: #ff8d7d; }
.player-stage { position: relative; width: 100%; min-height: calc(100vh - 88px); flex: 1; background: #090a08; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-loading { position: absolute; z-index: 2; inset: 0; display: grid; place-items: center; background: #090a08; color: #d7d9d4; font-weight: 800; }
.player-hint { margin: 0; padding: 5px 16px; background: var(--ink); color: #bcbfb8; font-size: .72rem; text-align: center; }

@media (max-width: 1100px) {
  .header-inner { gap: 24px; }
  .desktop-nav { gap: 19px; }
  .game-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1.8fr 1fr 1fr; }
  .footer-brand { grid-row: span 2; }
}

@media (max-width: 820px) {
  .desktop-nav, .header-cta { display: none; }
  .header-inner { min-height: 65px; justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .hero { grid-template-columns: 1fr; gap: 13px; padding-block: 37px 31px; }
  .hero h1 { font-size: clamp(3.6rem, 9vw, 5.8rem); }
  .hero > p { max-width: 570px; }
  .collections { grid-template-columns: repeat(2,1fr); }
  .collections a:nth-child(2) { border-right: 0; }
  .collections a:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .collections a:nth-child(3) { padding-left: 0; }
  .game-hero { grid-template-columns: minmax(225px,.82fr) 1fr; gap: 35px; }
  .game-body { grid-template-columns: minmax(0,1fr) 215px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 30px); }
  .brand-word { font-size: 1.12rem; }
  .brand-game { padding: 5px 4px 4px; }
  .hero { padding-block: 35px 27px; }
  .hero h1 { font-size: clamp(3.35rem, 11vw, 4.7rem); }
  .hero > p { font-size: .94rem; }
  .collections a { min-height: 56px; gap: 8px; padding-right: 9px; }
  .collections a + a { padding-left: 12px; }
  .collections a:nth-child(3) { padding-left: 0; }
  .collections strong { font-size: .78rem; }
  .collections b { font-size: .87rem; }
  .browse { padding-block: 34px 65px; }
  .browse-heading { display: block; margin-bottom: 18px; }
  .browse-heading h2 { font-size: 2.5rem; }
  .browse-heading > a { display: inline-block; margin-top: 13px; }
  .search-field { width: 100%; margin-top: 18px; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
  .card-image { border-radius: 10px; }
  .card-copy { padding-top: 9px; }
  .card-copy h3 { font-size: .97rem; }
  .card-copy h3 span { font-size: .76rem; }
  .ad-inline { min-height: 85px; margin-block: 4px; }
  .category-hero, .info-hero { padding-block: 27px 33px; }
  .category-hero h1, .info-hero h1 { font-size: clamp(3.25rem, 10vw, 4.8rem); overflow-wrap: anywhere; }
  .game-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 0 43px; }
  .game-art { max-width: 390px; }
  .game-intro h1 { font-size: clamp(3.15rem, 10vw, 4.8rem); }
  .game-body { grid-template-columns: 1fr; }
  .game-guide { padding: 27px 24px; }
  .ad-detail { min-height: 100px; }
  .related { padding-block: 58px 70px; }
  .footer-main { grid-template-columns: repeat(2,1fr); gap: 34px 18px; }
  .footer-brand { grid-column: 1 / -1; grid-row: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; }
  .player-header { grid-template-columns: 1fr auto; }
  .player-title, .player-back span { display: none; }
}

@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .brand-word { font-size: 1.07rem; }
  .hero h1 { font-size: 3.13rem; }
  .collections span { font-size: .57rem; }
  .collections strong { font-size: .74rem; }
  .guide-columns { grid-template-columns: 1fr; gap: 23px; }
  .player-actions button { padding-inline: 8px; font-size: .7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
