/* ONE SHOT · 군용 장비 화면 */
:root {
  --bg: #0b0f12;
  --panel: rgba(13, 18, 22, 0.86);
  --line: rgba(160, 190, 195, 0.22);
  --ink: #e8ece8;
  --mute: #93a2a4;
  --red: #e5382f;
  --gold: #e4b04a;
  --teal: #5fe6d6;
  --font: "Noto Sans KR", "Jua", system-ui, sans-serif;
  --head: "Black Han Sans", "Noto Sans KR", sans-serif;
  --num: "Oswald", "Noto Sans KR", sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  overscroll-behavior: none;
}
button,
select,
input {
  font-family: inherit;
}
button {
  cursor: pointer;
}
.stage,
.field {
  position: fixed;
  inset: 0;
}
.field {
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* ---------------- 버튼 ---------------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(30, 38, 43, 0.82);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, transform 0.08s;
}
/* 공용 첫 화면 · 결과 글꼴과 둥근 버튼 대신 이 게임의 장비 느낌으로 */
body.ose #title .logo,
body.ose .logo {
  font-family: var(--num) !important;
}
body.ose #title,
body.ose #result {
  font-family: var(--font);
}
body.ose .btn,
body.ose #title .btn,
body.ose #result .btn {
  border-radius: 4px !important;
}
.btn:hover {
  background: rgba(55, 68, 75, 0.9);
  border-color: rgba(200, 220, 225, 0.5);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
.btn-back:focus-visible,
.w-card:focus-visible,
.m-tile:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.btn.prime {
  border-color: #ff6a5f;
  background: linear-gradient(180deg, #e8473c, #b3241d);
  color: #fff;
  font-family: var(--head);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.06em;
  box-shadow: 0 0 22px rgba(229, 56, 47, 0.32);
}
.btn.prime:hover {
  background: linear-gradient(180deg, #f35a50, #c52c24);
}
.btn.danger {
  color: #ff9a92;
  border-color: rgba(229, 56, 47, 0.4);
}
.btn-back {
  flex: none;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(20, 26, 30, 0.9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

/* ---------------- 화면 공통 ---------------- */
.screen {
  position: absolute;
  inset: 0;
  z-index: 30;
}
.panel {
  display: flex;
  flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(7, 10, 12, 0.92), rgba(7, 10, 12, 0.8));
  backdrop-filter: blur(5px);
  overflow-y: auto;
  touch-action: pan-y;
}
.panel.center {
  align-items: center;
  justify-content: center;
}
.p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  padding-right: 52px;
  flex-wrap: wrap;
}
.p-head h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--head);
  font-size: clamp(19px, 3.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.p-stars {
  font-family: var(--num);
  font-size: 16px;
  color: var(--gold);
  white-space: nowrap;
}
.s-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(420px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.s-card.wide {
  width: min(760px, 100%);
}
.s-card h2 {
  margin: 0 0 6px;
  font-family: var(--head);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

/* ---------------- 첫 화면 ---------------- */
.title {
  display: block;
  overflow-y: auto;
  touch-action: pan-y;
  background: linear-gradient(90deg, rgba(5, 8, 10, 0.86) 0%, rgba(5, 8, 10, 0.55) 34%, rgba(5, 8, 10, 0) 62%);
}
.t-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(440px, 100%);
  min-height: 100%;
  padding: max(70px, env(safe-area-inset-top)) 24px 26px clamp(20px, 6vw, 76px);
}
.t-k {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--teal);
}
.t-k i {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--teal);
}
.logo {
  display: flex;
  gap: 0.22em;
  margin: 0;
  font-family: var(--num);
  font-size: clamp(58px, 12vw, 104px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.75);
}
.logo .red {
  color: var(--red);
}
.logo.small {
  font-size: 56px;
  justify-content: center;
}
.t-s {
  margin: 6px 0 22px;
  font-size: 15px;
  font-weight: 700;
  color: #cfd6d4;
}
.t-menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.t-menu .prime {
  grid-column: 1 / -1;
  min-height: 56px;
  font-size: 22px;
}
.t-total {
  margin: 12px 0 0;
  font-family: var(--num);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
/* 소개 글 (첫 화면 아래) */
.title .seo-about {
  margin: 0 clamp(14px, 5vw, 70px) 26px;
  max-width: 660px;
}

/* ---------------- 월드 ---------------- */
.world-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 10px;
}
.w-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(128px, 24vh, 210px);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #151c20 center / cover no-repeat;
  color: #fff;
  text-align: left;
  isolation: isolate;
  transition: transform 0.12s, border-color 0.12s;
}
.w-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 6, 8, 0.94) 0%, rgba(4, 6, 8, 0.34) 62%, rgba(4, 6, 8, 0.12));
}
.w-card:hover:not(.locked) {
  border-color: var(--acc, var(--gold));
  transform: translateY(-1px);
}
.w-card .w-n {
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--acc, var(--gold));
}
.w-card .w-en {
  font-family: var(--num);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  line-height: 1.1;
}
.w-card .w-ko {
  font-size: 13px;
  font-weight: 700;
  color: #d4dad8;
}
.w-card .w-st {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.6);
  font-family: var(--num);
  font-size: 14px;
  color: var(--gold);
}
.w-card.locked {
  filter: grayscale(0.9) brightness(0.62);
  cursor: not-allowed;
}
.w-card .w-lock {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffd9a6;
}

/* ---------------- 미션 ---------------- */
.m-blurb {
  margin: -4px 0 12px;
  font-size: 14px;
  color: #bfc9c7;
}
.mission-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 8px;
}
.m-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 94px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--tc, var(--gold));
  border-radius: 4px;
  background: rgba(24, 31, 36, 0.92);
  color: var(--ink);
  text-align: left;
  transition: background 0.12s;
}
.m-tile:hover:not(.locked) {
  background: rgba(42, 53, 60, 0.95);
}
.m-tile .m-n {
  font-family: var(--num);
  font-size: 20px;
  font-weight: 700;
}
.m-tile .m-type {
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--tc, var(--gold));
}
.m-tile .m-name {
  font-size: 14px;
  font-weight: 700;
}
.m-tile .m-st {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 13px;
  letter-spacing: 1px;
  color: #4a5459;
}
.m-tile .m-st b {
  color: var(--gold);
  font-weight: 400;
}
.m-tile .m-best {
  font-family: var(--num);
  font-size: 12px;
  color: var(--mute);
}
.m-tile.locked {
  opacity: 0.42;
  cursor: not-allowed;
}

/* ---------------- 브리핑 ---------------- */
.brief {
  align-items: center;
  justify-content: center;
}
.b-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(720px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(13, 18, 22, 0.94);
}
.b-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--teal);
}
.b-card h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 26px;
  font-weight: 400;
}
.b-body {
  display: grid;
  grid-template-columns: minmax(120px, 210px) 1fr;
  gap: 14px;
}
.b-photo {
  position: relative;
  border: 1px solid var(--line);
  background: #1a2125;
  min-height: 170px;
}
.b-photo canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 290px;
  object-fit: cover;
}
.b-photo-k {
  position: absolute;
  left: 0;
  top: 8px;
  padding: 2px 8px;
  background: var(--red);
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #fff;
}
.b-text {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
}
.b-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.b-tags li {
  padding: 3px 9px;
  border: 1px solid rgba(229, 56, 47, 0.55);
  border-radius: 3px;
  background: rgba(229, 56, 47, 0.14);
  font-size: 13px;
  font-weight: 700;
}
.b-meta {
  display: flex;
  gap: 14px;
  margin: 0 0 10px;
}
.b-meta dt {
  font-size: 12px;
  color: var(--mute);
}
.b-meta dd {
  margin: 0;
  font-family: var(--num);
  font-size: 22px;
  font-weight: 700;
}
.b-stars {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #c9d1cf;
}
.b-stars li::before {
  content: "★ ";
  color: #4d585d;
}
.b-stars li.on::before {
  color: var(--gold);
}
.b-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}

/* ---------------- 불러오기 ---------------- */
.loading,
.boot {
  position: absolute;
  inset: 0;
  z-index: 44;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06090b;
}
.load-box {
  width: min(340px, 86%);
  text-align: center;
}
.load-k {
  margin: 0 0 12px;
  font-family: var(--num);
  font-size: 24px;
  letter-spacing: 0.1em;
}
.load-bar {
  height: 3px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.load-bar i {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--teal);
  animation: slide 1.1s infinite linear;
}
.load-bar b {
  display: block;
  width: 10%;
  height: 100%;
  background: var(--teal);
  transition: width 0.2s;
}
@keyframes slide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(260%);
  }
}
.load-t {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}

/* ---------------- 스코프 ---------------- */
.scope {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.lens {
  --d: min(96vmin, 100vh);
  position: relative;
  flex: none;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  box-shadow: 0 0 0 200vmax #030405, inset 0 0 calc(var(--d) * 0.1) calc(var(--d) * 0.035) rgba(0, 0, 0, 0.92);
}
.scope.kick .lens {
  animation: kick 0.42s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@keyframes kick {
  0% {
    transform: translateY(0) scale(1);
  }
  14% {
    transform: translateY(-3.4%) scale(1.035);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.r-line line {
  stroke: #05070a;
  stroke-width: 3.2;
}
.r-thin line {
  stroke: #05070a;
  stroke-width: 1.1;
}
.r-mil circle {
  fill: #05070a;
}
.r-mil line {
  stroke: #05070a;
  stroke-width: 1.4;
}
.r-dot {
  fill: #ff2b1e;
}
.r-arc path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  opacity: 0.85;
}
.glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(170, 215, 255, 0.07), rgba(170, 215, 255, 0) 34%), radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 10, 16, 0.5) 86%, rgba(0, 0, 0, 0.92) 100%);
}
.s-read {
  position: absolute;
  top: 50%;
  margin-top: 12px;
  font-family: var(--num);
  color: var(--teal);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
.s-read .s-k {
  display: block;
  font-size: clamp(9px, 1.4vmin, 12px);
  letter-spacing: 0.2em;
  opacity: 0.85;
}
.s-read b {
  font-size: clamp(16px, 2.7vmin, 24px);
  font-weight: 500;
}
.s-left {
  left: 13%;
}
.s-right {
  right: 13%;
  text-align: right;
}
.breath {
  position: absolute;
  left: 50%;
  bottom: 12.5%;
  width: 30%;
  min-width: 118px;
  transform: translateX(-50%);
  text-align: center;
  font-family: var(--num);
  color: var(--teal);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}
.b-k {
  display: block;
  margin-bottom: 3px;
  font-size: clamp(9px, 1.4vmin, 12px);
  letter-spacing: 0.18em;
}
.b-bar {
  height: 5px;
  border: 1px solid rgba(95, 230, 214, 0.6);
  background: rgba(0, 0, 0, 0.5);
}
.b-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--teal);
}
.breath.hold .b-bar i {
  background: #fff;
}
.breath.tired {
  color: #ff7a6e;
}
.breath.tired .b-bar {
  border-color: #ff7a6e;
}
.breath.tired .b-bar i {
  background: #ff7a6e;
}
.reload {
  position: absolute;
  left: 50%;
  bottom: 20.5%;
  width: 20%;
  min-width: 84px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffd9a6;
  text-shadow: 0 0 5px #000;
}
.reload i {
  display: block;
  height: 2px;
  margin-bottom: 2px;
  background: #ffd9a6;
  transform-origin: left;
}
.flash-s {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(circle, rgba(255, 225, 170, 0.62), rgba(255, 190, 110, 0.14) 44%, rgba(0, 0, 0, 0) 70%);
  opacity: 0;
  pointer-events: none;
}
.vig-slow {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.75));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.vig-slow.on {
  opacity: 1;
}
.dot {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: 16px;
  height: 16px;
  margin: -8px;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: var(--red);
}

/* ---------------- 표시 · 알림 ---------------- */
.marks {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.mk {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  will-change: transform;
  font-family: var(--num);
  font-size: 12px;
  color: #ffd84a;
  text-shadow: 0 0 3px #000, 0 0 3px #000;
}
.mk i {
  display: block;
  width: 11px;
  height: 11px;
  border: 2px solid #ffd84a;
  transform: rotate(45deg);
}
.mk.hint i {
  width: 30px;
  height: 30px;
  border-color: var(--teal);
  border-radius: 50%;
  animation: pulse 0.9s infinite;
}
.mk.hint {
  color: var(--teal);
}
.mk.off i {
  border: 0;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 13px solid currentColor;
  transform: rotate(var(--rot, 0deg));
}
@keyframes pulse {
  from {
    transform: scale(0.75);
    opacity: 1;
  }
  to {
    transform: scale(1.3);
    opacity: 0.35;
  }
}
.feed {
  position: absolute;
  left: 50%;
  top: 19%;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 92%;
  transform: translateX(-50%);
  pointer-events: none;
  text-align: center;
}
.fd {
  animation: fd 2.5s forwards;
  text-shadow: 0 2px 6px #000, 0 0 2px #000;
}
.fd b {
  display: block;
  font-family: var(--num);
  font-size: clamp(26px, 5.4vmin, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: #fff;
}
.fd.head b {
  color: #ff5145;
}
.fd.bad b {
  color: #ffb05a;
}
.fd span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #ffe3b0;
}
.fd small {
  display: block;
  font-family: var(--num);
  font-size: 13px;
  color: var(--teal);
  letter-spacing: 0.06em;
}
@keyframes fd {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(1.2);
  }
  8%,
  78% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.toast {
  position: absolute;
  left: 50%;
  top: 74px;
  z-index: 14;
  max-width: 88%;
  margin: 0;
  padding: 6px 14px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}
.tut {
  position: absolute;
  left: 50%;
  top: 74px;
  z-index: 13;
  width: min(460px, 92%);
  padding: 9px 14px;
  border: 1px solid var(--teal);
  border-radius: 4px;
  transform: translateX(-50%);
  background: rgba(4, 14, 16, 0.84);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}
.tut em {
  font-style: normal;
  color: var(--teal);
}

/* ---------------- 위 HUD ---------------- */
.hud {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 8px max(10px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
  pointer-events: none;
  text-shadow: 0 1px 3px #000;
}
.hud > * {
  pointer-events: auto;
}
.hud .today-brand {
  position: static;
  flex: none;
}
.hud-l {
  display: flex;
  flex-direction: column;
  min-width: 0;
  pointer-events: none;
}
body.ose .stage header.hud .today-mute-btn {
  position: absolute !important;
  top: max(8px, env(safe-area-inset-top)) !important;
  right: max(10px, env(safe-area-inset-right)) !important;
  left: auto !important;
  margin: 0 !important;
}
.hud-l small {
  overflow: hidden;
  font-family: var(--num);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--teal);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hud-l b {
  font-size: 16px;
  font-weight: 900;
}
.hud-c {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.hud-c b {
  font-family: var(--num);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}
.hud-c b.low {
  color: #ff5145;
}
.hud-c small {
  padding: 1px 8px;
  border-radius: 2px;
  background: rgba(229, 56, 47, 0.9);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hud-c small em {
  font-family: var(--num);
  font-style: normal;
}
.hud-r {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-right: 52px;
}
.hud-score {
  font-family: var(--num);
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
}
.round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(10, 14, 17, 0.75);
  color: #fff;
}
.round svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.today-mute-btn {
  background: rgba(10, 14, 17, 0.75) !important;
  color: #fff !important;
  box-shadow: none !important;
  border: 1px solid var(--line) !important;
  border-radius: 4px !important;
}
.ammo {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  top: 76px;
  z-index: 18;
  display: flex;
  gap: 3px;
  pointer-events: none;
}
.ammo i {
  display: block;
  width: 8px;
  height: 26px;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #e6c673 0 32%, #a57f33 32% 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.ammo i.used {
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
}
.keys {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 18;
  width: max-content;
  max-width: 96%;
  margin: 0;
  padding: 4px 12px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  font-size: 12px;
  color: #cfd6d4;
  pointer-events: none;
}
.keys b {
  color: var(--teal);
}

/* ---------------- 휴대폰 버튼 ---------------- */
.touch {
  position: absolute;
  inset: 0;
  z-index: 19;
  pointer-events: none;
}
.t-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1.5px solid rgba(220, 235, 235, 0.55);
  border-radius: 50%;
  background: rgba(12, 17, 20, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  pointer-events: auto;
  touch-action: none;
}
.t-btn svg {
  width: 24px;
  height: 24px;
}
.t-btn.on,
.t-btn:active {
  background: rgba(95, 230, 214, 0.34);
  border-color: var(--teal);
}
.t-right {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.t-fire {
  width: 88px;
  height: 88px;
  border-color: #ff7a6e;
  background: rgba(190, 40, 30, 0.72);
  font-size: 13px;
}
.t-fire svg {
  width: 34px;
  height: 34px;
}
.t-fire:active {
  background: rgba(240, 70, 58, 0.9);
  border-color: #fff;
}
.t-fire.cool {
  opacity: 0.45;
}
.t-breath {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 80px;
  height: 80px;
}
.t-left {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 92px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.t-left .t-btn {
  width: 52px;
  height: 52px;
  font-size: 10px;
}
.t-left .t-btn svg {
  width: 20px;
  height: 20px;
}
.t-zoom {
  position: absolute;
  right: max(116px, calc(env(safe-area-inset-right) + 112px));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 176px;
  pointer-events: auto;
}
.t-zoom button {
  flex: none;
  width: 44px;
  height: 36px;
  border: 1px solid rgba(220, 235, 235, 0.55);
  border-radius: 4px;
  background: rgba(12, 17, 20, 0.66);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
.t-zoom input {
  flex: 1 1 auto;
  width: 30px;
  min-height: 0;
  margin: 0;
  writing-mode: vertical-lr;
  direction: rtl;
  accent-color: var(--teal);
  touch-action: none;
}
/* 가로 휴대폰 (높이가 낮음) */
@media (max-height: 460px) {
  .t-right {
    flex-direction: row;
    align-items: flex-end;
  }
  .t-fire {
    width: 80px;
    height: 80px;
  }
  .t-zoom {
    right: max(170px, calc(env(safe-area-inset-right) + 166px));
    height: 150px;
  }
  .t-left {
    flex-direction: row;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: calc(max(14px, env(safe-area-inset-left)) + 90px);
  }
  .hud-c b {
    font-size: 22px;
  }
  .hud-l b {
    font-size: 14px;
  }
  .ammo {
    top: 62px;
  }
  .toast,
  .tut {
    top: 58px;
  }
}
/* 좁은 세로 휴대폰: HUD 글자 줄이기 */
@media (max-width: 520px) {
  .toast,
  .tut {
    top: 96px;
  }
  .ammo {
    top: 58px;
  }
  .hud-l small {
    font-size: 10px;
  }
  .hud-l b {
    font-size: 13px;
  }
  .hud-score {
    display: none;
  }
  .hud-c b {
    font-size: 22px;
  }
  .b-body {
    grid-template-columns: 96px 1fr;
    gap: 10px;
  }
  .b-photo {
    min-height: 124px;
  }
  .b-text {
    font-size: 14px;
  }
  .t-menu .btn {
    padding: 8px 4px;
  }
  .title {
    background: linear-gradient(0deg, rgba(5, 8, 10, 0.9) 0%, rgba(5, 8, 10, 0.5) 60%, rgba(5, 8, 10, 0.2));
  }
  .t-box {
    justify-content: flex-end;
    padding-bottom: 20px;
  }
}

/* ---------------- 결과 ---------------- */
.r-card {
  text-align: center;
}
.r-k {
  margin: 0;
  font-family: var(--num);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--teal);
}
.r-card.fail .r-k {
  color: #ff7a6e;
}
.r-stars {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 40px;
  line-height: 1;
  color: #333c41;
}
.r-stars span.on {
  color: var(--gold);
  animation: star 0.34s cubic-bezier(0.2, 1.5, 0.4, 1) backwards;
}
@keyframes star {
  from {
    transform: scale(0.1);
  }
}
.r-why {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #ffc9a6;
}
.r-score {
  margin: 0;
  font-family: var(--num);
}
.r-score b {
  font-size: 40px;
  font-weight: 700;
}
.r-score small {
  display: block;
  font-size: 13px;
  color: var(--gold);
  min-height: 1em;
}
.r-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 14px;
  margin: 0;
  text-align: left;
}
.r-grid div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.r-grid dt {
  font-size: 13px;
  color: var(--mute);
}
.r-grid dd {
  margin: 0;
  font-family: var(--num);
  font-size: 15px;
}
.r-new {
  margin: 0;
  padding: 6px;
  border: 1px solid var(--gold);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.r-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.rank-slot:empty {
  display: none;
}
.rank-slot {
  color: #1a1a1a;
}

/* ---------------- 조작법 · 설정 ---------------- */
.h-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 14px;
  line-height: 1.55;
}
.h-grid h3 {
  margin: 0 0 3px;
  font-family: var(--num);
  font-size: 15px;
  color: var(--teal);
}
.h-grid ul {
  margin: 0;
  padding-left: 16px;
}
.h-grid b {
  color: #ffe3b0;
}
.h-full {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .h-grid {
    grid-template-columns: 1fr;
  }
}
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  font-size: 14px;
  font-weight: 700;
}
.set-row input[type="range"] {
  flex: 1 1 auto;
  max-width: 190px;
  accent-color: var(--teal);
  touch-action: pan-x;
}
.set-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--teal);
}
.set-row select {
  padding: 7px;
  border: 1px solid var(--line);
  background: #1a2125;
  color: var(--ink);
}
.set-note {
  margin: 0;
  font-size: 12px;
  color: var(--mute);
}
.fallback {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: #0b0f12;
  text-align: center;
}
.fallback .btn {
  width: auto;
}
@media (prefers-reduced-motion: reduce) {
  .scope.kick .lens,
  .load-bar i {
    animation: none;
  }
}
