* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
:root {
  font-family:
    'Zen Maru Gothic', ui-rounded, 'Hiragino Maru Gothic ProN', 'Hiragino Sans',
    'Yu Gothic', sans-serif;
  color: #3f4235;
  background: #f6eedb;
  font-weight: 700;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}
body {
  display: grid;
  place-items: center;
  background-color: #f8f1df;
  background-image: radial-gradient(#d9cdb6 1px, transparent 1px);
  background-size: 9px 9px;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
button:focus-visible {
  outline: 3px solid #07689c;
  outline-offset: 3px;
}
#machine {
  width: min(96vw, 1240px, calc((100dvh - 26px) * 1.76));
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: none;
  container-type: inline-size;
}
.sitebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.35% 0.7%;
  height: 5.8cqw;
  min-height: 35px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-size: clamp(17px, 2.05cqw, 28px);
  font-weight: 1000;
  letter-spacing: -0.06em;
  color: #304c41;
}
.brandmark {
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  background: #395d4c;
  border-radius: 36% 40% 34% 39%;
  transform: rotate(-7deg);
}
.brandmark img {
  width: 75%;
}
.tools {
  display: flex;
  gap: 8px;
}
.tools button {
  min-width: 44px;
  min-height: 44px;
  width: clamp(44px, 3.6cqw, 48px);
  height: clamp(44px, 3.35cqw, 46px);
  border: 1.6px solid #a69b80;
  border-radius: 11px;
  background: #fffae9;
  color: #4b5141;
  display: grid;
  place-items: center;
  box-shadow: 0 2px #c2b59d;
}
.tools svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tools .off {
  opacity: 0.64;
}
.tools .off svg {
  background: linear-gradient(
    135deg,
    transparent 46%,
    #965842 47% 54%,
    transparent 55%
  );
}
.cabinet {
  border: 3px solid #384a3a;
  border-radius: 22px;
  overflow: hidden;
  background: #304a40;
  box-shadow:
    0 6px 0 #bcc1a2,
    0 9px 16px #655b3f26;
}
#arena {
  height: 39cqw;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #78bcee url(assets/meadow.webp) center 55% / cover;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.hud {
  position: absolute;
  top: 3.3%;
  left: 3%;
  right: 3%;
  display: grid;
  grid-template-columns: 1fr 12% 1fr;
  align-items: start;
  pointer-events: none;
  filter: drop-shadow(0 2px 1px #442e2245);
}
.fighter {
  display: flex;
  align-items: center;
  gap: 0;
  --accent: #b94950;
}
.portrait {
  width: 5.9cqw;
  height: 5.9cqw;
  max-width: 74px;
  max-height: 74px;
  background: #f8d6b7;
  border: 3px solid #553e2d;
  outline: 2px solid #fff5dc;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
  display: grid;
  place-items: end center;
}
.portrait img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  transform: translateY(4%);
}
.enemy {
  flex-direction: row-reverse;
  --accent: #376779;
}
.enemy .portrait {
  background: #c5e0db;
}
.enemy .vitals {
  align-items: flex-end;
  margin: 0 -1.1cqw 0 0;
}
.enemy .name {
  flex-direction: row-reverse;
  margin: 0 1.6cqw 0.23cqw 0;
}
.enemy .hp b {
  transform-origin: right;
}
.vitals {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin-left: -1.1cqw;
  gap: 0.25cqw;
}
.name {
  margin: 0 0 0.23cqw 1.6cqw;
  display: flex;
  align-items: center;
  gap: 0.48em;
  font-size: clamp(12px, 1.65cqw, 22px);
  color: white;
  text-shadow:
    1px 1px #453521,
    -1px -1px #453521,
    0 2px 3px #453521;
}
.name i {
  font: 900 0.65em/1.4 'Zen Maru Gothic', sans-serif;
  color: white;
  background: var(--accent);
  border: 1px solid #fff7df;
  border-radius: 4px;
  padding: 0 0.4em;
  text-shadow: none;
}
.hp,
.power {
  overflow: hidden;
  background: #554b3a;
  border-radius: 20px;
  border: 2px solid #513f2e;
  box-shadow: 0 0 0 1.5px #fff2ce;
  width: 100%;
  height: 1.62cqw;
  min-height: 9px;
}
.hp b,
.power b {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(#c9ed74 0 34%, #96cf53 35% 81%, #6da64b 82%);
  transition: transform 0.09s linear;
}
.power {
  width: 65%;
  height: 0.63cqw;
  min-height: 4px;
  margin: 0.12cqw 0 0 1.4cqw;
  border-width: 1px;
}
.power b {
  background: repeating-linear-gradient(
    100deg,
    #ffcb46 0 12px,
    #e7a42e 13px 15px
  );
}
.timer {
  justify-self: center;
  text-align: center;
  background: #fff3d5;
  border: 2.5px solid #714e30;
  border-radius: 24% 24% 42% 42%;
  padding: 0.2cqw 1.1cqw 0.4cqw;
  line-height: 1;
  box-shadow: 0 2px #9f733e;
}
.timer small {
  display: block;
  color: #786546;
  font-size: clamp(8px, 0.85cqw, 12px);
}
.timer strong {
  font:
    900 clamp(20px, 3.2cqw, 43px) / 1.05 'Zen Maru Gothic',
    ui-rounded,
    sans-serif;
  color: #4d4939;
  font-variant-numeric: tabular-nums;
}
.deck {
  height: 10.8cqw;
  min-height: 85px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45cqw 3cqw 0.7cqw;
  background:
    repeating-linear-gradient(3deg, transparent 0 8px, #ffffff03 9px 10px),
    #35584a;
  border-top: 4px solid #263f34;
  color: #fff1d4;
  box-shadow: inset 0 2px #799580;
}
.movegroup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2cqw 0.65cqw;
  align-items: center;
  justify-items: center;
}
.move {
  display: grid;
  place-items: center;
  position: relative;
  background: #f8e9bd;
  border: 2px solid #564e37;
  border-radius: 25%;
  color: #425844;
  width: 6.35cqw;
  height: 5.55cqw;
  min-width: 46px;
  min-height: 42px;
  box-shadow:
    inset 0 3px #fff9df,
    0 4px #ad9770,
    0 6px #263e34;
}
.move span {
  font-size: 2.5cqw;
  line-height: 1;
}
.movegroup small {
  grid-column: 1/3;
  font-size: clamp(10px, 1.03cqw, 14px);
  margin-top: 4px;
  letter-spacing: 0.13em;
}
.move kbd {
  position: absolute;
  bottom: 2px;
  right: 4px;
}
.stageplate {
  position: absolute;
  left: 42%;
  transform: translateX(-50%);
  padding: 0.3em 0.85em;
  border: 1px solid #8ba18c;
  border-radius: 2em;
  color: #e4e5c7;
  font-size: clamp(11px, 1.3cqw, 18px);
  letter-spacing: 0.14em;
}
.stageplate span {
  color: #d6bc76;
  font-size: 0.76em;
}
.actions {
  display: flex;
  align-items: flex-end;
  gap: 0.8cqw;
  height: 100%;
}
.action {
  border: 0;
  background: transparent;
  color: #fff6df;
  display: flex;
  flex-direction: column;
  gap: 0.1cqw;
  align-items: center;
  justify-content: flex-end;
  min-width: 44px;
  min-height: 44px;
  height: 100%;
  padding: 0 0.1cqw;
}
.action img {
  width: 5.2cqw;
  height: 5.2cqw;
  object-fit: contain;
  filter: drop-shadow(0 3px 0 #233d31);
  transition: transform 0.075s;
}
.action.attack img {
  width: 7.7cqw;
  height: 7.7cqw;
}
.action span {
  font-size: clamp(10px, 1.14cqw, 15px);
  line-height: 1.35;
  white-space: nowrap;
}
.action[data-key='special']:not(.ready) img {
  filter: saturate(0.58) brightness(0.89) drop-shadow(0 3px 0 #233d31);
}
.action.ready img {
  filter: drop-shadow(0 0 5px #ffdb64);
}
.action.cool img {
  opacity: 0.59;
}
.pressed img,
.action:active img {
  transform: translateY(3px) scale(0.94);
}
.move.pressed {
  transform: translateY(3px);
  box-shadow: 0 2px #253e31;
  background: #ffdf91;
}
kbd {
  font:
    700 clamp(8px, 0.87cqw, 12px) / 1.15 ui-monospace,
    monospace;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 0.22em;
  opacity: 0.75;
}
.sitefoot {
  height: 3cqw;
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: clamp(10px, 1.1cqw, 14px);
  color: #68725b;
}
.stage-id {
  font: 850 0.75em/1 monospace;
  letter-spacing: 0.12em;
  color: #546952;
}
.hint {
  margin-left: auto;
  font-weight: 650;
}
.rotate {
  display: none;
}
.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.titlelock {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-3deg);
}
.ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-size: clamp(10px, 1.35cqw, 18px);
  letter-spacing: 0.15em;
  color: white;
}
.ribbon span {
  background: #397559;
  clip-path: polygon(0 0, 100% 0, 96% 50%, 100% 100%, 0 100%, 4% 50%);
  padding: 0.19em 1.8em;
  text-shadow: 0 1px #325b3c;
}
.titlelock h1 {
  margin: 0.15em 0 0.24em;
  font-size: 5.65cqw;
  letter-spacing: -0.08em;
  line-height: 0.99;
  font-weight: 1000;
  color: #fff6ce;
  filter: drop-shadow(0 4px 0 #57381d);
  paint-order: stroke fill;
  -webkit-text-stroke: 0.13em #57381d;
  text-shadow: 0 0.06em #dd9c64;
}
.titlelock h1 span,
.titlelock h1 strong {
  display: block;
}
.titlelock h1 strong {
  color: #ffd265;
  font-size: 1.24em;
  letter-spacing: 0.02em;
}
.play {
  min-height: 43px;
  padding: 0.42em 1.25em 0.48em;
  border: 2px solid #653e2d;
  border-radius: 2em;
  background: #c65042;
  color: #fff5df;
  font-size: clamp(16px, 2.1cqw, 27px);
  font-weight: 950;
  box-shadow:
    inset 0 2px #f69b7a,
    0 4px #773e27,
    0 0 0 3px #fff0c9;
}
.play span {
  font-size: 0.7em;
  margin-left: 0.4em;
}
.play:active {
  transform: translateY(2px);
}
.play:disabled {
  opacity: 0.6;
}
.scrim {
  background: #18382d58;
}
.panel {
  color: #4e442f;
  background: #fff2d5;
  border: 3px solid #625139;
  outline: 3px solid #fff1cd;
  border-radius: 20px;
  box-shadow: 0 6px 0 #5d513e77;
  padding: 1.3cqw 3.8cqw;
  min-width: 27cqw;
}
.panel h2 {
  margin: 0.15em 0;
  font-size: clamp(21px, 3.5cqw, 46px);
}
.panel p,
.panel label {
  font-size: clamp(11px, 1.35cqw, 17px);
  margin: 0.5em 0 1em;
}
.panel label {
  display: block;
}
.panel .play {
  margin: 0.25em 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
#loading {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: #38543c;
  padding: 0.3em 1em;
  border-radius: 1em;
}
.hud {
  transition: opacity 0.2s;
}
#machine[data-mode='title'] .hud {
  opacity: 0;
}
#machine[data-mode='title'] .deck button {
  opacity: 0.85;
}
@media (pointer: coarse) {
  kbd {
    display: none;
  }
  .tools button {
    min-width: 44px;
  }
  .action {
    min-width: 46px;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  #machine {
    width: min(100%, calc(100dvh * 2.6));
    height: 100%;
    max-height: 100dvh;
  }
  .sitebar {
    height: 34px;
    min-height: 34px;
    padding: 0 2% 2px;
  }
  .brand {
    font-size: 16px;
  }
  .brandmark {
    width: 23px;
    height: 23px;
  }
  .tools button {
    height: 30px;
    min-height: 30px;
    border-radius: 8px;
  }
  @media (pointer: coarse) {
    .sitebar {
      min-height: 46px;
    }
    .tools button {
      min-height: 44px;
    }
  }
  .cabinet {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border-width: 2px;
    border-radius: 13px;
  }
  .sitefoot {
    display: none;
  }
  #arena {
    flex: 1;
    height: auto;
  }
  .deck {
    height: clamp(75px, 21dvh, 100px);
    min-height: 0;
    padding: 2px 3% 3px;
  }
  .action img {
    height: min(5.8cqw, 12.5dvh);
    width: min(5.8cqw, 12.5dvh);
  }
  .action.attack img {
    height: 15.9dvh;
    width: 15.9dvh;
  }
  .move {
    height: 11dvh;
    min-height: 44px;
  }
  .movegroup small {
    margin-top: 1px;
  }
  .hud {
    top: 3%;
  }
  .portrait {
    height: 5.1cqw;
    width: 5.1cqw;
  }
  .timer {
    padding: 0.1cqw 0.85cqw 0.35cqw;
  }
  .titlelock h1 {
    font-size: min(5cqw, 9.6dvh);
  }
}
@media (orientation: portrait) {
  #machine {
    width: 98%;
    max-width: 680px;
  }
  .sitebar {
    height: 49px;
  }
  .cabinet {
    border-radius: 16px;
  }
  #arena {
    height: 67cqw;
  }
  .deck {
    height: 30cqw;
    min-height: 112px;
    padding: 3% 2%;
  }
  .stageplate {
    display: none;
  }
  .actions {
    gap: 1px;
    align-items: center;
  }
  .action {
    min-width: 44px;
    justify-content: center;
  }
  .action img {
    width: 9.4cqw;
    height: 9.4cqw;
  }
  .action.attack img {
    width: 13.3cqw;
    height: 13.3cqw;
  }
  .move {
    min-width: 35px;
    height: 46px;
  }
  .move span {
    font-size: 18px;
  }
  .titlelock h1 {
    font-size: 8.2cqw;
  }
  .hud {
    grid-template-columns: 1fr 14% 1fr;
  }
  .portrait {
    height: 8cqw;
    width: 8cqw;
    border-width: 2px;
  }
  .sitefoot {
    margin-top: 6px;
  }
  .rotate {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #586650;
  }
  .panel {
    padding: 12px 20px;
  }
  .panel .play {
    min-height: 40px;
  }
  .hint {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.titlelock h1 {
  filter: drop-shadow(2px 0 0 #fff2bd) drop-shadow(-2px 0 0 #fff2bd)
    drop-shadow(0 3px 0 #ffe9aa) drop-shadow(1px 4px 0 #634731);
  font-weight: 1000;
}
.titlelock h1 span {
  transform: rotate(-3deg);
}
.titlelock h1 strong {
  transform: rotate(3deg);
  color: #ffcb55;
}
.stageplate {
  left: 43%;
  letter-spacing: 0.045em;
}
.action.ready span {
  color: #ffe08a;
}
.action b {
  font-weight: inherit;
}
@media (orientation: landscape) {
  .actions {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(2, minmax(44px, 5.8cqw)) minmax(55px, 7.8cqw);
    grid-template-rows: 1fr 1fr;
    gap: 0 0.3cqw;
    position: relative;
  }
  .action {
    position: relative;
    justify-content: center;
    height: 100%;
  }
  .action[data-key='guard'] {
    grid-column: 1;
    grid-row: 1/3;
    align-self: end;
    transform: translateY(10%);
  }
  .action[data-key='dodge'] {
    grid-column: 2;
    grid-row: 1;
  }
  .action[data-key='special'] {
    grid-column: 2;
    grid-row: 2;
  }
  .action.attack {
    grid-column: 3;
    grid-row: 1/3;
  }
  .action[data-key='dodge'],
  .action[data-key='special'] {
    flex-direction: row;
    gap: 0;
  }
  .action[data-key='dodge'] img,
  .action[data-key='special'] img {
    width: 3.9cqw;
    height: 3.9cqw;
  }
  .action[data-key='dodge'] span,
  .action[data-key='special'] span {
    font-size: clamp(9px, 0.87cqw, 12px);
    writing-mode: vertical-rl;
    line-height: 1;
  }
  .action[data-key='dodge'] kbd,
  .action[data-key='special'] kbd {
    writing-mode: horizontal-tb;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .deck {
    height: clamp(90px, 23dvh, 104px);
    padding: 0 4% 1px;
  }
  .actions {
    grid-template-columns: 49px 53px minmax(60px, 8cqw);
  }
  .action[data-key='guard'] {
    transform: none;
  }
  .action[data-key='dodge'] img,
  .action[data-key='special'] img {
    width: 34px;
    height: 34px;
  }
}

.deck {
  touch-action: none;
}
.deck button > * {
  pointer-events: none;
}
#machine[data-mode='fight'] .action.chance img {
  filter: drop-shadow(0 0 2px #fff9ec) drop-shadow(0 0 6px var(--reply-color));
  outline: 2px solid var(--reply-color);
  outline-offset: 1px;
  border-radius: 50%;
}
.action.chance span {
  color: var(--reply-color);
}
.action[data-reply='guard'] { --reply-color: #bce9ff; }
.action[data-reply='parry'] { --reply-color: #ffdc86; }
.action[data-reply='evade'], .action[data-reply='trip'] { --reply-color: #ead3ff; }
#machine[data-mode='fight'] .action.ready img {
  border-radius: 50%;
  outline: 2px solid #ffe371;
  outline-offset: 1px;
  filter: drop-shadow(0 0 5px #ffd456) saturate(1.16);
}
#pause .panel {
  max-height: 100%;
  overflow-y: auto;
}
#pause .key-guide {
  font-size: clamp(10px, 1.1cqw, 13px);
  color: #6b6352;
  margin: 4px 0 8px;
  line-height: 1.5;
}
@media (pointer: coarse) {
  #pause .key-guide {
    display: none;
  }
}
.defense-setting select {
  font: inherit;
  color: #474833;
  background: #fff7de;
  border: 1px solid #9b8762;
  border-radius: 5px;
  padding: 2px 4px;
}
#machine[data-forward='right'] [data-key='right']::after,
#machine[data-forward='left'] [data-key='left']::after,
#machine.can-retreat[data-forward='right'] [data-key='left']::after,
#machine.can-retreat[data-forward='left'] [data-key='right']::after {
  content: '';
  position: absolute;
  inset: 4%;
  background: #f8e9bd url(assets/dodge.webp) center/contain no-repeat;
  border-radius: 22%;
  pointer-events: none;
}
#machine[data-forward='right'] [data-key='right']::after,
#machine[data-forward='left'] [data-key='left']::after {
  background-image: url(assets/guard.webp);
}
@media (orientation: landscape) {
  #machine[data-layout='left'] .deck {
    display: grid;
    grid-template-columns:
      auto minmax(85px, 8.5cqw) 1fr minmax(54px, 6cqw)
      minmax(60px, 8cqw);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0 0.65cqw;
  }
  #machine[data-layout='left'] .actions {
    display: contents;
  }
  #machine[data-layout='left'] .movegroup {
    grid-area: 1 / 1 / 3 / 2;
  }
  #machine[data-layout='left'] [data-key='guard'] {
    grid-area: 1 / 2;
    transform: none;
  }
  #machine[data-layout='left'] [data-key='dodge'] {
    grid-area: 2 / 2;
  }
  #machine[data-layout='left'] [data-key='guard'],
  #machine[data-layout='left'] [data-key='dodge'] {
    flex-direction: row;
    gap: 2px;
  }
  #machine[data-layout='left'] [data-key='guard'] img,
  #machine[data-layout='left'] [data-key='dodge'] img {
    width: min(4.3cqw, 9.5dvh);
    height: min(4.3cqw, 9.5dvh);
  }
  #machine[data-layout='left'] [data-key='guard'] span,
  #machine[data-layout='left'] [data-key='dodge'] span {
    writing-mode: horizontal-tb;
    font-size: clamp(11px, 1.1cqw, 14px);
    line-height: 1;
  }
  #machine[data-layout='left'] [data-key='special'] {
    grid-area: 1 / 4 / 3 / 5;
    flex-direction: column;
  }
  #machine[data-layout='left'] [data-key='special'] img {
    width: min(5.4cqw, 13dvh);
    height: min(5.4cqw, 13dvh);
  }
  #machine[data-layout='left'] [data-key='special'] span {
    writing-mode: horizontal-tb;
    font-size: clamp(10px, 1.14cqw, 15px);
  }
  #machine[data-layout='left'] [data-key='attack'] {
    grid-area: 1 / 5 / 3 / 6;
  }
  #machine[data-layout='left'] .stageplate {
    left: 50%;
  }
}

@media (orientation: landscape) and (pointer: coarse) {
  .deck {
    min-height: 96px;
  }
  .actions {
    grid-template-columns: minmax(46px, 5cqw) minmax(90px, 10cqw) minmax(
        60px,
        8cqw
      );
  }
  .action[data-key='dodge'] span,
  .action[data-key='special'] span {
    writing-mode: horizontal-tb;
    font-size: clamp(11px, 1.1cqw, 14px);
  }
}
.leave {
  display: block;
  width: fit-content;
  margin: 8px auto 0;
  color: inherit;
  font-size: 12px;
}

.slide-hint,
#machine[data-layout='slide']
  :is(.move-label, [data-key='guard'], [data-key='dodge']) {
  display: none;
}
#machine[data-layout='slide'] .slide-hint {
  display: flex;
  gap: 9px;
  font-size: clamp(11px, 1.2cqw, 15px);
  letter-spacing: 0;
  white-space: nowrap;
}
#machine[data-layout='slide'] .actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqw, 25px);
}
#machine[data-layout='slide'] .action[data-key='special'] {
  flex-direction: column;
}
#machine[data-layout='slide'] [data-key='special'] span {
  writing-mode: horizontal-tb;
}
#machine[data-layout='slide'] .move {
  min-width: 48px;
  min-height: 44px;
}
#machine[data-layout='slide'] .stageplate {
  left: 50%;
}
.move[data-slide='guard'] {
  background: #bce9fa;
}
.move[data-slide='dodge'] {
  background: #e6d4f6;
}
.dodge-cooling .evade-hint {
  opacity: 0.6;
}

.title-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.secondary {
  min-height: 44px;
  padding: 6px 14px;
  border: 1px solid #76694f;
  border-radius: 2em;
  background: #fff4d9;
  color: #464c3b;
  font-size: clamp(13px, 1.5cqw, 18px);
}
#drill-tip {
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1em;
  background: #284736ed;
  color: #fff7db;
  padding: 4px 14px;
  font-size: clamp(13px, 1.6cqw, 20px);
  white-space: nowrap;
  pointer-events: none;
}
#machine[data-lesson='practice']
  :is(
    .stageplate,
    .power,
    .action[data-key='attack'],
    .action[data-key='special'],
    .action[data-key='dodge']
  ) {
  visibility: hidden;
}
#machine[data-lesson='practice'] .timer strong {
  font-size: clamp(18px, 2.6cqw, 36px);
}
#machine[data-lesson='practice'] .evade-hint {
  visibility: hidden;
}

#result .panel {
  max-height: 100%;
  overflow-y: auto;
  touch-action: pan-y;
}
@media (orientation: landscape) and (max-height: 400px) {
  #result .panel { padding: 4px 16px; }
  #result .panel h2 { font-size: 23px; margin: 0; }
  #result .panel p { margin: 2px 0; }
  #result .leave { margin-top: 2px; }
}
