.ttgame-wrap {
  position: relative;
  width: 100%;
  height: 65vh;
  max-height: 560px;
  min-height: 360px;
  margin: 1.5rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #9fd9e8;
  border: 1px solid var(--sand-deep, #e7d9b8);
  user-select: none;
}
.ttgame-canvas { position: absolute; inset: 0; }
.ttgame-canvas canvas { display: block; width: 100% !important; height: 100% !important; }

.ttgame-hud {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: center; pointer-events: none;
}
.ttgame-counter {
  background: rgba(255,255,255,.9);
  color: #0f4a52; font-weight: 700;
  padding: .5rem 1rem; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.ttgame-hint {
  position: absolute; right: 16px; bottom: 26px;
  background: rgba(255,255,255,.85); color: #0f4a52;
  font-size: .85rem; font-weight: 600;
  padding: .4rem .7rem; border-radius: 10px;
  max-width: 45%; text-align: right; pointer-events: none;
}

.ttgame-joystick {
  position: absolute; left: 22px; bottom: 22px;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 2px solid rgba(255,255,255,.65);
  touch-action: none; z-index: 5;
}
.ttgame-thumb {
  position: absolute; left: 50%; top: 50%;
  width: 50px; height: 50px; margin: -25px 0 0 -25px;
  border-radius: 50%; background: rgba(255,255,255,.85);
  box-shadow: 0 3px 10px rgba(0,0,0,.25); pointer-events: none;
}

.ttgame-win {
  position: absolute; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,74,82,.55);
}
.ttgame-win[hidden] { display: none; }
.ttgame-win-card {
  background: #fff; border-radius: 18px; padding: 2rem 2.2rem;
  text-align: center; max-width: 320px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
}
.ttgame-win-emoji { font-size: 3rem; line-height: 1; }
.ttgame-win-card h3 { color: #0f4a52; margin: .5rem 0 .3rem; }
.ttgame-win-card p { color: #5c6b6d; margin-bottom: 1.2rem; }
.ttgame-btn {
  background: #1b6f7a; color: #fff; border: none;
  padding: .7rem 1.4rem; border-radius: 10px;
  font-weight: 700; font-size: 1rem; cursor: pointer;
}
.ttgame-btn:hover { background: #0f4a52; }
