/* ============================================================
   RPX Cat Village — Multiplayer Social Game
   CSS Professionale con Tema Cat & Joystick Trasparente
   ============================================================ */

/* ───── Reset e Base ───── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  font-family: 'Nunito', 'Segoe UI', -apple-system, sans-serif;
  background: #1a1a2e;
  color: #f0e6d3;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

* {
  touch-action: manipulation;
}

/* ───── Container Gioco ───── */
#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #87CEEB;
}

/* ───── Login Screen ───── */
.login-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, #2d2d4a 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.login-card {
  background: linear-gradient(145deg, #2d2d4a, #23233a);
  border-radius: 32px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  animation: slideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-logo {
  font-size: 72px;
  margin-bottom: 8px;
  display: block;
  animation: floatCat 3s ease-in-out infinite;
}

@keyframes floatCat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}

.login-card h1 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb07c, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.login-sub {
  color: #9a8ab0;
  font-size: 15px;
  margin-bottom: 28px;
  font-weight: 400;
}

/* ───── Login Tabs ───── */
.login-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 4px;
  margin-bottom: 24px;
}

.login-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: #9a8ab0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.login-tab.active {
  background: linear-gradient(135deg, #ff8a5c, #e86a3a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 138, 92, 0.3);
}

.login-tab:hover:not(.active) {
  color: #d4c8e0;
  background: rgba(255, 255, 255, 0.04);
}

/* ───── Login Form ───── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #b8a8cc;
  letter-spacing: 0.3px;
}

.field input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #f0e6d3;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s ease;
  outline: none;
  -webkit-appearance: none;
}

.field input:focus {
  border-color: #ff8a5c;
  background: rgba(255, 138, 92, 0.06);
  box-shadow: 0 0 0 4px rgba(255, 138, 92, 0.1);
}

.field input::placeholder {
  color: #6a5a7a;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9a8ab0;
  cursor: pointer;
}

.remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff8a5c;
  cursor: pointer;
}

/* ───── Buttons ───── */
.btn {
  padding: 14px 24px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #ff8a5c, #e86a3a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 138, 92, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 138, 92, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.error {
  color: #ff6b6b;
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

/* ───── Game HUD ───── */
.game-hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  pointer-events: auto;
}

.hud-left, .hud-right {
  display: flex;
  gap: 10px;
}

.hud-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 30, 50, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f0e6d3;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.hud-btn:hover {
  transform: scale(1.08);
  background: rgba(255, 138, 92, 0.25);
  border-color: rgba(255, 138, 92, 0.3);
}

.hud-btn:active {
  transform: scale(0.92);
}

/* ───── Chat Container ───── */
.chat-container {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  background: rgba(20, 20, 35, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  overflow: hidden;
  display: none;
  animation: chatSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes chatSlideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

.chat-msgs {
  max-height: 200px;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scroll-behavior: smooth;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.chat-msgs::-webkit-scrollbar {
  width: 4px;
}

.chat-msgs::-webkit-scrollbar-track {
  background: transparent;
}

.chat-msgs::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 92, 0.4);
  border-radius: 4px;
}

.chat-msgs div {
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  word-wrap: break-word;
  color: #d4c8e0;
}

.chat-msgs strong {
  color: #ffb07c;
  font-weight: 700;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-input-row input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
  color: #f0e6d3;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.chat-input-row input:focus {
  border-color: #ff8a5c;
  background: rgba(255, 138, 92, 0.06);
}

.chat-input-row input::placeholder {
  color: #6a5a7a;
}

.chat-input-row button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8a5c, #e86a3a);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-input-row button:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(255, 138, 92, 0.3);
}

/* ───── Joystick Style Cat — Trasparente ───── */
.joystick-zone {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 140px;
  height: 140px;
  z-index: 20;
  pointer-events: none;
  display: none;
  touch-action: none !important;
}

/* Mostra solo su dispositivi touch */
@media (pointer: coarse) {
  .joystick-zone {
    display: block !important;
  }
}

.joystick-base {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 200, 160, 0.03), rgba(30, 30, 50, 0.05));
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border: 2px solid rgba(255, 200, 160, 0.04);
  box-shadow: none;
  pointer-events: auto;
  cursor: grab;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: none !important;
  will-change: transform, box-shadow, backdrop-filter;
}

.joystick-base.active {
  background: radial-gradient(circle at 40% 35%, rgba(255, 200, 160, 0.2), rgba(30, 30, 50, 0.7));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid rgba(255, 200, 160, 0.25);
  box-shadow: 0 8px 50px rgba(255, 138, 92, 0.2), inset 0 -4px 30px rgba(0, 0, 0, 0.3), inset 0 4px 30px rgba(255, 200, 160, 0.08);
  animation: joystickPulse 0.6s ease;
}

@keyframes joystickPulse {
  0% { transform: scale(0.95); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.joystick-base .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 200, 160, 0);
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s ease;
}

.joystick-base.active .ring {
  border-color: rgba(255, 200, 160, 0.08);
}

.joystick-base .ring-1 {
  width: 80%;
  height: 80%;
}

.joystick-base .ring-2 {
  width: 60%;
  height: 60%;
  border-color: rgba(255, 200, 160, 0);
}

.joystick-base.active .ring-2 {
  border-color: rgba(255, 200, 160, 0.05);
}

.joystick-base .paw-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 28px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.6s ease;
  filter: grayscale(1);
}

.joystick-base.active .paw-icon {
  opacity: 0.15;
  filter: grayscale(0.5);
  animation: pawSpin 8s linear infinite;
}

@keyframes pawSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.joystick-thumb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 35%, rgba(255, 212, 184, 0.3), rgba(232, 168, 138, 0.1));
  box-shadow: 0 0 0 0px rgba(255, 138, 92, 0);
  transition: all 0.05s linear, box-shadow 0.4s ease, background 0.4s ease;
  pointer-events: none;
  border: 2px solid rgba(255, 255, 255, 0.02);
  will-change: transform;
}

.joystick-base.active .joystick-thumb {
  background: radial-gradient(circle at 40% 35%, #ffd4b8, #e8a88a);
  box-shadow: 0 4px 25px rgba(255, 138, 92, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.2), inset 0 3px 8px rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.joystick-thumb::before {
  content: '🐱';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 26px;
  opacity: 0.3;
  filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0));
  transition: all 0.4s ease;
}

.joystick-base.active .joystick-thumb::before {
  opacity: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.joystick-base.active::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 138, 92, 0.1), transparent 70%);
  animation: glowPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* ───── Equip Overlay ───── */
.equip-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}

.equip-overlay.open {
  display: flex;
}

.equip-panel {
  background: linear-gradient(145deg, #2d2d4a, #1e1e35);
  border-radius: 32px;
  padding: 32px;
  width: 95%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.92) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.equip-overlay.open .equip-panel {
  transform: scale(1) translateY(0);
}

.equip-panel::-webkit-scrollbar {
  width: 4px;
}

.equip-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 92, 0.4);
  border-radius: 4px;
}

.equip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.equip-header h2 {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #ffb07c, #ff8a5c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.equip-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #9a8ab0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.equip-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.equip-body {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.equip-preview {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.equip-preview canvas {
  border-radius: 20px;
  background: linear-gradient(180deg, #1e1e35, #2d2d4a);
  border: 2px solid rgba(255, 255, 255, 0.04);
  width: 100%;
  height: auto;
  aspect-ratio: 220/240;
}

.cat-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffb07c;
}

.equip-items {
  flex: 1;
  min-width: 200px;
}

.equip-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.equip-cat {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.02);
  color: #9a8ab0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 4px;
}

.equip-cat .cat-icon {
  font-size: 14px;
}

.equip-cat:hover {
  background: rgba(255, 138, 92, 0.08);
  color: #d4c8e0;
}

.equip-cat.active {
  background: linear-gradient(135deg, rgba(255, 138, 92, 0.2), rgba(232, 106, 58, 0.15));
  border-color: #ff8a5c;
  color: #ffb07c;
}

.equip-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  padding: 4px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.equip-grid-wrap::-webkit-scrollbar {
  width: 3px;
}

.equip-grid-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 92, 0.3);
  border-radius: 4px;
}

.equip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: all 0.3s ease;
}

.equip-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.equip-item.active {
  border-color: #ff8a5c;
  background: rgba(255, 138, 92, 0.1);
  box-shadow: 0 0 20px rgba(255, 138, 92, 0.05);
}

.equip-thumb-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.equip-thumb {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

.item-label {
  font-size: 11px;
  font-weight: 600;
  color: #9a8ab0;
  text-align: center;
  line-height: 1.2;
}

.equip-item.active .item-label {
  color: #ffb07c;
}

.equip-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.equip-footer .btn {
  padding: 12px 32px;
  font-size: 15px;
}

/* ───── Emote Overlay ───── */
.emote-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
}

.emote-overlay.open {
  display: flex;
}

.emote-panel {
  background: linear-gradient(145deg, #2d2d4a, #1e1e35);
  border-radius: 28px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.92) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  margin-left: 10vw;
}

.emote-overlay.open .emote-panel {
  transform: scale(1) translateY(0);
}

.emote-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.emote-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #f0e6d3;
}

.emote-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #9a8ab0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.emote-close:hover {
  background: rgba(255, 107, 107, 0.2);
  color: #ff6b6b;
}

.emote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.emote-grid::-webkit-scrollbar {
  width: 3px;
}

.emote-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 138, 92, 0.3);
  border-radius: 4px;
}

.emote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: #f0e6d3;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.emote-btn:hover {
  background: rgba(255, 138, 92, 0.08);
  border-color: rgba(255, 138, 92, 0.2);
  transform: translateY(-2px);
}

.emote-btn:active {
  transform: scale(0.92);
}

.emote-icon {
  font-size: 28px;
}

.emote-label {
  font-size: 10px;
  font-weight: 600;
  color: #9a8ab0;
}

/* ───── Responsive ───── */
@media (max-width: 768px) {
  .login-card {
    padding: 32px 24px;
    margin: 16px;
  }
  
  .login-card h1 {
    font-size: 26px;
  }
  
  .equip-panel {
    padding: 20px 16px;
  }
  
  .equip-body {
    flex-direction: column;
    align-items: center;
  }
  
  .equip-preview {
    flex: none;
    width: 100%;
    max-width: 200px;
  }
  
  .joystick-zone {
    width: 120px;
    height: 120px;
    bottom: 24px;
    left: 24px;
  }
  
  .joystick-base {
    width: 120px;
    height: 120px;
  }
  
  .joystick-thumb {
    width: 52px;
    height: 52px;
  }
  
  .joystick-thumb::before {
    font-size: 22px;
  }
  
  .joystick-base .paw-icon {
    font-size: 24px;
  }
  
  .hud-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  
  .chat-container {
    width: 95%;
    bottom: 80px;
  }
  
  .equip-grid-wrap {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  
  .emote-panel {
    width: 95%;
    max-width: 300px;
    margin-left: 0;
  }
  
  .emote-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .joystick-zone {
    width: 100px;
    height: 100px;
    bottom: 20px;
    left: 20px;
  }
  
  .joystick-base {
    width: 100px;
    height: 100px;
  }
  
  .joystick-thumb {
    width: 44px;
    height: 44px;
  }
  
  .joystick-thumb::before {
    font-size: 18px;
  }
  
  .joystick-base .paw-icon {
    font-size: 20px;
  }
  
  .hud-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .emote-panel {
    width: 90%;
    max-width: 260px;
    margin-left: 5vw;
  }
}

/* ───── Utility ───── */
@supports (-webkit-backdrop-filter: none) {
  .login-overlay { backdrop-filter: blur(8px); }
  .hud-btn { backdrop-filter: blur(12px); }
  .chat-container { backdrop-filter: blur(16px); }
  .joystick-base { backdrop-filter: blur(0px); }
  .joystick-base.active { backdrop-filter: blur(16px); }
  .equip-overlay { backdrop-filter: blur(8px); }
  .emote-overlay { backdrop-filter: blur(6px); }
}

/* Nascondi joystick su desktop */
@media (pointer: fine) {
  .joystick-zone {
    display: none !important;
  }
}