/* Cafe arena: persistent scene layers, HUD and actors are independently animated. */
.wall[data-game='cooling'] {
  --ink: #292b24;
  --accent: #668d3f;
  --paper: #fffaf0;
  background: #e8c184;
}
.wall[data-game='cooling'] .cafe-backdrop {
  background-image: url('/assets/arena/cafe-background.png');
  background-size: cover;
  background-position: center;
  inset: -10px;
  will-change: transform;
}
.wall[data-game='cooling'] .scene-tint {
  background: linear-gradient(180deg, #fdf7e7b0, transparent 20%, transparent 80%, #38271955);
}
.wall[data-game='cooling'] .wall-shell {
  padding: 22px 32px 18px;
  gap: 14px;
  isolation: isolate;
}
.wall[data-game='cooling'] .wall-header {
  z-index: 10;
  min-height: 52px;
  align-items: center;
}
.wall[data-game='cooling'] .brand {
  font-size: 13px;
  letter-spacing: 1px;
  text-shadow: 0 1px #fff;
}
.wall[data-game='cooling'] .brand small {
  font-size: 10px;
  color: #4d5b39;
}
.wall[data-game='cooling'] .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #344d35;
  border: 2px solid #fff6d8;
  font-size: 30px;
}
.wall[data-game='cooling'] .header-right {
  padding: 7px 10px;
  border-radius: 18px;
  background: #fff8e9ed;
  gap: 12px;
  border: 2px solid #3d422529;
}
.wall[data-game='cooling'] .room-label {
  border: 0;
  padding: 5px;
}
.wall[data-game='cooling'] .wall-main {
  display: block;
  position: static;
  min-height: 0;
}
.wall[data-game='cooling'] .story-panel {
  position: absolute;
  z-index: 5;
  top: 15%;
  left: 32px;
  width: 210px;
  background: #fff9e5e8;
  padding: 22px;
  border: 2px solid #654b3333;
  border-radius: 6px 22px 22px 22px;
  box-shadow: 4px 5px 0 #634a2317;
}
.wall[data-game='cooling'] .story-panel .eyebrow {
  font-size: 8px;
  letter-spacing: 1px;
}
.wall[data-game='cooling'] .english-title {
  font-size: 11px;
  letter-spacing: 2px;
  margin: 17px 0 12px;
}
.wall[data-game='cooling'] h1 {
  font-size: 39px;
  letter-spacing: -2px;
  line-height: 1.1;
}
.wall[data-game='cooling'] h1 br {
  display: initial;
}
.wall[data-game='cooling'] .story-description {
  font-size: 12px;
  line-height: 1.8;
  margin: 15px 0;
}
.wall[data-game='cooling'] .rule-pills {
  gap: 5px;
}
.wall[data-game='cooling'] .rule-pills span {
  font-size: 9px;
  padding: 5px 7px;
  background: #f2e6ca;
}
.wall[data-game='cooling'] .goal-note {
  margin-top: 18px;
  padding-left: 12px;
}
.wall[data-game='cooling'] .goal-note strong {
  font-size: 22px;
}
.wall[data-game='cooling'] .goal-note p {
  font-size: 10px;
}
.wall[data-game='cooling'] .goal-note > span {
  font-size: 10px;
}
.wall[data-game='cooling'] .howto {
  display: none;
}
.wall[data-game='cooling'] .stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  aspect-ratio: auto;
  display: block;
  isolation: auto;
  z-index: -1;
}
.wall[data-game='cooling'] .stage-halo,
.wall[data-game='cooling'] .orbit,
.wall[data-game='cooling'] .floating-note,
.wall[data-game='cooling'] .temperature-tag,
.wall[data-game='cooling'] .stage-caption,
.wall[data-game='cooling'] .cup-glint {
  display: none;
}
.wall[data-game='cooling'] .boss-recoil {
  position: absolute;
  left: 35%;
  top: 28%;
  width: 30%;
  aspect-ratio: 1.5;
  transform-origin: 50% 85%;
  z-index: 2;
  will-change: transform;
}
.wall[data-game='cooling'] .cup-rig {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1.5;
  animation: boss-idle 2.6s ease-in-out infinite;
  transform-origin: 46% 90%;
  filter: drop-shadow(0 9px 3px #50301924);
}
.wall[data-game='cooling'] .cup-art {
  position: absolute;
  left: 0;
  top: -12.5%;
  width: 100%;
  height: 112.5%;
  object-fit: fill;
}
.wall[data-game='cooling'] #cold-mist {
  position: absolute;
  pointer-events: none;
  left: 3.7%;
  top: 71%;
  width: 100%;
  height: 28%;
  object-fit: fill;
  transform-origin: 50% 60%;
}
.wall[data-game='cooling'] .mug-face {
  width: 100%;
  height: 100%;
  inset: 0;
}
.wall[data-game='cooling'] .cup-shadow {
  left: 40%;
  top: calc(28% + 18vw);
  bottom: auto;
  width: 19%;
  height: 2.7%;
  filter: blur(3px);
  background: #5b3e2d40;
  animation: shadow-breathe 2.6s infinite;
}
.wall[data-game='cooling'] .steam {
  left: 43%;
  top: 22%;
  width: 12%;
  height: 17%;
  z-index: 1;
}
.wall[data-game='cooling'] .steam i {
  border-left: 10px solid #fff9ddec;
  filter: drop-shadow(1px 0 1px #99633350);
  height: 80%;
  width: 24%;
  animation-duration: 1.8s;
}
.boss-gauge {
  position: absolute;
  left: 31%;
  top: 12.5%;
  width: 38%;
  z-index: 6;
  background: #fff9ebf5;
  padding: 13px 18px 10px;
  border: 3px solid #423a2f;
  border-radius: 18px;
  box-shadow: 0 6px 0 #4c3a2025;
}
.boss-gauge-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
}
.boss-gauge-heading strong {
  font-size: 20px;
}
.boss-gauge-heading span {
  font-size: 11px;
  color: #796551;
}
.heat-track {
  position: relative;
  height: 20px;
  border: 3px solid #504535;
  border-radius: 10px;
  background: #dceacb;
  box-shadow: inset 0 3px 0 #34452018;
}
#heat-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #72bc92, #e6c653 60%, #ee7b4a 82%, #e64d42);
}
.heat-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
  font-size: 12px;
}
.heat-scale > span {
  font-size: 10px;
  color: #7b6d58;
}
.heat-scale b {
  font-weight: 400;
}
#heat-cursor {
  position: absolute;
  top: -24px;
  font-size: 14px;
  transform: translateX(-50%);
  color: #b34b32;
  white-space: nowrap;
  background: #fff9eb;
  padding: 0 3px;
  transition: left 0.1s linear;
}
.stun-marker {
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  color: #fff4c1;
  font-size: 23px;
  line-height: 26px;
  text-shadow:
    -1px -1px #654c22,
    1px 1px #654c22,
    1px -1px #654c22,
    -1px 1px #654c22;
  transition:
    transform 0.2s,
    color 0.2s;
}
.stun-marker.passed {
  color: #709d52;
  transform: translateX(-50%) scale(0.8);
  text-shadow: none;
}
.arena-actors {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.arena-actor {
  position: absolute;
  width: 18%;
  bottom: 11%;
  left: 2%;
}
.arena-actor:nth-child(2) {
  left: 24%;
  width: 16%;
  bottom: 13%;
}
.arena-actor:nth-child(3) {
  left: 60%;
  width: 16%;
  bottom: 13%;
}
.arena-actor:nth-child(4) {
  left: 80%;
}
.actor-facing {
  position: relative;
  transform-origin: 50% 90%;
}
.arena-actor:nth-child(n + 3) .actor-facing {
  transform: scaleX(-1);
}
.actor-body {
  position: relative;
  width: 100%;
  aspect-ratio: 1199/1312;
  animation: actor-idle 1.7s ease-in-out infinite;
  animation-delay: var(--delay);
  transform-origin: 58% 96%;
  filter: drop-shadow(3px 10px 3px #62422136);
}
.actor-body > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.actor-arm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.actor-upper {
  transform-origin: 790px 470px;
  animation: arm-ready 2.1s ease-in-out infinite;
  animation-delay: var(--delay);
}
.actor-forearm {
  transform-origin: 923px 475px;
}
.actor-fan {
  transform-origin: 1040px 374px;
  animation: fan-ready 2.1s ease-in-out infinite;
  animation-delay: var(--delay);
}
.actor-label {
  position: absolute;
  bottom: -35px;
  left: 8%;
  right: 0;
  text-align: center;
  color: #fffdf0;
  text-shadow: 0 2px 3px #44331e;
  font-size: 18px;
  line-height: 1.2;
}
.actor-label small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.arena-actor.unoccupied {
  opacity: 0.64;
}
.arena-actor.offline {
  opacity: 0.38;
}
.wall[data-game='cooling'] .side-panel {
  position: absolute;
  z-index: 6;
  width: 210px;
  right: 32px;
  top: 15%;
}
.wall[data-game='cooling'] .join-card,
.wall[data-game='cooling'] .play-card {
  border: 2px solid #654b3333;
  background: #fffaf0f5;
  border-radius: 22px;
  padding: 17px;
  box-shadow: 4px 5px 0 #634a2317;
}
.wall[data-game='cooling'] .join-card h2 {
  font-size: 25px;
  margin: 10px 0;
  line-height: 1.12;
  letter-spacing: -1px;
}
.wall[data-game='cooling'] .card-kicker {
  font-size: 8px;
  letter-spacing: 1px;
}
.wall[data-game='cooling'] .qr-wrap {
  max-width: 132px;
  padding: 5px;
  border-radius: 8px;
}
.wall[data-game='cooling'] .join-card p {
  font-size: 10px;
  margin: 8px 0;
}
.wall[data-game='cooling'] .joined-count {
  font-size: 11px;
  margin: 8px 0;
}
.wall[data-game='cooling'] .joined-count span {
  font-size: 19px;
}
.wall[data-game='cooling'] .primary-button {
  font-size: 12px;
  padding: 12px 8px;
  border: 2px solid #3b5425;
  border-radius: 12px;
  background: #719c49;
  color: #fffbe8;
  box-shadow: 0 4px 0 #425d2c;
}
.wall[data-game='cooling'] .join-card > small {
  font-size: 9px;
  margin-top: 10px;
}
.wall[data-game='cooling'] .timer-ring {
  width: 125px;
  height: 125px;
  margin: 14px auto;
}
.wall[data-game='cooling'] .timer-ring b {
  font-size: 49px;
}
.wall[data-game='cooling'] .thermometer {
  display: none;
}
.wall[data-game='cooling'] .target-label {
  font-size: 12px;
}
.wall[data-game='cooling'] .team-meter {
  margin-top: 18px;
}
.wall[data-game='cooling'] .team-meter > span,
.wall[data-game='cooling'] .team-meter > b {
  font-size: 11px;
}
.wall[data-game='cooling'] .play-encouragement {
  font-size: 11px;
  margin-top: 12px;
}
.wall[data-game='cooling'] .player-dock,
.wall[data-game='cooling'] .bottom-line {
  display: none;
}
.wall[data-game='cooling'] .instruction-strip {
  position: relative;
  z-index: 7;
  align-self: center;
  margin-top: auto;
  margin-bottom: 0;
  width: auto;
  max-width: 100%;
  padding: 10px 25px;
  border-radius: 30px;
  background: #fff8dff0;
  border: 2px solid #6d572c36;
  font-size: 14px;
  gap: 12px;
}
.wall[data-game='cooling'] .instruction-strip .strip-extra {
  font-size: 11px;
}
.wall[data-game='cooling'] .countdown {
  position: fixed;
  inset: 0;
  background: #fff8e84d;
  z-index: 15;
}
.wall[data-game='cooling'] .team-toast {
  font-size: 35px;
  top: 51%;
  left: 50%;
  text-shadow: 3px 3px #fff9db;
}
.wall[data-game='cooling'] .result-card {
  background: #fff9e9;
  border: 3px solid #3b4530;
}
.wall[data-game='cooling'] .result-cup {
  aspect-ratio: 1.5;
  height: auto;
  width: 240px;
}
.wall[data-game='cooling'] .result-cup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wall[data-game='cooling'] .result-card h2 {
  color: #548739;
}
.wall[data-game='cooling'] .result-cup .mug-face {
  inset: 0;
}
.wall[data-game='cooling'] .result-cup .dizzy-eyes {
  display: none;
}
.boss-blush {
  opacity: 0.72;
  transition: opacity 0.5s;
}
.wall[data-mood='soft'] .boss-blush {
  opacity: 0.35;
}
.wall[data-mood='kind'] .boss-blush {
  opacity: 0.2;
}
.dizzy-eyes {
  display: none;
}
.boss-stunned .boss-eyes,
.boss-stunned .boss-brows {
  display: none;
}
.boss-stunned .dizzy-eyes {
  display: block;
}
.wall.boss-stunned[data-game='cooling'] .cup-rig {
  animation: boss-dizzy 0.29s ease-in-out infinite;
}
.stun-stars {
  position: absolute;
  left: 38%;
  top: 25%;
  width: 22%;
  height: 10%;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}
.boss-stunned .stun-stars {
  opacity: 1;
}
.stun-stars i {
  position: absolute;
  left: 50%;
  color: #fff6a6;
  text-shadow: 2px 2px #9e6c24;
  font-style: normal;
  font-size: 40px;
  animation: star-orbit 1s linear infinite;
}
.stun-stars i:nth-child(2) {
  animation-delay: -0.33s;
}
.stun-stars i:nth-child(3) {
  animation-delay: -0.66s;
}
.stun-stars b {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 21px;
  color: #fff3a8;
  text-shadow: 2px 2px #584d36;
}
.impact-rays {
  position: absolute;
  inset: 17% 24% 30%;
  background: repeating-conic-gradient(
    from 8deg,
    #fff2ab00 0deg 13deg,
    #fff2abaa 14deg 15deg,
    #fff2ab00 16deg 30deg
  );
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  clip-path: circle(48%);
  transform: scale(0.8);
}
.impact-rays.active {
  opacity: 0.8;
  transform: scale(1.1);
  transition: transform 0.16s;
}
@keyframes boss-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}
@keyframes boss-dizzy {
  0%,
  100% {
    transform: rotate(-6deg) translateX(-3px);
  }
  50% {
    transform: rotate(6deg) translateX(3px);
  }
}
@keyframes actor-idle {
  0%,
  100% {
    transform: translateY(0) rotate(-0.7deg);
  }
  50% {
    transform: translateY(-3px) rotate(0.7deg);
  }
}
@keyframes arm-ready {
  50% {
    transform: rotate(-3deg);
  }
}
@keyframes fan-ready {
  50% {
    transform: rotate(4deg);
  }
}
@keyframes star-orbit {
  0% {
    transform: translate(-110px, 5px) scale(0.8);
  }
  25% {
    transform: translate(0, -10px) scale(0.65);
  }
  50% {
    transform: translate(105px, 8px) scale(0.9);
  }
  75% {
    transform: translate(0, 25px) scale(1.1);
  }
  100% {
    transform: translate(-110px, 5px) scale(0.8);
  }
}
@media (max-width: 1300px) and (min-aspect-ratio: 1/1) {
  .wall[data-game='cooling'] .story-panel {
    width: 170px;
    left: 22px;
    padding: 16px;
  }
  .wall[data-game='cooling'] h1 {
    font-size: 32px;
  }
  .wall[data-game='cooling'] .story-description {
    font-size: 10px;
  }
  .wall[data-game='cooling'] .side-panel {
    right: 22px;
    width: 180px;
  }
  .wall[data-game='cooling'] .join-card,
  .wall[data-game='cooling'] .play-card {
    padding: 12px;
  }
  .wall[data-game='cooling'] .join-card h2 {
    font-size: 22px;
  }
  .boss-gauge {
    left: 28%;
    width: 44%;
    padding: 10px 12px;
  }
  .boss-gauge-heading strong {
    font-size: 17px;
  }
  .boss-gauge-heading span {
    font-size: 9px;
  }
  .wall[data-game='cooling'] .qr-wrap {
    max-width: 112px;
  }
  .actor-label {
    font-size: 14px;
  }
  .actor-label small {
    font-size: 10px;
  }
}
@media (max-aspect-ratio: 1/1) {
  .wall[data-game='cooling'] .wall-shell {
    padding: 24px;
  }
  .wall[data-game='cooling'] .story-panel {
    top: 9%;
    left: 26px;
    width: auto;
    padding: 15px 20px;
  }
  .wall[data-game='cooling'] h1 {
    font-size: 36px;
  }
  .wall[data-game='cooling'] h1 br {
    display: none;
  }
  .wall[data-game='cooling'] .english-title,
  .wall[data-game='cooling'] .story-description,
  .wall[data-game='cooling'] .goal-note,
  .wall[data-game='cooling'] .rule-pills {
    display: none;
  }
  .boss-gauge {
    top: 21%;
    left: 10%;
    width: 80%;
    padding: 18px;
  }
  .boss-gauge-heading strong {
    font-size: 25px;
  }
  .boss-gauge-heading span {
    font-size: 13px;
  }
  .wall[data-game='cooling'] .boss-recoil {
    top: 32%;
    left: 20%;
    width: 60%;
  }
  .wall[data-game='cooling'] .cup-shadow {
    top: calc(32% + 36vw);
    left: 30%;
    width: 35%;
  }
  .wall[data-game='cooling'] .steam {
    top: 28%;
    left: 38%;
    width: 22%;
    height: 12%;
  }
  .arena-actor {
    width: 24%;
    left: -1%;
    bottom: 28%;
  }
  .arena-actor:nth-child(2) {
    left: 24%;
    width: 22%;
    bottom: 29%;
  }
  .arena-actor:nth-child(3) {
    left: 54%;
    width: 22%;
    bottom: 29%;
  }
  .arena-actor:nth-child(4) {
    left: 77%;
  }
  .actor-label {
    font-size: 18px;
    bottom: -40px;
  }
  .actor-label small {
    font-size: 11px;
  }
  .wall[data-game='cooling'] .side-panel {
    top: auto;
    bottom: 7%;
    left: 15%;
    right: 15%;
    width: auto;
  }
  .wall[data-game='cooling'] .join-card {
    padding: 18px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 7px 20px;
    text-align: left;
  }
  .wall[data-game='cooling'] .join-card .card-kicker {
    display: none;
  }
  .wall[data-game='cooling'] .join-card h2 {
    grid-column: 2;
    font-size: 26px;
    margin: 0;
  }
  .wall[data-game='cooling'] .join-card h2 br {
    display: none;
  }
  .wall[data-game='cooling'] .qr-wrap {
    grid-row: 1/6;
    grid-column: 1;
    max-width: 130px;
    align-self: center;
  }
  .wall[data-game='cooling'] .join-card p,
  .wall[data-game='cooling'] .joined-count {
    margin: 0;
  }
  .wall[data-game='cooling'] .join-card > small {
    grid-column: 1/-1;
    text-align: center;
    margin: 0;
  }
  .wall[data-game='cooling'] .play-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    text-align: left;
    padding: 18px;
    gap: 5px 25px;
  }
  .wall[data-game='cooling'] .play-card > .card-kicker {
    display: none;
  }
  .wall[data-game='cooling'] .timer-ring {
    grid-row: 1/5;
    margin: 0;
    width: 125px;
    height: 125px;
  }
  .wall[data-game='cooling'] .target-label,
  .wall[data-game='cooling'] .team-meter,
  .wall[data-game='cooling'] .play-encouragement {
    margin: 0;
    align-self: center;
  }
  .stun-stars {
    top: 29%;
    left: 27%;
    width: 45%;
  }
  .wall[data-game='cooling'] .team-toast {
    top: 49%;
  }
  .impact-rays {
    inset: 28% 10% 48%;
  }
  .wall[data-game='cooling'] .cafe-backdrop {
    background-size: auto 100%;
    background-position: center;
  }
}
@media (max-width: 600px) and (max-aspect-ratio: 1/1) {
  .wall[data-game='cooling'] .wall-shell {
    padding: 12px;
  }
  .wall[data-game='cooling'] .brand {
    font-size: 8px;
    gap: 5px;
  }
  .wall[data-game='cooling'] .brand small {
    display: none;
  }
  .wall[data-game='cooling'] .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 22px;
  }
  .wall[data-game='cooling'] .brand-mark span {
    font-size: 15px;
  }
  .wall[data-game='cooling'] .header-right {
    gap: 3px;
    padding: 4px;
    border-radius: 12px;
  }
  .wall[data-game='cooling'] .connection {
    display: none;
  }
  .wall[data-game='cooling'] .room-label {
    font-size: 8px;
    padding: 4px;
  }
  .wall[data-game='cooling'] .room-label b {
    font-size: 10px;
    margin-left: 2px;
    letter-spacing: 1px;
  }
  .wall[data-game='cooling'] .icon-button {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
  .wall[data-game='cooling'] .story-panel {
    top: 11%;
    left: 15px;
    padding: 10px 14px;
  }
  .wall[data-game='cooling'] .story-panel .eyebrow {
    font-size: 6px;
  }
  .wall[data-game='cooling'] h1 {
    font-size: 25px;
    margin-top: 4px;
  }
  .boss-gauge {
    top: 23%;
    left: 5%;
    width: 90%;
    padding: 11px;
    border-width: 2px;
  }
  .boss-gauge-heading {
    margin-bottom: 22px;
  }
  .boss-gauge-heading strong {
    font-size: 17px;
  }
  .boss-gauge-heading span {
    font-size: 9px;
  }
  .heat-scale {
    font-size: 10px;
  }
  .heat-scale > span {
    font-size: 8px;
  }
  .heat-track {
    height: 16px;
    border-width: 2px;
  }
  .stun-marker {
    font-size: 20px;
    top: -5px;
  }
  .wall[data-game='cooling'] .boss-recoil {
    top: 38%;
    width: 66%;
    left: 17%;
  }
  .wall[data-game='cooling'] .steam {
    top: 33%;
    height: 10%;
  }
  .wall[data-game='cooling'] .cup-shadow {
    top: calc(38% + 39vw);
  }
  .arena-actor,
  .arena-actor:nth-child(4) {
    width: 25%;
    bottom: 28%;
  }
  .arena-actor:nth-child(2),
  .arena-actor:nth-child(3) {
    bottom: 29%;
    width: 23%;
  }
  .actor-label {
    font-size: 10px;
    bottom: -27px;
    left: 0;
  }
  .actor-label small {
    font-size: 7px;
  }
  .wall[data-game='cooling'] .side-panel {
    left: 7%;
    right: 7%;
    bottom: 6.7%;
  }
  .wall[data-game='cooling'] .join-card {
    grid-template-columns: 85px 1fr;
    gap: 2px 12px;
    padding: 11px;
    border-radius: 15px;
  }
  .wall[data-game='cooling'] .qr-wrap {
    max-width: 85px;
    border-radius: 5px;
  }
  .wall[data-game='cooling'] .join-card h2 {
    font-size: 20px;
  }
  .wall[data-game='cooling'] .join-card p {
    display: none;
  }
  .wall[data-game='cooling'] .join-card a,
  .wall[data-game='cooling'] .joined-count {
    font-size: 9px;
  }
  .wall[data-game='cooling'] .joined-count span {
    font-size: 15px;
  }
  .wall[data-game='cooling'] .primary-button {
    font-size: 10px;
    padding: 8px 5px;
  }
  .wall[data-game='cooling'] .join-card > small {
    font-size: 8px;
    margin-top: 5px;
  }
  .wall[data-game='cooling'] .instruction-strip {
    font-size: 10px;
    padding: 7px 10px;
    gap: 6px;
    border-width: 1px;
  }
  .wall[data-game='cooling'] .instruction-strip .strip-extra {
    display: none;
  }
  .wall[data-game='cooling'] .play-card {
    grid-template-columns: 90px 1fr;
    padding: 12px;
    gap: 5px 12px;
  }
  .wall[data-game='cooling'] .timer-ring {
    width: 85px;
    height: 85px;
  }
  .wall[data-game='cooling'] .timer-ring b {
    font-size: 35px;
  }
  .wall[data-game='cooling'] .timer-ring small {
    font-size: 9px;
  }
  .wall[data-game='cooling'] .target-label {
    font-size: 10px;
  }
  .wall[data-game='cooling'] .team-meter > span,
  .wall[data-game='cooling'] .team-meter > b {
    font-size: 9px;
  }
  .wall[data-game='cooling'] .play-encouragement {
    font-size: 9px;
  }
  .stun-stars {
    top: 35%;
  }
  .stun-stars i {
    font-size: 26px;
  }
  .stun-stars b {
    font-size: 15px;
  }
  .wall[data-game='cooling'] .team-toast {
    font-size: 27px;
    top: 53%;
  }
  .wall[data-game='cooling'] .result-card {
    padding: 20px;
  }
}
/* A handheld paper fan swings around its handle on the phone, never spins. */
.controller .handheld-fan {
  overflow: visible;
  transform-origin: 50% 90%;
  animation: phone-fan-idle 1.4s ease-in-out infinite;
}
.controller .phone-action.pulse .handheld-fan {
  animation: phone-fan-hit 0.24s ease-in-out;
}
.controller .phone-controller-art > svg {
  width: 130px;
  height: 145px;
}
.controller .phone-art {
  background: #e5edcf;
  border: 2px solid #425b3430;
  border-radius: 28px;
}
.controller .phone-art img {
  object-fit: contain;
}
.controller .phone-action {
  border: 3px solid #304d32;
  box-shadow: 0 8px 0 #304d3240;
}
.controller .phone-action > svg {
  color: var(--player);
  filter: drop-shadow(0 3px #0001);
}
@keyframes phone-fan-idle {
  0%,
  100% {
    transform: rotate(-9deg);
  }
  50% {
    transform: rotate(9deg);
  }
}
@keyframes phone-fan-hit {
  0% {
    transform: rotate(17deg);
  }
  45% {
    transform: rotate(-38deg);
  }
  80% {
    transform: rotate(13deg);
  }
  100% {
    transform: rotate(0deg);
  }
}
.wall[data-game='cooling'] .stage {
  max-height: none;
  max-width: none;
}
.phone-cup-result {
  position: relative;
  width: 240px;
  aspect-ratio: 1.5;
  margin: 18px auto;
  animation: cup-breathe 3s infinite;
}
.phone-cup-result .phone-result-art {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  animation: none;
}
.phone-cup-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.controller[data-game='ice'] .phone-cup-face {
  display: none;
}
.controller .phone-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}
@media (max-aspect-ratio: 1/1) {
  .wall[data-game='cooling'] .join-card > *,
  .wall[data-game='cooling'] .play-card > * {
    grid-column: 2;
    grid-row: auto;
  }
  .wall[data-game='cooling'] .join-card .qr-wrap {
    grid-column: 1;
    grid-row: 1/6;
  }
  .wall[data-game='cooling'] .join-card > small {
    display: block;
    grid-column: 1/-1;
    grid-row: auto;
  }
  .wall[data-game='cooling'] .play-card .timer-ring {
    grid-column: 1;
    grid-row: 1/4;
  }
}
