/* Martin's gold, ink, blue and red arcade front end. */
#game-window.martin-front-open { border-color: #f9c72e; }
.martin-front-open > .hud,
.martin-front-open > .fight-hud,
.martin-front-open > .match-banner,
.martin-front-open > .match-actions,
.martin-front-open > .match-artwork-result,
.martin-front-open > .arena-caption,
.martin-front-open > .world-status,
.martin-front-open > .loading,
.martin-front-open > .host-message { visibility: hidden; }
.martin-front-end {
  --martin-gold: #ffcf35;
  --martin-cream: #fff5d2;
  --martin-blue: #35baff;
  --martin-red: #ff6655;
  --martin-ink: #16141d;
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  color: var(--martin-cream);
  background: var(--martin-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.15;
  container-type: size;
  isolation: isolate;
}
.martin-front-end * { box-sizing: border-box; }
.martin-front-end button {
  border-radius: 0;
  font: inherit;
  min-width: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.martin-front-end button:focus-visible {
  outline: 3px solid var(--martin-cream);
  outline-offset: 3px;
}
.martin-front-end button:disabled { cursor: wait; }
.martin-title-screen,
.martin-select-screen { position: absolute; inset: 0; overflow: hidden; }
.martin-title-screen {
  color: #19151d;
  background: repeating-radial-gradient(circle at 51% 51%, #ffd64d 0 6%, #f5bb39 6.2% 11.4%, #ffe05b 11.6% 16.8%);
}
.martin-title-art {
  position: absolute;
  inset: 0;
  background-image: url('../art/martin-ui/v1/title-background-v2.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.martin-title-topline {
  position: absolute;
  top: 3.5%;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: clamp(7px, 1.15cqw, 12px);
  font-weight: 900;
  letter-spacing: .29em;
}
.martin-brand {
  position: absolute;
  top: 13%;
  left: 50%;
  width: 47%;
  transform: translateX(-50%) rotate(-2deg);
  text-align: center;
  filter: drop-shadow(.5cqw .7cqw 0 #be6c24);
}
.martin-brand::before {
  content: '';
  display: block;
  height: 1.1cqw;
  margin-inline: 4%;
  background: repeating-conic-gradient(from 45deg at 50% 100%, #19171c 0 25%, transparent 0 100%) 0 0 / 3.1cqw 1.6cqw;
}
.martin-brand-word {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: .5% 3% 1%;
  background: #19171c;
  color: #fffef6;
  font-family: 'Arial Black', Impact, Arial, sans-serif;
  font-size: 8.3cqw;
  font-weight: 1000;
  line-height: .99;
  letter-spacing: -.07em;
}
.martin-brand-letter { position: relative; display: inline-block; }
.martin-brand-letter-1::after {
  content: '';
  position: absolute;
  width: 74%;
  height: 10%;
  bottom: 0;
  left: 14%;
  background: #00a8d4;
}
.martin-brand-letter-2 { color: #f5f0e3; }
.martin-brand-letter-4 { color: #ffe045; margin-inline: .015em; }
.martin-brand-subtitle {
  display: block;
  padding: 1.7% 3% 2%;
  background: #19171c;
  color: #ffdb4c;
  border-top: .2cqw solid #e6c344;
  font-size: 1.65cqw;
  font-weight: 900;
  letter-spacing: .42em;
}
.martin-title-tagline {
  position: absolute;
  top: 44%;
  left: 30%;
  width: 40%;
  margin: 0;
  text-align: center;
  font-size: 1.2cqw;
  font-weight: 900;
  letter-spacing: .16em;
}
.martin-press-start {
  position: absolute;
  left: 50%;
  bottom: 13%;
  width: 35%;
  transform: translateX(-50%) skew(-6deg);
  padding: 1.1% 2% 1.3%;
  border: .35cqw solid #fff4bd;
  background: #17141e;
  color: #ffdc43;
  box-shadow: .6cqw .6cqw 0 #d53c35;
  text-align: center;
}
.martin-press-start:hover { background: #2c2333; }
.martin-press-start strong,
.martin-press-start span { display: block; transform: skew(6deg); }
.martin-press-start strong { font-size: 2.9cqw; font-weight: 1000; letter-spacing: .12em; }
.martin-press-start span { margin-top: .5cqw; font-size: .8cqw; font-weight: 900; letter-spacing: .09em; color: #fff8d8; }
.martin-press-start:not(:disabled) strong { animation: martin-start-pulse 1.65s ease-in-out infinite; }
.martin-press-start:disabled { opacity: .75; }
.martin-title-status,
.martin-title-bottom {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0;
  text-align: center;
  font-size: .85cqw;
  font-weight: 900;
  letter-spacing: .12em;
}
.martin-title-status { bottom: 7.5%; }
.martin-title-bottom { bottom: 3%; font-size: .8cqw; letter-spacing: .25em; }
@keyframes martin-start-pulse { 50% { color: #fffbed; text-shadow: 0 0 1cqw #ffca4e8c; } }

.martin-select-screen {
  display: flex;
  flex-direction: column;
  padding: 2.2% 2.8% 1.8%;
  background:
    linear-gradient(113deg, transparent 48.7%, #ffdf4d12 49%, #ffdf4d12 50%, transparent 50.3%),
    repeating-radial-gradient(ellipse at 50% 44%, transparent 0 16%, #3f4a6930 16.2% 16.5%, transparent 16.8% 30%),
    linear-gradient(130deg, #122b51, #21172a 49%, #44222b);
}
.martin-select-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background: repeating-linear-gradient(0deg, transparent 0 3px, #0b0d1a 3px 4px);
}
.martin-select-header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 2%; min-height: 13%; border-bottom: .23cqw solid #ffce3b; padding-bottom: 1.5%; }
.martin-select-heading { min-width: 0; }
.martin-select-eyebrow { display: block; font-size: .8cqw; letter-spacing: .24em; font-weight: 900; color: var(--martin-gold); }
.martin-select-heading h2 { margin: .3cqw 0 0; font: italic 1000 3.5cqw/.95 'Arial Black', Impact, Arial, sans-serif; letter-spacing: -.065em; color: #fff4ce; text-shadow: .2cqw .23cqw 0 #a35632; white-space: nowrap; }
.martin-mode-options { display: flex; justify-content: flex-end; flex-wrap: wrap; align-content: center; gap: .45cqw; width: 47%; }
.martin-mode-button { border: .12cqw solid #8e8a91; padding: .65cqw .8cqw; background: #0d1624a8; color: #d8d9e4; font-size: .82cqw!important; font-weight: 900!important; letter-spacing: .035em; }
.martin-mode-button:hover { background: #33445a; }
.martin-mode-button[aria-pressed=true] { border-color: var(--martin-gold); color: #16141d; background: var(--martin-gold); box-shadow: .2cqw .2cqw 0 #080c1b; }
.martin-select-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; gap: 2.4%; padding-block: 2%; }
.martin-player-card { min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; background: #0a1019b3; border: .17cqw solid #5b576e; }
.martin-player-card[data-active=true] { border-color: var(--martin-blue); box-shadow: 0 0 1.6cqw #34bbff2a; }
.martin-player-2[data-active=true] { border-color: var(--martin-red); box-shadow: 0 0 1.6cqw #ff66552a; }
.martin-player-switch { position: relative; z-index: 1; display: flex; width: 100%; justify-content: space-between; align-items: center; flex: none; padding: .8cqw .7cqw!important; border: 0; border-bottom: .15cqw solid #5b576e; background: #142a45; color: #83d6ff; }
.martin-player-2 .martin-player-switch { background: #41232b; color: #ffab98; }
.martin-player-switch:hover { background: #24476b; }
.martin-player-2 .martin-player-switch:hover { background: #67313a; }
.martin-player-label { font-size: 1cqw; font-weight: 1000; letter-spacing: .07em; }
.martin-player-selection-state { font-size: .65cqw; letter-spacing: .08em; font-weight: 900; }
.martin-player-portrait { flex: 1; min-height: 0; overflow: hidden; background: #17121e; position: relative; }
.martin-player-portrait::after { content: ''; position: absolute; inset: 70% 0 0; pointer-events: none; background: linear-gradient(transparent, #10121c); }
.martin-portrait-image { display: block; width: 100%; height: 100%; overflow: hidden; }
.martin-player-2 .martin-player-portrait > svg { transform: scaleX(-1); }
.martin-player-details { position: relative; flex: none; min-height: 22%; margin-top: -.4cqw; padding: .5cqw .9cqw .9cqw; background: #10121c; border-top: .2cqw solid #35baff; }
.martin-player-2 .martin-player-details { border-top-color: var(--martin-red); }
.martin-player-name { margin: 0; font: italic 1000 2.3cqw/.97 'Arial Black', Impact, Arial, sans-serif; color: #fff5d4; text-transform: uppercase; letter-spacing: -.04em; overflow-wrap: normal; }
.martin-player-signature { margin: .6cqw 0 0; font-size: .95cqw; color: #c3e7ff; line-height: 1.1; }
.martin-player-2 .martin-player-signature { color: #ffd6c6; }
.martin-player-lock { margin-top: .7cqw; padding: .35cqw .5cqw!important; background: #1a3451; border: .1cqw solid #4fa6d4; color: #d8f5ff; font-size: .74cqw!important; font-weight: 900!important; letter-spacing: .1em; }
.martin-player-lock:hover { background: #24527b; }
.martin-player-2 .martin-player-lock { background: #4a2830; border-color: #ca6c6c; color: #ffe5da; }
.martin-player-lock[aria-pressed=true] { border-color: var(--martin-gold); color: var(--martin-gold); }
.martin-select-center { min-height: 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.martin-choose-prompt { flex: none; margin: 0 0 1cqw; font-size: 1cqw; font-weight: 1000; letter-spacing: .09em; color: #8cdbff; }
.martin-choose-prompt[data-player='2'] { color: #ffac9e; }
.martin-character-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: .65cqw; min-height: 0; width: 100%; aspect-ratio: 1.04; padding: .35cqw; }
.martin-character-tile { position: relative; display: flex; flex-direction: column; min-height: 0; overflow: visible; padding: 0!important; margin: 0; border: .18cqw solid #a69b91; background: #181624; isolation: isolate; }
.martin-character-tile:hover { border-color: #fff0bb; background: #343045; }
.martin-character-head { display: block; width: 100%; flex: 1; min-height: 0; overflow: hidden; }
.martin-character-tile::after { content: ''; position: absolute; pointer-events: none; inset: -.38cqw; border: .25cqw solid transparent; z-index: 2; }
.martin-character-tile[data-p1=true]::after { border-color: var(--martin-blue); }
.martin-character-tile[data-p2=true]::after { border-color: var(--martin-red); }
.martin-character-tile[data-p1=true][data-p2=true]::after { border-color: var(--martin-blue) var(--martin-red) var(--martin-red) var(--martin-blue); }
.martin-character-tile[data-active=true] { box-shadow: 0 0 1.2cqw #fff3a438; z-index: 3; }
.martin-character-tile[data-active=true] .martin-character-head { filter: brightness(1.12); }
.martin-character-label { display: block; width: 100%; overflow: hidden; padding: .28cqw .12cqw; background: #0a0b16; color: #efe8d5; text-align: center; font-size: .74cqw; line-height: 1.15; font-weight: 1000; letter-spacing: .045em; white-space: nowrap; }
.martin-character-cursors { position: absolute; inset: -.8cqw -.65cqw auto; z-index: 4; display: flex; justify-content: space-between; pointer-events: none; }
.martin-character-cursors > span { display: none; padding: .12cqw .35cqw; color: #0c1421; font-size: .85cqw; font-weight: 1000; box-shadow: .13cqw .13cqw 0 #10121c; }
.martin-cursor-one { background: var(--martin-blue); }
.martin-cursor-two { background: var(--martin-red); margin-left: auto; }
.martin-character-tile[data-p1=true] .martin-cursor-one,
.martin-character-tile[data-p2=true] .martin-cursor-two { display: block; }
.martin-character-tile[data-p1-locked=true] .martin-cursor-one::after,
.martin-character-tile[data-p2-locked=true] .martin-cursor-two::after { content: ' ✓'; }
.martin-mode-detail { flex: none; margin: .9cqw 0 0; font-size: 1.03cqw; font-weight: 900; color: #ffe3a3; }
.martin-select-status { flex: none; min-height: 1em; margin: .55cqw 0 0; font-size: .65cqw; font-weight: 800; letter-spacing: .09em; color: #aeb5ce; }
.martin-select-status[data-error=true] { color: #ffbdab; }
.martin-select-footer { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 2%; border-top: .15cqw solid #9c8b6e; padding-top: 1.2%; }
.martin-select-controls { margin: 0; text-align: center; font-size: .67cqw; font-weight: 800; letter-spacing: .03em; color: #c7c5d4; }
.martin-select-controls span { display: block; }
.martin-select-controls span + span { margin-top: .4cqw; }
.martin-front-back { flex: none; padding: .7cqw 1cqw!important; border: .12cqw solid #77768b; background: #141a2a; color: #f2e8d0; font-size: .85cqw!important; font-weight: 900!important; letter-spacing: .08em; }
.martin-front-back:hover { background: #31344b; }
.martin-fight-button { flex: none; min-width: 16%!important; padding: .55cqw 1.6cqw!important; border: .2cqw solid #fff0ba; background: var(--martin-gold); color: #20171d; font: italic 1000 2.3cqw/1 'Arial Black', Impact, Arial, sans-serif!important; letter-spacing: -.02em; box-shadow: .3cqw .3cqw 0 #9b363e; transform: skew(-5deg); }
.martin-fight-button:hover { background: #ffe680; }
.martin-fight-button:disabled { background: #9e874c; color: #27232c; }

/* Retain a useful 16:9 frame on narrow screens; all measures scale with it. */
@container (max-width: 540px) {
  .martin-front-end button:focus-visible { outline-width: 2px; outline-offset: 1px; }
  .martin-select-screen { padding: 2.2% 2.4% 1.8%; }
  .martin-select-header { min-height: 14%; }
  .martin-select-heading h2 { font-size: 3.7cqw; }
  .martin-select-eyebrow { font-size: 1cqw; }
  .martin-mode-options { width: 49%; gap: .6cqw; }
  .martin-mode-button { font-size: 1.13cqw!important; padding: .65cqw .8cqw!important; }
  .martin-select-body { gap: 1.8%; grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, .95fr); }
  .martin-player-label { font-size: 1.12cqw; }
  .martin-player-selection-state { font-size: .85cqw; }
  .martin-player-name { font-size: 2.55cqw; }
  .martin-player-signature { font-size: 1.1cqw; }
  .martin-player-lock { font-size: 1cqw!important; }
  .martin-character-label { font-size: 1cqw; padding-block: .35cqw; }
  .martin-choose-prompt { font-size: 1.12cqw; margin-bottom: 1.2cqw; }
  .martin-character-cursors > span { font-size: 1.12cqw; }
  .martin-mode-detail { font-size: 1.1cqw; }
  .martin-select-status { font-size: .85cqw; }
  .martin-select-controls { font-size: .88cqw; }
  .martin-front-back { font-size: 1.1cqw!important; }
  .martin-title-topline { font-size: 1.3cqw; }
  .martin-press-start { width: 39%; }
  .martin-press-start span { font-size: 1cqw; }
  .martin-title-status { font-size: 1.05cqw; }
  .martin-title-bottom { font-size: 1cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .martin-press-start:not(:disabled) strong { animation: none; }
}

/* The demo uses the same arena, recorder, Super cut-ins and AI as live play. */
.martin-attract { position: absolute; left: 50%; bottom: 6.5%; z-index: 6; display: grid; grid-template-columns: auto auto; align-items: center; gap: .25em .8em; width: max-content; max-width: 86%; padding: .55em 1em; border: 1px solid #ffda65; border-radius: 5px; background: #16141de8; color: #fff4cf; text-align: center; font: 700 clamp(9px, 1.05vw, 14px)/1.2 Arial, sans-serif; box-shadow: 0 3px 16px #0007; transform: translateX(-50%); }
.martin-attract[hidden] { display: none; }
.martin-attract-label { font: italic 1000 1.5em/1 'Arial Black', Impact, sans-serif; letter-spacing: .08em; color: #ffcf35; }
.martin-attract-countdown { font-variant-numeric: tabular-nums; }
.martin-attract button { min-height: 0; padding: .45em .6em; border: 1px solid #d6bc78; border-radius: 3px; background: #ffcf35; color: #211824; font: inherit; font-size: .85em; cursor: pointer; }
.martin-attract #martin-attract-title { color: #fff1c9; background: transparent; }
.martin-attract button:focus-visible { outline: 2px solid #52caff; outline-offset: 3px; }
.martin-attract[data-suspended=true] { visibility: hidden; }
.martin-attract-active #preview-stop-button { visibility: hidden; pointer-events: none; }
@media(max-width: 600px) { .martin-attract { bottom: 8%; padding: .35em .6em; gap: .2em .55em; font-size: 8px; } }
