/* The style and language pickers share the header in every theme. */
.style-picker { position: relative; flex: 0 0 auto; }
#style-toggle { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 10px; font-size: .85rem; }
.style-options { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); min-width: 160px; padding: 6px; background: #232331; color: #f6f5fb; border: 1px solid #444052; border-radius: 12px; box-shadow: 0 12px 30px #0008; }
.style-options button { display: block; width: 100%; text-align: left; padding: 10px 12px; background: transparent; color: inherit; font-size: .85rem; }
.style-options button[aria-pressed="true"] { color: #bba8ff; background: #bba8ff20; }
.language-picker { position: relative; display: flex; flex: 0 0 58px; }
#language { display: none; }
#language-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 38px; padding: 9px 4px; white-space: nowrap; font-size: .85rem; }
#language-toggle::after { content: "⌄"; font-size: .75em; }
.language-options { min-width: 86px; }
.language-options button { text-align: center; }
footer { font-size: .92rem; }
footer .footer-rule { white-space: nowrap; }
footer .move-symbol { vertical-align: -.15em; }
.pixel-empty-table { display: none; }
@media (max-width: 720px) {
  footer { font-size: .8625rem; }
}
@media (max-width: 600px) {
  #style-toggle { min-width: 38px; min-height: 38px; justify-content: center; padding: 7px 5px; }
  .masthead { gap: 4px; }
  .language-picker { flex-basis: 54px; margin-left: 6px; }
}
@media (max-width: 360px) {
  .masthead .brand { font-size: .82rem; }
  .masthead #rating-open, .masthead #account-open { font-size: .62rem; padding-inline: 1px; }
  #style-toggle { min-width: 32px; padding-inline: 2px; }
  .language-picker { flex-basis: 46px; margin-left: 0; }
  #language-toggle { padding-inline: 1px; font-size: 11px; }
}

html[data-style="pixel"] .setup-grid > .intro h1 span { white-space: nowrap; }
@media (max-width: 420px) {
  html[data-style="pixel"] .setup-grid > .intro h1 { font-size: clamp(22px, 8.5vw, 34.8px); }
}

html[data-style="pixel"] {
  color-scheme: light;
  --bg: #fff9e9;
  --surface: #fff4d2;
  --muted: #536080;
  --accent: #2f80ed;
  --mint: #318f50;
  --line: #24295336;
  color: #242953;
  background: var(--bg);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
html[data-style="pixel"] body {
  background: url('/pixel-landscape.svg') repeat-x center bottom / auto 160px, linear-gradient(#fff9e9eb, #fff9e9f5), repeating-linear-gradient(90deg, #2f80ed18 0 8px, transparent 8px 16px), repeating-linear-gradient(0deg, #2f80ed12 0 8px, transparent 8px 16px);
}
html[data-style="pixel"] .brand { letter-spacing: -.045em; text-shadow: 2px 2px 0 #ffd44770; }
html[data-style="pixel"] .spark { color: #2f80ed; text-shadow: none; }
html[data-style="pixel"] .masthead { border-bottom: 3px solid #2f80ed; }
html[data-style="pixel"] .edition { color: #52618a; font-weight: 800; }
html[data-style="pixel"] .intro-bottom strong { color: #242953; }
html[data-style="pixel"] .mini-icon { border: 2px solid #2f80ed; border-radius: 0; color: #2f80ed; }
html[data-style="pixel"] h1,
html[data-style="pixel"] h2,
html[data-style="pixel"] h3,
html[data-style="pixel"] legend { font-weight: 900; letter-spacing: -.045em; }
html[data-style="pixel"] button,
html[data-style="pixel"] select,
html[data-style="pixel"] input { border-radius: 0; }
html[data-style="pixel"] button { border: 2px solid #2f80ed; box-shadow: 3px 3px 0 #242953; background: #fff4d2; color: #242953; transition: transform .12s steps(2,end), box-shadow .12s steps(2,end), background .12s steps(2,end); }
html[data-style="pixel"] button:hover:not(:disabled) { background: #ffe6a1; }
html[data-style="pixel"] button:active:not(:disabled) { transform: translate(3px,3px); box-shadow: none; }
html[data-style="pixel"] button:focus-visible,
html[data-style="pixel"] select:focus-visible,
html[data-style="pixel"] input:focus-visible,
html[data-style="pixel"] a:focus-visible { outline: 3px dashed #f45f69; outline-offset: 4px; }
html[data-style="pixel"] .quiet { background: #fff4d2; color: #242953; }
html[data-style="pixel"] .primary,
html[data-style="pixel"] :is(.segmented,.modes,.targets,.rating-periods,.profile-tabs,.nick-options,.style-options) button[aria-pressed="true"] { background: #176bd1; color: #fff; }
html[data-style="pixel"] :is(.segmented,.nick-options) button[aria-pressed="true"] { box-shadow: 3px 3px 0 #242953; }
html[data-style="pixel"] .primary:is(:hover,:focus-visible):not(:disabled),
html[data-style="pixel"] :is(.segmented,.modes,.targets,.rating-periods,.profile-tabs,.nick-options,.style-options) button[aria-pressed="true"]:is(:hover,:focus-visible):not(:disabled) { background: #0d54aa; color: #fff; }
html[data-style="pixel"] button:not(.primary,[aria-pressed="true"],[data-move],#exit):is(:hover,:focus-visible):not(:disabled) { background: #ffe6a1; color: #242953; }
html[data-style="pixel"] #language-toggle,
html[data-style="pixel"] #style-toggle { background: #fff4d2; border: 2px solid #2f80ed; color: #242953; box-shadow: 3px 3px 0 #242953; }
html[data-style="pixel"] button:is(#language-toggle,#style-toggle)[aria-expanded="true"] { background: #176bd1; color: #fff; }
html[data-style="pixel"] button:is(#language-toggle,#style-toggle)[aria-expanded="true"]:is(:hover,:focus-visible) { background: #0d54aa; color: #fff; }
html[data-style="pixel"] .style-options { background: #fff4d2; color: #242953; border: 2px solid #2f80ed; border-radius: 0; box-shadow: 4px 4px 0 #242953; }
html[data-style="pixel"] .style-options button { box-shadow: none; border: 0; }
html[data-style="pixel"] .style-options button[aria-pressed="true"] { background: #176bd1; color: #fff; }
html[data-style="pixel"] .style-options button[aria-pressed="true"]:is(:hover,:focus-visible) { background: #0d54aa; color: #fff; }
html[data-style="pixel"] input { color: #242953; background: #fff4d2; border: 2px solid #2f80ed; }
html[data-style="pixel"] .panel,
html[data-style="pixel"] .scoreboard,
html[data-style="pixel"] .result-panel,
html[data-style="pixel"] .waiting,
html[data-style="pixel"] .profile-stat-card,
html[data-style="pixel"] .history-detail,
html[data-style="pixel"] .rating-table-wrap,
html[data-style="pixel"] .import-prompt { background: #fff4d2; border: 3px solid #2f80ed; border-radius: 0; box-shadow: 5px 5px 0 #242953; }
html[data-style="pixel"] .setup-grid > .settings { background: #fff9e9; }
html[data-style="pixel"] .scoreboard { border-color: #2f80ed; }
html[data-style="pixel"] .trio > div { transform: none; background: #fff4d2; border: 3px solid #2f80ed; border-radius: 0; box-shadow: 4px 4px 0 #242953; }
html[data-style="pixel"] .trio > div:first-child { border-color: #f45f69; }
html[data-style="pixel"] .trio > div:nth-child(2) { transform: translateY(-7px); border-color: #258fdb; }
html[data-style="pixel"] .trio > div:last-child { border-color: #43ac65; }
html[data-style="pixel"] .trio b { font-size: clamp(.85rem, 2.95vw, 1.02rem); white-space: nowrap; }
html[data-style="pixel"] .modes button svg { display: none; }
html[data-style="pixel"] .modes button::before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  background: center / contain no-repeat;
  image-rendering: pixelated;
}
html[data-style="pixel"] .modes button[data-mode="image"]::before { background-image: url('/pixel-mode-image.svg'); }
html[data-style="pixel"] .modes button[data-mode="voice"]::before { background-image: url('/pixel-mode-voice.svg'); }
html[data-style="pixel"] .modes button[data-mode="visual"]::before { background-image: url('/pixel-mode-gesture.svg'); }
html[data-style="pixel"] .move-buttons button { border-width: 3px; border-color: #242953; box-shadow: 5px 5px 0 #242953; color: #fff; border-radius: 0; }
html[data-style="pixel"] .move-buttons button:is(:hover,:focus-visible):not(:disabled) { filter: brightness(1.08); }
html[data-style="pixel"] .move-buttons button:nth-child(1) { background: #f45f69; }
html[data-style="pixel"] .move-buttons button:nth-child(2) { background: #258fdb; }
html[data-style="pixel"] .move-buttons button:nth-child(3) { background: #43ac65; }
html[data-style="pixel"] .move-buttons b { text-shadow: 1px 2px 0 #242953aa; }
html[data-style="pixel"] .move-symbol { display: inline-block; flex: 0 0 auto; width: 3.75rem; height: 3.75rem; font-size: 0 !important; vertical-align: middle; background-position: center; background-repeat: no-repeat; background-size: contain; image-rendering: pixelated; }
html[data-style="pixel"] .move-symbol[data-move="rock"] { background-image: url('/pixel-rock.svg'); }
html[data-style="pixel"] .move-symbol[data-move="scissors"] { background-image: url('/pixel-scissors.svg'); }
html[data-style="pixel"] .move-symbol[data-move="paper"] { background-image: url('/pixel-paper.svg'); }
html[data-style="pixel"] .trio .move-symbol { width: min(6.5625rem, 100%); height: auto; aspect-ratio: 1; }
html[data-style="pixel"] .reveal .move-symbol { display: block; width: 4rem; height: 4rem; margin-inline: auto; }
html[data-style="pixel"] td .move-symbol,
html[data-style="pixel"] .profile-stat-card .move-symbol { width: 1.5rem; height: 1.5rem; }
html[data-style="pixel"] .score-player strong { color: #f45f69; }
html[data-style="pixel"] .score-player:last-child strong { color: #239452; }
html[data-style="pixel"] progress.track::-webkit-progress-bar { background: #2429531c; border-radius: 0; }
html[data-style="pixel"] progress.track::-webkit-progress-value { background: #f45f69; border-radius: 0; }
html[data-style="pixel"] progress.track::-moz-progress-bar { background: #f45f69; border-radius: 0; }
html[data-style="pixel"] .score-player:last-child progress.track::-webkit-progress-value { background: #239452; }
html[data-style="pixel"] .score-player:last-child progress.track::-moz-progress-bar { background: #239452; }
html[data-style="pixel"] .winner,
html[data-style="pixel"] .win { color: #217d3d; }
html[data-style="pixel"] .loss { color: #c74450; }
html[data-style="pixel"] .error,
html[data-style="pixel"] .camera-error { background: #ffe4d2; color: #8e3f1d; border-color: #ed7432; border-radius: 0; }
html[data-style="pixel"] .connected { color: #217d3d; }
html[data-style="pixel"] .rating-dialog,
html[data-style="pixel"] .account-dialog,
html[data-style="pixel"] dialog { background: #fff4d2; color: #242953; border: 3px solid #2f80ed; border-radius: 0; box-shadow: 8px 8px 0 #242953; }
html[data-style="pixel"] .account-dialog .dialog-heading,
html[data-style="pixel"] .rating-table th { background: #fff4d2; }
html[data-style="pixel"] dialog p { color: var(--muted); }
html[data-style="pixel"] .rating-table tr.self { background: #fff0bd; }
html[data-style="pixel"] .match-end-actions .quiet { background: #fff4d2; }
html[data-style="pixel"] .camera-panel { border-radius: 0 !important; border: 3px solid #2f80ed; }
html[data-style="pixel"] .camera { border-radius: 0 !important; }
html[data-style="pixel"] footer { border-color: #2f80ed; }
@media (max-width: 600px) {
  html[data-style="pixel"] .move-symbol { width: 3rem; height: 3rem; }
  html[data-style="pixel"] .reveal .move-symbol { width: 3.25rem; height: 3.25rem; }
  html[data-style="pixel"] td .move-symbol { width: 1.25rem; height: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-style="pixel"] button { transition: none; }
}

/* The illustrated Pixel layout keeps the same game controls and behavior. */
@font-face {
  font-family: "Press Start 2P";
  src: url('/fonts/PressStart2P-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
html[data-style="pixel"] {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.65;
}
html[data-style="pixel"] body { min-width: 0; background: #fff9e9; }
html[data-style="pixel"] .shell { max-width: none; padding-inline: 12px; }
html[data-style="pixel"] main { max-width: 1200px; margin-inline: auto; }
html[data-style="pixel"] .masthead {
  min-height: 82px;
  padding: 12px 26px;
  margin-top: 8px;
  border: 4px solid #2f80ed;
  background: #fff9e9;
  box-shadow: inset 0 0 0 3px #dcecff, 4px 4px 0 #242953;
}
html[data-style="pixel"] .brand { display: inline-flex; align-items: center; gap: 12px; font-size: 25px; letter-spacing: 0; text-shadow: 2px 3px 0 #ffd44770; }
html[data-style="pixel"] #rating-page .rating-page-heading h1 { font-size: clamp(26px, 4.4vw, 48px); }
html[data-style="pixel"] .brand .spark { display: inline-block; flex: 0 0 40px; width: 40px; height: 40px; margin: 0; font-size: 0; background: url('/triangle-pixel.svg') center / contain no-repeat; }
html[data-style="pixel"] .masthead .quiet { min-height: 43px; padding: 9px 10px; border-color: #2f80ed; box-shadow: 3px 3px 0 #a9d3fb; font-size: 10px; }
html[data-style="pixel"] .masthead #style-toggle { min-height: 43px; padding: 10px 12px; font-size: .88rem; box-shadow: 3px 3px 0 #a9d3fb; }
html[data-style="pixel"] .masthead #language-toggle { box-shadow: 3px 3px 0 #a9d3fb; }
html[data-style="pixel"] .language-picker { flex-basis: 60px; }
html[data-style="pixel"] main:has(> #match:not([hidden])) { padding-top: 24px; }
html[data-style="pixel"] .match-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
html[data-style="pixel"] #match .arena,
html[data-style="pixel"] #match #history {
  position: relative;
  min-width: 0;
  min-height: 680px;
  overflow: hidden;
  border: 5px solid #2f80ed;
  border-radius: 0;
  box-shadow: inset 0 0 0 3px #dcecff, 4px 4px 0 #242953;
  background: linear-gradient(#fff4d2 0%, #fff2ce 60%, #e5f2f8 100%);
}
html[data-style="pixel"] #match .arena { --pixel-stage-height: 300px; --pixel-result-height: 300px; padding: 25px 28px; }
html[data-style="pixel"] #match #history {
  display: flex;
  flex-direction: column;
  padding: 26px 14px;
  overflow: hidden;
  background: #fff9e9;
}
html[data-style="pixel"] #history .history-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 165px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #1d4fa8 #fff2ce;
  text-align: center;
}
html[data-style="pixel"] #history .history-scroll::-webkit-scrollbar { width: 10px; }
html[data-style="pixel"] #history .history-scroll::-webkit-scrollbar-track { background: #fff2ce; }
html[data-style="pixel"] #history .history-scroll::-webkit-scrollbar-thumb { background: #1d4fa8; border: 2px solid #fff2ce; }
html[data-style="pixel"] #match .arena::before,
html[data-style="pixel"] #match #history::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 260px;
  background: url('/pixel-landscape.svg') repeat-x center bottom / auto 260px;
  pointer-events: none;
}
html[data-style="pixel"] #match .arena > *,
html[data-style="pixel"] #match #history > * { position: relative; z-index: 1; }
html[data-style="pixel"] .match-meta {
  padding-bottom: 14px;
  margin-bottom: 10px;
  border-bottom: 3px dashed #2f80ed;
  color: #242953;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0;
}
html[data-style="pixel"] .match-target { color: #242953; }
html[data-style="pixel"] .match-meta #exit { border: 0; background: none; box-shadow: none; color: #d63b50; font-size: 12px; }
html[data-style="pixel"] .match-meta #exit:hover { background: #ffe6e6; }
html[data-style="pixel"] .match-meta #exit:focus-visible { background: #ffe6e6; }
html[data-style="pixel"] .arena .move-heading { margin: 0 0 22px; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.45; letter-spacing: 0; }
html[data-style="pixel"] .arena .move-heading:not(.match-result-heading):has(+ .turn-stage.mode-image) { position: relative; top: 5px; }
html[data-style="pixel"] .arena .move-heading.match-result-heading:not(.match-final-heading) { position: relative; top: 5px; }
html[data-style="pixel"] .turn-stage.mode-image,
html[data-style="pixel"] .turn-stage.mode-voice,
html[data-style="pixel"] .turn-stage.mode-visual,
html[data-style="pixel"] .turn-stage.match-ended { height: var(--pixel-stage-height); margin-top: 0; }
html[data-style="pixel"] .turn-stage:has(.turn-feedback),
html[data-style="pixel"] .turn-stage.match-ended { height: var(--pixel-result-height); min-height: var(--pixel-result-height); }
html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback,
html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback > .result-panel,
html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback > .waiting,
html[data-style="pixel"] .turn-stage.match-ended .result-panel { min-height: var(--pixel-result-height); }
html[data-style="pixel"] .move-buttons { height: 100%; gap: 16px; }
html[data-style="pixel"] .turn-stage.mode-image .move-buttons {
  flex: 0 0 auto;
  width: min(100%, 620px);
  height: min(100%, 260px);
  margin: auto;
}
html[data-style="pixel"] .move-buttons button {
  position: relative;
  height: 100%;
  padding: 0 8px 59px;
  justify-content: center;
  overflow: hidden;
  border: 4px solid #242953;
  box-shadow: inset 0 0 0 5px #ffffffa3, 5px 5px 0 #242953;
}
html[data-style="pixel"] .move-buttons button::before {
  content: "+       +";
  position: absolute;
  top: 24px;
  left: 9%;
  right: 9%;
  color: #ffe47a;
  text-align: justify;
  white-space: pre;
  font-size: 17px;
}
html[data-style="pixel"] .move-buttons .move-symbol { width: min(70%, 185px); height: 185px; z-index: 1; filter: drop-shadow(5px 6px 0 #24295366); }
html[data-style="pixel"] .move-buttons b {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 6px;
  border-top: 4px solid #fff8;
  font-size: 16px;
  line-height: 1.3;
}
html[data-style="pixel"] .move-buttons button:nth-child(1) b { background: #b5263d; }
html[data-style="pixel"] .move-buttons button:nth-child(2) b { background: #075fa7; }
html[data-style="pixel"] .move-buttons button:nth-child(3) b { background: #0c6e3d; }
html[data-style="pixel"] .arena > .scoreboard {
  width: min(100%, 540px);
  min-height: 132px;
  margin: 25px auto 0;
  padding: 12px 20px;
  border: 4px solid #2f80ed;
  box-shadow: inset 0 0 0 3px #dcecff, 5px 5px 0 #242953;
  background: #fff4d2;
}
html[data-style="pixel"] .score-player .name { color: #242953; font-size: 11px; }
html[data-style="pixel"] .score-player strong { font-size: 42px; line-height: 1.5; }
html[data-style="pixel"] .colon { color: #2f80ed; font-size: 29px; }
html[data-style="pixel"] .score-player progress.track { display: none; }
html[data-style="pixel"] #history h2 { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 12px; padding-bottom: 18px; border-bottom: 3px dashed #2f80ed; font-size: 23px; line-height: 1.3; }
html[data-style="pixel"] #history h2::before { content: ""; display: block; flex: 0 0 32px; width: 32px; height: 32px; background: url('/pixel-trophy.svg') center / contain no-repeat; }
html[data-style="pixel"] #history h3 { font-size: 12px; }
html[data-style="pixel"] #history .help,
html[data-style="pixel"] #history .winner { font-size: 10px; line-height: 1.8; }
html[data-style="pixel"] #history table { margin-inline: auto; border: 2px solid #2f80ed; font-size: 10px; }
html[data-style="pixel"] #history .empty-history-message { display: none; }
html[data-style="pixel"] #history .pixel-empty-table { display: table; }
html[data-style="pixel"] #history .pixel-empty-table tbody td { height: 170px; text-align: center; color: #536080; border-bottom: 0; }
html[data-style="pixel"] #history th,
html[data-style="pixel"] #history td { padding: 8px 6px; border: 1px solid #2f80ed; text-align: center; }
html[data-style="pixel"] #history th { text-align: center; }
html[data-style="pixel"] .history-detail th,
html[data-style="pixel"] .history-detail td { text-align: center; }
html[data-style="pixel"] #history td .move-symbol { width: 24px; height: 24px; }
html[data-style="pixel"] .result-panel { border-color: #2f80ed; box-shadow: inset 0 0 0 3px #dcecff, 4px 4px 0 #242953; }
html[data-style="pixel"] .turn-stage .result-panel { width: min(calc(100% - 16px), 560px); margin-inline: auto; }
html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback > .result-panel { flex: 0 1 auto; }
html[data-style="pixel"] .turn-stage .result-panel h2 { font-size: 20px; line-height: 1.5; }
html[data-style="pixel"] .turn-stage.match-ended .result-panel { height: auto; overflow: visible; }
html[data-style="pixel"] .turn-stage .reveal b,
html[data-style="pixel"] .turn-stage .reveal small { font-size: 10px; }
html[data-style="pixel"] .turn-stage .reveal .vs { flex: 0 0 auto; font-size: 22px; white-space: nowrap; }
html[data-style="pixel"] .reveal .move-symbol { width: 135px; height: 135px; }
html[data-style="pixel"] .waiting { border-color: #2f80ed; }
html[data-style="pixel"] .camera-panel { border-color: #2f80ed; box-shadow: 4px 4px 0 #242953; }
html[data-style="pixel"] footer { border-top: 3px solid #2f80ed; font-size: 10.35px; }
html[data-style="pixel"] footer .move-symbol { width: 18px; height: 18px; }

/* Add weight and stepped inner corners without changing panel dimensions. */
html[data-style="pixel"] .masthead,
html[data-style="pixel"] .panel,
html[data-style="pixel"] #match .arena,
html[data-style="pixel"] .arena > .scoreboard,
html[data-style="pixel"] .result-panel {
  position: relative;
  outline: 3px solid #2f80ed;
  outline-offset: 0;
}
html[data-style="pixel"] .masthead::after,
html[data-style="pixel"] .panel::after,
html[data-style="pixel"] #match .arena::after,
html[data-style="pixel"] .arena > .scoreboard::after,
html[data-style="pixel"] .result-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    linear-gradient(#2f80ed 0 0) left 5px top 5px / 12px 5px no-repeat,
    linear-gradient(#2f80ed 0 0) left 5px top 5px / 5px 12px no-repeat,
    linear-gradient(#2f80ed 0 0) right 5px top 5px / 12px 5px no-repeat,
    linear-gradient(#2f80ed 0 0) right 5px top 5px / 5px 12px no-repeat,
    linear-gradient(#2f80ed 0 0) left 5px bottom 5px / 12px 5px no-repeat,
    linear-gradient(#2f80ed 0 0) left 5px bottom 5px / 5px 12px no-repeat,
    linear-gradient(#2f80ed 0 0) right 5px bottom 5px / 12px 5px no-repeat,
    linear-gradient(#2f80ed 0 0) right 5px bottom 5px / 5px 12px no-repeat;
}
/* The game stage sits directly on the page; Results keeps its frame. */
html[data-style="pixel"] #match .arena {
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}
html[data-style="pixel"] #match .arena::after { content: none; }

@media (max-width: 1000px) {
  html[data-style="pixel"] .match-grid { grid-template-columns: 1fr; gap: 18px; }
  html[data-style="pixel"] #match #history { min-height: 0; height: 560px; }
  html[data-style="pixel"] .brand { font-size: 19px; }
  html[data-style="pixel"] .brand .spark { flex-basis: 32px; width: 32px; height: 32px; }
  html[data-style="pixel"] .masthead .edition { display: none; }
  html[data-style="pixel"] .move-buttons .move-symbol { width: 110px; height: 110px; }
  html[data-style="pixel"] .move-buttons b { font-size: 11px; }
  html[data-style="pixel"] .reveal .move-symbol { width: 110px; height: 110px; }
}
@media (max-width: 720px) {
  html[data-style="pixel"] main:has(> #match:not([hidden])) { padding-top: 16px; }
  html[data-style="pixel"] .shell { padding-inline: 8px; }
  html[data-style="pixel"] .setup-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-style="pixel"] .setup-grid > .intro,
  html[data-style="pixel"] .setup-grid > .settings { min-width: 0; }
  html[data-style="pixel"] .masthead { min-height: 58px; padding: 7px 8px; gap: 2px; }
  html[data-style="pixel"] .masthead .brand { font-size: 10px; gap: 2px; }
  html[data-style="pixel"] .brand .spark { flex-basis: 22px; width: 22px; height: 22px; }
  html[data-style="pixel"] .masthead .quiet { min-height: 32px; padding: 5px 4px; font-size: 7px; }
  html[data-style="pixel"] .masthead #rating-open,
  html[data-style="pixel"] .masthead #account-open { font-size: 7px; padding-inline: 2px; }
  html[data-style="pixel"] #style-toggle { min-width: 0; min-height: 32px; padding: 5px 3px; font-size: 7px; }
  html[data-style="pixel"] .masthead #style-toggle { min-height: 38px; padding: 10px 2px; }
  html[data-style="pixel"] .language-picker { flex-basis: 42px; margin-left: 0; }
  html[data-style="pixel"] .match-grid { grid-template-columns: 1fr; gap: 18px; }
  html[data-style="pixel"] #match .arena,
  html[data-style="pixel"] #match #history { min-height: 0; }
  html[data-style="pixel"] #match .arena { --pixel-stage-height: 270px; --pixel-result-height: 270px; padding: 15px 10px 28px; }
  html[data-style="pixel"] #match #history {
    height: clamp(330px, 60vh, 560px);
    min-height: 0;
    padding: 16px 8px 55px;
  }
  html[data-style="pixel"] #history .history-scroll { margin-bottom: 95px; }
  html[data-style="pixel"] .match-meta { font-size: clamp(8px, 2.35vw, 9px); margin-bottom: 6px; }
  html[data-style="pixel"] .match-meta #exit { font-size: inherit; }
  html[data-style="pixel"] .arena .move-heading { font-size: 16px; margin-bottom: 17px; }
  html[data-style="pixel"] .turn-stage.mode-image,
  html[data-style="pixel"] .turn-stage.mode-voice,
  html[data-style="pixel"] .turn-stage.mode-visual,
  html[data-style="pixel"] .turn-stage.match-ended { height: var(--pixel-stage-height); }
  html[data-style="pixel"] .turn-stage:has(.turn-feedback),
  html[data-style="pixel"] .turn-stage.match-ended { height: var(--pixel-result-height); min-height: var(--pixel-result-height); }
  html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback,
  html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback > .result-panel,
  html[data-style="pixel"] .turn-stage:has(.turn-feedback) .turn-feedback > .waiting,
  html[data-style="pixel"] .turn-stage.match-ended .result-panel { min-height: var(--pixel-result-height); }
  html[data-style="pixel"] .move-buttons { gap: 5px; }
  html[data-style="pixel"] .move-buttons button { padding-bottom: 42px; border-width: 2px; }
  html[data-style="pixel"] .move-buttons .move-symbol { width: min(75%, 80px); height: 80px; }
  html[data-style="pixel"] .move-buttons b { min-height: 42px; font-size: 7px; border-top-width: 2px; }
  html[data-style="pixel"] .turn-stage.mode-image .move-buttons button[data-move="scissors"] b { font-size: clamp(7px, 2.5vw, 12px); white-space: nowrap; }
  html[data-style="pixel"] .reveal .move-symbol { width: 68px; height: 68px; }
  html[data-style="pixel"] .turn-stage .reveal b,
  html[data-style="pixel"] .turn-stage .reveal small { font-size: clamp(7px, 2.5vw, 10px); overflow-wrap: anywhere; }
  html[data-style="pixel"] .turn-stage .reveal .vs { font-size: 16px; }
  html[data-style="pixel"] .match-end-actions .primary,
  html[data-style="pixel"] .match-end-actions .quiet { min-height: 42px; padding: 8px 6px; font-size: 8px; white-space: nowrap; }
  html[data-style="pixel"] .modes button { padding-inline: 2px; font-size: 8px; overflow-wrap: anywhere; }
  html[data-style="pixel"] .segmented button { padding: 10px 4px; font-size: 8px; line-height: 1.6; }
  html[data-style="pixel"] .arena > .scoreboard { margin-top: 17px; min-height: 96px; padding: 8px; }
  html[data-style="pixel"] .score-player .name { font-size: 8px; }
  html[data-style="pixel"] .score-player strong { font-size: 26px; }
  html[data-style="pixel"] .colon { font-size: 18px; }
  html[data-style="pixel"] #history h2 { font-size: 16px; }
  html[data-style="pixel"] #history h2::before { flex-basis: 24px; width: 24px; height: 24px; }
  html[data-style="pixel"] #history table { font-size: 7px; }
  html[data-style="pixel"] #history th,
  html[data-style="pixel"] #history td { padding: 7px 2px; font-size: 7px; }
  html[data-style="pixel"] footer { font-size: 8.05px; }
  html[data-style="pixel"] footer .move-symbol { width: 14px; height: 14px; }
}
@media (max-width: 600px) {
  html[data-style="pixel"] .masthead #style-toggle { padding: 8px 2px; }
}
@media (max-width: 360px) {
  html[data-style="pixel"] .arena .move-heading { min-height: calc(2 * 16px * 1.45); }
  html[data-style="pixel"] .turn-stage .result-panel { width: 100%; padding-inline: 10px; }
  html[data-style="pixel"] .turn-stage .reveal { gap: 6px; }
  html[data-style="pixel"] .turn-stage .reveal > div { min-width: 0; }
  html[data-style="pixel"] .turn-stage .reveal .vs { font-size: 12px; }
  html[data-style="pixel"] .masthead { gap: 1px; padding-inline: 6px; }
  html[data-style="pixel"] .masthead .brand { font-size: 8px; }
  html[data-style="pixel"] .brand .spark { flex-basis: 18px; width: 18px; height: 18px; }
  html[data-style="pixel"] .masthead #rating-open,
  html[data-style="pixel"] .masthead #account-open { padding-inline: 1px; font-size: 6px; }
  html[data-style="pixel"] #style-toggle { padding-inline: 2px; font-size: 6px; }
  html[data-style="pixel"] .language-picker { flex-basis: 38px; }
  html[data-style="pixel"] #language-toggle { padding-inline: 1px; }
  html[data-style="pixel"] .modes button { font-size: 7px; }
  html[data-style="pixel"] .match-end-actions .primary,
  html[data-style="pixel"] .match-end-actions .quiet { font-size: 7px; }
}
