/* OnyxPad Controller Styles - Absolute Positioning Layout System */

/* Preview Mode - for desktop app thumbnails */
.preview-mode {
  overflow: hidden !important;
}

.preview-mode #top-bar,
.preview-mode #editor-controls,
.preview-mode .connection-overlay,
.preview-mode .install-hint-overlay,
.preview-mode #orientation-overlay,
.preview-mode .touch-zone {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.preview-mode .controller {
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

:root {
  /* Dark theme - matching desktop app */
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1a1a1a;
  --bg-elevated: #2a2a2a;
  
  /* Xbox button colors */
  --green: #4ade80;
  --red: #f87171;
  --blue: #0078d4;
  --yellow: #d4a000;
  
  /* UI colors */
  --accent: #ffffff;
  --text: #ffffff;
  --text-dim: #666666;
  --dim: #666666;
  --text-muted: #444444;
  --border: #2a2a2a;
  
  /* Safe areas */
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-left: env(safe-area-inset-left, 0px);
  --safe-area-right: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Prevent all touch actions on controller buttons */
button, .controller {
  touch-action: none;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body.ui-hidden {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* ============================================
   Screen Corner Brackets (for all overlays)
   ============================================ */
.screen-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--text-muted);
  border-style: solid;
  border-width: 0;
  z-index: 10;
}

.screen-bracket.tl { 
  top: calc(var(--safe-area-top) + 20px); 
  left: calc(var(--safe-area-left) + 20px); 
  border-top-width: 2px; 
  border-left-width: 2px; 
}
.screen-bracket.tr { 
  top: calc(var(--safe-area-top) + 20px); 
  right: calc(var(--safe-area-right) + 20px); 
  border-top-width: 2px; 
  border-right-width: 2px; 
}
.screen-bracket.bl { 
  bottom: calc(var(--safe-area-bottom) + 20px); 
  left: calc(var(--safe-area-left) + 20px); 
  border-bottom-width: 2px; 
  border-left-width: 2px; 
}
.screen-bracket.br { 
  bottom: calc(var(--safe-area-bottom) + 20px); 
  right: calc(var(--safe-area-right) + 20px); 
  border-bottom-width: 2px; 
  border-right-width: 2px; 
}

/* ============================================
   Orientation Overlay
   ============================================ */
#orientation-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.orientation-content {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Rotate Visual - Phone Animation (Ping-Pong) */
.rotate-visual {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-outline {
  width: 40px;
  height: 68px;
  border: 2px solid var(--text-muted);
  border-radius: 8px;
  position: relative;
  animation: rotate-phone-pingpong 3s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-screen {
  width: calc(100% - 8px);
  height: calc(100% - 14px);
  background: var(--bg2);
  border-radius: 4px;
}

/* Ping-Pong rotation: 0 -> 90 -> 0 -> 90 ... */
@keyframes rotate-phone-pingpong {
  0%, 10% { 
    transform: rotate(0deg);
    border-color: var(--text-muted);
  }
  40%, 60% { 
    transform: rotate(90deg);
    border-color: var(--text);
  }
  90%, 100% { 
    transform: rotate(0deg);
    border-color: var(--text-muted);
  }
}

.orientation-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.1em;
}

.orientation-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.orientation-desc strong {
  color: var(--text);
}

/* ============================================
   Connection Status
   ============================================ */
#connection-status {
  position: fixed;
  top: calc(var(--safe-area-top) + 8px);
  right: calc(var(--safe-area-right) + 8px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  font-size: 0.7rem;
  z-index: 800;
  border: 1px solid var(--border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

#connection-status.connected .status-dot {
  background: var(--green);
}

#connection-status.disconnected .status-dot {
  background: var(--red);
  animation: blink 1s infinite;
}

#connection-status.connecting .status-dot {
  background: #ff9800;
  animation: blink 0.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================
   Controller Layout - ABSOLUTE POSITIONING
   ============================================ */
.controller {
  position: fixed;
  inset: 0;
  padding: var(--safe-area-top) var(--safe-area-right) var(--safe-area-bottom) var(--safe-area-left);
}

.bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  user-select: none;
}

/* ============================================
   Touch Zones for Floating Sticks
   ============================================ */
.touch-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.touch-zone.left {
  left: 0;
}

.touch-zone.right {
  right: 0;
}

/* Floating stick indicator */
.floating-stick {
  position: absolute;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 200;
}

.float-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--border);
  box-shadow: 
    inset 0 3px 8px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.4);
}

.float-thumb {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #444, #2a2a2a);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* ============================================
   Static Sticks (Fixed Position Mode)
   ============================================ */
.static-stick {
  position: absolute;
  width: 140px;
  height: 140px;
  transform: translate(-50%, -50%);
  z-index: 50;
  touch-action: none;
}

.static-stick-base {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0a0a0c;
  border: 4px solid #27272a;
  /* Concentric rings effect */
  box-shadow: 
    inset 0 0 0 8px #0a0a0c,
    inset 0 0 0 12px #1a1a1e,
    inset 0 0 0 20px #0a0a0c,
    inset 0 0 0 24px #1a1a1e,
    0 4px 16px rgba(0, 0, 0, 0.6);
}

.static-stick-thumb {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #3a3a3e, #1a1a1e);
  border: 3px solid #3f3f46;
  box-shadow: 
    inset 0 2px 6px rgba(255, 255, 255, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: transform 0.05s ease-out;
}

/* Static stick active state */
.static-stick:active .static-stick-base {
  border-color: #3f3f46;
}

/* ============================================
   ALL Controller Buttons - Base Styles
   ============================================ */
.ctrl-btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--bg3);
  border: 2px solid var(--border);
  color: var(--text);
  transition: transform 0.04s, background 0.04s;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.2), 
    0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 10;
  /* Transform origin for scaling from center */
  transform-origin: center center;
}

.ctrl-btn:active,
.ctrl-btn.active {
  transform: scale(0.92);
  background: var(--bg-elevated);
}

/* ============================================
   Trigger Buttons (LT, RT) - Tall/Vertical
   ============================================ */
.trigger-btn {
  width: 80px;
  height: 180px;
  border-radius: 40px;
  font-size: 1.2rem;
}

/* ============================================
   Bumper Buttons (LB, RB) - Wide/Horizontal
   ============================================ */
.bumper-btn {
  width: 100px;
  height: 60px;
  border-radius: 30px;
  font-size: 1rem;
}

/* ============================================
   Classic Layout - Uniform Shoulder Buttons
   All shoulder buttons (LT, RT, LB, RB) same shape
   ============================================ */
.layout-classic .trigger-btn,
.layout-classic-static .trigger-btn {
  width: 100px !important;
  height: 60px !important;
  border-radius: 30px !important;
  font-size: 1rem !important;
}

/* ============================================
   D-Pad Container - Unified Circle with Arrows
   ============================================ */
.dpad-container {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--border);
  z-index: 10;
  transform-origin: center center;
}

.dpad-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  box-shadow: none;
  transition: all 0.04s;
}

.dpad-btn svg {
  width: 24px;
  height: 24px;
}

.dpad-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.dpad-up {
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.dpad-down {
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
}

.dpad-left {
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.dpad-right {
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.dpad-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--bg3);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================
   D-Pad SVG Cross Overlay
   Hidden by default, shown by skins that need it
   ============================================ */
.dpad-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  pointer-events: none;
  z-index: 5;
  /* Hidden by default */
  display: none;
}

.dpad-cross-shape {
  fill: var(--bg3);
  stroke: var(--border);
  stroke-width: 1.5;
}

/* Gradient stops - customizable per skin */
.dpad-grad-start { stop-color: #3a3a3a; }
.dpad-grad-mid { stop-color: #2a2a2a; }
.dpad-grad-end { stop-color: #1a1a1a; }

/* ============================================
   Face Buttons (A, B, X, Y) - Circular
   Styles are applied dynamically via JavaScript skins
   ============================================ */
.face-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 1.4rem;
  border-width: 3px;
  border-style: solid;
  /* Default fallback with 3D effect */
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 100%);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 
    inset 0 3px 6px rgba(255, 255, 255, 0.08),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.06s, box-shadow 0.06s;
}

.face-btn:active,
.face-btn.active {
  transform: scale(0.95);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Menu Buttons (Back, Guide, Start)
   ============================================ */
.menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--dim);
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn:active,
.menu-btn.active {
  background: var(--bg-elevated);
  color: var(--text);
}

.guide-btn {
  width: 52px;
  height: 52px;
}

.guide-btn svg {
  width: 28px;
  height: 28px;
}

.guide-btn.active {
  background: var(--text);
  color: var(--bg);
}

/* ============================================
   Thumbstick Buttons (L3, R3)
   ============================================ */
.thumb-btn {
  width: 90px;
  height: 50px;
  border-radius: 25px;
  font-size: 0.85rem;
  background: var(--bg2);
}

/* ============================================
   Static Sticks (for static stick mode)
   ============================================ */
.static-stick {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--border);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.static-stick-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #444, #2a2a2a);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    inset 0 2px 4px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.5);
  will-change: transform;
}

/* ============================================
   Edit Mode & Editor UI
   ============================================ */

/* Top Bar - Status + Edit Button centered */
.top-bar {
  position: fixed;
  top: calc(var(--safe-area-top, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 800;
}

/* Override connection status positioning */
.top-bar #connection-status {
  position: static;
  top: auto;
  right: auto;
}

/* Top Bar Buttons Container */
.top-bar-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Top Bar Button (shared styles) */
.top-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-btn svg {
  width: 16px;
  height: 16px;
}

.top-btn:active {
  background: var(--bg3);
  transform: scale(0.95);
}

body.edit-mode .top-btn {
  display: none;
}

/* Hide entire top-bar in edit mode (replaced by editor-controls) */
body.edit-mode .top-bar {
  display: none;
}

/* Sound Button States */
#btn-sound .icon-sound-off {
  display: none;
}

#btn-sound.sound-off .icon-sound-on {
  display: none;
}

#btn-sound.sound-off .icon-sound-off {
  display: block;
}

#btn-sound.sound-off {
  color: var(--red);
  opacity: 0.6;
}

/* Editor Controls - positioned at top next to status (P1) */
.editor-controls {
  position: fixed;
  top: calc(var(--safe-area-top, 0px) + 8px);
  left: 50%;
  transform: translateX(-50%);
  display: none;
  gap: 10px;
  z-index: 900;
  align-items: center;
}

body.edit-mode .editor-controls {
  display: flex;
}

.editor-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.editor-ctrl-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--dim);
  border: 1px solid var(--border);
}

.editor-ctrl-btn.reset {
  background: rgba(200, 60, 60, 0.15);
  color: var(--red);
  border: 1px solid rgba(200, 60, 60, 0.3);
}

.editor-ctrl-btn.accept {
  background: rgba(60, 176, 67, 0.15);
  color: var(--green);
  border: 1px solid rgba(60, 176, 67, 0.3);
}

.editor-ctrl-btn:active {
  transform: scale(0.9);
}

/* Edit Mode - disable touch zones for sticks */
body.edit-mode .touch-zone {
  pointer-events: none;
}

/* Make everything touchable in edit mode */
body.edit-mode [data-element] {
  cursor: grab;
  touch-action: none;
}

body.edit-mode [data-element]:active {
  cursor: grabbing;
}

/* Selection pop animation */
@keyframes selectPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ============================================
   Connection State Overlay
   ============================================ */
.connection-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.connection-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.connection-content {
  text-align: center;
  padding: 2rem;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Onyx Logo - matches desktop app style */
.onyx-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.onyx-logo .logo-icon {
  width: 28px;
  height: 28px;
  color: var(--text);
}

.onyx-logo .logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--text);
}

/* Spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* State titles */
.state-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.state-desc {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.6;
}

/* Error state */
.state-error {
  display: none;
}

.state-connecting {
  display: block;
}

.connection-overlay .state-error.hidden,
.connection-overlay .state-connecting.hidden {
  display: none;
}

.connection-overlay .state-error:not(.hidden) {
  display: block;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--red);
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

/* Retry button */
.retry-btn {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.retry-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* ============================================
   Install Hint Overlay
   ============================================ */
.install-hint-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.install-hint-overlay.visible {
  opacity: 1;
}

.install-hint-overlay.hiding {
  opacity: 0;
}

.install-hint-content {
  text-align: center;
  padding: 2rem;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hint-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hint-subtitle {
  font-size: 0.9rem;
  color: var(--dim);
  margin-bottom: 2rem;
}

/* Install steps */
.install-steps {
  text-align: left;
  margin-bottom: 1.5rem;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: none;
}

.step-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon svg {
  width: 24px;
  height: 24px;
}

.step-text {
  font-size: 0.9rem;
  color: var(--dim);
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--bg3);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
}

.step-text strong {
  color: var(--text);
}

.hint-note {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 2rem;
}

/* Continue button */
.continue-btn {
  padding: 0.75rem 2rem;
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.continue-btn:hover,
.continue-btn:active {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--text);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-height: 400px) {
  .trigger-btn {
    width: 60px;
    height: 140px;
    border-radius: 30px;
    font-size: 1rem;
  }
  
  .bumper-btn {
    width: 80px;
    height: 50px;
    border-radius: 25px;
    font-size: 0.9rem;
  }
  
  .face-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }
  
  .dpad-container {
    width: 110px;
    height: 110px;
  }
  
  .dpad-btn {
    width: 36px;
    height: 36px;
  }
  
  .dpad-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .dpad-center {
    width: 28px;
    height: 28px;
  }
  
  .menu-btn {
    width: 36px;
    height: 36px;
  }
  
  .guide-btn {
    width: 44px;
    height: 44px;
  }
  
  .thumb-btn {
    width: 70px;
    height: 40px;
    font-size: 0.75rem;
  }
  
  .floating-stick {
    width: 100px;
    height: 100px;
  }
  
  .float-thumb {
    width: 44px;
    height: 44px;
  }
  
  .static-stick {
    width: 100px;
    height: 100px;
  }
  
  .static-stick-thumb {
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   Upgrade Modal (Pro Feature)
   ============================================ */

.upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.upgrade-modal.hidden {
  display: none;
}

.upgrade-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  border: 1px solid #0f3460;
  border-radius: 20px;
  padding: 32px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.upgrade-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #e94560, #0f3460);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.upgrade-content h2 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 12px;
  font-weight: 600;
}

.upgrade-content p {
  color: #a0a0a0;
  font-size: 0.95rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

.upgrade-features {
  text-align: left;
  margin-bottom: 24px;
}

.upgrade-features .feature {
  color: #4ade80;
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-features .feature:last-child {
  border-bottom: none;
}

.upgrade-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #e94560, #c23a51);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.upgrade-modal .close-btn {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: #666;
  border: 1px solid #333;
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.upgrade-modal .close-btn:hover {
  color: #999;
  border-color: #555;
}

/* Skin styles are now loaded from separate CSS files in /skins/ */
