:root {
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: #352c42;
  background: #fff8e9;
  font-synthesis: none;
  --ink: #352c42;
  --coral: #f46f4e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(#d9cdb844 0.8px, transparent 0.8px) 0 0/8px 8px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #087e84;
  outline-offset: 5px;
}
button:disabled {
  cursor: default;
}
button[hidden] {
  display: none !important;
}
.app {
  max-width: 1160px;
  padding: 0 36px;
  margin: auto;
}
header {
  height: 116px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid #dfd4c0;
}
.brand {
  display: flex;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 25px;
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: -1px;
  transform: rotate(-3deg);
}
.brand-mark {
  color: var(--coral);
  font-size: 53px;
  line-height: 1;
}
.brand-bottom {
  display: block;
  font-size: 29px;
}
.brand-dot {
  color: var(--coral);
  font-size: 13px;
  margin-left: 2px;
}
.tagline {
  font-size: 12px;
  line-height: 1.5;
  border-left: 1px solid #d8cfbc;
  padding-left: 25px;
  color: #817568;
}
.tagline b {
  color: #514538;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.local-badge {
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 900;
  margin-right: 16px;
}
.local-badge i {
  display: inline-block;
  background: #5ba892;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.icon-button {
  height: 37px;
  width: 37px;
  border: 1.5px solid #ded2bb;
  background: #fff9ed;
  border-radius: 50%;
  font-weight: 900;
  font-size: 19px;
  position: relative;
}
.slash {
  position: absolute;
  left: 15px;
  top: 7px;
  font-size: 23px;
  color: #dc6c50;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 26px 1px 13px;
}
.star {
  color: var(--coral);
  font-size: 19px;
  vertical-align: middle;
  margin-right: 8px;
}
.edition {
  color: #8f8374;
  font-size: 9px;
}
.arena {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 23px;
  overflow: hidden;
  background: #bce9df;
  box-shadow: 0 6px 0 #352c42;
  height: auto;
  aspect-ratio: 1100/505;
}
#game {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
#game canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.scoreboard {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.fighter-info {
  display: grid;
  grid-template-columns: auto auto;
  gap: 4px 9px;
  align-items: center;
}
.fighter-info strong {
  font-size: 23px;
  letter-spacing: 0.5px;
  font-weight: 1000;
}
.fighter-tag {
  background: #2c8b7f;
  color: white;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 5px 8px;
  border-radius: 5px;
  transform: rotate(-4deg);
}
.bot-tag {
  background: #885ca3;
  transform: rotate(4deg);
}
.right {
  direction: rtl;
}
.right > * {
  direction: ltr;
}
.pips {
  grid-column: 1/3;
  display: flex;
  gap: 6px;
}
.pip {
  width: 24px;
  height: 10px;
  background: #ffffff77;
  border: 2px solid #352c4255;
  border-radius: 20px;
}
.pip.filled {
  background: #ffbf48;
  border-color: #352c42;
}
.round-chip {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -3px;
}
.round-chip span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 900;
  background: #fff6de;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1px solid #352c4233;
}
.round-chip strong {
  display: block;
  font-size: 29px;
  font-style: italic;
  font-weight: 1000;
  margin-top: 6px;
  color: #352c4266;
}
.arena-caption {
  position: absolute;
  bottom: 15px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #526c53;
}
.loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #bce9df;
  z-index: 3;
  font-weight: bold;
}
.controls {
  padding: 29px 3px 0;
}
.callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.6px;
  color: #bc624a;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
  margin: 7px 0 6px;
  font-weight: 1000;
}
p {
  color: #897d6e;
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
.round-note {
  font-size: 8px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: #998c7a;
  text-align: right;
}
.move-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 22px;
}
.move {
  border: 2px solid var(--ink);
  border-radius: 14px;
  position: relative;
  padding: 15px 18px 14px;
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 100px;
  box-shadow: 0 4px 0 var(--ink);
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    filter 0.15s;
}
.move:hover:not(:disabled) {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 0 var(--ink);
}
.move:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.rock {
  background: #ffc4a8;
}
.paper {
  background: #ffe898;
}
.scissors {
  background: #d5c4f1;
}
.move:disabled {
  filter: saturate(0.4);
  opacity: 0.58;
}
.move.selected {
  opacity: 1;
  filter: none;
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}
.key {
  position: absolute;
  left: 9px;
  top: 7px;
  font-size: 9px;
  font-weight: bold;
  opacity: 0.5;
}
.hand-icon {
  width: 68px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.hand-icon svg {
  width: 100%;
  height: 100%;
}
.move-copy {
  text-align: left;
}
.move-copy strong {
  display: block;
  font-weight: 1000;
  letter-spacing: 0.4px;
  font-size: 19px;
}
.move-copy small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  opacity: 0.65;
}
.move-arrow {
  margin-left: auto;
  align-self: flex-end;
  font-size: 19px;
}
.controls-footer {
  display: flex;
  justify-content: space-between;
  margin: 18px 0 22px;
  font-size: 10px;
  color: #998e7c;
  align-items: center;
}
.controls-footer button {
  background: none;
  border: 0;
  font-size: 10px;
  color: #897d6e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.keyboard {
  font-size: 15px;
  margin-right: 5px;
}
.next-button {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: center;
  width: 100%;
  margin-top: 22px;
  min-height: 100px;
  background: #f77451;
  color: #352c42;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--ink);
  font-size: 24px;
  font-weight: 900;
}
.next-button:hover {
  background: #ff8b64;
}
.next-button span {
  font-size: 32px;
}
footer {
  border-top: 1px solid #dfd4c0;
  padding: 20px 0 23px;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: bold;
  color: #a09380;
}
.footer-dot {
  font-size: 6px;
  color: #e47d60;
  margin: 0 7px;
}
dialog {
  max-width: 420px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 34px;
  background: #fff8e9;
  box-shadow: 7px 7px 0 #352c42;
}
dialog::backdrop {
  background: #352c4277;
}
dialog h2 {
  font-size: 28px;
  letter-spacing: -1px;
}
dialog p {
  font-size: 14px;
  margin: 14px 0;
  color: #685b54;
}
.close-dialog {
  position: absolute;
  right: 13px;
  top: 8px;
  border: 0;
  background: none;
  font-size: 27px;
}
.dialog-play {
  width: 100%;
  padding: 13px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #ffc4a8;
  font-weight: bold;
  margin-top: 10px;
}
@media (min-width: 1500px) {
  .app {
    max-width: 1240px;
  }
  header {
    height: 130px;
  }
  .section-title {
    margin-top: 30px;
  }
}
@media (max-width: 700px) {
  .app {
    padding: 0 16px;
  }
  header {
    height: 86px;
    gap: 12px;
  }
  .brand {
    font-size: 20px;
  }
  .brand-bottom {
    font-size: 23px;
  }
  .brand-mark {
    font-size: 43px;
  }
  .tagline {
    display: none;
  }
  .local-badge {
    font-size: 8px;
    margin-right: 0;
    letter-spacing: 0;
  }
  .header-actions {
    gap: 7px;
  }
  .icon-button {
    width: 32px;
    height: 32px;
  }
  .section-title {
    font-size: 8px;
    letter-spacing: 0.7px;
    margin-top: 20px;
  }
  .edition {
    font-size: 7px;
  }
  .arena {
    aspect-ratio: 1.27;
    border-radius: 17px;
  }
  .scoreboard {
    top: 16px;
    left: 15px;
    right: 15px;
  }
  .fighter-info {
    gap: 3px 5px;
  }
  .fighter-info strong {
    font-size: 17px;
  }
  .fighter-tag {
    font-size: 7px;
    padding: 4px 5px;
  }
  .pip {
    width: 18px;
    height: 9px;
  }
  .round-chip span {
    font-size: 7px;
    padding: 6px 7px;
    letter-spacing: 0.5px;
  }
  .round-chip strong {
    font-size: 23px;
  }
  .arena-caption {
    left: 12px;
    right: 12px;
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .controls {
    padding-top: 24px;
  }
  h1 {
    font-size: 23px;
  }
  .round-note {
    display: none;
  }
  .move-grid {
    gap: 9px;
    margin-top: 18px;
  }
  .move {
    min-height: 126px;
    padding: 16px 5px 12px;
    flex-direction: column;
    gap: 3px;
    border-radius: 12px;
  }
  .hand-icon {
    width: 57px;
    height: 53px;
  }
  .move-copy {
    text-align: center;
  }
  .move-copy strong {
    font-size: 14px;
  }
  .move-copy small {
    font-size: 8px;
  }
  .move-arrow {
    display: none;
  }
  .controls-footer {
    font-size: 8px;
  }
  .controls-footer button {
    font-size: 9px;
  }
  .next-button {
    min-height: 126px;
  }
  footer {
    font-size: 6px;
    letter-spacing: 0.5px;
  }
  .slash {
    left: 12px;
    top: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
/* Welcome transitions into a viewport-filling game, without browser fullscreen. */
[hidden] {
  display: none !important;
}
.welcome-actions {
  text-align: center;
  padding: 25px 0;
}
.welcome-actions .next-button {
  max-width: 360px;
  margin: 18px auto;
  min-height: 62px;
}
.welcome-actions .start-note {
  font-size: 10px;
}
.playing {
  overflow: hidden;
  background: #bce9df;
}
.playing .app {
  padding: 0;
  max-width: none;
}
.playing header,
.playing .section-title,
.playing footer,
.playing .welcome-actions {
  display: none;
}
.playing .arena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #a7ce83;
}
.playing #game {
  top: 36px;
  height: calc(100% - 256px);
}
.playing #game canvas {
  width: 100% !important;
  height: 100% !important;
}
.stage-toolbar {
  position: absolute;
  z-index: 5;
  inset: 12px 22px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stage-toolbar #exit {
  border: 0;
  background: #fff8e9bb;
  border-radius: 30px;
  padding: 8px 13px;
  font-size: 11px;
  font-weight: bold;
}
#stage-settings {
  display: flex;
  gap: 8px;
}
.playing .scoreboard {
  top: 64px;
  left: 5%;
  right: 5%;
}
.playing .arena-caption {
  display: none;
}
.playing .controls {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 94%);
  padding: 0 0 max(12px, env(safe-area-inset-bottom));
}
.playing .callout {
  text-align: center;
  justify-content: center;
  min-height: 51px;
}
.playing .callout h1 {
  font-size: 22px;
  margin: 3px 0;
}
.playing .callout .eyebrow,
.playing .round-note {
  display: none;
}
.playing .callout p {
  color: #3d5c43;
  font-size: 11px;
  max-width: 600px;
}
.playing .move-grid {
  margin-top: 12px;
}
.playing .move {
  min-height: 83px;
  padding: 8px 18px;
}
.playing .hand-icon {
  width: 58px;
  height: 56px;
}
.playing .controls-footer {
  margin: 12px 0 0;
  color: #365842;
}
.playing .controls-footer button {
  color: #365842;
}
.playing .next-button {
  min-height: 83px;
  margin-top: 12px;
}
.timer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto 9px;
  width: 210px;
  background: #fff8e9;
  border: 2px solid #352c42;
  border-radius: 13px;
  padding: 6px 13px 10px;
}
.timer > span {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 900;
}
.timer strong {
  font-size: 23px;
  line-height: 1;
}
.timer-track {
  height: 4px;
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  overflow: hidden;
  border-radius: 5px;
  background: #ddd6c8;
}
#timer-fill {
  height: 100%;
  background: #ee7852;
}
@media (max-width: 700px) {
  .playing #game {
    top: 55px;
    height: calc(100% - 325px);
  }
  .playing .scoreboard {
    top: 64px;
    left: 18px;
    right: 18px;
  }
  .playing .controls {
    width: calc(100% - 28px);
  }
  .playing .move {
    min-height: 110px;
    padding: 12px 5px 8px;
  }
  .playing .move-copy small {
    display: none;
  }
  .playing .callout h1 {
    font-size: 21px;
  }
  .playing .callout p {
    font-size: 10px;
  }
  .playing .next-button {
    min-height: 100px;
  }
  .playing .controls-footer {
    margin-top: 16px;
  }
  .stage-toolbar {
    left: 16px;
    right: 16px;
  }
}
@media (max-height: 550px) and (min-width: 701px) {
  .playing #game {
    top: 0;
    height: calc(100% - 157px);
  }
  .playing .controls {
    width: min(750px, 88%);
  }
  .playing .callout {
    display: none;
  }
  .playing .move {
    min-height: 60px;
  }
  .playing .hand-icon {
    width: 40px;
    height: 40px;
  }
  .playing .timer {
    margin-bottom: 0;
  }
  .playing .controls-footer {
    margin-top: 8px;
  }
  .playing .next-button {
    min-height: 60px;
  }
}
.playing .arena {
  background: linear-gradient(#bce9df 0%, #bce9df 40%, #a7ce83 65%);
}
.session-wins {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  background: #fff8e9;
  border: 2px solid #352c42;
  border-radius: 20px;
  padding: 7px 13px;
  color: #352c42;
}
.welcome-wins {
  display: inline-block;
  margin-bottom: 12px;
}
.match-finale {
  position: absolute;
  z-index: 3;
  top: 26%;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: min(640px, 90%);
  padding: 24px 18px;
  background: #fff3caed;
  border: 4px solid #352c42;
  border-radius: 22px;
  box-shadow: 0 8px 0 #352c42;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.finale-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
}
#finale-title {
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -3px;
  color: #2a8c73;
  -webkit-text-stroke: 2px #352c42;
  text-shadow: 3px 4px 0 #fff;
}
.match-finale[data-result="loss"] {
  background: #f9d8e5f2;
}
.match-finale[data-result="loss"] #finale-title {
  color: #ee795b;
}
#finale-score {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
}
.finale-session {
  font-size: 11px;
  font-weight: bold;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .stage-toolbar .session-wins {
    font-size: 9px;
    padding: 7px 10px;
  }
  .match-finale {
    top: 28%;
    padding: 19px 12px;
    gap: 10px;
  }
  .finale-kicker {
    font-size: 8px;
    letter-spacing: 1px;
  }
}
@media (max-height: 550px) and (min-width: 701px) {
  .match-finale {
    top: 22%;
    padding: 12px;
    gap: 6px;
  }
  #finale-title {
    font-size: 50px;
  }
}

footer a {
  color: inherit;
  text-underline-offset: 3px;
}
