:root {
  color-scheme: dark;
  --cream: #fff4d8;
  --pale-blue: #d7e8ff;
  --muted-blue: #aac9f5;
  --cyan: #6ef1f2;
  --electric-cyan: #00cbe7;
  --gold: #ffc447;
  --card-blue: rgba(9, 23, 55, .97);
  --panel-blue: #0a1837;
  --content-width: 1376px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; scroll-padding-top: 24px; background: #0d1730; }
body { min-width: 320px; margin: 0; color: var(--cream); background: transparent; line-height: 1.5; isolation: isolate; }
.account-bar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px 18px; width: min(calc(100% - 64px), var(--content-width)); min-height: 42px; margin-inline: auto; padding-top: 10px; color: var(--pale-blue); font-size: 12px; font-weight: 700; }
.account-status { color: var(--pale-blue); }
.account-status strong { color: var(--cream); }
.account-bar a { color: var(--pale-blue); text-decoration: none; }
.account-bar a:hover { color: var(--cyan); }
body::before { position: fixed; z-index: -2; inset: 0; content: ""; background: #0d1730 url('/arcade/assets/images/arcade-backdrop.jpg') center center / cover no-repeat; }
body::after { position: fixed; z-index: -1; inset: 0; pointer-events: none; content: ""; background: rgba(0, 0, 0, .35); }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

main { width: min(calc(100% - 64px), var(--content-width)); margin-inline: auto; }
.intro { padding: 36px 0 31px; text-align: center; }
.intro-copy { max-width: 920px; margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--gold); font-size: 13px; line-height: 1.3; letter-spacing: .17em; font-weight: 750; }
h1 { margin: 0; color: var(--cream); font-size: clamp(56px, 5.3vw, 86px); line-height: .99; letter-spacing: -.065em; font-weight: 750; text-shadow: 0 2px 8px rgba(7, 20, 54, .35); }
h1 span { color: #ff8a00; }
.intro-text { margin: 13px 0 0; color: var(--pale-blue); font-size: 17px; line-height: 1.5; text-shadow: 0 1px 7px rgba(7, 20, 54, .45); }
.background-view-button { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 5px 10px; border: 1px solid rgba(255, 196, 71, .58); border-radius: 999px; background: rgba(7, 24, 57, .7); color: var(--pale-blue); font-size: 12px; line-height: 1.25; font-weight: 650; cursor: pointer; transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
.background-view-button:hover { border-color: var(--gold); background: rgba(7, 24, 57, .88); color: var(--cream); }
.background-view-icon { color: var(--gold); font-size: 15px; line-height: 1; }

.catalogue { padding: 0 0 56px; }
.catalogue-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-kicker { margin: 0 0 5px; color: var(--gold); font-size: 11px; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; font-weight: 750; }
h2 { margin: 0; }
.catalogue-heading h2 { color: var(--cream); font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; letter-spacing: -.04em; font-weight: 700; text-shadow: 0 1px 6px rgba(8, 22, 56, .42); }
.catalogue-count { margin: 0 0 3px; color: var(--pale-blue); font-size: 13px; text-shadow: 0 1px 5px rgba(8, 22, 56, .48); }
.game-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.game-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 4px solid #ff8a00; border-radius: 10px; background: var(--card-blue); box-shadow: 0 7px 24px rgba(3, 15, 48, .24); transition: border-color .16s ease, transform .16s ease; }
.game-card:hover { transform: translateY(-3px); border-color: #fff; }
.cover-wrap { position: relative; flex: 0 0 auto; overflow: hidden; aspect-ratio: 1; background: #10275a; }
.cover-art { display: block; width: 100%; height: 100%; object-fit: cover; }
.status-sticker { position: absolute; top: 14px; left: -1px; max-width: calc(100% - 22px); padding: 6px 10px 6px 12px; border: 1px solid rgba(255, 255, 255, .22); border-left: 0; border-radius: 0 4px 4px 0; color: #fff; font-size: 11px; line-height: 1.25; letter-spacing: .015em; font-weight: 750; box-shadow: 0 3px 8px rgba(3, 13, 37, .24); }
.status-play-now { background: #247b4c; }
.status-work-in-progress { background: #87570f; }
.status-work-soon { background: #176b9a; }
.status-coming-soon { background: #65418d; }
.status-closed-for-repairs { background: #a33c49; }
.status-planned { background: #4b5d83; }
.device-badges { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.device-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(7, 18, 43, .86); color: var(--pale-blue); font-size: 11px; line-height: 1.2; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.card-body { display: flex; min-height: 204px; flex: 1; flex-direction: column; padding: 17px 18px 16px; background: var(--panel-blue); }
.card-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.card-heading h3 { min-width: 0; margin: 0; color: #ff8a00; font-size: 32px; line-height: 1.12; letter-spacing: .01em; overflow-wrap: anywhere; font-weight: 750; }
.card-description { min-height: 48px; margin: 12px 0 12px; color: var(--pale-blue); font-size: 15px; line-height: 1.55; }
.card-meta { margin: auto -18px -16px; padding: 12px 18px 14px; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); }
.inspired-line { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; color: var(--gold); font-size: 14px; line-height: 1.45; }
.inspired-line span { color: var(--muted-blue); }
.card-action { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--cyan); text-decoration: none; font-size: 14px; line-height: 1.35; font-weight: 750; cursor: pointer; }
.card-play-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.card-action span { color: var(--gold); }
.card-action--play { color: #83f0bd; }
.load-error { padding: 18px; border: 1px solid rgba(244, 133, 127, .65); border-radius: 6px; color: #ffe0dc; background: rgba(90, 37, 43, .72); }
.collection-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.collection-filter { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(255, 196, 71, .42); border-radius: 999px; background: rgba(7, 24, 57, .8); color: var(--pale-blue); font-size: 12px; font-weight: 700; cursor: pointer; transition: color .16s ease, background-color .16s ease, border-color .16s ease, transform .16s ease; }
.collection-filter:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--cream); }
.collection-filter.is-active { border-color: var(--gold); background: rgba(255, 138, 0, .2); color: #ffd16b; box-shadow: inset 0 0 0 1px rgba(255, 196, 71, .16); }
.collection-filter span { color: inherit; opacity: .78; font-size: 11px; font-variant-numeric: tabular-nums; }
.catalogue-empty { margin: 0; padding: 20px; border: 1px solid rgba(255, 196, 71, .35); border-radius: 8px; background: rgba(7, 24, 57, .76); color: var(--pale-blue); text-align: center; }
.public-introduction { width: min(100%, 980px); margin: 0 auto 58px; padding: clamp(25px, 4vw, 48px); border: 1px solid rgba(255, 196, 71, .58); border-radius: 12px; background: linear-gradient(145deg, rgba(9, 23, 55, .94), rgba(7, 17, 41, .9)); box-shadow: 0 18px 48px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 244, 216, .08); }
.public-introduction__heading { margin-bottom: 26px; text-align: center; }
.public-introduction__heading h2 { color: var(--cream); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.045em; text-shadow: 0 2px 10px rgba(0, 0, 0, .32); }
.public-introduction__lead { margin: 10px 0 0; color: var(--gold); font-size: 18px; font-style: italic; }
.public-introduction__copy { max-width: 820px; margin-inline: auto; color: var(--pale-blue); font-size: 16px; line-height: 1.75; }
.public-introduction__copy p { margin: 0 0 15px; }
.public-introduction__copy p:last-child { margin-bottom: 0; }
.public-introduction__signoff { margin: 27px 0 0; color: var(--cream); font-size: 16px; text-align: center; }
.public-introduction__signoff strong { color: #ffd16b; }
.public-introduction__note { margin: 13px 0 0; color: var(--muted-blue); font-size: 12px; text-align: center; }
.approval-notice { max-width: 820px; margin: 0 auto 25px; padding: 17px 20px; border: 1px solid rgba(110, 241, 242, .56); border-left: 4px solid var(--cyan); border-radius: 7px; background: rgba(12, 54, 78, .58); }
.approval-notice h3 { margin: 0 0 4px; color: var(--cream); font-size: 18px; }
.approval-notice p { margin: 0; color: var(--pale-blue); font-size: 14px; }
.public-introduction__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.intro-account-action { display: inline-flex; justify-content: center; align-items: center; min-width: 112px; min-height: 40px; padding: 8px 16px; border: 1px solid rgba(255, 196, 71, .7); border-radius: 5px; background: rgba(7, 24, 57, .72); color: var(--cream); font-size: 14px; font-weight: 750; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, transform .16s ease; }
.intro-account-action:hover { transform: translateY(-1px); border-color: var(--gold); background: rgba(255, 138, 0, .2); }
.intro-account-action--primary { border-color: #ff8a00; background: #b95c08; color: white; }
.intro-account-action--primary:hover { background: #d66d0a; }

.site-footer { width: 100%; background: rgba(0, 0, 0, .20); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(calc(100% - 64px), var(--content-width)); min-height: 78px; margin-inline: auto; color: var(--pale-blue); }
.footer-brand { color: var(--cream); font-size: 14px; font-weight: 750; text-decoration: none; }
.site-footer p { margin: 0; font-size: 13px; }
.footer-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; }
.footer-nav a { color: var(--pale-blue); text-decoration: none; }
.footer-nav a:hover { color: var(--cyan); }
.footer-nav span { padding-left: 4px; color: var(--gold); }

.game-dialog { width: min(570px, calc(100% - 32px)); max-width: none; padding: 0; overflow: hidden; border: 2px solid var(--electric-cyan); border-radius: 12px; background: var(--panel-blue); color: var(--cream); box-shadow: 0 20px 65px rgba(0, 0, 0, .4); }
.game-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.dialog-art { height: 150px; background: #123e91 var(--dialog-art) center 48% / cover no-repeat; }
.dialog-content { position: relative; padding: 23px 26px 25px; }
.dialog-close { position: absolute; top: -136px; right: 13px; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 244, 216, .75); border-radius: 50%; background: rgba(9, 30, 83, .84); color: var(--cream); font-size: 23px; line-height: 1; cursor: pointer; }
.dialog-kicker { margin: 0 0 7px; color: var(--gold); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 750; }
.dialog-content h2 { padding-right: 38px; color: var(--cream); font-size: 29px; letter-spacing: -.04em; }
.dialog-description { margin: 11px 0 13px; color: var(--pale-blue); font-size: 15px; line-height: 1.6; }
.dialog-credit { margin: 0 0 16px; color: var(--muted-blue); font-size: 14px; }
.dialog-status { display: inline-flex; margin: 0; padding: 6px 9px; border-radius: 3px; color: #fff; font-size: 11px; font-weight: 750; }
.dialog-done { display: block; min-width: 90px; margin-top: 19px; padding: 9px 13px; border: 1px solid var(--electric-cyan); border-radius: 4px; background: #123e91; color: var(--cream); font-size: 14px; cursor: pointer; }
.background-dialog { width: min(1400px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 14px; overflow: auto; border: 2px solid rgba(255, 196, 71, .8); border-radius: 12px; background: #08152d; color: var(--cream); box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.background-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.background-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.background-dialog__header h2 { color: var(--cream); font-size: 16px; line-height: 1.3; font-weight: 700; }
.background-dialog__close { display: grid; flex: 0 0 auto; width: 36px; height: 36px; place-items: center; border: 1px solid rgba(255, 244, 216, .5); border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--cream); font-size: 24px; line-height: 1; cursor: pointer; }
.background-dialog img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 112px); margin-inline: auto; object-fit: contain; border-radius: 5px; }

@media (max-width: 1100px) {
  main { width: min(calc(100% - 48px), var(--content-width)); }
  .account-bar { width: min(calc(100% - 48px), var(--content-width)); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
  .footer-inner { width: min(calc(100% - 48px), var(--content-width)); }
}
@media (max-width: 760px) {
  body::before { position: absolute; inset: 0 0 auto; height: 660px; background-position: 50% center; background-size: auto 100%; }
  .intro { padding: 48px 0 28px; }
  h1 { font-size: clamp(49px, 8.5vw, 68px); }
  .intro-text { font-size: 16px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card-body { min-height: 220px; padding: 15px; }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .catalogue-heading { align-items: flex-start; }
  .footer-inner { min-height: 82px; }
}
@media (max-width: 520px) {
  main, .footer-inner { width: min(calc(100% - 34px), var(--content-width)); }
  .intro { padding: 42px 0 28px; }
  .eyebrow { margin-bottom: 9px; font-size: 11px; }
  h1 { font-size: clamp(47px, 13vw, 62px); }
  .intro-text { max-width: 350px; margin: 12px auto 0; font-size: 15px; }
  .background-view-button { margin-top: 10px; font-size: 11px; }
  .catalogue { padding-bottom: 42px; }
  .catalogue-heading { flex-direction: column; gap: 5px; margin-bottom: 16px; }
  .catalogue-heading h2 { font-size: 27px; }
  .game-grid { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .game-card { display: grid; grid-template-columns: minmax(130px, 38%) minmax(0, 1fr); }
  .game-card:hover { border-color: #fff; }
  .cover-wrap { align-self: stretch; aspect-ratio: auto; min-height: 100%; }
  .cover-art { position: absolute; inset: 0; }
  .status-sticker { top: 10px; max-width: calc(100% - 6px); padding: 7px 9px 7px 10px; font-size: 11px; }
  .card-body { min-height: 218px; align-items: flex-start; padding: 13px 12px 12px; }
  .card-heading { gap: 4px; }
  .card-heading h3 { font-size: 32px; }
  .card-description { min-height: 0; margin: 9px 0; font-size: 15px; line-height: 1.45; }
  .inspired-line { font-size: 14px; }
  .card-meta { margin: auto -12px -12px; padding: 10px 12px 12px; }
  .card-action { margin-top: 10px; padding-top: 0; font-size: 16px; }
  .card-play-links { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 12px; }
  .card-play-links .card-action { margin-top: 0; }
  .site-footer p { display: none; }
  .footer-inner { min-height: 72px; gap: 10px; }
  .footer-nav { gap: 12px; font-size: 11px; }
  .footer-brand { font-size: 12px; }
  .dialog-art { height: 120px; }
  .dialog-content { padding: 20px; }
  .dialog-close { top: -108px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
