@font-face { font-family: Cinzel; src: url('fonts/cinzel-latin.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }

:root { --bg: #0a0e13; --surface: #131a21; --surface-hover: #202a32; --line: #35414a; --text: #f1efe6; --muted: #b9c1c8; --accent: #dfbe73; --accent-solid: #dfbe73; }
body.rook-store { isolation: isolate; background: var(--bg); }
.world-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.world-backdrop > img { width: 100%; height: 100%; object-fit: cover; object-position: 61% 45%; }
.world-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #080d14eb 0%, #080d14b8 36%, #080d1440 73%, #080d1485 100%), linear-gradient(0deg, #080d14dd 0%, transparent 65%); }
.store-header { background: #080e16c7; border-bottom-color: #b7c8d226; backdrop-filter: blur(12px); }
.store-nav { border-top-color: #b7c8d21c; }
.rook-store .brand-word { font-family: Cinzel, serif; font-weight: 700; letter-spacing: .015em; }
.rook-store .brand-word > span { font-family: Manrope, sans-serif; letter-spacing: .035em; }
.store-search { background: #111923bd; border-color: #b7c8d24d; border-radius: 4px; }
.store-search button { background: #26323b; border-radius: 3px; }
.catalog-trigger { border-color: #b7c8d24d; border-radius: 4px; }
.catalog-menu[open] .catalog-trigger { background: #202b35; }
.mega-menu { background: #0e1722f5; border-color: #53606a; }
.rook-store .header-control { border-radius: 4px; }
.rook-store .header-control:hover { background: #26323b; }
.rook-store .cart-button { background: #26323bb8; }
.rook-store .button { border-radius: 4px; }
.rook-store .button.primary { background: #dfbe73; border-color: #dfbe73; color: #19150c; }
.rook-store .button.primary:hover { background: #f0d69d; color: #19150c; }
.rook-store .button.secondary { border-color: #c3ad7b9c; background: #0a1219b0; color: #eee9dc; }
.rook-store .button.secondary:hover { border-color: var(--accent); background: #27303b; }
.rook-store .preview-notice { border: 0; border-left: 1px solid #bba064; border-radius: 0; background: #0a121ce8; color: #d6cbb1; }

/* Rook stands in the chosen game world, outside any framed hero card. */
.rook-hero { grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); gap: 22px 50px; padding-block: 46px 28px; }
.rook-store .hero-copy h1 { font-family: Cinzel, serif; font-size: clamp(56px, 5.3vw, 78px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; color: #f6f1e6; margin-bottom: 24px; text-shadow: 0 3px 24px #0009; }
.hero-copy h1 span { color: #e4c17b; }
.rook-store .hero-copy > p { color: #d4d8dc; max-width: 40ch; font-size: 16px; line-height: 1.85; margin-bottom: 25px; }
.rook-stage { min-height: 485px; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; position: relative; }
.rook-hero-art { width: 490px; height: 480px; max-width: 110%; object-fit: contain; object-position: center; filter: drop-shadow(0 16px 25px #0009); }
.rook-invitation { position: absolute; bottom: -7px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 8px; color: #d9d8cf; font-size: 12px; }
.rook-invitation .icon { width: 14px; height: 14px; color: var(--accent); }
.world-offers { margin-top: 30px; padding-top: 22px; border-top: 1px solid #c0c6ca40; max-width: 410px; }
.world-offer h2 { margin: 0 0 6px; font-size: 23px; line-height: 1.4; letter-spacing: -.02em; }
.world-offer p { font-size: 12px; color: #bac6d0; margin: 0 0 8px; }
.world-offer a { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--accent); font-size: 13px; }
.world-offer .icon { width: 15px; height: 15px; }
.world-selector { grid-column: 1 / -1; display: grid; grid-template-columns: 180px repeat(3,minmax(0,1fr)); gap: 20px; align-items: center; margin-top: 22px; padding-block: 24px 8px; border-top: 1px solid #c0c6ca33; }
.world-selector h2 { font-family: Cinzel, serif; font-size: 20px; line-height: 1.5; letter-spacing: 0; }
.world-selector > button { display: flex; align-items: center; gap: 13px; min-height: 80px; min-width: 0; padding: 9px; border: 1px solid #aebcc34d; border-radius: 4px; background: #0a121bd1; color: #e6e9e8; text-align: left; transition: background 180ms, border-color 180ms; }
.world-selector > button[aria-pressed=true] { background: #28323bde; border-color: #dfbe73; }
.world-selector > button:hover { border-color: #dfbe73; }
.world-selector > button[aria-busy=true] { opacity: .65; }
.world-selector img { width: 78px; height: 56px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.world-selector button > span { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.world-selector strong { font-size: 13px; line-height: 1.4; font-weight: 600; }
.world-selector small { font-size: 10px; color: #b7c4cc; line-height: 1.5; }
.world-selector .icon { width: 15px; height: 15px; color: var(--accent); }

/* The first pick is a wide scene; the rest retain their complete game covers. */
.rook-store .home-collections { padding-top: 23px; }
.collection-heading h2, .rook-store .section-head h2 { font-family: Cinzel, serif; letter-spacing: 0; }
.genre-links { border-color: #afbbc336; background: #080f18c2; }
.genre-links a + a { border-color: #afbbc32b; }
.genre-links a:hover { background: #23303b; }
.rook-store .home-games { padding-top: 20px; }
.rook-store .game-card-featured { grid-column: span 2; }
.rook-store .game-card-featured .game-art, .rook-store .game-card-featured .game-art > a img { aspect-ratio: 7 / 5; }
.rook-store .game-art { border-radius: 5px 5px 0 0; }
.rook-store .cover-caption { min-height: 152px; padding: 14px; border: 1px solid #8c9ba323; border-top: 0; border-radius: 0 0 5px 5px; background: #0a111bed; }
.rook-store .cover-caption h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.rook-store .cover-meta, .rook-store .card-region { color: #b9c6d0; }
.rook-store .cover-meta span:last-child { color: #d2d9df; }
.rook-store .save-button { border-color: #a9b9c36b; border-radius: 4px; background: #0b131edb; }
.rook-store .save-button:hover, .rook-store .save-button[aria-pressed=true] { color: #f0ce88; background: #2d3944; border-color: #dfbe73; }
.card-add { border-radius: 4px; background: #202e3a; border-color: #7c8d9d69; }
.rook-store .world-feature { border-radius: 5px; min-height: 290px; }
.world-feature::after { background: linear-gradient(transparent 12%, #060e18f5); }
.world-feature strong { font-family: Cinzel, serif; letter-spacing: 0; }
.rook-store .rook-guide { background: #0b1420e8; border-block: 1px solid #a5b9c64d; border-radius: 0; }
.rook-store .rook-guide h2 { font-family: Cinzel, serif; letter-spacing: 0; }
.rook-store .site-footer { background: #080f18e8; }
.rook-store .footer-top { border-color: #a5b9c64d; }
.rook-store .footer-top h2 { color: #e5e6df; }
.filter-disclosure { background: #0b1420ef; border-color: #a5b9c647; }
.rook-store .field input, .rook-store .field select, .rook-store .field textarea, .rook-store .results-toolbar select { background: #172330; border-color: #586b7a; }
.filter-rook-note, .profile-tabs { border-color: #7b93a64d; }
.rook-store .purchase-panel, .rook-store .checkout-panel, .rook-store .account-section, .rook-store .account-sidebar, .rook-store .activation-guide, .rook-store .order-panel { background: #101b28f2; border-color: #52667a70; }
.rook-store .profile-banner, .profile-saved { background: #132132ed; border-color: #52667a70; }
.rook-store .auth-panel, .rook-store .cart-drawer, .rook-store .contact-panel { background: #101b28; }
.rook-store .profile-banner .avatar { background: #293746; color: var(--accent); border-color: #8195a5; }
.rook-store .activation-guide p > span { background: #314456; color: #f1d69c; }
.rook-store .pagination a { background: #243447; }
.rook-store .active-filters a { border-color: #8198ab85; background: #0b1420ed; color: #dde4e8; }

@media (max-width: 1199px) {
  .rook-hero { gap: 22px 28px; }
  .rook-store .hero-copy h1 { font-size: 63px; }
  .rook-stage { min-height: 460px; }
  .rook-hero-art { width: 440px; height: 450px; }
  .world-selector { grid-template-columns: 145px repeat(3,minmax(0,1fr)); gap: 14px; }
  .world-selector img { width: 63px; height: 52px; }
  .world-selector strong { font-size: 12px; }
  .world-selector small { font-size: 9px; }
  .world-selector button { gap: 10px; }
}
@media (max-width: 899px) {
  .rook-store .hero-copy h1 { font-size: 54px; }
  .rook-store .hero-copy > p { font-size: 15px; }
  .rook-stage { min-height: 430px; }
  .rook-hero-art { width: 390px; height: 420px; }
  .world-selector { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .world-selector h2 { grid-column: 1 / -1; margin: 0 0 2px; font-size: 20px; }
  .world-selector small { display: none; }
  .world-selector strong { font-size: 12px; }
  .world-selector > button { gap: 9px; padding: 8px; min-height: 72px; }
  .world-selector img { width: 58px; height: 49px; }
  .world-selector .icon { display: none; }
  .rook-store .game-card-featured { grid-column: span 2; }
}
@media (max-width: 767px) {
  .world-backdrop > img { object-position: 59% 28%; }
  .world-backdrop::after { background: linear-gradient(90deg, #080d14e6 0%, #080d1480 70%, #080d146b), linear-gradient(0deg, #080d14c9, transparent 80%); }
  .rook-hero { display: block; position: relative; padding-top: 35px; padding-bottom: 20px; }
  .rook-store .hero-copy h1 { font-size: clamp(42px, 10.8vw, 62px); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 20px; }
  .rook-store .hero-copy > p { width: calc(100% - 174px); min-width: 150px; font-size: 14px; line-height: 1.8; margin-bottom: 22px; }
  .hero-actions { flex-direction: column; align-items: flex-start; width: 167px; gap: 10px; }
  .hero-actions .button { width: 100%; justify-content: center; padding-inline: 10px; min-height: 45px; font-size: 12px; }
  .rook-stage { position: absolute; inset: 176px -10px auto auto; width: 202px; height: 345px; min-height: 0; }
  .rook-hero-art { width: 202px; height: 320px; max-width: none; object-position: center; }
  .rook-invitation { bottom: -5px; font-size: 10px; line-height: 1.5; gap: 4px; text-align: center; }
  .rook-invitation .icon { width: 12px; }
  .world-offers { width: 192px; margin-top: 26px; padding-top: 19px; }
  .world-offer h2 { font-size: 20px; }
  .world-offer p { font-size: 11px; line-height: 1.7; }
  .world-offer a { font-size: 12px; }
  .world-selector { gap: 10px; padding-top: 22px; margin-top: 25px; }
  .world-selector h2 { font-size: 20px; margin-bottom: 7px; }
  .world-selector > button { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 6px; min-height: 115px; text-align: left; }
  .world-selector img { width: 100%; height: 51px; border-radius: 1px; }
  .world-selector button > span { flex: 1; justify-content: center; }
  .world-selector strong { font-size: 11px; line-height: 1.5; }
  .rook-store .home-collections { padding-block: 15px 25px; }
  .rook-store .cover-caption { padding: 11px 10px; min-height: 157px; }
  .rook-store .cover-caption h3 { font-size: 14px; min-height: 42px; }
  .rook-store .cover-meta { font-size: 11px; }
  .rook-store .card-region { font-size: 11px; }
  .rook-store .estimate { font-size: 11px; }
  .rook-store .cover-price strong { font-size: 20px; }
  .rook-store .game-card-featured .cover-caption { min-height: 150px; }
  .rook-store .game-card-featured .cover-caption h3 { font-size: 18px; min-height: 28px; }
  .rook-store .world-feature { min-height: 240px; }
  .mobile-bottom-nav { background: #0b1523e8; border-color: #71869b66; backdrop-filter: blur(10px); }
  .rook-store .mobile-bottom-nav > a, .rook-store .mobile-bottom-nav > button { color: #b9c9d5; }
  .rook-store .mobile-bottom-nav > a[aria-current=page] { color: var(--accent); }
  .mobile-cart-count[data-empty] { display: none; }
  .rook-store .toast { background: #ead293; }
}
@media (max-width: 359px) {
  .rook-store .hero-copy h1 { font-size: 39px; }
  .rook-store .hero-copy > p { width: 139px; min-width: 0; font-size: 13px; }
  .hero-actions { width: 148px; }
  .hero-actions .button { font-size: 11px; padding-inline: 6px; }
  .rook-stage { top: 176px; right: -8px; width: 151px; height: 303px; }
  .rook-hero-art { width: 158px; height: 280px; }
  .rook-invitation { font-size: 9px; bottom: -10px; }
  .world-offers { width: 150px; }
  .world-offer h2 { font-size: 18px; }
  .world-selector strong { font-size: 10px; }
  .rook-store .cover-caption h3 { font-size: 13px; min-height: 40px; }
  .rook-store .cover-price strong { font-size: 18px; }
  .rook-store .brand-word > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
}

/* Authored animation cels keep the character itself outside CSS transforms. */
.rook-hero-art { position: relative; display: block; }
.rook-poster, #rook-animation { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.rook-poster[hidden], #rook-animation[hidden], .rook-motion-toggle[hidden] { display: none; }
.rook-motion-toggle { min-height: 44px; padding: 6px 0; color: var(--muted); font: inherit; font-size: 12px; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.rook-motion-toggle:hover { color: var(--accent); }
@media (max-width: 767px) {
  .world-selector-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .world-selector-heading h2 { margin: 0; }
  .rook-motion-toggle { flex-shrink: 0; }
}
