@font-face {
  font-family: "Galmuri11";
  src: url("./assets/fonts/Galmuri11.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Galmuri11";
  src: url("./assets/fonts/Galmuri11-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #05080d;
  --panel: #0b111a;
  --panel-2: #111a23;
  --paper: #ead9ba;
  --paper-line: rgba(86, 60, 37, 0.2);
  --ink: #18120c;
  --cream: #f4ecd9;
  --yellow: #ffc400;
  --gold: #e5a315;
  --red: #c83227;
  --green: #4f9d35;
  --blue: #225e98;
  --cyan: #85d7ff;
  --purple: #ca75ff;
  --shadow: rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 14px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 196, 0, 0.13), transparent 24rem),
    linear-gradient(135deg, #090b0f, #12161b 40%, #05080d);
  color: var(--cream);
  font-family: "Galmuri11", "Malgun Gothic", sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: min(860px, calc(100vh - 28px));
  overflow: hidden;
  border: 4px solid #1d2229;
  border-radius: 18px;
  background:
    linear-gradient(rgba(3, 7, 11, 0.28), rgba(3, 7, 11, 0.84)),
    url("./assets/generated/bomb-workshop-bg.png") center / cover;
  box-shadow:
    0 0 0 2px #050609,
    0 18px 50px rgba(0, 0, 0, 0.65);
  image-rendering: pixelated;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: 24px;
}

.screen.is-active {
  display: flex;
}

.title-screen {
  justify-content: space-between;
  align-items: center;
  padding-top: 42px;
}

.title-stack {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.title-stack h1 {
  display: grid;
  margin: 0;
  font-size: clamp(3rem, 15vw, 4.9rem);
  line-height: 0.9;
  text-shadow:
    4px 4px 0 #020305,
    0 5px 0 rgba(0, 0, 0, 0.42);
}

.title-stack h1 span {
  color: #f7eed4;
}

.title-stack h1 strong {
  color: var(--yellow);
}

.title-logo-img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 9px 0 rgba(0, 0, 0, 0.42));
  image-rendering: pixelated;
}

.job-ribbon {
  margin: 0;
  padding: 10px 24px;
  border: 3px solid #5f120c;
  background: linear-gradient(#c22e22, #852017);
  color: #fff4db;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--shadow);
}

.speech-bubble {
  position: relative;
  margin: 2px 0 0;
  padding: 14px 22px;
  border: 3px solid #6d7581;
  border-radius: 6px;
  background: rgba(5, 8, 12, 0.9);
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 5px 0 var(--shadow);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 36px;
  bottom: -17px;
  width: 22px;
  height: 22px;
  border-right: 3px solid #6d7581;
  border-bottom: 3px solid #6d7581;
  background: rgba(5, 8, 12, 0.9);
  transform: rotate(45deg);
}

.bomb-console {
  position: relative;
  width: min(100%, 326px);
  border: 5px solid #202833;
  border-radius: 10px;
  background: linear-gradient(#242b2f, #11161b);
  box-shadow:
    inset 0 0 0 4px #0a0d11,
    0 10px 0 rgba(0, 0, 0, 0.45);
}

.title-countdown {
  position: relative;
  width: min(100%, 340px);
  margin-top: auto;
  image-rendering: pixelated;
}

.title-countdown-device {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.46));
}

.title-led-digits {
  position: absolute;
  left: 20.5%;
  top: 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 59%;
  height: 18.5%;
  overflow: hidden;
  pointer-events: none;
}

.title-led-digits img {
  display: block;
  width: auto;
  height: 100%;
  image-rendering: pixelated;
}

.wire-set {
  position: absolute;
  top: -38px;
  left: 50%;
  width: 220px;
  height: 68px;
  transform: translateX(-50%);
  pointer-events: none;
}

.wire {
  position: absolute;
  bottom: 0;
  width: 58px;
  height: 58px;
  border: 8px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.wire.red {
  left: 8px;
  color: #de382e;
}

.wire.yellow {
  left: 72px;
  color: #f5bd26;
}

.wire.green {
  left: 136px;
  color: #45a447;
}

.wire.blue {
  left: 178px;
  color: #2b82d3;
}

.timer-display {
  display: grid;
  place-items: center;
  min-height: 82px;
  border: 5px solid #08090b;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 40, 30, 0.05), rgba(255, 40, 30, 0.05)),
    #050303;
  color: #ff3f33;
  font-family: "Galmuri11", monospace;
  font-size: clamp(3.4rem, 16vw, 5.2rem);
  font-weight: 700;
  text-shadow: 0 0 12px rgba(255, 32, 24, 0.52);
  font-variant-numeric: tabular-nums;
}

.title-actions {
  width: 100%;
  display: grid;
  gap: 12px;
}

.home-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: min(100%, 326px);
  margin: 0 auto;
}

.mini-link-button {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 9px 8px;
  border: 3px solid rgba(0, 0, 0, 0.7);
  border-radius: 7px;
  color: #fff8e8;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25),
    0 5px 0 rgba(0, 0, 0, 0.5);
}

.button-thread {
  background: linear-gradient(#2f343c, #0f141a);
}

.best-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  width: min(100%, 326px);
  min-height: 64px;
  margin: 0 auto;
  border: 3px solid #252d39;
  border-radius: 6px;
  background: rgba(4, 8, 13, 0.86);
  box-shadow: inset 0 0 0 2px #05070a;
}

.best-panel span {
  color: #48b9ff;
  font-size: 1.25rem;
  font-weight: 700;
}

.best-panel strong {
  font-size: 1.25rem;
}

.button,
.icon-button {
  min-height: 56px;
  border: 3px solid rgba(0, 0, 0, 0.7);
  color: #fff8e8;
  font-weight: 700;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  cursor: pointer;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.18),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25),
    0 5px 0 rgba(0, 0, 0, 0.5);
}

.button {
  width: min(100%, 326px);
  margin: 0 auto;
  padding: 12px 18px;
  border-radius: 7px;
  font-size: 1.55rem;
}

.button:active,
.icon-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.25),
    0 2px 0 rgba(0, 0, 0, 0.5);
}

.button-gold {
  background: linear-gradient(#ffd43a, #d3900d);
  color: #241604;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.4);
}

.button-green {
  background: linear-gradient(#65b84a, #2f7828);
}

.button-red {
  width: 100%;
  min-height: 78px;
  background: linear-gradient(#d64031, #8c2018);
  font-size: 2rem;
}

.button-blue {
  background: linear-gradient(#3175b1, #194d83);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  min-height: 54px;
  border-radius: 7px;
  background: linear-gradient(#4b545d, #20262d);
  font-size: 1.6rem;
}

.icon-button.is-muted {
  color: #b9c0c7;
  background: linear-gradient(#303740, #151a20);
}

#settings-button {
  position: absolute;
  top: 24px;
  right: 24px;
}

.rules-screen {
  justify-content: space-between;
  gap: 18px;
  padding-top: 36px;
  background: rgba(2, 5, 8, 0.55);
}

.rules-panel {
  display: grid;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  border: 4px solid #222b34;
  border-radius: 8px;
  background: rgba(7, 12, 18, 0.94);
  box-shadow:
    inset 0 0 0 3px #05070a,
    0 10px 0 rgba(0, 0, 0, 0.35);
}

.rules-panel h2 {
  margin: 0;
  padding: 12px;
  border: 3px solid #5b130e;
  background: linear-gradient(#c53729, #882119);
  text-align: center;
  font-size: 2rem;
}

.rules-lead {
  margin: 0;
  text-align: center;
  font-size: 1.12rem;
  line-height: 1.7;
}

.rules-lead strong {
  color: var(--yellow);
}

.example-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 3px solid #8d7b5d;
  border-radius: 6px;
  background: #ddcca8;
  color: var(--ink);
}

.example-card div {
  display: grid;
  gap: 8px;
  text-align: center;
}

.example-card span {
  font-size: 0.9rem;
  font-weight: 700;
}

.example-card strong {
  display: block;
  padding: 8px;
  border: 4px solid #111;
  border-radius: 5px;
  background: #080909;
  color: var(--yellow);
  font-size: 1.45rem;
}

.example-card .red-led {
  color: #ff3f33;
}

.criteria h3 {
  width: fit-content;
  margin: 0 0 8px;
  padding: 6px 12px;
  background: #1c497c;
  font-size: 1rem;
}

.criteria dl,
.result-list {
  display: grid;
  margin: 0;
}

.criteria dl {
  border: 3px solid #26313c;
  border-radius: 6px;
  overflow: hidden;
}

.criteria dl div {
  display: grid;
  grid-template-columns: 92px 1fr 64px;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(0, 0, 0, 0.32);
  border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.criteria dl div:last-child {
  border-bottom: 0;
}

dt,
dd {
  margin: 0;
}

.criteria dd {
  color: #f4f2ea;
  text-align: center;
}

.criteria strong {
  color: var(--yellow);
  text-align: right;
}

.perfect {
  color: var(--purple);
}

.great {
  color: #4ba5ff;
}

.good {
  color: #54b948;
}

.miss {
  color: #e1463d;
}

.tip {
  margin: 0;
  color: #f5d680;
  text-align: center;
  line-height: 1.4;
}

.game-screen {
  gap: 14px;
  padding: 18px 18px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.72));
}

.hud,
.status-row {
  display: grid;
  gap: 10px;
}

.hud {
  grid-template-columns: 1fr 1.35fr auto auto;
}

.hud > div,
.combo-box,
.focus-box,
.recent-panel,
.dialogue-panel,
.fever-box {
  border: 3px solid #26313c;
  border-radius: 6px;
  background: rgba(5, 9, 14, 0.9);
  box-shadow: inset 0 0 0 2px #05070a;
}

.hud > div,
.combo-box {
  display: grid;
  place-items: center;
  min-height: 62px;
}

.hud span,
.combo-box span,
.focus-box span,
.fever-box span,
.recent-panel span {
  color: #ffcc3b;
  font-size: 0.9rem;
  font-weight: 700;
}

.hud strong {
  color: var(--yellow);
  font-size: 1.65rem;
}

.status-row {
  grid-template-columns: 0.82fr 2.35fr;
}

.combo-box strong {
  color: #ff8fc4;
  font-size: 1.75rem;
}

.focus-box,
.fever-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px;
}

.focus-box span {
  color: var(--cyan);
}

.meter {
  height: 22px;
  overflow: hidden;
  border: 3px solid #1c232b;
  border-radius: 5px;
  background: #020304;
}

.meter i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2f8bea, #f7ca3a, #e83d30);
  transition: width 160ms linear;
}

.bomb-console {
  display: block;
  width: min(100%, 356px);
  margin: 14px auto 0;
  padding: 0 0 88px;
  border: 0;
  background: none;
  box-shadow: none;
  transition: filter 120ms ease, transform 120ms ease;
}

.bomb-console::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
}

.bomb-console.hit-perfect {
  animation: console-kick 420ms steps(2, end);
  filter: drop-shadow(0 0 18px rgba(255, 196, 0, 0.78));
}

.bomb-console.hit-perfect::after {
  animation: hit-ring-perfect 520ms ease-out;
}

.bomb-console.hit-great {
  animation: console-kick 360ms steps(2, end);
  filter: drop-shadow(0 0 14px rgba(75, 165, 255, 0.7));
}

.bomb-console.hit-great::after {
  animation: hit-ring-great 480ms ease-out;
}

.bomb-console.hit-good {
  animation: console-kick 320ms steps(2, end);
  filter: drop-shadow(0 0 12px rgba(84, 185, 72, 0.62));
}

.bomb-console.hit-good::after {
  animation: hit-ring-good 440ms ease-out;
}

.bomb-console.hit-miss {
  animation: console-shake 360ms steps(2, end);
  filter: drop-shadow(0 0 14px rgba(225, 70, 61, 0.72));
}

.bomb-console.hit-miss::after {
  animation: hit-ring-miss 440ms ease-out;
}

.game-bomb-device {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 0 rgba(0, 0, 0, 0.42));
  image-rendering: pixelated;
}

.timer-display {
  position: absolute;
  left: 19.5%;
  top: 28.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 61%;
  height: 14.5%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #ff3f33;
  box-shadow: none;
  pointer-events: none;
}

.timer-display img {
  display: block;
  width: auto;
  height: 100%;
  image-rendering: pixelated;
}

.timer-display.zero-hit {
  animation: led-hit 460ms steps(2, end);
}

.target-row {
  position: absolute;
  left: 20%;
  top: 61%;
  width: 47%;
  padding: 7px 6px;
  border: 3px solid #1a2028;
  border-radius: 5px;
  background: rgba(7, 9, 12, 0.88);
  color: #fff2df;
  text-align: center;
  font-size: 0.95rem;
}

.target-row strong {
  color: var(--yellow);
}

.round-cue {
  position: absolute;
  left: 50%;
  top: 36%;
  z-index: 2;
  display: none;
  min-width: 104px;
  padding: 6px 12px 8px;
  border: 3px solid #0b0d10;
  border-radius: 7px;
  background: rgba(6, 9, 13, 0.88);
  color: #fff2bd;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow:
    3px 3px 0 #000,
    0 0 12px rgba(255, 196, 0, 0.7);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    0 7px 0 rgba(0, 0, 0, 0.5);
}

.round-cue.is-active {
  display: block;
}

.round-cue.start {
  min-width: 154px;
  color: #7dff6a;
  font-size: 2rem;
  text-shadow:
    3px 3px 0 #000,
    0 0 12px rgba(84, 185, 72, 0.82);
}

.round-cue.is-popping {
  animation: round-cue-pop 360ms steps(2, end);
}

.bomb-console .button-red {
  position: absolute;
  left: 10%;
  bottom: 0;
  width: 80%;
  min-height: 72px;
}

.recent-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 10px 12px;
}

.recent-panel strong {
  color: var(--purple);
  font-size: 1.15rem;
}

.recent-panel b {
  color: #f4f2ea;
}

.recent-panel em {
  color: var(--yellow);
  font-style: normal;
  text-align: right;
}

.hit-popups {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hit-popup {
  position: absolute;
  left: 50%;
  top: 47%;
  display: grid;
  gap: 2px;
  min-width: 128px;
  padding: 9px 12px;
  border: 3px solid #0b0d10;
  border-radius: 6px;
  background: rgba(5, 8, 12, 0.92);
  color: #fff8e7;
  text-align: center;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.22),
    0 7px 0 rgba(0, 0, 0, 0.46);
  transform: translate(-50%, -50%);
  animation: hit-popup 980ms ease-out forwards;
}

.hit-popup strong {
  font-size: 1.1rem;
}

.hit-popup span,
.hit-popup em {
  font-size: 0.78rem;
  font-style: normal;
}

.hit-popup.perfect {
  border-color: #f3c53f;
  color: #ffe27a;
}

.hit-popup.great {
  border-color: #4ba5ff;
  color: #9ed6ff;
}

.hit-popup.good {
  border-color: #54b948;
  color: #b8f48f;
}

.hit-popup.miss {
  border-color: #e1463d;
  color: #ff978f;
}

.dialogue-panel {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 12px;
}

.portrait {
  width: 52px;
  height: 52px;
  border: 3px solid #222a34;
  border-radius: 6px;
  background:
    linear-gradient(#1e2730 0 28%, transparent 28%),
    radial-gradient(circle at 50% 35%, #f4bf7c 0 19%, transparent 20%),
    linear-gradient(#111922 0 60%, #2a3039 60%);
}

.dialogue-panel p {
  margin: 0;
  color: #fff7e6;
  font-size: 1.08rem;
  line-height: 1.45;
}

.fever-box span {
  color: var(--yellow);
}

.result-screen {
  justify-content: center;
  gap: 18px;
  background: rgba(3, 8, 12, 0.67);
}

.receipt {
  position: relative;
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 24px 20px 20px;
  border: 5px solid #5e452e;
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 35px, var(--paper-line) 35px 37px),
    linear-gradient(#f2e4c9, var(--paper));
  color: var(--ink);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.25),
    0 12px 0 rgba(0, 0, 0, 0.38);
}

.receipt::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 150px;
  height: 24px;
  border: 4px solid #1d252d;
  border-radius: 5px;
  background: linear-gradient(#d2d4cf, #747a7f);
  transform: translateX(-50%);
}

.receipt h2 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 3px solid rgba(115, 70, 44, 0.35);
  color: #a9362b;
  text-align: center;
  font-size: 1.85rem;
}

.result-list {
  gap: 8px;
  font-size: 1.1rem;
}

.result-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  min-height: 26px;
}

.result-list dt {
  font-weight: 700;
}

.result-list dd {
  font-weight: 700;
}

.result-list dd strong {
  color: #255fbd;
  font-size: 1.35rem;
}

.result-list .separator {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 3px dashed rgba(62, 45, 32, 0.35);
}

.pay-stub,
.rank-stub {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 3px solid rgba(95, 70, 48, 0.48);
  border-radius: 4px;
  background: rgba(255, 248, 230, 0.42);
  text-align: center;
}

.pay-stub span,
.rank-stub span {
  color: #4d3d2b;
  font-weight: 700;
}

.pay-stub strong {
  color: #b9302a;
  font-size: clamp(2.3rem, 12vw, 3.4rem);
  line-height: 1;
}

.rank-stub strong {
  color: #111;
  font-size: 1.4rem;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-actions .button {
  width: 100%;
  min-height: 58px;
  font-size: 1.25rem;
}

.is-fever .phone-shell,
.phone-shell.is-fever {
  box-shadow:
    0 0 0 2px #050609,
    0 18px 50px rgba(0, 0, 0, 0.65),
    0 0 26px rgba(255, 196, 0, 0.56);
}

.paused::after {
  content: "일시정지";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.68);
  color: #fff6d8;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 3px 3px 0 #000;
  z-index: 4;
}

@keyframes hit-popup {
  0% {
    opacity: 0;
    transform: translate(-50%, -38%) scale(0.78);
  }

  14% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.08);
  }

  70% {
    opacity: 1;
    transform: translate(-50%, -74%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -102%) scale(0.92);
  }
}

@keyframes round-cue-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
  }

  55% {
    transform: translate(-50%, -50%) scale(1.14);
  }

  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes console-kick {
  0%,
  100% {
    transform: translate(0, 0);
  }

  34% {
    transform: translate(2px, -2px);
  }

  66% {
    transform: translate(-2px, 1px);
  }
}

@keyframes console-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(-4px, 0);
  }

  50% {
    transform: translate(4px, 0);
  }

  75% {
    transform: translate(-2px, 0);
  }
}

@keyframes led-hit {
  0%,
  100% {
    text-shadow: 0 0 12px rgba(255, 32, 24, 0.52);
  }

  42% {
    color: #fff4c5;
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.95),
      0 0 22px rgba(255, 196, 0, 0.9);
  }
}

@keyframes hit-ring-perfect {
  0% {
    opacity: 0.95;
    box-shadow: inset 0 0 0 4px rgba(255, 230, 120, 0.95), 0 0 0 0 rgba(255, 196, 0, 0.65);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 230, 120, 0), 0 0 0 26px rgba(255, 196, 0, 0);
  }
}

@keyframes hit-ring-great {
  0% {
    opacity: 0.9;
    box-shadow: inset 0 0 0 4px rgba(75, 165, 255, 0.9), 0 0 0 0 rgba(75, 165, 255, 0.55);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(75, 165, 255, 0), 0 0 0 22px rgba(75, 165, 255, 0);
  }
}

@keyframes hit-ring-good {
  0% {
    opacity: 0.86;
    box-shadow: inset 0 0 0 4px rgba(84, 185, 72, 0.84), 0 0 0 0 rgba(84, 185, 72, 0.5);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(84, 185, 72, 0), 0 0 0 18px rgba(84, 185, 72, 0);
  }
}

@keyframes hit-ring-miss {
  0% {
    opacity: 0.9;
    box-shadow: inset 0 0 0 4px rgba(225, 70, 61, 0.9), 0 0 0 0 rgba(225, 70, 61, 0.55);
  }

  100% {
    opacity: 0;
    box-shadow: inset 0 0 0 1px rgba(225, 70, 61, 0), 0 0 0 18px rgba(225, 70, 61, 0);
  }
}

@media (max-width: 390px) {
  body {
    padding: 0;
  }

  .phone-shell {
    min-height: 100vh;
    border-radius: 0;
    border-width: 0;
  }

  .screen {
    padding-inline: 16px;
  }

  .title-stack h1 {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .title-logo-img {
    width: min(100%, 330px);
  }

  .criteria dl div {
    grid-template-columns: 82px 1fr 56px;
    gap: 4px;
    padding-inline: 8px;
    font-size: 0.92rem;
  }

  .recent-panel {
    grid-template-columns: 1fr 1fr;
  }
}
