:root { color-scheme: dark; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { background: #0b0d1d; }
body { margin: 0; color: #f8f5ed; background: radial-gradient(circle at 50% -15%, #433252 0, #15172d 40%, #0b0d1d 80%); min-height: 100vh; }
.page { width: min(1160px, calc(100% - 32px)); margin: auto; padding: 30px 0 50px; }
.masthead { text-align: center; margin-bottom: 27px; }
.brand-signature { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #ffcd6f; font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; }
.brand-signature img { display: block; width: 54px; height: 54px; }
.eyebrow, .cabinet-top, .cabinet-bottom { font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: #ffcd6f; margin: 0 0 8px; }
h1 { font-size: clamp(3rem, 8vw, 6.5rem); text-transform: uppercase; line-height: .95; letter-spacing: -.08em; margin: 0; text-shadow: 5px 5px 0 #502a58; }
h1 span { color: #ffcd6f; font-size: .52em; letter-spacing: -.05em; vertical-align: .18em; }
.tagline { font-size: clamp(1rem, 2vw, 1.3rem); color: #c9c4d4; margin: 16px 0 0; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; align-items: stretch; }
.cabinet { position: relative; border: 3px solid #ffcd6f; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 8px #28223d, 0 25px 60px #0009; background: #12152b; }
.cabinet-top, .cabinet-bottom { display: flex; justify-content: space-between; gap: 15px; padding: 10px 16px; color: #ffcd6f; }
.cabinet-bottom { color: #a9a6bc; border-top: 2px solid #403450; }
.game-screen { width: 100%; aspect-ratio: 8 / 3; background: #13162c; overflow: hidden; touch-action: none; }
.game-screen canvas { display: block; }
.rotate-prompt, .fullscreen-game { display: none; }
.ad-panel { position: relative; isolation: isolate; min-height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 16px; border: 1px solid #ffcd6f; border-radius: 12px; overflow: hidden; background: #111a26 url('assets/etashi-ad.webp') center/cover no-repeat; box-shadow: 0 16px 35px #0007; }
.ad-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b1523aa 0%, transparent 30%, #0b152366 53%, #080e1df2 100%); }
.ad-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.ad-label { font: 700 10px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .17em; color: #e6deeb; }
.ad-copy { display: grid; gap: 11px; margin-top: auto; text-shadow: 0 2px 9px #000; }
.ad-kicker { color: #ffcd6f; font-size: .8rem; }
.ad-copy strong { font-size: clamp(1.4rem, 2.4vw, 2.2rem); 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; color: #181226; background: #ffcd6f; text-decoration: none; font-weight: 800; padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.ad-panel a:hover, .ad-panel a:focus-visible { background: #ffe4a4; }
.fighter-bios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding-top: 30px; }
.fighter-bios article { border: 1px solid #51445c; background: #1b1d36; border-radius: 10px; padding: 17px 20px; }
.fighter-bios span { color: #ffcd6f; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
.fighter-bios h2 { margin: 8px 0 6px; font-size: 1.15rem; }
.fighter-bios p { margin: 0; color: #c9c4d4; line-height: 1.5; }
.sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 16px; }
.sponsor-slot { min-height: 176px; padding: 19px 23px; border: 1px dashed #ffcd6f; border-radius: 10px; background: radial-gradient(circle at 90% 10%, #55355a, #242039 57%, #17192f); }
.sponsor-slot-alt { background: radial-gradient(circle at 5% 90%, #27475c, #20243e 58%, #17192f); }
.sponsor-slot h2 { margin: 11px 0 5px; font-size: clamp(1.15rem, 2.3vw, 1.7rem); line-height: 1.1; }
.sponsor-slot p { margin: 0 0 14px; color: #d5cedd; line-height: 1.4; }
.sponsor-slot strong { color: #ffcd6f; }
.sponsor-slot a { display: inline-flex; padding: 9px 13px; border-radius: 6px; background: #ffcd6f; color: #181226; font-weight: 800; text-decoration: none; }
.sponsor-slot a:hover, .sponsor-slot a:focus-visible { background: #ffe4a4; }
.below { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; padding: 30px 9px 0; }
.instruction h2 { margin: 0 0 8px; font-size: 1.2rem; color: #ffcd6f; }
.instruction p { margin: 6px 0; color: #d8d3df; line-height: 1.5; }
.instruction a { display: inline-block; color: #ffcd6f; margin: 9px 16px 0 0; text-underline-offset: 3px; }
.share-row { display: flex; align-items: center; gap: 12px; margin-top: 17px; }
.share-row button { border: 1px solid #ffcd6f; border-radius: 7px; padding: 9px 13px; color: #ffcd6f; background: #29233a; font: 700 .9rem system-ui, sans-serif; cursor: pointer; }
.share-row button:hover, .share-row button:focus-visible { background: #443053; }
#share-status { color: #c9c4d4; font-size: .8rem; }
.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 { border: 1px solid #ffcd6f; border-radius: 6px; padding: 7px 10px; background: transparent; color: #ffcd6f; cursor: pointer; }
.analytics-consent button:first-child { background: #ffcd6f; color: #1b1d36; }
.fineprint { color: #9894aa; font-size: .8rem; max-width: 230px; text-align: right; line-height: 1.5; }
.game-guide { margin-top: 26px; padding: 22px 26px; border: 1px solid #51445c; border-radius: 10px; background: #191c32; }
.game-guide h2 { margin: 0 0 8px; font-size: 1.3rem; color: #ffcd6f; }
.game-guide > p { max-width: 850px; margin: 0; color: #d5cfdd; line-height: 1.55; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 14px; }
.guide-grid h3 { margin: 0 0 5px; font-size: 1rem; }
.guide-grid p { margin: 0; color: #c9c4d4; line-height: 1.5; }
@media (max-width: 900px) {
  .play-layout { grid-template-columns: 1fr; gap: 12px; }
  .ad-panel { order: -1; min-height: 155px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; padding: 12px 14px; }
  .ad-art { object-position: center 55%; }
  .ad-label { grid-column: 1 / -1; align-self: start; }
  .ad-copy { gap: 3px; }
  .ad-copy strong { font-size: 1.25rem; }
  .ad-copy p { font-size: .82rem; }
  .fighter-bios { grid-template-columns: repeat(2, 1fr); }
  .sponsor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .page { width: min(100% - 12px, 700px); padding-top: 20px; }
  .masthead { margin-bottom: 25px; }
  .cabinet-top, .cabinet-bottom { font-size: 9px; padding: 8px; }
  .fighter-bios { grid-template-columns: 1fr; gap: 9px; padding-top: 20px; }
  .sponsor-grid, .guide-grid { grid-template-columns: 1fr; }
  .sponsor-slot { min-height: 0; }
  .game-guide { padding: 18px; }
  .below { display: block; padding: 23px 8px 0; }
  .fineprint { text-align: left; max-width: none; margin-top: 24px; }
  .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: #11152beb; }
  .rotate-prompt span { font-size: 35px; line-height: 1; color: #ffcd6f; }
  .rotate-prompt strong { font-size: 20px; color: #ffcd6f; }
  .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, .fighter-bios, .sponsor-grid, .below, .game-guide, .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 { display: block; position: absolute; z-index: 4; top: 5px; right: 5px; width: 32px; height: 29px; border: 1px solid #ffcd6f; border-radius: 5px; background: #11152bdd; color: #ffcd6f; font-size: 18px; }
}
