
body { font-family:Arial,sans-serif; margin:24px; }
#games button:not(.cover-button),#playButton { font-size:20px; padding:12px 22px; margin:4px; }
#games button.selected { outline:3px solid currentColor; }
#canvas { display:none; }
body.arcade-running { overflow:hidden; }
body.arcade-running #canvas {
    display:block !important;
    position:fixed;
    inset:0;
    width:100vw !important;
    height:100vh !important;
    z-index:2147483647;
    background:#000;
}

#web-leaderboard { max-width:760px; margin:18px 0 28px; font-family:monospace; }
#web-leaderboard table { width:100%; border-collapse:collapse; }
#web-leaderboard th,#web-leaderboard td { padding:5px 8px; border-bottom:1px solid #555; text-align:right; }
#web-leaderboard th:nth-child(2),#web-leaderboard td:nth-child(2) { text-align:left; }
#web-leaderboard table { font-size:10px; }

.game-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:18px 0;align-items:start;}
.game-card{min-width:0;border:1px solid #777;padding:10px;text-align:center;}
.cover-button{display:block;width:100%;margin:0 auto;padding:0;border:0;background:#000;cursor:pointer;line-height:0;}
.cover-button img{display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;image-rendering:pixelated;}
.cover-button:hover{outline:3px solid currentColor;}
.difficulty{margin:7px 0 4px;font-weight:bold;}
.game-card h3{font-size:14px;margin:5px 0 8px;}
.leaderboard-window{height:440px;overflow-y:auto;border:1px solid #777;}
.leaderboard-window table{width:100%;border-collapse:collapse;font-size:10px;}
.leaderboard-window th,.leaderboard-window td{padding:4px 3px;border-bottom:1px solid #444;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.leaderboard-window th{position:sticky;top:0;background:#111;color:#fff;z-index:1;}
#gamepad-note{text-align:left;font-weight:bold;margin:12px 0;}
.series-tabs{display:flex;align-items:flex-end;gap:4px;margin:16px 0 0;max-width:980px;border-bottom:1px solid #777;}
.series-tab{touch-action:manipulation;-webkit-tap-highlight-color:transparent;appearance:none;border:1px solid #777;border-bottom:0;background:#ddd;color:#222;padding:9px 18px 8px;font:bold 13px Arial,sans-serif;cursor:pointer;border-radius:7px 7px 0 0;position:relative;top:1px;}
.series-tab:hover,.series-tab.active{background:#fff;padding-top:12px}
.series-tab.active{z-index:2;}

.series-tab .tab-coming-soon{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);font:700 10px Arial,sans-serif;white-space:nowrap;color:#a33;pointer-events:none;padding-bottom:2px;}

.series-panel{max-width:980px;border:1px solid #777;border-top:0;padding:12px 14px 14px;box-sizing:border-box;}
.series-heading{display:flex;align-items:baseline;gap:10px;margin:0 0 8px;}
.series-heading h2{margin:0;font-size:20px;}
.series-season{font-size:12px;font-weight:normal;}
.series-placeholder{display:none;min-height:240px;box-sizing:border-box;padding:72px 24px;text-align:center;border:1px dashed #999;font-family:monospace;}
.series-placeholder h2{margin:0 0 10px;font-family:Arial,sans-serif;}
.series-placeholder p{margin:0;color:#666;}
.coming-grid{display:none;grid-template-columns:repeat(5,1fr);gap:12px;min-height:240px;}
.coming-card{position:relative;border:1px solid #777;background:#111;overflow:hidden;aspect-ratio:3/4;}
.coming-card img{width:100%;height:100%;object-fit:cover;display:block;opacity:.72;}
.coming-label{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);background:rgba(0,0,0,.82);color:#fff;padding:10px 4px;text-align:center;font:bold 14px Arial,sans-serif;letter-spacing:1px;}
.coming-name{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.82);color:#fff;padding:6px 3px;text-align:center;font:bold 11px Arial,sans-serif;}
@keyframes hofscroll{from{transform:translateX(0)}to{transform:translateX(-100%)}}


.historyTable th.historySort{cursor:pointer;user-select:none;white-space:nowrap;}
.historyTable th.historySort:hover{text-decoration:underline;}

/* Facebook Page link in both Player Center states */
#playerSummary .playerCenterHeading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;}
#playerSummary .playerCenterHeading .uiTitle{margin-bottom:0;}
#playerSummary .playerFacebookLink{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;flex:0 0 25px;border-radius:5px;background:#1877f2;color:#fff;text-decoration:none;font:bold 23px Arial,sans-serif;line-height:1;}
#playerSummary .playerFacebookLink:hover,#playerSummary .playerFacebookLink:focus-visible{background:#0866ff;outline:2px solid #fff;outline-offset:2px}

#sfProgWrap{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:5px;}
.sfProg{border:1px solid #555;padding:4px;min-width:0;}
.sfProgBtns{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;margin-top:3px;}
.sfProgBtns button{padding:3px 1px!important;font-size:9px!important;}
.sfProg pre{white-space:pre-wrap;max-height:58px;overflow:auto;font-size:8px!important;line-height:1.05;}

/* DEV028: compress the original score finder so the complete DEV toolbox fits one screen */
#sfKeypad{display:none!important;grid-template-columns:repeat(6,1fr)!important;gap:2px!important;margin:3px 0!important;}
#sfKeypad button{height:23px!important;padding:1px!important;font-size:10px!important;}
#sfProgWrap{margin-top:3px!important;}
.sfProg{padding:3px!important;}
.sfProgBtns button{height:24px!important;}

#sfKeypad.sfKeysOpen{display:grid!important;}
#sfScore{width:55%!important;height:21px!important;}
#sfCapture{width:auto!important;height:22px!important;}
#sfControls{margin:2px 0!important;}
#sfControls button{padding:2px 5px!important;}
#sfStress{margin-top:3px!important;}
#sfStress button{padding:2px!important;}

/* DEV018 UI PREVIEW — right-side player profile + compact challenge slogan */
body{padding-right:390px!important;}
#playerSummary{position:fixed!important;right:18px!important;top:18px!important;width:340px!important;min-height:0!important;padding:0!important;border:0!important;background:#111!important;color:#eee!important;font-family:monospace!important;}
#playerSummary .uiBox{border:1px solid #555;margin-bottom:10px;background:#151515;padding:12px;}
#playerSummary .uiTitle{color:#7CFC00;font-weight:bold;font-size:13px;letter-spacing:.5px;margin-bottom:9px;}
#playerSummary .uiUser{font:700 20px Arial,sans-serif;color:#fff;margin-bottom:8px;}
#playerSummary .uiMeta{display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:11px;line-height:1.45;}
#playerSummary .uiMeta b{color:#fff;}
#playerSummary .uiOverallGrid{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
#playerSummary .uiMetric{border:1px solid #444;padding:7px;background:#0d0d0d;}
#playerSummary .uiMetric span{display:block;color:#999;font-size:9px;margin-bottom:3px;}
#playerSummary .uiMetric b{font-size:15px;color:#fff;}
#playerSummary .uiSeries{width:100%;border-collapse:collapse;font-size:10px;margin-top:9px;}
#playerSummary .uiSeries th,#playerSummary .uiSeries td{padding:5px 2px;border-top:1px solid #333;text-align:right}
#playerSummary .uiSeries th:first-child,#playerSummary .uiSeries td:first-child{text-align:left}
#loggedOutBox{padding:12px;border:1px solid #555;margin-bottom:10px;}
#loggedOutBox input{box-sizing:border-box;width:100%;margin:3px 0;padding:6px;background:#222;color:#fff;border:1px solid #555;}
#loggedOutBox select{box-sizing:border-box;width:100%;margin:3px 0;padding:6px;background:#222;color:#fff;border:1px solid #555;}
#loggedOutBox .regHint{font:9px monospace;color:#999;margin:4px 0 2px;}
#loggedOutBox .regFields{margin-top:5px;padding-top:5px;border-top:1px solid #333;}
/* PB30-E: registration-only profile fields are hidden in Player Center; moved into registration dialog when opened. */
#loggedOutBox .regFields{display:none;}
#loggedOutBox button,#logoutButton,#playHistoryButton,#inpPlaybackButton{margin-top:5px;padding:5px 8px}
/* PB28: align Player Center action buttons and reduce their font by 2px. */
#playerActionButtons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch}
#playerActionButtons button{box-sizing:border-box;width:100%;height:46px;min-width:0;margin:5px 0 0!important;padding:3px 4px!important;font-size:calc(1em - 2px)!important;line-height:1.15;text-align:center;display:flex;align-items:center;justify-content:center;white-space:normal}

.game-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
.stat-card{min-width:0;border:1px solid #777;padding:10px;text-align:center;background:#111;color:#eee;cursor:pointer;display:flex;flex-direction:column;min-height:555px;box-sizing:border-box;}
.stat-card:hover{outline:3px solid currentColor;}
.stat-icon{font-size:34px;margin:28px 0 12px;}
.stat-card h3{font-size:14px;margin:5px 0 8px;}
.stat-card .statLabel{font:bold 12px monospace;color:#7CFC00;margin-top:4px;}
.stat-card .statDesc{font:10px monospace;color:#aaa;margin-top:14px;line-height:1.5;}
#playerSummary .uiChallenge{box-sizing:border-box;width:100%;background:#050505;border:1px solid #555;color:#ff2020;padding:12px 8px;margin-top:-1px;font-family:"Press Start 2P","Courier New",monospace;font-size:11px;font-weight:bold;line-height:1.6;white-space:normal;text-align:center;text-transform:uppercase;letter-spacing:.2px;}
#playerSummary .uiWorldStats{background:#fff;color:#222;text-align:center;margin-top:105px;padding:12px 4px;font:12px Arial,sans-serif;}
@media(max-width:1100px){.game-grid{grid-template-columns:repeat(3,1fr)!important}}
/* PROD: shrink PLAYER CENTER before sacrificing game-list width.
   Preserve the existing five-column series game layout. */
@media (max-width:1400px) and (min-width:761px) {
  body{padding-right:clamp(205px,26vw,390px)!important}
  #playerSummary{
    width:clamp(175px,calc(26vw - 42px),340px)!important;
    right:clamp(8px,1.3vw,18px)!important;
  }
  #playerSummary .uiBox{padding:clamp(6px,0.9vw,12px)}
  #playerSummary .uiOverallGrid{gap:4px}
  #playerSummary .uiMetric{padding:5px;min-width:0}
  #playerSummary .uiMetric b{font-size:clamp(10px,1.05vw,15px);overflow-wrap:anywhere}
  #playerSummary .uiSeries{font-size:clamp(8px,.75vw,10px)}
  #playerSummary .uiUser{font-size:clamp(14px,1.4vw,20px)}
  #playerSummary button{max-width:100%;white-space:normal}
}
@media (max-width:760px) {
  body{padding-right:0!important}
  #playerSummary{position:relative!important;top:auto!important;right:auto!important;width:100%!important;margin:16px 0!important}
}


/* DEV016 searchable PLACE picker */
.placePicker{position:relative;}
#authPlaceSearch{box-sizing:border-box;width:100%;margin:3px 0;padding:6px;background:#222;color:#fff;border:1px solid #555;}
.placeResults{display:none;position:absolute;left:0;right:0;top:100%;max-height:220px;overflow-y:auto;background:#111;border:1px solid #666;z-index:2147483645;box-shadow:0 5px 14px rgba(0,0,0,.55);}
.placeResults.open{display:block;}
.placeOption{padding:7px 8px;color:#eee;font:11px monospace;cursor:pointer;border-bottom:1px solid #292929;}
.placeOption:hover,.placeOption.active{background:#333;color:#7CFC00}
.placeOption .placeFlag{display:inline-block;width:26px;height:18px;vertical-align:middle;margin-right:7px;object-fit:cover;border:1px solid #555;}
#playerSummary .uiUser{display:flex;align-items:center;gap:8px;}
#playerSummary .profileFlag{width:28px;height:20px;object-fit:cover;border:1px solid #555;}
#playHistoryButton{margin-right:5px;}
#playHistoryOverlay{display:none;position:fixed;inset:0;z-index:2147483647;background:rgba(0,0,0,.82);align-items:center;justify-content:center;padding:24px;box-sizing:border-box;}
#playHistoryOverlay.open{display:flex;}
#playHistoryWindow{width:min(920px,94vw);max-height:86vh;overflow:auto;background:#101010;border:2px solid #7CFC00;box-shadow:0 0 28px rgba(124,252,0,.18);padding:16px;color:#eee;font-family:monospace;box-sizing:border-box;}
#playHistoryHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;}
#playHistoryHead .uiTitle{margin:0;font-size:15px;}
#playHistoryClose{padding:5px 10px;background:#222;color:#fff;border:1px solid #666;cursor:pointer;}
.historyGame{border:1px solid #444;background:#151515;margin:8px 0;}
.historyGame summary{cursor:pointer;list-style:none;padding:10px 12px;color:#7CFC00;font-weight:bold;display:flex;justify-content:space-between;gap:12px;}
.historyGame summary::-webkit-details-marker{display:none;}
.historyGame summary:before{content:"▶ ";color:#fff;}
.historyGame[open] summary:before{content:"▼ ";color:#fff;}
.historyTable{width:100%;border-collapse:collapse;font-size:11px;}
.historyTable th,.historyTable td{padding:7px 8px;border-top:1px solid #333;text-align:right;white-space:nowrap}
.historyTable th:first-child,.historyTable td:first-child{text-align:left}
.historyEmpty{padding:18px;text-align:center;color:#999;}
/* DEV027 Raiden-only PLAY RAIDEN hover bubble — right-shifted with left pointer */
.raidenPlayTip{position:relative;}
.raidenPlayTip .ramRemarkBubble{visibility:hidden;opacity:0;pointer-events:none;position:absolute;left:0;bottom:calc(100% + 12px);transform:translateY(5px);width:max-content;max-width:min(620px,85vw);box-sizing:border-box;padding:10px 14px;background:#111;color:#7CFC00;border:2px solid #7CFC00;box-shadow:4px 4px 0 #000;font:11px/1.6 "Press Start 2P","Courier New",monospace;text-align:center;white-space:normal;z-index:2147483647;transition:opacity .14s ease,transform .14s ease;}
.raidenPlayTip .ramRemarkBubble:after{content:"";position:absolute;top:100%;left:14%;transform:translateX(-50%);border:8px solid transparent;border-top-color:#7CFC00;}
.raidenPlayTip:hover .ramRemarkBubble,.raidenPlayTip:focus-within .ramRemarkBubble{visibility:visible;opacity:1;transform:translateY(0)}

.series-tabs,.series-panel{max-width:1180px!important}
.game-grid{gap:10px!important;}
.leaderboard-window table{font-size:9px!important;table-layout:fixed;}
.leaderboard-window th,.leaderboard-window td{padding:4px 2px!important}
.leaderboard-window th:nth-child(1),.leaderboard-window td:nth-child(1){width:10%;text-align:right}
.leaderboard-window th:nth-child(2),.leaderboard-window td:nth-child(2){width:38%;text-align:left}
.leaderboard-window th:nth-child(3),.leaderboard-window td:nth-child(3){width:29%;text-align:right}
.leaderboard-window th:nth-child(4),.leaderboard-window td:nth-child(4){width:23%;text-align:right}
/* Gunbird: align stage / character at the left; existing cell ellipsis handles long names. */
#leaderboard-gunbird td:nth-child(4){text-align:left}

.leaderboard-window table{font-size:8px!important;}
.leaderboard-window th{font-size:8px!important;letter-spacing:-0.15px;}
.leaderboard-window td{font-size:9px!important;}
.leaderboard-window th,.leaderboard-window td{padding:4px 1px!important}
.leaderboard-window th:nth-child(1),.leaderboard-window td:nth-child(1){width:8%!important}
.leaderboard-window th:nth-child(2),.leaderboard-window td:nth-child(2){width:36%!important}
.leaderboard-window th:nth-child(3),.leaderboard-window td:nth-child(3){width:27%!important}
.leaderboard-window th:nth-child(4),.leaderboard-window td:nth-child(4){width:29%!important}

.leaderboard-window table{font-size:7px!important;table-layout:fixed!important;}
.leaderboard-window th{font-size:7px!important;letter-spacing:-0.35px!important;overflow:visible!important;text-overflow:clip!important;}
.leaderboard-window td{font-size:8px!important;}
.leaderboard-window th,.leaderboard-window td{padding:3px 1px!important}
.leaderboard-window th:nth-child(1),.leaderboard-window td:nth-child(1){width:7%!important}
.leaderboard-window th:nth-child(2),.leaderboard-window td:nth-child(2){width:35%!important}
.leaderboard-window th:nth-child(3),.leaderboard-window td:nth-child(3){width:26%!important}
.leaderboard-window th:nth-child(4),.leaderboard-window td:nth-child(4){width:32%!important}

.series-stats,.series-summary,.series-info,
#seriesStats,#seriesSummary,#seriesInfo{display:none!important}

/* Active series uses the same 5-across footprint as Coming Soon. */
.series-panel .game-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important;}
.series-panel .game-card{min-width:0!important;}

@keyframes lastPlayFlash{
  0%,100%{opacity:1;text-shadow:0 0 2px currentColor}
  50%{opacity:.28;text-shadow:0 0 10px currentColor}
}
#lastPlayPanel>div:first-child{animation:lastPlayFlash 1s steps(2,end) infinite;}
.cover-button.pad-selected{
  outline:4px solid #7cff32!important;
  outline-offset:3px;
  box-shadow:0 0 14px rgba(124,255,50,.9);
}
.series-tab.pad-series-selected{box-shadow:inset 0 -4px 0 #7cff32!important;}

#seriesPadHint{
  display:inline-flex;align-items:center;gap:7px;
  margin:7px 0 8px 18px;padding:5px 10px;
  border:1px solid #777;border-radius:6px;
  background:#111;color:#eee;
  font:700 11px/1 Arial,sans-serif;
  vertical-align:middle;letter-spacing:.4px;
}
#seriesPadHint .pad-key{
  display:inline-block;min-width:24px;padding:4px 6px;text-align:center;
  border:1px solid #aaa;border-radius:4px;background:#292929;color:#7cff32;
  box-shadow:inset 0 0 0 1px #000;
}
#seriesPadHint .pad-arrow{color:#7cff32;font-size:12px;}
#seriesPadHint .pad-label{font-size:9px;color:#bbb;letter-spacing:1px;}

#seriesPadHint{
  margin:2px 0 2px 7px!important;padding:2px 5px!important;
  border-radius:4px!important;font-size:8px!important;
  transform:translateY(-1px);
}
#seriesPadHint .pad-key{padding:2px 3px!important;font-size:7px!important;}
#seriesPadHint .pad-arrow{font-size:8px!important;}
#seriesPadHint .pad-label{font-size:6px!important;letter-spacing:.4px!important;}
.game-king{height:22px;margin:2px 4px 5px;font:700 8px/22px monospace;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.game-king .king-open{color:#888;}
.series-kotk{display:inline-block;margin-left:14px;font:700 12px/1.2 monospace;vertical-align:middle;}
.series-kotk .kotk-label{color:#777;}
.series-kotk .kotk-name{color:#111;}

.game-card .game-king{
  height:24px!important;margin:0 4px 5px!important;padding:0 2px!important;
  font:700 8px/24px monospace!important;color:#111!important;
  text-align:left!important;white-space:nowrap!important;
}
#seriesPadHint{
  
  margin:0 0 0 6px!important;padding:2px 4px!important;
  border:1px solid #777!important;border-radius:4px!important;
  background:#111!important;
  
}
#seriesPadHint .pad-key{padding:2px!important;font-size:7px!important;}
#seriesPadHint .pad-arrow{font-size:7px!important;}
#seriesPadHint .pad-label{font-size:6px!important;}

#seriesPadHint{
  
  
  
  margin-top:0!important;
  
  box-sizing:border-box!important;
}
.series-kotk{
  
  margin-left:16px!important;
  font:700 12px/1.2 monospace!important;
  
}

.series-kotk{
  margin-left:18px!important;
  
}

#seriesPadHint{
  margin:0!important;
  
  
  
}

.series-title-text{display:inline-block;}
.season-label{
  display:inline-block!important;
  margin-left:18px!important;
  font:400 16px/1 Arial,sans-serif!important;
  vertical-align:middle!important;
}
.series-kotk{
  display:inline-block!important;
  margin-left:18px!important;
  font:700 12px/1.2 monospace!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}

/* Controller hint is a normal sibling of GOLDEN CLASSIC and vertically centered to tabs. */
#seriesPadHint{
  display:inline-flex!important;
  align-items:center!important;
  gap:2px!important;
  position:relative!important;
  top:-2px!important;
  left:auto!important;
  height:auto!important;
  margin:0 0 0 8px!important;
  padding:2px 4px!important;
  transform:none!important;
  vertical-align:middle!important;
  z-index:5!important;
}
#seriesPadHint .pad-key{min-width:14px!important;padding:2px!important;font-size:7px!important;}
#seriesPadHint .pad-arrow{font-size:7px!important;}
#seriesPadHint .pad-label{font-size:6px!important;}

.game-king .king-stats{color:#777;font-size:8px;font-weight:700;letter-spacing:.15px;}

/* UI only: matching controller and keyboard legend beside series tabs. */
#seriesPadHint,#seriesKeyboardHint{
  box-sizing:border-box!important;height:30px!important;
  margin:0 0 0 8px!important;padding:3px 6px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 0 auto!important;position:relative!important;top:0!important;
  border:1px solid #777!important;border-radius:4px!important;
  background:#111!important;color:#eee!important;vertical-align:middle!important;
  transform:none!important;white-space:nowrap!important;
}
#seriesKeyboardHint{gap:6px;font:700 8px/1 Arial,sans-serif;}
#seriesKeyboardHint .keyboard-arrows{display:grid;grid-template-columns:repeat(3,13px);grid-template-rows:repeat(2,11px);gap:1px;align-items:center;justify-items:center;}
#seriesKeyboardHint .keyboard-key{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:11px;min-width:13px;padding:0 2px;border:1px solid #777;border-radius:2px;background:#292929;color:#7cff32;}
#seriesKeyboardHint .keyboard-up{grid-column:2;grid-row:1;}
#seriesKeyboardHint .keyboard-left{grid-column:1;grid-row:2;}
#seriesKeyboardHint .keyboard-down{grid-column:2;grid-row:2;}
#seriesKeyboardHint .keyboard-right{grid-column:3;grid-row:2;}
#seriesKeyboardHint .keyboard-action{height:20px;min-width:26px;padding:0 4px;}

/* PROD: controller and keyboard legends share the series title row, right aligned. */
.series-heading #seriesPadHint{margin-left:auto!important;align-self:center!important;}
.series-heading #seriesKeyboardHint{margin-left:6px!important;align-self:center!important;}

#hofFireHeader{position:absolute;top:40px;left:50%;transform:translate(-50%,-50%);width:min(94px,20vw);aspect-ratio:3/1;margin:0;display:grid;place-items:center;isolation:isolate;overflow:visible;}
#hofFireHeader::before{content:"";position:absolute;inset:15% 6%;background:radial-gradient(ellipse at center,rgba(255,35,0,.35),rgba(130,0,0,.12) 45%,transparent 72%);filter:blur(14px);animation:hofAura 1.5s ease-in-out infinite alternate;z-index:-2;}
#hofFireHeader .hof-fire-logo{width:100%;height:auto;display:block;position:relative;z-index:3;filter:drop-shadow(0 0 8px #ff2100) drop-shadow(0 0 24px rgba(255,40,0,.65));animation:hofFirePulse .22s infinite alternate,hofFloat 3.5s ease-in-out infinite;}
#hofFireHeader .hof-heat{position:absolute;inset:6% 3% 16%;z-index:2;pointer-events:none;background:linear-gradient(90deg,transparent,rgba(255,120,0,.08),transparent 30%,rgba(255,230,120,.07),transparent 60%,rgba(255,80,0,.08),transparent);filter:blur(5px);mix-blend-mode:screen;animation:hofHeat 1.1s ease-in-out infinite alternate;}
#hofFireHeader .hof-flash{position:absolute;left:50%;top:19%;width:18%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,rgba(255,255,210,.7),rgba(255,180,0,.2) 18%,transparent 65%);filter:blur(4px);mix-blend-mode:screen;opacity:.1;z-index:4;animation:hofFlash 4.6s infinite;}
#hofFireHeader .hof-embers{position:absolute;inset:-45% 0 0;overflow:visible;z-index:5;pointer-events:none;}
#hofFireHeader .hof-ember{position:absolute;bottom:8%;width:3px;height:3px;border-radius:50%;background:#ffd06a;box-shadow:0 0 7px #ff4b00,0 0 14px #ff1900;opacity:0;animation:hofRise var(--d) linear infinite;animation-delay:var(--delay);}
@keyframes hofFirePulse{from{filter:drop-shadow(0 0 7px #ff1800) drop-shadow(0 0 18px rgba(255,35,0,.55));transform:scale(1)}to{filter:drop-shadow(0 0 11px #ff3c00) drop-shadow(0 0 34px rgba(255,80,0,.8));transform:scale(1.002)}}
@keyframes hofFloat{0%,100%{translate:0 0}50%{translate:0 -2px}}
@keyframes hofAura{from{opacity:.55;transform:scale(.98)}to{opacity:1;transform:scale(1.04)}}
@keyframes hofHeat{from{transform:translateX(-1%) skewX(-.5deg);opacity:.35}to{transform:translateX(1%) skewX(.7deg);opacity:.8}}
@keyframes hofFlash{0%,72%,78%,100%{opacity:.04;transform:translate(-50%,-50%) scale(.75)}74%{opacity:.9;transform:translate(-50%,-50%) scale(1.25)}76%{opacity:.2;transform:translate(-50%,-50%) scale(.9)}}
@keyframes hofRise{0%{transform:translate(0,20px) scale(.4);opacity:0}10%{opacity:.95}70%{opacity:.65}100%{transform:translate(var(--drift),-100px) scale(.05);opacity:0}}
@media (prefers-reduced-motion:reduce){#hofFireHeader .hof-fire-logo,#hofFireHeader::before,#hofFireHeader .hof-heat,#hofFireHeader .hof-flash,#hofFireHeader .hof-ember{animation:none}}

/* KOTK elements retain their original flex layout; one wrapper controls visibility. */
#kotkHeaderGroup{display:contents;}
#kotkHeaderGroup.kotk-series-hidden{display:none!important;}

#shootKingOfKings.series-kotk{font-size:20px!important;font-weight:700!important;}
#shootKingOfKings .kotk-label,#shootKingOfKings .kotk-name{font-size:20px!important;font-weight:700!important;}
#shootKotkQuote{display:inline-flex;align-items:baseline;gap:14px;margin-left:2px;vertical-align:middle;}
#shootKotkQuote .kotk-inline-ranks{font:700 8px/1.25 monospace;color:#d49a42;}
#shootKotkQuote .kotk-inline-message{font:700 20px/1.25 Arial,sans-serif;color:#e53935;}

.series-heading{gap:4px!important;}
#shootKingOfKings.series-kotk{margin-left:3px!important;letter-spacing:0!important;}
#shootKingOfKings .kotk-label{letter-spacing:-.55px!important;}
#shootKingOfKings .kotk-name{white-space:nowrap!important;}
#shootKingOfKings .kotk-name .kotk-inline-ranks{font:700 8px/1 monospace!important;color:#d49a42!important;margin-left:2px!important;letter-spacing:0!important;vertical-align:baseline;}
#shootKotkQuote{margin-left:1px!important;gap:0!important;}

/* PROD001 layout correction: allow the long KOTK header to wrap without
   squeezing the series title or season label into narrow columns. */
.series-heading{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;row-gap:6px!important;}
.series-heading #seriesTitle{flex:0 0 auto!important;white-space:nowrap!important;}
.series-heading #seriesSeason{flex:0 0 auto!important;white-space:nowrap!important;}
#shootKingOfKings.series-kotk{flex:0 1 auto!important;min-width:0!important;overflow-wrap:break-word!important;margin-left:3px!important;}
#shootKotkQuote{flex:0 1 auto!important;min-width:0!important;overflow-wrap:anywhere!important;}
@media(max-width:750px){.series-heading #seriesTitle{white-space:normal!important}}

/* PROD001: browser-side display toggle; never send ESC to MAME. */
#displayModeButton{display:none;position:fixed;top:10px;right:12px;z-index:2147483647;padding:8px 12px;background:#171717;color:#fff;border:1px solid #aaa;border-radius:4px;cursor:pointer;font:700 12px Arial,sans-serif;}
body.arcade-running #displayModeButton{display:none;}
body.arcade-running.windowed-play #canvas{width:calc(100vw - 380px)!important;height:100vh!important;right:auto!important;inset:0 auto 0 0!important;object-fit:contain;}
body.arcade-running.windowed-play #playerSummary{z-index:2147483646!important;display:block!important;top:55px!important;right:18px!important;}
body.arcade-running:not(.windowed-play) #playerSummary{visibility:hidden!important;}
body.arcade-running.windowed-play #displayModeButton{right:20px;}

/* Arcade1LC in-game watermark preview; visual only, no MAME or score changes. */
#arcadeGameWatermark{display:none;position:fixed;top:14px;left:18px;right:18px;z-index:2147483647;pointer-events:none;flex-direction:column;align-items:flex-start;gap:2px;color:#fff;font:700 13px/1.3 "Bungee",Arial,sans-serif;text-shadow:1px 1px 3px #000,-1px -1px 3px #000,0 0 5px #000;}
/* MENU-SLEEP001: freeze hidden menu animations while MAME is active.
   Game canvas and Arcade1LC watermark animations remain unaffected. */
body.arcade-running #hofFireHeader *,
body.arcade-running #hofFireHeader::before,
body.arcade-running #lastPlayPanel>div:first-child,
body.arcade-running #hofTickerText,
body.arcade-running #shootKotkQuote .kotk-inline-message { animation-play-state:paused!important; }
body.arcade-running #arcadeGameWatermark{display:flex;opacity:0;animation:arcadeWatermarkCycle 20s linear 3s infinite backwards;}
@keyframes arcadeWatermarkCycle{0%{opacity:0}2.5%{opacity:1}22.5%{opacity:1}25%,100%{opacity:0}}
#arcadeGameWatermark .arcadeWatermarkWebsite{color:#ff5555;text-shadow:0 0 3px #a00000,0 0 8px rgba(255,20,20,.85),1px 1px 3px #000;animation:arcadeNeonPulse 2s ease-in-out infinite alternate;}
#arcadeGameWatermark .arcadeWatermarkPlayer{color:#fff;text-shadow:0 0 4px rgba(255,255,255,.65),1px 1px 3px #000;}
@keyframes arcadeNeonPulse{from{text-shadow:0 0 3px #a00000,0 0 6px rgba(255,20,20,.45),1px 1px 3px #000}to{text-shadow:0 0 5px #ff3333,0 0 12px rgba(255,30,30,.95),1px 1px 3px #000}}
/* Watermark bounds are set to the actual displayed game image by JS. */
#arcadeGameWatermark .arcadeWatermarkPlayer{text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#arcadeGameWatermark .arcadeWatermarkWebsite{font-size:15px;}


/* V4 KOTK compact header only — preserve V4 game/window layout. */
.series-heading{flex-wrap:wrap!important;column-gap:7px!important;}
#shootKingOfKings.series-kotk{font-size:16px!important;line-height:1.2!important;white-space:nowrap!important;overflow-wrap:normal!important;flex:0 0 auto!important;margin-left:0!important;}
#shootKingOfKings .kotk-label{font-size:16px!important}
#shootKingOfKings .kotk-name{font-size:18px!important}
#shootKingOfKings .kotk-name .kotk-inline-ranks{font-size:7px!important;}
#shootKotkQuote{white-space:normal!important;overflow-wrap:anywhere!important;flex-wrap:wrap!important;}

/* PROD001: champion's submitted challenge message only — Tournament Display. */
#shootKotkQuote .kotk-inline-message{
  font-family:Impact,"Arial Narrow",sans-serif!important;
  font-size:28px!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  min-width:0;
  font-weight:900!important;
  font-style:normal!important;
  color:#996000!important;
}

/* PROD001: subtle animated championship glow on champion message only. */
#shootKotkQuote .kotk-inline-message{
  text-shadow:0 0 2px rgba(255,225,130,.6),0 0 6px rgba(245,166,35,.35);
  animation:kotkChampionGlow 2.8s ease-in-out infinite alternate;
}
@keyframes kotkChampionGlow{
  from{text-shadow:0 0 2px rgba(255,225,130,.45),0 0 5px rgba(245,166,35,.3)}
  to{text-shadow:0 0 3px rgba(255,239,164,.95),0 0 11px rgba(245,166,35,.75),0 0 17px rgba(255,194,63,.3)}
}
@media (prefers-reduced-motion:reduce){#shootKotkQuote .kotk-inline-message{animation:none}}

/* V3 Patch 2.1: consistent game-card typography, avoid oversized text wrapping. */
@media (min-width:761px) {
 .series-panel .game-card .difficulty,
 .series-panel .game-card h3,
 .series-panel .game-card .personal-best,
 .series-panel .game-card .your-best {font-size:clamp(10px,1vw,14px)!important;line-height:1.18!important;}
 .series-panel .game-card .difficulty{margin:5px 0 3px!important;}
 .series-panel .game-card h3{margin:3px 0 5px!important;}
 .series-panel .game-card{padding:6px!important;}
 .series-panel .game-grid{gap:8px!important;}
}
