:root { color-scheme: dark; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0a0c1c; }
body { min-height: 100vh; margin: 0; color: #f9f5ed; background: radial-gradient(circle at 50% -12%, #56335b 0, #1b1a35 30%, #0a0c1c 72%); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #ffe29b; outline-offset: 3px; }
.page { width: min(1280px, calc(100% - 48px)); margin: auto; padding: 18px 0 36px; }
.site-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.brand-signature { display: inline-flex; align-items: center; gap: 10px; color: #ffcd6f; font: 900 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .2em; white-space: nowrap; }
.brand-signature img { display: block; width: 42px; height: 42px; }
.site-nav { display: flex; align-items: center; gap: 23px; }
.site-nav a, .site-nav button, .site-footer button { border: 0; padding: 5px 0; background: transparent; color: #c5bed0; font-size: .82rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .site-nav button:hover, .site-footer button:hover { color: #ffcd6f; }
.masthead { margin-bottom: 22px; }
.eyebrow, .cabinet-top, .cabinet-bottom, .rail-title span, .sponsor-heading span { font: 800 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: block; margin: 0 0 7px; color: #ffcd6f; }
h1 { max-width: 100%; margin: 0; font-size: clamp(3rem, 7.6vw, 6.4rem); line-height: .95; letter-spacing: -.075em; text-transform: uppercase; text-shadow: 5px 5px 0 #502a58; }
h1 span { color: #ffcd6f; font-size: .53em; letter-spacing: -.06em; vertical-align: .15em; }
.hero-subline { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 14px; }
.tagline { margin: 0; color: #d9d2e0; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero-subline > span { color: #a8a0b7; font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; white-space: nowrap; }
.hero-subline b { margin: 0 7px; color: #ffcd6f; font-size: .65em; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: stretch; }
.cabinet { position: relative; overflow: hidden; border: 2px solid #ffcd6f; border-radius: 14px; background: #12152b; box-shadow: 0 0 0 7px #29223d, 0 20px 45px #0008; }
.cabinet-top, .cabinet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; padding: 8px 14px; color: #ffcd6f; }
.cabinet-bottom { min-height: 38px; color: #bfb7cc; border-top: 2px solid #403450; }
#fighter-intel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .055em; }
.cabinet-state { flex: none; color: #ffcd6f; white-space: nowrap; }
.game-screen { width: 100%; aspect-ratio: 8 / 3; overflow: hidden; background: #13162c; touch-action: none; }
.game-screen canvas { display: block; }
.rotate-prompt, .fullscreen-game { display: none; }
.ad-panel { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 25px; min-height: 100%; overflow: hidden; padding: 17px; border: 1px solid #ffcd6f; border-radius: 12px; background: #111a26; box-shadow: 0 16px 35px #0007; }
.ad-panel::before { position: absolute; inset: 0; z-index: -1; content: ''; background: linear-gradient(180deg, #071321c2 0%, transparent 37%, #080e1df2 100%); }
.ad-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ad-label { font: 800 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; color: #e6deeb; }
.ad-copy { display: grid; gap: 9px; margin-top: auto; text-shadow: 0 2px 9px #000; }
.ad-kicker { color: #ffcd6f; font-size: .8rem; }
.ad-copy strong { font-size: clamp(1.5rem, 2vw, 2.05rem); line-height: 1.05; letter-spacing: -.04em; }
.ad-copy p { margin: 0; color: #f1eef4; line-height: 1.45; }
.ad-panel a { align-self: flex-start; padding: 10px 13px; border-radius: 6px; background: #ffcd6f; color: #181226; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ad-panel a:hover, .ad-panel a:focus-visible { background: #ffe4a4; }
.player-rail { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 25px; padding: 19px 22px; border: 1px solid #51445e; border-radius: 12px; background: #1b1d34; box-shadow: inset 0 1px #ffffff0a; }
.rail-title span, .sponsor-heading span { color: #ffcd6f; }
.rail-title h2 { margin: 3px 0 0; font-size: 1.2rem; line-height: 1.1; }
.rail-controls { display: grid; gap: 5px; }
.rail-controls p { display: flex; gap: 13px; margin: 0; color: #d4cedd; font-size: .82rem; line-height: 1.45; }
.rail-controls strong { min-width: 61px; color: #ffcd6f; font: 800 10px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.share-row { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.share-row button { padding: 9px 13px; border: 1px solid #ffcd6f; border-radius: 7px; background: #ffcd6f; color: #181226; font-size: .83rem; font-weight: 900; white-space: nowrap; cursor: pointer; }
.share-row button:hover, .share-row button:focus-visible { background: #ffe2a0; }
#share-status { color: #c9c4d4; font-size: .72rem; }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.sponsor-heading { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 16px; margin-bottom: 0; }
.sponsor-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.sponsor-slot { position: relative; min-height: 157px; padding: 19px 22px; overflow: hidden; border: 1px dashed #9d794f; border-radius: 10px; background: radial-gradient(circle at 95% 15%, #4d2e56, #211d34 61%, #17192d); }
.sponsor-slot::after { position: absolute; top: -26px; right: 12px; content: '↗'; color: #ffffff0b; font-size: 150px; font-weight: 900; transform: rotate(-15deg); pointer-events: none; }
.sponsor-slot-alt { background: radial-gradient(circle at 5% 90%, #254357, #20233a 60%, #17192d); }
.sponsor-slot h2 { position: relative; margin: 9px 0 4px; font-size: clamp(1.1rem, 2vw, 1.55rem); line-height: 1.12; }
.sponsor-slot p { position: relative; margin: 0 0 13px; color: #d5cedd; line-height: 1.4; font-size: .91rem; }
.sponsor-slot strong { color: #ffcd6f; }
.sponsor-slot a { position: relative; display: inline-flex; padding: 8px 11px; border-radius: 6px; background: #ffcd6f; color: #181226; font-size: .84rem; font-weight: 800; text-decoration: none; }
.sponsor-slot a:hover, .sponsor-slot a:focus-visible { background: #ffe4a4; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 27px; padding-top: 16px; border-top: 1px solid #474052; color: #a9a3b5; font-size: .78rem; }
.site-footer button { white-space: nowrap; }
.analytics-consent { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 14px 16px; border: 1px solid #625273; border-radius: 10px; background: #22233e; }
.analytics-consent[hidden] { display: none; }
.analytics-consent p { margin: 0; color: #d8d3df; }
.analytics-consent div { display: flex; gap: 8px; flex-shrink: 0; }
.analytics-consent button { padding: 7px 10px; border: 1px solid #ffcd6f; border-radius: 6px; background: transparent; color: #ffcd6f; cursor: pointer; }
.analytics-consent button:first-child { background: #ffcd6f; color: #1b1d36; }
.about-dialog { position: fixed; width: min(660px, calc(100% - 28px)); max-height: min(80dvh, 670px); padding: 30px; overflow: auto; border: 2px solid #ffcd6f; border-radius: 14px; background: #1b1c32; color: #f9f5ed; box-shadow: 0 30px 85px #000c; }
.about-dialog::backdrop { background: #070816d9; backdrop-filter: blur(5px); }
.about-dialog h2 { margin: 4px 0 12px; font-size: 2rem; letter-spacing: -.045em; }
.dialog-close { position: absolute; top: 13px; right: 17px; border: 0; background: transparent; color: #ffcd6f; font-size: 2rem; cursor: pointer; }
.dialog-content > p { margin: 0; color: #d8d2df; line-height: 1.55; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.guide-grid article { padding-top: 14px; border-top: 1px solid #5b4d66; }
.guide-grid h3 { margin: 0 0 5px; font-size: 1rem; }
.guide-grid p { margin: 0; color: #c9c4d4; line-height: 1.5; font-size: .89rem; }
@media (max-width: 1000px) {
  .play-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 15px; }
  .player-rail { grid-template-columns: 135px minmax(0, 1fr); }
  .share-row { grid-column: 1 / -1; align-items: flex-start; }
}
@media (max-width: 780px) {
  .page { width: min(100% - 24px, 740px); }
  .hero-subline > span { display: none; }
  .play-layout { grid-template-columns: 1fr; }
  .ad-panel { min-height: 180px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 15px; }
  .ad-label { grid-column: 1 / -1; align-self: start; }
  .ad-copy { gap: 4px; }
  .ad-copy strong { font-size: 1.4rem; }
  .ad-copy p { font-size: .83rem; }
  .player-rail { margin-top: 18px; }
}
@media (max-width: 620px) {
  .page { width: calc(100% - 20px); padding-top: 12px; }
  .site-topline { margin-bottom: 16px; }
  .brand-signature img { width: 34px; height: 34px; }
  .brand-signature { font-size: 10px; }
  .site-nav { gap: 13px; }
  .site-nav a, .site-nav button { font-size: .76rem; }
  h1 { font-size: clamp(2.4rem, 12vw, 4.5rem); }
  .masthead { margin-bottom: 18px; }
  .cabinet-top, .cabinet-bottom { min-height: 28px; padding: 7px 8px; font-size: 8px; }
  .cabinet-state { display: none; }
  .ad-panel { min-height: 150px; }
  .player-rail { grid-template-columns: 1fr; gap: 11px; padding: 15px; }
  .rail-title { display: flex; align-items: baseline; gap: 10px; }
  .rail-title h2 { font-size: 1.05rem; }
  .rail-controls p { font-size: .8rem; }
  .share-row { grid-column: auto; }
  .sponsor-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .sponsor-heading { grid-column: 1; }
  .sponsor-slot { min-height: 0; }
  .site-footer { align-items: flex-start; }
  .guide-grid { grid-template-columns: 1fr; }
  .about-dialog { padding: 24px 20px; }
  .analytics-consent { display: block; }
  .analytics-consent div { margin-top: 12px; }
}
@media (max-width: 700px) and (orientation: portrait) {
  .rotate-prompt { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; text-align: center; background: #11152bf2; }
  .rotate-prompt span { color: #ffcd6f; font-size: 35px; line-height: 1; }
  .rotate-prompt strong { color: #ffcd6f; font-size: 20px; }
  .rotate-prompt p { margin: 4px 0 0; font-size: 12px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  html, body { overflow: hidden; }
  .page { width: 100%; padding: 0; }
  .masthead, .ad-panel, .player-rail, .sponsor-grid, .site-footer, .analytics-consent, .cabinet-top, .cabinet-bottom { display: none !important; }
  .play-layout { display: block; }
  .cabinet { width: 100vw; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .game-screen { width: 100vw; height: 100dvh; aspect-ratio: auto; }
  .fullscreen-game { position: absolute; z-index: 4; top: 5px; right: 5px; display: block; width: 32px; height: 29px; border: 1px solid #ffcd6f; border-radius: 5px; background: #11152bdd; color: #ffcd6f; font-size: 18px; }
}
