/* A compact set of tactile boards and illustrated turn-based stages. */
.arcade-pack {
  --arc-ink: #385a49;
  --arc-line: #d6dfca;
  --arc-paper: #f5f4e9;
  max-width: 690px;
  margin: auto;
  outline: none;
  color: var(--arc-ink);
}
.arc-instruction {
  max-width: 560px;
  margin: 0 auto 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #6a7565;
}
.arcade-pack button,
.arcade-pack input {
  font: inherit;
}
.arcade-pack button {
  cursor: pointer;
}
.arcade-pack button:disabled {
  cursor: default;
}
.arcade-pack svg {
  display: block;
}
.arcade-pack button svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}
.arcade-pack button:focus-visible,
.arcade-pack input:focus-visible {
  outline: 3px solid #dbaf60;
  outline-offset: 3px;
}
.arc-control {
  border: 1px solid #cbd5c0;
  border-radius: 11px;
  background: #fbfcf5;
  color: #446550;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  box-shadow: 0 3px 0 #d9dfce;
  transition:
    background 0.15s,
    transform 0.15s,
    box-shadow 0.15s;
}
.arc-control:not(:disabled):hover {
  background: #edf3e4;
  transform: translateY(-1px);
}
.arc-control:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d9dfce;
}
.arc-control:disabled {
  opacity: 0.48;
}
.arc-control.is-selected {
  background: #53785e;
  color: #fff;
  border-color: #53785e;
  box-shadow: 0 3px 0 #385940;
}
.arc-primary {
  background: #52745b;
  color: #fff;
  border-color: #52745b;
  box-shadow: 0 3px 0 #355440;
}
.arc-primary:not(:disabled):hover {
  background: #42634b;
}
.arc-control small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
  opacity: 0.8;
}
.arc-score {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 430px;
  margin: 0 auto 15px;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #79816c;
}
.arc-score b {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  color: #46694f;
  margin-left: 6px;
}
.arc-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: #d9e0cc;
  box-shadow:
    0 7px 0 #b7c4ad,
    0 16px 30px #4b644b12;
  margin: 0 auto 22px;
  max-width: 420px;
}
.arc-number {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
  font-size: clamp(22px, 5vw, 38px);
  font-family: Georgia, serif;
  background: #eff1e5;
  min-width: 0;
  box-shadow: 0 3px 0 #00000010;
}
.arc-merge {
  grid-template-columns: repeat(4, 1fr);
  touch-action: none;
}
.arc-merge .arc-number {
  animation: arc-pop 0.2s ease-out;
}
.arc-value-0 {
  background: #cbd5bf;
  box-shadow: inset 0 2px 3px #5c734519;
}
.arc-value-2 {
  background: #f5f0db;
  color: #7b7657;
}
.arc-value-4 {
  background: #eee3b9;
  color: #756644;
}
.arc-value-8 {
  background: #edc68d;
  color: #7b5838;
}
.arc-value-16 {
  background: #e5a77c;
  color: #fff8e8;
}
.arc-value-32 {
  background: #d38569;
  color: #fff7e3;
}
.arc-value-64 {
  background: #bc6959;
  color: #fff5de;
}
.arc-value-128 {
  background: #e1b858;
  color: #fff;
}
.arc-value-256 {
  background: #bd9d3f;
  color: #fff;
  box-shadow: 0 0 28px #eaca69;
}
.arc-value-512,
.arc-value-1024,
.arc-value-2048 {
  background: #60805b;
  color: #fff;
}
.arc-dpad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-rows: repeat(2, 46px);
  gap: 7px;
  justify-content: center;
  margin: 24px auto 8px;
}
.arc-dpad .arc-control {
  padding: 9px;
  min-height: 0;
}
.arc-up {
  grid-column: 2;
  grid-row: 1;
}
.arc-left {
  grid-column: 1;
  grid-row: 2;
}
.arc-down {
  grid-column: 2;
  grid-row: 2;
}
.arc-right {
  grid-column: 3;
  grid-row: 2;
}
.arc-mines {
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  max-width: 390px;
  background: #d8e0d5;
}
.arc-mine {
  padding: 0;
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  border: 1px solid #b8c9b5;
  border-radius: 7px;
  background: #f5f7e8;
  font-size: 23px;
  font-weight: 650;
  box-shadow: 0 3px 0 #a7baa2;
}
.arc-mine:disabled {
  opacity: 1;
}
.arc-mine.arc-open {
  background: #d6dfcc;
  border-color: #c6d2bd;
  box-shadow: inset 0 1px 3px #48614713;
}
.arc-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a4b69a;
}
.arc-count-1 {
  color: #507d9a;
}
.arc-count-2 {
  color: #508554;
}
.arc-count-3 {
  color: #b16c51;
}
.arc-count-4 {
  color: #776d9c;
}
.arc-exploded {
  background: #ddb6a5 !important;
  color: #914b3c;
}
.arc-mode {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}
.arc-lights {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  box-sizing: border-box;
  max-width: 365px;
  padding: 17px;
  gap: 10px;
  background: #3d5449;
  box-shadow:
    0 7px 0 #293f34,
    0 15px 35px #334b3322;
}
.arc-lamp {
  aspect-ratio: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid #617663;
  background: #526458;
  color: #839581;
  border-radius: 50%;
  box-shadow: 0 3px 0 #263c30;
}
.arc-lamp svg {
  width: 65% !important;
  max-width: 31px;
  height: auto !important;
  aspect-ratio: 1;
}
.arc-lamp:disabled {
  opacity: 1;
}
.arc-lamp.is-lit {
  background: #f1d885;
  color: #ac8134;
  border-color: #f7e9a2;
  box-shadow:
    0 3px 0 #b9944b,
    0 0 17px #edcf7044;
}
.arc-lamp:not(:disabled):hover {
  background: #697e62;
}
.arc-lamp.is-lit:not(:disabled):hover {
  background: #ffe59a;
}
.arc-slide {
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  background: #c3ac8b;
  box-shadow: 0 7px 0 #9d8567;
}
.arc-slide .arc-number {
  background: #f5e7c8;
  color: #846d47;
  border-color: #e4d4b3;
  padding: 0;
  min-height: 0;
  box-shadow: 0 4px 0 #bca477;
  opacity: 1;
}
.arc-slide .arc-home {
  background: #d8e1b9;
  color: #5c7854;
}
.arc-slide .arc-blank {
  visibility: hidden;
}
.arc-slide button:not(:disabled) {
  outline: 2px solid #fff6ce;
  outline-offset: -4px;
}
.arc-slide button:disabled:not(.arc-blank) {
  filter: saturate(0.65);
}
.arc-maze {
  width: min(100%, 410px);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow:
    0 7px 0 #a9b99a,
    0 14px 25px #47634915;
  overflow: visible;
}
.arc-lantern {
  filter: drop-shadow(0 3px 2px #68532135);
}
.arc-letter-tray {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px auto 20px;
}
.arc-letter {
  width: 58px;
  height: 68px;
  font:
    600 30px Georgia,
    serif !important;
  background: #f6ebcc;
  box-shadow: 0 5px 0 #c5b18a;
  border-color: #e0d0ab;
  color: #766247;
  padding: 0;
  transform: rotate(-2deg);
}
.arc-letter:nth-child(even) {
  transform: rotate(2deg);
}
.arc-letter:disabled {
  opacity: 1;
}
.arc-clue {
  text-align: center;
  font:
    italic 20px Georgia,
    serif;
  color: #7e886d;
  margin: 22px 0;
}
.arc-word-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 540px;
  margin: 26px auto;
}
.arc-word-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid #bfcdb2;
  padding: 13px 8px;
  background: transparent;
  font-size: 23px;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: none;
  color: #45634d;
}
.arc-word-form .arc-control {
  flex-shrink: 0;
  padding: 10px 12px;
}
.arc-found {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.arc-found span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #67855b;
}
.arc-found svg {
  width: 17px;
  height: 17px;
}
.arc-sudoku {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 7px;
  background: #829b77;
  max-width: 365px;
  box-shadow: 0 6px 0 #617c56;
}
.arc-sudoku-cell {
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 0;
  border: 1px solid #d3ddc7;
  box-shadow: none !important;
  padding: 0;
  font:
    32px Georgia,
    serif !important;
  color: #497968;
  background: #f8fbec;
}
.arc-sudoku-cell:disabled {
  opacity: 1;
}
.arc-sudoku-cell.arc-given {
  background: #e4ebd6;
  color: #5e6453;
  font-weight: 700 !important;
}
.arc-box-right {
  border-right: 4px solid #829b77;
}
.arc-box-bottom {
  border-bottom: 4px solid #829b77;
}
.arc-digits {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 25px;
}
.arc-digits button {
  width: 48px;
  padding: 10px;
  font-size: 20px;
}
.arc-echo-status {
  text-align: center;
  font:
    21px Georgia,
    serif;
  margin: 20px auto 25px;
  color: #6a7f60;
  min-height: 28px;
}
.arc-echo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: min(100%, 340px);
  margin: 0 auto;
  padding: 16px;
  background: #e3e7d6;
  border-radius: 50px;
  box-shadow: 0 7px 0 #c2cbb3;
}
.arc-pad {
  aspect-ratio: 1;
  border: 0;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px;
  transition:
    filter 0.1s,
    transform 0.1s;
  background: #99b58a;
  color: #375837;
  box-shadow: 0 5px 0 #6c8d5f;
  position: relative;
}
.arc-pad svg {
  width: 45px !important;
  height: 45px !important;
}
.arc-pad span {
  font-size: 12px;
  opacity: 0.7;
}
.arc-pad-1 {
  background: #e9c279;
  color: #8f652b;
  box-shadow: 0 5px 0 #ba9552;
}
.arc-pad-2 {
  background: #b3ced2;
  color: #487d89;
  box-shadow: 0 5px 0 #7d9ea7;
}
.arc-pad-3 {
  background: #d8af9e;
  color: #995f4a;
  box-shadow: 0 5px 0 #ad806c;
}
.arc-pad:disabled {
  opacity: 0.85;
}
.arc-pad.is-flashing {
  filter: brightness(1.45);
  transform: translateY(3px) scale(1.02);
  box-shadow: 0 0 28px #f4d88a;
  opacity: 1;
}
.arc-pad:not(:disabled):hover {
  filter: brightness(1.12);
  background: #99b58a;
}
.arc-pad-1:not(:disabled):hover {
  background: #e9c279;
}
.arc-pad-2:not(:disabled):hover {
  background: #b3ced2;
}
.arc-pad-3:not(:disabled):hover {
  background: #d8af9e;
}
.arc-stage-wrap {
  border: 1px solid #dbe2ce;
  border-radius: 19px;
  overflow: hidden;
  background: #edf2df;
  box-shadow: 0 7px 0 #c4ceba;
}
.arc-stage {
  width: 100%;
  height: auto;
  overflow: hidden;
  touch-action: none;
}
.arc-vitals {
  display: flex;
  justify-content: space-between;
  gap: 45px;
  padding: 18px 22px 0;
  background: #e4efe7;
}
.arc-vital {
  width: 44%;
  max-width: 220px;
}
.arc-vital > span {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-bottom: 7px;
}
.arc-vital b {
  font-size: 15px;
  letter-spacing: 0;
}
.arc-vital small {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 7px;
  color: #758373;
}
.arc-health {
  height: 7px;
  background: #cfdbc5;
  border-radius: 10px;
  overflow: hidden;
}
.arc-health i {
  display: block;
  height: 100%;
  background: #618a6a;
  transition: width 0.8s ease;
  border-radius: 10px;
}
.arc-player-1 .arc-health i {
  background: #d2a363;
}
.arc-player-1 {
  color: #a37742;
}
.arc-fighter .arc-body {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.arc-fighter.is-turn .arc-body {
  animation: arc-breathe 2.4s ease-in-out infinite;
}
.arc-weapon {
  transform-box: fill-box;
  transform-origin: center;
}
.arc-hit {
  animation: arc-hit 0.45s ease-out !important;
}
.arc-shield {
  filter: drop-shadow(0 0 5px #b1d2e0);
}
.arc-wind {
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 1px;
  margin: 19px 0;
  color: #849077;
}
.arc-wind strong {
  font-size: 14px;
  color: #5b7760;
}
.arc-wind > span {
  margin-left: 18px;
  letter-spacing: 0;
}
.arc-aim-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 8px 3px;
}
.arc-aim-controls label {
  font-size: 12px;
  color: #75816c;
}
.arc-aim-controls output {
  float: right;
  color: #486b50;
  font-weight: 600;
}
.arc-aim-controls input {
  display: block;
  width: 100%;
  accent-color: #63815b;
  margin: 12px 0 0;
  cursor: pointer;
}
.arc-duel-controls {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 25px 0 0;
}
.arc-duel-controls .arc-control {
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 12px 7px;
  font-size: 12px;
  max-width: 120px;
}
.arc-notice,
.arc-result {
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  margin: 22px auto 0;
  max-width: 500px;
  color: #7f876e;
}
.arc-result {
  padding: 13px;
  border-radius: 11px;
  background: #e8eddc;
  color: #55704e;
  font-weight: 600;
}
.arc-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@keyframes arc-pop {
  from {
    opacity: 0.55;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes arc-breathe {
  50% {
    transform: translateY(-1.6px);
  }
}
@keyframes arc-hit {
  20%,
  60% {
    filter: brightness(1.8);
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}
@media (max-width: 520px) {
  .arc-instruction {
    font-size: 12px;
    margin-bottom: 15px;
  }
  .arc-grid {
    padding: 9px;
    gap: 6px;
  }
  .arc-lights {
    padding: 14px;
    gap: 9px;
  }
  .arc-sudoku {
    gap: 0;
    padding: 6px;
  }
  .arc-aim-controls {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .arc-aim-controls > .arc-control {
    grid-column: 1/-1;
    width: 100%;
    margin-top: 5px;
  }
  .arc-duel-controls {
    gap: 5px;
  }
  .arc-duel-controls .arc-control {
    font-size: 10px;
    padding: 10px 3px;
  }
  .arc-duel-controls small {
    font-size: 8px;
  }
  .arc-wind > span {
    margin-left: 6px;
    font-size: 9px;
  }
  .arc-word-form {
    flex-wrap: wrap;
  }
  .arc-word-form input {
    flex-basis: calc(100% - 60px);
    width: calc(100% - 60px);
  }
  .arc-word-form .arc-primary {
    width: 100%;
    margin-top: 8px;
  }
  .arc-letter {
    width: 40px;
    height: 53px;
    font-size: 25px !important;
  }
  .arc-letter-tray {
    gap: 7px;
  }
  .arc-echo {
    gap: 12px;
    padding: 13px;
  }
  .arc-vitals {
    gap: 30px;
    padding: 13px 15px 0;
  }
  .arc-vital > span {
    font-size: 9px;
  }
  .arc-score {
    letter-spacing: 1px;
  }
  .arc-digits {
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-pack * {
    animation: none !important;
    transition: none !important;
  }
  .arc-control:not(:disabled):hover {
    transform: none;
  }
}
