/* 터치 조작. 얇은 고리와 선 아이콘만 쓴다. 채운 카드·그림자 없음. */

.tc {
  --tc-scale: 1;
  --tc-line: rgba(244, 247, 245, 0.78);
  --tc-tint: rgba(12, 18, 26, 0.26);
  --tc-press: rgba(244, 247, 245, 0.26);
  --tc-on: #4fe3ff;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --stick-ox: 0px;
  --stick-oy: 0px;
  --stick-x: 0px;
  --stick-y: 0px;

  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

.tc[hidden],
.tc [hidden] {
  display: none !important;
}

/* ── 영역 ────────────────────────────────────────────────── */

.tc-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: auto;
  touch-action: none;
}

.tc-zone-move {
  left: 0;
  width: 42%;
}

.tc-zone-look {
  right: 0;
  width: 58%;
}

/* ── 스틱 ────────────────────────────────────────────────── */

.tc-stick,
.tc-stick-hint {
  position: absolute;
  width: calc(112px * var(--tc-scale));
  height: calc(112px * var(--tc-scale));
  border: 1.5px solid var(--tc-line);
  border-radius: 50%;
  filter: drop-shadow(0 0 1px rgba(8, 12, 18, 0.7));
}

/* 누르기 전: 스틱이 나타날 자리를 흐리게 알려 준다 */
.tc-stick-hint {
  left: calc(52px * var(--tc-scale) + var(--safe-l));
  bottom: calc(44px * var(--tc-scale) + var(--safe-b));
  border-style: dashed;
  opacity: 0.3;
  transition: opacity 0.12s linear;
}

.tc-stick {
  left: 0;
  top: 0;
  background: var(--tc-tint);
  opacity: 0;
  transform: translate3d(calc(var(--stick-ox) - 50%), calc(var(--stick-oy) - 50%), 0);
  transition: opacity 0.1s linear;
}

.tc-stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(46px * var(--tc-scale));
  height: calc(46px * var(--tc-scale));
  margin: calc(-23px * var(--tc-scale));
  border-radius: 50%;
  background: rgba(244, 247, 245, 0.82);
  transform: translate3d(var(--stick-x), var(--stick-y), 0);
}

.tc.is-stick-active .tc-stick {
  opacity: 1;
}

.tc.is-stick-active .tc-stick-hint {
  opacity: 0;
}

/* ── 버튼 ────────────────────────────────────────────────── */

.tc-btn {
  --size: 72px;
  --cx: 0px; /* 버튼 중심: 오른쪽 가장자리에서 */
  --cy: 0px; /* 버튼 중심: 아래 가장자리에서 */
  position: absolute;
  right: calc((var(--cx) - var(--size) / 2) * var(--tc-scale) + var(--safe-r));
  bottom: calc((var(--cy) - var(--size) / 2) * var(--tc-scale) + var(--safe-b));
  width: calc(var(--size) * var(--tc-scale));
  height: calc(var(--size) * var(--tc-scale));
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--tc-line);
  border-radius: 50%;
  background: var(--tc-tint);
  color: #f4f7f5;
  font: inherit;
  pointer-events: auto;
  touch-action: none;
  appearance: none;
  outline: 0;
  transition: transform 0.06s ease-out, background-color 0.06s linear;
}

.tc-btn svg {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
  filter: drop-shadow(0 0 1px rgba(8, 12, 18, 0.8));
  pointer-events: none;
}

.tc-btn .tc-solid {
  fill: currentColor;
  stroke: none;
}

.tc-btn.is-pressed {
  background: var(--tc-press);
  transform: scale(0.93);
}

/* 엄지가 쉬는 자리에 가장 큰 버튼을 둔다. 좌표는 FEEL_SPEC 8장의 엄지 호. */
.tc-primary {
  --size: 92px;
  --cx: 128px;
  --cy: 112px;
  border-width: 2px;
}

.tc-primary::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(244, 247, 245, 0.34);
  border-radius: 50%;
}

.tc-dash {
  --cx: 224px;
  --cy: 64px;
}

.tc-jump {
  --cx: 64px;
  --cy: 216px;
}

.tc-secondary {
  --size: 62px;
  --cx: 150px;
  --cy: 228px;
}

.tc-lock {
  --size: 46px;
  --cx: 216px;
  --cy: 168px;
  color: rgba(244, 247, 245, 0.7);
}

.tc-lock.is-on {
  border-color: var(--tc-on);
  color: var(--tc-on);
}

.tc-pause {
  --size: 40px;
  right: calc(16px * var(--tc-scale) + var(--safe-r));
  top: calc(12px * var(--tc-scale) + var(--safe-t));
  bottom: auto;
  border-color: transparent;
  background: transparent;
}
.tc-pulse{--size:62px;--cx:55px;--cy:66px}
.tc-weapon{--size:44px;--cx:228px;--cy:265px}
