/* Touch controls for phones and tablets (touch-controls.js). */
html.tc-touch,
html.tc-touch body {
  touch-action: none;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}

html.tc-touch {
  --tc-inset-t: max(env(safe-area-inset-top, 0px), var(--discord-safe-area-inset-top, 0px));
  --tc-inset-r: max(env(safe-area-inset-right, 0px), var(--discord-safe-area-inset-right, 0px));
  --tc-inset-b: max(env(safe-area-inset-bottom, 0px), var(--discord-safe-area-inset-bottom, 0px));
  --tc-inset-l: max(env(safe-area-inset-left, 0px), var(--discord-safe-area-inset-left, 0px));
}

html.tc-touch.tc-discord {
  --tc-inset-t: max(env(safe-area-inset-top, 0px), var(--discord-safe-area-inset-top, 0px), 44px);
}

html.tc-touch ruffle-player,
html.tc-touch #game-container {
  touch-action: none;
}

html.tc-touch #game-container {
  position: fixed;
  top: var(--tc-inset-t);
  right: var(--tc-inset-r);
  bottom: var(--tc-inset-b);
  left: var(--tc-inset-l);
  width: auto;
  height: auto;
}

.tc-safe-probe {
  position: fixed;
  top: var(--tc-inset-t);
  right: var(--tc-inset-r);
  bottom: var(--tc-inset-b);
  left: var(--tc-inset-l);
  visibility: hidden;
  pointer-events: none;
}

#tc-root {
  --tc-u: 4px;
  --tc-alpha: 0.85;
  --tc-gold: #f4c55b;
  --tc-gold-deep: #c98a1b;
  --tc-mana: #4fa8ff;
  --tc-hp: #ff5d5d;
  --tc-glass: rgba(18, 20, 30, 0.55);
  --tc-glass-strong: rgba(14, 16, 24, 0.82);
  --tc-rim: rgba(255, 255, 255, 0.16);
  --tc-text: #f5f1e6;
  --tc-safe-l: var(--tc-inset-l, env(safe-area-inset-left, 0px));
  --tc-safe-r: var(--tc-inset-r, env(safe-area-inset-right, 0px));
  --tc-safe-t: var(--tc-inset-t, env(safe-area-inset-top, 0px));
  --tc-safe-b: var(--tc-inset-b, env(safe-area-inset-bottom, 0px));
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--tc-text);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#tc-root * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

#tc-root .tc-hit {
  pointer-events: auto;
  touch-action: none;
}

#tc-root .tc-group {
  position: absolute;
  opacity: var(--tc-alpha);
  transition: opacity 0.25s ease;
}

#tc-root.tc-offworld .tc-world,
#tc-root.tc-hidden .tc-world,
#tc-root.tc-hidden .tc-top .tc-hideable {
  opacity: 0;
  pointer-events: none;
}

#tc-root.tc-offworld .tc-world *,
#tc-root.tc-hidden .tc-world * {
  pointer-events: none;
}

/* The "show controls" button exists only while they are hidden (#1027). */
.tc-top .tc-revealer {
  display: none;
}

#tc-root.tc-hidden .tc-top .tc-revealer {
  display: flex;
}

#tc-root.tc-dead .tc-world {
  opacity: calc(var(--tc-alpha) * 0.35);
}

/* ---- buttons ---------------------------------------------------------------------------- */

.tc-btn {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
    var(--tc-glass);
  border: 1.5px solid var(--tc-rim);
  box-shadow: 0 calc(var(--tc-u) * 0.8) calc(var(--tc-u) * 2.5) rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) scale(var(--tc-press, 1));
  transition: transform 0.08s ease, border-color 0.2s ease, filter 0.2s ease, background 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1;
  overflow: visible;
}

.tc-btn.tc-down {
  --tc-press: 0.9;
  border-color: rgba(255, 255, 255, 0.45);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%),
    var(--tc-glass-strong);
}

.tc-btn svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.7));
}

.tc-btn .tc-cap {
  position: absolute;
  bottom: calc(var(--tc-u) * -2.6);
  left: 50%;
  transform: translateX(-50%);
  font-size: calc(var(--tc-u) * 2.1);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0.85;
  pointer-events: none;
}

/* The big attack button, gold. */
.tc-attack {
  width: calc(var(--tc-u) * 21);
  height: calc(var(--tc-u) * 21);
  color: #2b1a02;
  border: 2px solid rgba(255, 233, 170, 0.75);
  background:
    radial-gradient(110% 110% at 30% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #ffd977, var(--tc-gold) 45%, var(--tc-gold-deep));
  text-shadow: none;
}

.tc-attack svg {
  stroke-width: 2.4;
  filter: none;
}

.tc-attack.tc-down {
  background:
    radial-gradient(110% 110% at 30% 20%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #f7c94f, #e2a630 50%, #a96c0c);
}

.tc-attack .tc-cap {
  color: var(--tc-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.tc-jump {
  width: calc(var(--tc-u) * 12);
  height: calc(var(--tc-u) * 12);
}

.tc-small {
  width: calc(var(--tc-u) * 10);
  height: calc(var(--tc-u) * 10);
}

.tc-small .tc-cap {
  font-size: calc(var(--tc-u) * 1.8);
  bottom: calc(var(--tc-u) * -2.3);
}

.tc-toggle.tc-on {
  border-color: var(--tc-gold);
  color: var(--tc-gold);
  box-shadow: 0 0 calc(var(--tc-u) * 2.5) rgba(244, 197, 91, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

/* ---- skill buttons ---------------------------------------------------------------------- */

.tc-skill {
  width: calc(var(--tc-u) * 12.5);
  height: calc(var(--tc-u) * 12.5);
  --tc-cd: 0;
}

.tc-skill .tc-key {
  font-size: calc(var(--tc-u) * 4.6);
  font-weight: 800;
}

.tc-btn .tc-icon {
  position: absolute;
  inset: 7%;
  border-radius: inherit;
  background: center / cover no-repeat;
  pointer-events: none;
}

.tc-btn.tc-has-icon > svg {
  display: none;
}

.tc-skill.tc-has-icon .tc-key {
  position: absolute;
  left: calc(var(--tc-u) * -0.6);
  bottom: calc(var(--tc-u) * -0.6);
  width: calc(var(--tc-u) * 4.4);
  height: calc(var(--tc-u) * 4.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--tc-u) * 2.4);
  background: rgba(10, 12, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.tc-square,
.tc-square::before {
  border-radius: calc(var(--tc-u) * 2.4) !important;
}

/* Cooldown: a dark sweep that unwinds clockwise, with the seconds left in the middle. */
.tc-skill::before,
.tc-ring::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: conic-gradient(rgba(5, 6, 12, 0.78) calc(var(--tc-cd) * 360deg), transparent 0);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.tc-skill.tc-cooling::before,
.tc-ring.tc-cooling::before {
  opacity: 1;
}

.tc-skill .tc-secs,
.tc-ring .tc-secs {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--tc-u) * 4.2);
  font-weight: 800;
  color: #fff;
  pointer-events: none;
}

.tc-skill.tc-cooling .tc-secs,
.tc-ring.tc-cooling .tc-secs {
  display: flex;
}

.tc-skill.tc-cooling .tc-key,
.tc-skill.tc-cooling .tc-icon,
.tc-ring.tc-cooling .tc-icon,
.tc-ring.tc-cooling svg {
  opacity: 0.25;
}

.tc-skill .tc-cost {
  position: absolute;
  top: calc(var(--tc-u) * -0.8);
  right: calc(var(--tc-u) * -0.8);
  min-width: calc(var(--tc-u) * 4.6);
  height: calc(var(--tc-u) * 4.6);
  padding: 0 calc(var(--tc-u) * 0.9);
  border-radius: calc(var(--tc-u) * 2.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--tc-u) * 2.2);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #5cb3ff, #2a6fd6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.tc-skill .tc-cost:empty {
  display: none;
}

.tc-skill.tc-form .tc-cost {
  background: linear-gradient(180deg, #ff9a5c, #d1561c);
}

.tc-skill.tc-ready {
  border-color: rgba(244, 197, 91, 0.7);
  box-shadow: 0 calc(var(--tc-u) * 0.8) calc(var(--tc-u) * 2.5) rgba(0, 0, 0, 0.45),
    0 0 calc(var(--tc-u) * 1.8) rgba(244, 197, 91, 0.35), inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.tc-skill.tc-nomana {
  filter: grayscale(0.85) brightness(0.75);
  border-color: rgba(79, 168, 255, 0.55);
}

.tc-skill.tc-nomana .tc-cost {
  background: linear-gradient(180deg, #6a7a90, #3d4757);
}

.tc-skill.tc-empty {
  opacity: 0.28;
  filter: grayscale(1);
}

.tc-skill.tc-pop {
  animation: tc-pop 0.45s ease-out;
}

@keyframes tc-pop {
  0% { box-shadow: 0 0 0 0 rgba(244, 197, 91, 0.85); }
  100% { box-shadow: 0 0 0 calc(var(--tc-u) * 4) rgba(244, 197, 91, 0); }
}

.tc-shake {
  animation: tc-shake 0.3s ease;
}

@keyframes tc-shake {
  0%, 100% { margin-left: 0; }
  25% { margin-left: calc(var(--tc-u) * -1); }
  75% { margin-left: calc(var(--tc-u) * 1); }
}

/* ---- joystick ---------------------------------------------------------------------------- */

.tc-stick-zone {
  position: absolute;
  border-radius: 50%;
}

.tc-stick {
  position: absolute;
  width: calc(var(--tc-u) * 28);
  height: calc(var(--tc-u) * 28);
  margin: calc(var(--tc-u) * -14) 0 0 calc(var(--tc-u) * -14);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0 52%, rgba(255, 255, 255, 0.1) 53% 54%, rgba(255, 255, 255, 0) 55%),
    radial-gradient(circle at 50% 50%, rgba(10, 12, 20, 0.15), rgba(10, 12, 20, 0.5));
  border: 1.5px solid var(--tc-rim);
  box-shadow: 0 calc(var(--tc-u) * 1) calc(var(--tc-u) * 3) rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: left 0.18s ease, top 0.18s ease;
  will-change: left, top;
}

.tc-stick.tc-active {
  transition: none;
}

.tc-stick .tc-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--tc-u) * 3);
  height: calc(var(--tc-u) * 3);
  margin: calc(var(--tc-u) * -1.5);
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-left: 2px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.12s ease;
}

.tc-stick .tc-arrow[data-dir="up"] { transform: translateY(calc(var(--tc-u) * -11)) rotate(45deg); }
.tc-stick .tc-arrow[data-dir="down"] { transform: translateY(calc(var(--tc-u) * 11)) rotate(225deg); }
.tc-stick .tc-arrow[data-dir="left"] { transform: translateX(calc(var(--tc-u) * -11)) rotate(-45deg); }
.tc-stick .tc-arrow[data-dir="right"] { transform: translateX(calc(var(--tc-u) * 11)) rotate(135deg); }

.tc-stick .tc-arrow.tc-lit {
  border-color: var(--tc-gold);
}

.tc-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--tc-u) * 12);
  height: calc(var(--tc-u) * 12);
  margin: calc(var(--tc-u) * -6) 0 0 calc(var(--tc-u) * -6);
  border-radius: 50%;
  background:
    radial-gradient(110% 110% at 30% 20%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 50%),
    linear-gradient(160deg, #ffd977, var(--tc-gold) 50%, var(--tc-gold-deep));
  border: 2px solid rgba(255, 240, 200, 0.8);
  box-shadow: 0 calc(var(--tc-u) * 0.8) calc(var(--tc-u) * 2) rgba(0, 0, 0, 0.5);
  will-change: transform;
}

.tc-stick.tc-active .tc-knob {
  box-shadow: 0 0 calc(var(--tc-u) * 3) rgba(244, 197, 91, 0.65), 0 calc(var(--tc-u) * 0.8) calc(var(--tc-u) * 2) rgba(0, 0, 0, 0.5);
}

/* ---- aiming ------------------------------------------------------------------------------ */

.tc-aim {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tc-cancel {
  position: absolute;
  width: calc(var(--tc-u) * 11);
  height: calc(var(--tc-u) * 11);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 20, 20, 0.55);
  border: 1.5px solid rgba(255, 120, 120, 0.6);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}

.tc-cancel svg {
  width: 45%;
  height: 45%;
  stroke: #ffd2d2;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
}

.tc-cancel.tc-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tc-cancel.tc-armed {
  background: rgba(200, 30, 30, 0.85);
  transform: translate(-50%, -50%) scale(1.15);
}

/* ---- top bar, mana pill ------------------------------------------------------------------ */

.tc-top {
  position: absolute;
  top: calc(var(--tc-safe-t) + var(--tc-u) * 2);
  left: calc(var(--tc-safe-l) + var(--tc-u) * 2);
  display: flex;
  gap: calc(var(--tc-u) * 1.5);
  opacity: var(--tc-alpha);
}

.tc-top .tc-btn,
.tc-quick .tc-btn {
  position: relative;
  transform: scale(var(--tc-press, 1));
  width: calc(var(--tc-u) * 9);
  height: calc(var(--tc-u) * 9);
}

.tc-quick {
  position: absolute;
  top: calc(var(--tc-safe-t) + var(--tc-u) * 2);
  right: calc(var(--tc-safe-r) + var(--tc-u) * 2);
  display: flex;
  gap: calc(var(--tc-u) * 1.5);
  opacity: var(--tc-alpha);
}

.tc-mana {
  position: absolute;
  height: calc(var(--tc-u) * 3);
  border-radius: calc(var(--tc-u) * 1.5);
  background: rgba(8, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transform: translate(-50%, -50%);
}

.tc-mana i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(180deg, #7cc2ff, #2e7be0);
  box-shadow: 0 0 8px rgba(79, 168, 255, 0.6);
  transition: width 0.15s linear;
}

.tc-mana b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: calc(var(--tc-u) * 2);
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

/* ---- sheets (menu, settings) ------------------------------------------------------------- */

.tc-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 12, 0.5);
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--tc-u) * 3);
  padding: calc(var(--tc-safe-t) + var(--tc-u) * 3) calc(var(--tc-safe-r) + var(--tc-u) * 3) calc(var(--tc-safe-b) + var(--tc-u) * 3) calc(var(--tc-safe-l) + var(--tc-u) * 3);
}

.tc-sheet-backdrop.tc-show {
  opacity: 1;
}

.tc-sheet {
  width: min(560px, 100%);
  max-height: 100%;
  overflow: auto;
  border-radius: 18px;
  padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(34, 36, 50, 0.96), rgba(20, 22, 32, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
  touch-action: pan-y;
}

.tc-sheet-backdrop.tc-show .tc-sheet {
  transform: none;
}

.tc-sheet h2 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tc-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tc-sheet h2 button {
  font: inherit;
  font-size: 18px;
  color: var(--tc-text);
  background: none;
  border: 0;
  padding: 2px 6px;
}

.tc-note {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tc-text);
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.tc-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--tc-text);
  font: 600 12px "Trebuchet MS", system-ui, sans-serif;
}

.tc-tile:active,
.tc-tile.tc-down {
  background: rgba(244, 197, 91, 0.2);
  border-color: rgba(244, 197, 91, 0.5);
}

.tc-tile svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tc-gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tc-tile kbd {
  font: 700 10px ui-monospace, monospace;
  opacity: 0.55;
}

.tc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.tc-row:last-child {
  border-bottom: 0;
}

.tc-row small {
  display: block;
  opacity: 0.6;
  font-size: 11px;
  margin-top: 2px;
}

.tc-switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  transition: background 0.2s ease;
}

.tc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.tc-switch[aria-checked="true"] {
  background: var(--tc-gold-deep);
}

.tc-switch[aria-checked="true"]::after {
  transform: translateX(20px);
}

.tc-row input[type="range"] {
  width: 46%;
  accent-color: var(--tc-gold);
}

.tc-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tc-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tc-text);
  font: 700 13px "Trebuchet MS", system-ui, sans-serif;
}

.tc-actions button.tc-primary {
  background: linear-gradient(160deg, #ffd977, var(--tc-gold) 45%, var(--tc-gold-deep));
  color: #2b1a02;
  border-color: rgba(255, 233, 170, 0.75);
}

/* ---- layout editing ---------------------------------------------------------------------- */

#tc-root.tc-editing .tc-group {
  opacity: 1;
}

#tc-root.tc-editing .tc-world,
#tc-root.tc-editing .tc-world * {
  pointer-events: none !important;
}

.tc-handle {
  position: absolute;
  display: none;
  border: 2px dashed rgba(244, 197, 91, 0.8);
  border-radius: 16px;
  background: rgba(244, 197, 91, 0.08);
  pointer-events: auto;
  touch-action: none;
}

#tc-root.tc-editing .tc-handle {
  display: block;
}

.tc-edit-bar {
  position: absolute;
  left: 50%;
  top: calc(var(--tc-safe-t) + 10px);
  transform: translateX(-50%);
  display: none;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(20, 22, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  font-size: 13px;
  align-items: center;
}

#tc-root.tc-editing .tc-edit-bar {
  display: flex;
}

.tc-edit-bar button {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tc-text);
  font: 700 13px "Trebuchet MS", system-ui, sans-serif;
}

.tc-edit-bar button.tc-primary {
  background: linear-gradient(160deg, #ffd977, var(--tc-gold) 45%, var(--tc-gold-deep));
  color: #2b1a02;
}

/* ---- rotate hint ------------------------------------------------------------------------- */

.tc-rotate {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 11, 18, 0.92);
  pointer-events: auto;
  text-align: center;
  padding: 24px;
  font-size: 16px;
}

.tc-rotate svg {
  width: 64px;
  height: 64px;
  stroke: var(--tc-gold);
  fill: none;
  stroke-width: 1.8;
  animation: tc-rotate 2.2s ease-in-out infinite;
}

@keyframes tc-rotate {
  0%, 30% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(-90deg); }
}

.tc-rotate button {
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tc-text);
  font: 700 13px "Trebuchet MS", system-ui, sans-serif;
}

@media (orientation: portrait) {
  #tc-root.tc-portrait-hint .tc-rotate {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  #tc-root *,
  #tc-root *::before {
    animation: none !important;
    transition: none !important;
  }
}
