:root {
  --paper: #F4E7CE;
  --ink: #26243A;
  --lawn: #6E9C43;
  --lawn-dark: #4C7A38;
  --tomato: #E04A32;
  --postal: #2E5FA3;
  --mustard: #F0B429;
  --fawn: #DFA469;
  --paper-grain:
    radial-gradient(rgba(38, 36, 58, .06) 0.6px, transparent .75px),
    radial-gradient(rgba(38, 36, 58, .04) .5px, transparent .7px);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: none;
}

body {
  font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(38, 36, 58, .055) 0.7px, transparent 0.85px), radial-gradient(rgba(38, 36, 58, 0.035) 0.5px, transparent 0.7px);
  background-size: 5px 5px, 8px 8px;
  background-position: 0 0, 2px 3px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button {
  font-family: inherit;
  color: inherit;
}

button:focus-visible {
  outline: 3px solid var(--postal);
  outline-offset: 3px;
}

#cabinet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1180px;
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  background-image: radial-gradient(rgba(38, 36, 58, .05) 0.6px, transparent 0.8px);
  background-size: 4px 4px;
  overflow: hidden;
}

@media (min-width: 1220px) {
  #cabinet {
    border-left: 2px solid rgba(38, 36, 58, .22);
    border-right: 2px solid rgba(38, 36, 58, .22);
    box-shadow: 0 0 60px rgba(38, 36, 58, .18);
  }
}

#cabinetHeader {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 8px 18px 7px;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
  box-shadow: 0 4px 0 rgba(38, 36, 58, .12);
  overflow: hidden;
}

#cabinetHeader::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--tomato) 0 32px, var(--mustard) 32px 64px, var(--postal) 64px 96px);
  opacity: .9;
}

.cabinet-title {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(15px, 2.4vw, 27px);
  line-height: 1.22;
  letter-spacing: .015em;
  color: var(--tomato);
  text-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}

.cabinet-sub {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-size: clamp(8px, 1.05vw, 12px);
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--ink);
  opacity: .72;
  white-space: nowrap;
}

@media (max-width: 560px) {
  #cabinetHeader {
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 10px 6px;
  }
  .cabinet-sub {
    font-size: 8px;
    letter-spacing: .14em;
  }
}

#screenWrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

#screen {
  position: relative;
  container-type: size;
  flex: 0 0 auto;
  width: 768px;
  height: 512px;
  background-color: var(--paper);
  background-image: url("assets/screen-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 5px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 7px 0 rgba(38, 36, 58, .55), inset 0 0 0 2px rgba(244, 231, 206, .35);
  overflow: hidden;
  isolation: isolate;
  touch-action: manipulation;
}

#gameFrame {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#gameFrame canvas {
  display: block;
  margin: 0 auto;
}

.screen-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(38, 36, 58, .3) 0.65px, transparent 0.95px);
  background-size: 4px 4px;
  opacity: .15;
  mix-blend-mode: multiply;
}

.hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.hud.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.score-plate {
  position: absolute;
  left: 1.2%;
  top: 1.2%;
  width: 19%;
  aspect-ratio: 342 / 205;
}

.score-plate > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 .5cqw 0 rgba(38, 36, 58, .28));
}

.score-inner {
  position: absolute;
  inset: 14% 7% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
}

.hud-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.4cqw;
  letter-spacing: .22em;
  color: var(--tomato);
  margin-bottom: .3cqw;
}

.hud-score {
  font-family: "Bungee", sans-serif;
  font-size: 3.8cqw;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  text-shadow: .16cqw .16cqw 0 rgba(244, 231, 206, .7);
}

.hud-best {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
  font-size: 1.25cqw;
  letter-spacing: .13em;
  color: var(--postal);
  margin-top: .4cqw;
}

.mult-badge {
  position: absolute;
  left: 21.4%;
  right: auto;
  top: 1.1%;
  width: 10.9%;
  aspect-ratio: 305 / 286;
  transform-origin: 50% 55%;
  transition: transform 220ms cubic-bezier(.2, .9, .3, 1.4);
}

.mult-badge > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 .45cqw 0 rgba(38, 36, 58, .28));
}

.mult-value {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 4.9cqw;
  height: 4.9cqw;
  border: .34cqw solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bungee", sans-serif;
  font-size: 2.55cqw;
  line-height: 1;
  box-shadow: .18cqw .18cqw 0 rgba(38, 36, 58, .34);
}

.mult-label {
  position: absolute;
  left: 50%;
  bottom: -1.7cqw;
  transform: translateX(-50%);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.3cqw;
  letter-spacing: .18em;
  color: var(--ink);
  white-space: nowrap;
}

.mult-badge.is-hot {
  filter: drop-shadow(0 0 .55cqw rgba(224, 74, 50, .5));
}

.mult-value.is-pop {
  animation: mult-pop 200ms cubic-bezier(.2, .9, .3, 1.4);
}

@keyframes mult-pop {
  0% { transform: translate(-50%, -50%) scale(1); }
  45% { transform: translate(-50%, -50%) scale(1.38); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.gooddog {
  position: absolute;
  left: 1.2%;
  top: 13cqw;
  width: 22%;
  aspect-ratio: 371 / 173;
}

.gooddog-empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: grayscale(1) brightness(.94) contrast(1.2)
    drop-shadow(.13cqw 0 0 var(--ink))
    drop-shadow(-.13cqw 0 0 var(--ink))
    drop-shadow(0 .13cqw 0 var(--ink))
    drop-shadow(0 -.13cqw 0 var(--ink));
}

.gooddog-fill-wrap {
  position: absolute;
  inset: 0;
  width: 0%;
  overflow: hidden;
  transition: width 180ms cubic-bezier(.2, .9, .3, 1.2);
}

.gooddog-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: auto;
  max-width: none;
  filter: saturate(1.5) contrast(1.06) drop-shadow(0 .25cqw 0 rgba(38, 36, 58, .22));
}

.gooddog-paw {
  position: absolute;
  top: 50%;
  left: 0;
  width: 3.1cqw;
  height: 3.1cqw;
  transform: translate(-50%, -50%);
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 1.8;
  filter: drop-shadow(0 .12cqw 0 rgba(38, 36, 58, .35));
  transition: left 160ms linear;
  opacity: 1;
  pointer-events: none;
}

.gooddog-label {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  padding: .16cqw .62cqw .2cqw;
  background: rgba(244, 231, 206, .8);
  border: .2cqw solid var(--ink);
  border-radius: .22cqw;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.3cqw;
  line-height: 1;
  letter-spacing: .14em;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 .16cqw 0 rgba(38, 36, 58, .25);
}

.gooddog.is-hot {
  animation: meter-hot .26s ease-in-out infinite alternate;
}

.gooddog.is-hot .gooddog-fill {
  filter: drop-shadow(0 0 .65cqw var(--tomato)) saturate(1.15);
}

@keyframes meter-hot {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.bigdog-sweep {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.bigdog-sweep::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -45%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(224, 74, 50, .72), rgba(240, 180, 41, .45), transparent);
  transform: skewX(-14deg);
}

#screen.is-bigdog .bigdog-sweep {
  opacity: 1;
}

#screen.is-bigdog .bigdog-sweep::before {
  animation: bigdog-sweep .95s ease-out 1;
}

@keyframes bigdog-sweep {
  from { left: -45%; }
  to { left: 125%; }
}

#screen.is-bigdog {
  border-color: var(--tomato);
  box-shadow: 0 0 0 .45cqw rgba(224, 74, 50, .6), 0 7px 0 rgba(38, 36, 58, .55), inset 0 0 0 2px rgba(244, 231, 206, .35);
}

.hud.is-bigdog::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(rgba(224, 74, 50, .42) .7px, transparent .9px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
  opacity: .55;
  animation: hud-halftone .3s ease-in-out infinite alternate;
}

@keyframes hud-halftone {
  from { opacity: .3; }
  to { opacity: .7; }
}

.bigdog-banner {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6%;
  pointer-events: none;
  transition: opacity 140ms ease, visibility 140ms ease;
}

.bigdog-banner.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.bigdog-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3cqw;
  padding: 2cqw 3cqw 2.3cqw;
  background: var(--paper);
  border: .66cqw solid var(--ink);
  border-radius: 1.1cqw;
  box-shadow: 0 1.1cqw 0 rgba(38, 36, 58, .55), 0 0 0 .55cqw var(--tomato);
  transform: rotate(-3deg);
  animation: bigdog-pop 240ms cubic-bezier(.2, .9, .3, 1.35);
  text-align: center;
}

@keyframes bigdog-pop {
  from { opacity: 0; transform: scale(1.55) rotate(-9deg); }
  to { opacity: 1; transform: scale(1) rotate(-3deg); }
}

.bigdog-kicker {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.4cqw;
  letter-spacing: .22em;
  color: var(--tomato);
}

.bigdog-title {
  display: block;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 7.6cqw;
  line-height: .84;
  letter-spacing: .01em;
  color: var(--tomato);
  text-shadow: .34cqw .34cqw 0 var(--ink), -.18cqw -.18cqw 0 var(--paper);
}

.bigdog-sub {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.55cqw;
  letter-spacing: .16em;
  color: var(--ink);
}

.hud.is-banner .wave-chip {
  opacity: 0;
  transition: opacity 120ms ease;
}

.wave-chip {
  position: absolute;
  top: .8%;
  left: 50%;
  transform: translateX(-50%) rotate(-1.2deg);
  display: block;
  width: 34cqw;
  min-width: 0;
  aspect-ratio: 430 / 231;
  padding: 0;
  background-image: url("assets/img/hud_kit_07_wave_banner.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 .5cqw 0 rgba(38, 36, 58, .35));
  text-align: center;
  animation: wave-slam 280ms cubic-bezier(.15, .9, .3, 1.3);
}

.wave-value {
  position: absolute;
  left: 8%;
  top: 9%;
  width: 84%;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(9px, 2.25cqw, 22px);
  line-height: 1;
  letter-spacing: .14em;
  color: var(--paper);
  text-align: left;
  text-shadow:
    .14cqw 0 0 var(--ink),
    -.14cqw 0 0 var(--ink),
    0 .14cqw 0 var(--ink),
    0 -.14cqw 0 var(--ink);
}

.wave-threats {
  position: absolute;
  left: 26%;
  right: 5%;
  top: 45%;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(7px, 1.75cqw, 17px);
  line-height: 1;
  letter-spacing: .05em;
  color: var(--ink);
  text-align: center;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 .1cqw 0 rgba(244, 231, 206, .55);
}

@keyframes wave-slam {
  from { opacity: 0; transform: translateX(-50%) scale(1.28) rotate(-5deg); }
  to { opacity: 1; transform: translateX(-50%) scale(1) rotate(-1.2deg); }
}

.lives {
  position: absolute;
  top: calc(.8% + 18.3cqw + .55cqw);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: .8cqw;
  padding: .35cqw 1.1cqw .4cqw;
  background: var(--paper);
  border: .3cqw solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 .34cqw 0 rgba(38, 36, 58, .8);
}

.lives-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.25cqw;
  letter-spacing: .18em;
  color: var(--ink);
}

.hearts {
  display: flex;
  align-items: center;
  gap: .45cqw;
}

.heart {
  width: 2.1cqw;
  height: auto;
  fill: var(--tomato);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linejoin: round;
  transition: fill 160ms ease, transform 160ms ease, stroke 160ms ease;
}

.heart.lost {
  fill: transparent;
  stroke: rgba(38, 36, 58, .35);
  transform: scale(.88);
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.start {
  pointer-events: none;
  z-index: 7;
}

.marquee {
  position: absolute;
  top: 1.6%;
  left: 50%;
  transform: translateX(-50%);
  width: 56%;
  max-width: 840px;
  height: auto;
  filter: drop-shadow(0 1.1cqw 0 rgba(38, 36, 58, .22));
  pointer-events: none;
}

.tagline-tag {
  position: absolute;
  top: 38.2cqw;
  left: 50%;
  transform: translateX(-50%) rotate(-.9deg);
  padding: .65cqw 1.8cqw .75cqw;
  background: var(--paper);
  border: .33cqw solid var(--ink);
  border-radius: .35cqw;
  box-shadow: 0 .5cqw 0 rgba(38, 36, 58, .55);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 2cqw;
  letter-spacing: .17em;
  color: var(--ink);
  white-space: nowrap;
}

.big-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75cqw 2.7cqw .8cqw;
  border: .42cqw solid var(--ink);
  border-radius: .65cqw;
  background: var(--tomato);
  color: var(--paper);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(15px, 2.45cqw, 34px);
  line-height: 1;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 0 .18cqw 0 rgba(38, 36, 58, .5);
  box-shadow: 0 .62cqw 0 var(--ink), inset 0 .35cqw 0 rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: transform 60ms ease, box-shadow 60ms ease, filter 60ms ease;
  touch-action: manipulation;
}

.big-button:active {
  transform: translateY(.38cqw);
  box-shadow: 0 .2cqw 0 var(--ink), inset 0 .2cqw 0 rgba(255, 255, 255, .12);
}

.big-button:disabled {
  cursor: default;
  filter: saturate(.4);
  opacity: .7;
}

#btnPlay {
  position: absolute;
  top: 42.6cqw;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: auto;
}

#btnPlay:active {
  transform: translateX(-50%) translateY(.38cqw);
}

.best-tag {
  position: absolute;
  top: 2.6%;
  left: 2.4%;
  padding: .5cqw 1.05cqw .55cqw;
  background: var(--paper);
  border: .32cqw solid var(--ink);
  border-radius: .3cqw;
  box-shadow: .42cqw .42cqw 0 rgba(38, 36, 58, .42);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.5cqw;
  letter-spacing: .13em;
  color: var(--ink);
  transform: rotate(-1.3deg);
}

.best-tag span {
  font-family: "Bungee", sans-serif;
  font-size: 1.45cqw;
  letter-spacing: .02em;
  color: var(--postal);
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 231, 206, .14);
  pointer-events: none;
  z-index: 8;
}

.banner-card {
  position: relative;
  width: 58%;
  max-width: 840px;
  filter: drop-shadow(0 1.1cqw 0 rgba(38, 36, 58, .34));
  animation: banner-slam 220ms cubic-bezier(.15, .9, .3, 1.3);
}

.banner-card > img {
  display: block;
  width: 100%;
  height: auto;
}

.banner-copy {
  position: absolute;
  left: 37%;
  right: 8%;
  top: 8%;
  bottom: 8%;
  display: block;
  padding: 0;
  background: none;
  box-shadow: none;
}

.banner-wave {
  position: absolute;
  left: 4%;
  top: 7%;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 5.2cqw;
  line-height: .92;
  letter-spacing: .015em;
  color: var(--ink);
  text-shadow: .28cqw .28cqw 0 var(--tomato);
}

.banner-kicker {
  position: absolute;
  left: 5%;
  top: 28%;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.9cqw;
  letter-spacing: .22em;
  color: var(--postal);
}

.banner-threats {
  position: absolute;
  left: 17%;
  right: -1%;
  top: 39%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.15cqw;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 2.55cqw;
  line-height: 1;
  letter-spacing: .03em;
  color: var(--paper);
  text-shadow:
    .16cqw 0 0 var(--ink),
    -.16cqw 0 0 var(--ink),
    0 .16cqw 0 var(--ink),
    0 -.16cqw 0 var(--ink),
    0 .3cqw 0 rgba(38, 36, 58, .5);
}

.banner-threats li {
  display: flex;
  align-items: center;
  min-height: 2.2cqw;
  white-space: nowrap;
}

@keyframes banner-slam {
  from {
    opacity: 0;
    transform: scale(1.32) rotate(-4deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(-.6deg);
  }
}

.wave-clear {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.wave-clear.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.wave-clear span {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 7.2cqw;
  line-height: .9;
  letter-spacing: .015em;
  color: var(--tomato);
  text-shadow: .45cqw .45cqw 0 var(--ink), -.18cqw -.18cqw 0 var(--paper);
  transform: rotate(-5deg);
  animation: stamp-pop 200ms cubic-bezier(.2, .9, .3, 1.35);
}

.wave-clear small {
  margin-top: 1.1cqw;
  padding: .55cqw 1.5cqw .65cqw;
  background: var(--ink);
  color: var(--mustard);
  border: .24cqw solid var(--paper);
  border-radius: .45cqw;
  font-family: "Bungee", sans-serif;
  font-size: 2.2cqw;
  line-height: 1;
  letter-spacing: .03em;
  transform: rotate(-2deg);
  box-shadow: 0 .5cqw 0 rgba(38, 36, 58, .4);
}

@keyframes stamp-pop {
  from { opacity: 0; transform: scale(1.6) rotate(-9deg); }
  to { opacity: 1; transform: scale(1) rotate(-5deg); }
}

.owner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 231, 206, .38);
  z-index: 8;
  pointer-events: none;
}

.owner-card {
  display: flex;
  align-items: stretch;
  gap: 2cqw;
  width: 74%;
  max-width: 1020px;
  padding: 2.1cqw;
  background: var(--paper);
  border: .5cqw solid var(--ink);
  border-radius: 1cqw;
  box-shadow: 0 1cqw 0 rgba(38, 36, 58, .55);
  transform: rotate(-.55deg);
  animation: owner-pop 220ms cubic-bezier(.2, .9, .3, 1.3);
}

@keyframes owner-pop {
  from { opacity: 0; transform: translateY(2cqw) scale(.94) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) scale(1) rotate(-.55deg); }
}

.owner-photo {
  position: relative;
  flex: 0 0 31%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 19cqw;
  background: var(--lawn-dark);
  border: .38cqw solid var(--ink);
  border-radius: .7cqw;
  overflow: hidden;
}

.owner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 27cqw;
  object-fit: cover;
  object-position: 50% 8%;
}

.owner-tag {
  position: absolute;
  left: 50%;
  bottom: .55cqw;
  transform: translateX(-50%) rotate(-1.5deg);
  padding: .25cqw .7cqw .3cqw;
  background: var(--paper);
  border: .2cqw solid var(--ink);
  border-radius: .2cqw;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.05cqw;
  letter-spacing: .17em;
  color: var(--ink);
  white-space: nowrap;
}

.owner-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5cqw;
  padding-right: 1cqw;
}

.owner-kicker {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 1.25cqw;
  letter-spacing: .22em;
  color: var(--tomato);
}

.owner-speech {
  margin: 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 4.1cqw;
  line-height: .96;
  letter-spacing: .01em;
  color: var(--ink);
  text-shadow: .2cqw .2cqw 0 rgba(224, 74, 50, .28);
}

.owner-small {
  margin: 0;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.55cqw;
  line-height: 1.15;
  letter-spacing: .04em;
  color: rgba(38, 36, 58, .78);
}

.gameover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 231, 206, .16);
  z-index: 10;
  pointer-events: none;
}

.gameover-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 1.8cqw;
  width: min(86%, 920px);
  padding: 2.1cqw 2.3cqw 2.2cqw;
  background-color: var(--paper);
  background-image: url("assets/img/hud_kit_01_score_plate.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-radius: .5cqw;
  filter: drop-shadow(0 .9cqw 0 rgba(38, 36, 58, .5));
  transform: rotate(-.6deg);
  animation: owner-pop 230ms cubic-bezier(.2, .9, .3, 1.3);
  pointer-events: auto;
}

.gameover-door {
  position: relative;
  flex: 0 0 29%;
  box-shadow: inset 0 0 2.4cqw rgba(240, 180, 41, .36), 0 0 1.4cqw rgba(240, 180, 41, .3);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 18cqw;
  background: var(--lawn-dark);
  border: .36cqw solid var(--ink);
  border-radius: .45cqw;
  overflow: hidden;
}

.door-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(240, 180, 41, .62), transparent 66%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.gameover-door::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 32%, rgba(240, 180, 41, .55), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.gameover-door img {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  max-height: 25cqw;
  object-fit: cover;
  object-position: 50% 8%;
}

.gameover-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35cqw;
  padding-top: 2.1cqw;
}

.gameover-kicker {
  display: block;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(8px, 1.25cqw, 14px);
  letter-spacing: .22em;
  color: var(--tomato);
}

.gameover-title {
  position: relative;
  align-self: flex-start;
  display: inline-block;
  margin: .15cqw 0 .45cqw;
  padding: .38cqw 1.1cqw .55cqw;
  background: var(--paper);
  border: .34cqw solid var(--ink);
  border-radius: .3cqw;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(20px, 4.2cqw, 46px);
  line-height: .82;
  letter-spacing: .01em;
  color: var(--tomato);
  text-shadow: .22cqw .22cqw 0 var(--ink), -.09cqw -.09cqw 0 var(--paper);
  transform: rotate(-1.4deg);
  box-shadow: .36cqw .36cqw 0 rgba(38, 36, 58, .32);
  overflow: hidden;
}

.gameover-title span {
  display: block;
}

.gameover-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(38, 36, 58, .24) .08cqw, transparent .11cqw);
  background-size: .44cqw .44cqw;
  opacity: .55;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.gameover-question {
  margin: 0;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(11px, 2.3cqw, 26px);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--ink);
  text-shadow: .16cqw .16cqw 0 rgba(224, 74, 50, .25);
}

.gameover-scorecard {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: .8cqw;
  margin-top: .35cqw;
  padding: .55cqw .9cqw .65cqw;
  background: var(--paper);
  border: .3cqw solid var(--ink);
  border-radius: .35cqw;
  box-shadow: .3cqw .3cqw 0 rgba(38, 36, 58, .28);
  transform: rotate(-.35deg);
}

.gameover-scorecard .stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1cqw;
}

.stat-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(7px, 1.15cqw, 12px);
  letter-spacing: .18em;
  color: var(--postal);
}

.stat-value {
  font-family: "Bungee", sans-serif;
  font-size: clamp(15px, 3cqw, 32px);
  line-height: 1;
  color: var(--ink);
}

.gameover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1cqw;
  margin-top: .45cqw;
}

.gameover-best {
  margin: 0;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(8px, 1.3cqw, 14px);
  letter-spacing: .14em;
  color: var(--postal);
}

.gameover-best.new-best {
  color: var(--tomato);
  animation: best-pulse 700ms ease-in-out infinite alternate;
}

.gameover .big-button {
  position: relative;
  padding: .62cqw 1.7cqw .7cqw;
  font-size: clamp(14px, 2.1cqw, 28px);
  transform: rotate(-1.6deg);
  background-image: radial-gradient(rgba(38, 36, 58, .24) .09cqw, transparent .12cqw);
  background-size: .46cqw .46cqw;
  box-shadow: 0 .72cqw 0 var(--ink), inset 0 .4cqw 0 rgba(255, 255, 255, .18), 0 0 0 .25cqw var(--paper), 0 0 0 .48cqw var(--ink);
}

.gameover .big-button::after {
  content: "";
  position: absolute;
  inset: .42cqw;
  border: .16cqw dashed rgba(244, 231, 206, .55);
  border-radius: .3cqw;
  pointer-events: none;
}

.gameover .big-button:active {
  transform: translateY(.38cqw) rotate(-1.2deg);
}

.gameover-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.gameover-confetti span {
  position: absolute;
  width: 1.7cqw;
  height: .95cqw;
  background: var(--paper);
  border: .12cqw solid var(--ink);
  box-shadow: .12cqw .12cqw 0 rgba(38, 36, 58, .22);
}

.gameover-confetti span:nth-child(1) { left: 8%; top: 66%; transform: rotate(14deg); }
.gameover-confetti span:nth-child(2) { left: 15%; top: 78%; transform: rotate(-22deg); background: var(--mustard); }
.gameover-confetti span:nth-child(3) { left: 24%; top: 61%; transform: rotate(33deg); }
.gameover-confetti span:nth-child(4) { left: 38%; top: 82%; transform: rotate(-11deg); background: var(--postal); }
.gameover-confetti span:nth-child(5) { left: 51%; top: 73%; transform: rotate(21deg); }
.gameover-confetti span:nth-child(6) { left: 63%; top: 84%; transform: rotate(-30deg); background: var(--tomato); }
.gameover-confetti span:nth-child(7) { left: 72%; top: 64%; transform: rotate(8deg); }
.gameover-confetti span:nth-child(8) { left: 83%; top: 77%; transform: rotate(-16deg); background: var(--mustard); }
.gameover-confetti span:nth-child(9) { left: 91%; top: 59%; transform: rotate(27deg); }
.gameover-confetti span:nth-child(10) { left: 6%; top: 49%; transform: rotate(-8deg); background: var(--tomato); }
.gameover-confetti span:nth-child(11) { left: 88%; top: 47%; transform: rotate(18deg); }
.gameover-confetti span:nth-child(12) { left: 46%; top: 55%; transform: rotate(-25deg); background: var(--postal); }

@keyframes best-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}

#deck {
  position: relative;
  flex: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4vw;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper);
  background-image: radial-gradient(rgba(38, 36, 58, .06) 0.6px, transparent 0.8px);
  background-size: 4px 4px;
  border-top: 5px solid var(--ink);
  box-shadow: 0 -5px 0 rgba(38, 36, 58, .12);
}

#deck::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -5px;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 26px, var(--tomato) 26px 52px, var(--postal) 52px 78px);
  opacity: .85;
}

.sound-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(30px, 3.1vw, 38px);
  aspect-ratio: 1;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 50ms ease, box-shadow 50ms ease, background 50ms ease;
}

.sound-btn svg {
  display: block;
  width: 100%;
  height: 100%;
}

.sound-btn .speaker {
  fill: currentColor;
}

.sound-btn .sound-slash {
  opacity: 0;
}

.sound-btn.is-off {
  background: var(--mustard);
}

.sound-btn.is-off .sound-wave {
  opacity: 0;
}

.sound-btn.is-off .sound-slash {
  opacity: 1;
}

.sound-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--ink);
}

.deck-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-tip {
  display: none;
}

.deck-move {
  position: relative;
  flex: 0 0 auto;
  padding-top: 13px;
}

.deck-label {
  position: absolute;
  top: 0;
  left: 2px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 10px;
  letter-spacing: .22em;
  color: rgba(38, 36, 58, .7);
  line-height: 1;
}

.move-buttons {
  display: flex;
  gap: 8px;
}

.pad-btn {
  display: grid;
  place-items: center;
  width: clamp(46px, 5.2vw, 60px);
  aspect-ratio: 1;
  padding: 9px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 5px 0 var(--ink);
  cursor: pointer;
  touch-action: none;
  transition: transform 50ms ease, box-shadow 50ms ease, background 50ms ease;
}

.pad-btn svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pad-btn.is-down {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--ink);
  background: var(--mustard);
}

.key-hint {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: .16em;
  color: rgba(38, 36, 58, .55);
}

.deck-center {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  padding: 0 6px;
}

.deck-wordmark {
  display: block;
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(11px, 1.15vw, 16px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
}

.deck-hint {
  display: block;
  margin-top: 3px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(9px, .95vw, 12px);
  line-height: 1.15;
  letter-spacing: .05em;
  color: rgba(38, 36, 58, .72);
}

.deck-actions {
  flex: 0 0 auto;
  gap: clamp(4px, .7vw, 9px);
  align-items: flex-end;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.action-image {
  position: relative;
  display: block;
  width: clamp(58px, 6.9vw, 82px);
  aspect-ratio: 1;
  transition: transform 55ms ease, filter 55ms ease;
}

.action-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 0 rgba(38, 36, 58, .28));
  pointer-events: none;
  -webkit-user-drag: none;
}

.action-label {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(9px, .9vw, 11px);
  line-height: 1;
  letter-spacing: .18em;
  color: var(--ink);
}

.action-key {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(7px, .75vw, 9px);
  line-height: 1.1;
  letter-spacing: .1em;
  color: rgba(38, 36, 58, .55);
}

.touch-note {
  display: none;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .13em;
  color: var(--tomato);
}

.action-btn.is-down .action-image {
  transform: translateY(4px) scale(.96);
  filter: brightness(.95);
}

.action-btn.is-down .action-label {
  transform: translateY(1px);
}

.charge-ring {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  transform: rotate(-90deg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 110ms ease;
  overflow: visible;
}

.charge-track {
  fill: none;
  stroke: rgba(38, 36, 58, .16);
  stroke-width: 7;
}

.charge-fill {
  fill: none;
  stroke: var(--mustard);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  filter: drop-shadow(0 0 2px var(--tomato));
}

.action-btn.is-charging .charge-ring {
  opacity: 1;
}

@media (max-width: 760px) {
  .deck-center {
    display: none;
  }
  #deck {
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }
  .deck-move {
    padding-top: 0;
  }
  .deck-label,
  .key-hint,
  .action-key {
    display: none;
  }
  .move-buttons {
    gap: 6px;
  }
  .pad-btn {
    width: clamp(42px, 11vw, 52px);
    padding: 8px;
  }
  .sound-btn {
    width: 28px;
    padding: 5px;
    border-width: 2px;
    box-shadow: 0 3px 0 var(--ink);
  }
  .deck-actions {
    gap: 4px;
  }
  .action-image {
    width: clamp(56px, 15vw, 70px);
  }
  .action-label {
    font-size: 9px;
    letter-spacing: .14em;
  }
  .touch-note {
    display: block;
  }
  .big-button {
    min-height: 42px;
    padding: 9px 24px;
    font-size: 17px;
  }
}

@media (max-width: 400px) {
  .pad-btn {
    width: 42px;
  }
  .action-image {
    width: 54px;
  }
  .action-label {
    font-size: 8px;
  }
}

@media (max-height: 480px) and (pointer: coarse) {
  #cabinetHeader {
    display: none;
  }
  #deck {
    padding-top: 6px;
  }
  .action-image {
    width: clamp(48px, 8vw, 60px);
  }
  .pad-btn {
    width: 42px;
  }
}

@media (max-aspect-ratio: 1 / 1) {
  .banner-card {
    width: 68%;
  }
  .owner-card {
    width: 84%;
  }
  .gameover-banner {
    width: 82%;
  }
}

@media (max-aspect-ratio: 3 / 4) and (min-height: 680px) {
  #screenWrap {
    padding: 6px 8px;
  }
  #deck {
    min-height: clamp(132px, 21vh, 188px);
    align-items: center;
    padding-top: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
  .deck-tip {
    display: block;
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-family: "Barlow Semi Condensed", sans-serif;
    font-weight: 800;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .14em;
    text-align: center;
    color: rgba(38, 36, 58, .68);
  }
  .pad-btn {
    width: clamp(54px, 14vw, 70px);
  }
  .action-image {
    width: clamp(72px, 19vw, 92px);
  }
  .action-label {
    font-size: 10px;
  }
  .deck-side {
    gap: 12px;
  }
}

@media (min-aspect-ratio: 6 / 5) {
  .banner {
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 1.2%;
    padding-right: 2%;
  }
  .banner-card {
    width: 46%;
  }
  .banner-copy {
    left: 36%;
    right: 6%;
  }
  .banner-wave {
    font-size: 4.6cqw;
  }
  .banner-threats {
    left: 15%;
    right: 0;
    top: 39%;
    gap: 1.9cqw;
    font-size: 2.35cqw;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  #cabinetHeader {
    display: none;
  }
  #cabinet {
    max-width: none;
  }
  #screenWrap {
    position: absolute;
    inset: 0;
    padding: 4px;
  }
  #deck {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    pointer-events: none;
  }
  #deck::before {
    display: none;
  }
  .deck-center,
  .deck-tip,
  .deck-label,
  .key-hint,
  .action-key,
  .touch-note {
    display: none;
  }
  .deck-move {
    position: absolute;
    left: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0;
    pointer-events: auto;
  }
  .move-buttons {
    flex-direction: column;
    gap: 6px;
  }
  .pad-btn {
    width: 48px;
    padding: 8px;
  }
  .deck-actions {
    position: absolute;
    right: 20px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    pointer-events: auto;
  }
  .action-image {
    width: 56px;
  }
  .action-label {
    font-size: 9px;
    letter-spacing: .14em;
  }
  .sound-btn {
    position: absolute;
    left: 24px;
    top: 12px;
    width: 30px;
    padding: 5px;
    border-width: 2px;
    box-shadow: 0 3px 0 var(--ink);
    pointer-events: auto;
  }
  .banner {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5% 2% 0 0;
  }
  .banner-card {
    width: 42%;
  }
  .banner-copy {
    left: 36%;
    right: 6%;
  }
  .banner-wave {
    font-size: 4.4cqw;
  }
  .banner-kicker {
    font-size: 1.7cqw;
  }
  .banner-threats {
    left: 15%;
    right: 0;
    top: 40%;
    gap: 1.7cqw;
    font-size: 2.15cqw;
  }
  .wardrobe,
  .wardrobe--result {
    left: 2.2%;
    bottom: 1.2cqw;
    transform: none;
    align-items: flex-start;
  }
  .wardrobe-title {
    font-size: clamp(6px, .9cqw, 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-card,
  .wave-chip,
  .wave-clear span,
  .owner-card,
  .gameover-banner,
  .gameover-best.new-best {
    animation: none !important;
  }
}

.wardrobe {
  position: absolute;
  left: 50%;
  bottom: 2.5cqw;
  transform: translateX(-50%);
  z-index: 11;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3cqw;
  pointer-events: auto;
}

.wardrobe-title {
  padding: .16cqw .9cqw .2cqw;
  background: var(--paper);
  border: .22cqw solid var(--ink);
  border-radius: .22cqw;
  box-shadow: .2cqw .2cqw 0 rgba(38, 36, 58, .38);
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(7px, 1.1cqw, 12px);
  line-height: 1;
  letter-spacing: .22em;
  color: var(--ink);
  transform: rotate(-1deg);
  white-space: nowrap;
}

.wardrobe-row {
  display: flex;
  align-items: flex-end;
  gap: .7cqw;
}

.outfit-medal {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2cqw;
  width: 7.2cqw;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 90ms ease, filter 120ms ease;
  touch-action: manipulation;
}

.outfit-medal:active {
  transform: translateY(.22cqw) scale(.97);
}

.medal-disc {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 250 / 278;
}

.medal-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  filter: drop-shadow(0 .28cqw 0 rgba(38, 36, 58, .34));
}

.medal-disc::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 22%;
  bottom: 16%;
  z-index: 1;
  border-radius: 50%;
  background: var(--paper);
  border: .12cqw solid rgba(38, 36, 58, .28);
}

.medal-icon {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 2;
  width: 61%;
  height: 61%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(.08cqw .08cqw 0 rgba(38, 36, 58, .25));
}

.medal-name {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(6px, .92cqw, 10px);
  line-height: 1;
  letter-spacing: .13em;
  color: var(--ink);
  white-space: nowrap;
}

.outfit-medal.is-locked {
  cursor: default;
}

.outfit-medal.is-locked .medal-frame {
  filter: grayscale(1) opacity(.62) drop-shadow(0 .22cqw 0 rgba(38, 36, 58, .2));
}

.outfit-medal.is-locked .medal-icon {
  opacity: .3;
  filter: grayscale(1);
}

.outfit-medal.is-locked .medal-name {
  color: rgba(38, 36, 58, .55);
}

.medal-lock {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 3;
  transform: translateX(-50%) rotate(-3deg);
  padding: .12cqw .45cqw .16cqw;
  background: var(--tomato);
  border: .12cqw solid var(--ink);
  border-radius: .18cqw;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(5px, .72cqw, 8px);
  line-height: 1;
  letter-spacing: .1em;
  color: var(--paper);
  white-space: nowrap;
}

.outfit-medal.is-worn .medal-frame {
  filter: drop-shadow(0 0 .55cqw rgba(240, 180, 41, .95)) drop-shadow(0 .28cqw 0 rgba(38, 36, 58, .34));
}

.outfit-medal.is-worn .medal-name {
  color: var(--tomato);
}

.wardrobe--result {
  position: absolute;
  left: 50%;
  bottom: 2.2cqw;
  z-index: 3;
}

.outfit-toast {
  position: absolute;
  left: 50%;
  bottom: 8.5cqw;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: .85cqw;
  padding: .55cqw 1.1cqw .6cqw .65cqw;
  background: var(--paper);
  border: .3cqw solid var(--ink);
  border-radius: .4cqw;
  box-shadow: .38cqw .4cqw 0 rgba(38, 36, 58, .5);
  transform: translateX(-50%) rotate(-1deg);
  animation: outfit-toast-in 300ms cubic-bezier(.2, .9, .3, 1.35);
  pointer-events: none;
}

.outfit-toast.is-hidden {
  display: none;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 4.2cqw;
  height: 4.2cqw;
  padding: .25cqw;
  background: var(--mustard);
  border: .22cqw solid var(--ink);
  border-radius: 50%;
  box-shadow: .16cqw .16cqw 0 rgba(38, 36, 58, .35);
}

.toast-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toast-copy {
  display: flex;
  flex-direction: column;
  gap: .1cqw;
  line-height: 1;
}

.toast-kicker {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(6px, .9cqw, 10px);
  letter-spacing: .18em;
  color: var(--tomato);
}

.toast-name {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(10px, 1.75cqw, 20px);
  letter-spacing: .02em;
  color: var(--ink);
}

@keyframes outfit-toast-in {
  0% { opacity: 0; transform: translateX(-50%) translateY(1.6cqw) rotate(-1deg) scale(.9); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) rotate(-1deg) scale(1); }
}

@media (max-width: 720px) {
  .wardrobe {
    bottom: 1.2cqw;
  }
  .wardrobe-title {
    display: none;
  }
  .medal-name {
    font-size: 7px;
  }
  .wardrobe .outfit-medal {
    width: 11.5cqw;
  }
  .outfit-toast {
    bottom: 12cqw;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .wardrobe,
  .wardrobe--result {
    left: 2.2%;
    right: auto;
    bottom: 1.2cqw;
    transform: none;
    align-items: flex-start;
  }
  .wardrobe-title {
    font-size: clamp(6px, .9cqw, 10px);
  }
}
