/* /assets/css/wheel.css */
/* Scoped styles for Toolsyte Wheel tool ecosystem - Redesign Phase */

/* Prevent blue browser tap highlight flash and support touch manipulation */
.wheel-tool-page button,
.wheel-tool-page a,
.wheel-tool-page input,
.wheel-tool-page textarea,
.wheel-tool-page select,
.ts-wheel-tool button,
.ts-wheel-tool a,
.ts-wheel-tool input,
.ts-wheel-tool textarea {
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation;
}

/* Premium focus outline behaviors (suppress on click, show on keyboard navigation) */
.ts-wheel-tool button:focus,
.ts-wheel-tool a:focus,
.wheel-tool-page button:focus,
.wheel-tool-page a:focus {
  outline: none;
}

.ts-wheel-tool button:focus-visible,
.ts-wheel-tool a:focus-visible,
.wheel-tool-page button:focus-visible,
.wheel-tool-page a:focus-visible {
  outline: 2px solid #2563eb !important;
  outline-offset: 2px !important;
}

/* Scoped overrides and custom page structures for this tool page specifically */
.wheel-tool-page {
  /* Inherits standard layout widths and background from .hub-page */
}

.wheel-tool-page .wheel-intro {
  margin-top: 24px;
  margin-bottom: 32px;
  padding: 0;
}
.wheel-tool-page .wheel-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.8vw, 44px);
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.wheel-tool-page .wheel-intro .subtitle {
  margin: 0;
  color: #475569; /* Highly readable dark slate for better accessibility */
  font-size: clamp(15px, 2vw, 17.5px);
  line-height: 1.68;
  max-width: 820px;
}

.wheel-tool-page .wheel-content-block {
  margin-top: 36px;
  margin-bottom: 36px;
}

/* About Section */
.wheel-tool-page .wheel-about-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--wheel-border-subtle);
  border-left: 4px solid var(--wheel-primary);
  border-radius: var(--wheel-radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(0, 0, 0, 0.015);
  padding: 28px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.wheel-tool-page .wheel-about-card:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
  border-color: rgba(37, 99, 235, 0.15);
}
.wheel-tool-page .wheel-about-card p {
  margin: 0;
  color: #334155; /* Higher accessibility contrast */
  line-height: 1.7;
  font-size: 15.5px;
}
.wheel-tool-page .wheel-about-card p + p {
  margin-top: 16px;
}

/* How to Use Section */
.wheel-tool-page .info-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
  border: 1px solid var(--wheel-border-subtle);
  border-radius: var(--wheel-radius);
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(0, 0, 0, 0.015);
  padding: clamp(24px, 4vw, 36px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.wheel-tool-page .info-band:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}
.wheel-tool-page .info-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  font-weight: 850;
  color: #0f172a;
  letter-spacing: -0.025em;
}
.wheel-tool-page .info-band p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 15px;
}
.wheel-tool-page .info-list {
  display: grid;
  gap: 16px;
}
.wheel-tool-page .info-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #334155; /* Better contrast */
  line-height: 1.65;
  font-size: 14.5px;
}
.wheel-tool-page .info-list strong {
  color: #0f172a;
}
.wheel-tool-page .info-check {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%; /* Perfect circle */
  background: #ecfdf5;
  color: #047857;
  font-weight: 900;
  box-shadow: 0 2px 5px rgba(4, 120, 87, 0.15); /* Soft drop shadow */
  font-size: 14px;
}

/* Why Use Section */
.wheel-tool-page .category-insight {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 36px);
  align-items: start;
  border: 1px solid var(--wheel-border-subtle);
  border-radius: var(--wheel-radius);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(0, 0, 0, 0.015);
  padding: clamp(24px, 4vw, 36px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.wheel-tool-page .category-insight:hover {
  transform: translateY(-2px) scale(1.005);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
  border-color: rgba(37, 99, 235, 0.15);
}
.wheel-tool-page .category-insight h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: -0.025em;
}
.wheel-tool-page .category-insight p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}
.wheel-tool-page .insight-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.wheel-tool-page .insight-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.04);
  border-radius: 10px;
  background: #ffffff; /* Floating white card over tinted background */
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.wheel-tool-page .insight-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  border-color: rgba(37, 99, 235, 0.12);
}
.wheel-tool-page .insight-marker {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.1);
}
.wheel-tool-page .insight-marker svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
  display: block;
}
.wheel-tool-page .insight-marker.green { 
  background: #ecfdf5; 
  color: #047857;
  box-shadow: 0 2px 4px rgba(4, 120, 87, 0.1);
}
.wheel-tool-page .insight-marker.rose { 
  background: #fff1f2; 
  color: #be123c;
  box-shadow: 0 2px 4px rgba(190, 18, 60, 0.1);
}
.wheel-tool-page .insight-item h3 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 800;
}
.wheel-tool-page .insight-item p {
  font-size: 0.94rem;
  line-height: 1.62;
  margin: 0;
  color: #475569;
}

/* FAQ Section */
.wheel-tool-page .home-faq-section {
  padding-top: 0;
  margin-bottom: 60px; /* Safe margin to clear bottom floating cookie banners */
}
.wheel-tool-page .home-faq-section .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.wheel-tool-page .faq-item {
  position: relative;
  min-width: 0;
  min-height: 156px;
  height: 100%;
  padding: 24px 24px 24px 26px;
  border: 1px solid var(--wheel-border-subtle);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.02), 0 1px 2px rgba(0, 0, 0, 0.005);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.wheel-tool-page .faq-item::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--wheel-primary);
  opacity: 0.8;
}
.wheel-tool-page .faq-item:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.06), 0 4px 10px rgba(0, 0, 0, 0.02);
}
.wheel-tool-page .faq-item h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.wheel-tool-page .faq-item p {
  margin: 0;
  color: #475569; /* Highly readable contrast */
  line-height: 1.7;
  font-size: 14.5px;
}

.wheel-tool-page .wheel-section-header {
  margin-bottom: 24px;
}
.wheel-tool-page .wheel-section-header .section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.25;
}
.wheel-tool-page .wheel-section-header p {
  margin: 0;
  color: #475569;
  font-size: clamp(14.5px, 1.8vw, 16px);
  line-height: 1.62;
  max-width: 780px;
}

@media (max-width: 980px) {
  .wheel-tool-page .info-band,
  .wheel-tool-page .category-insight {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .wheel-tool-page .insight-list,
  .wheel-tool-page .home-faq-section .faq-grid {
    grid-template-columns: 1fr;
  }
  .wheel-tool-page .info-list li {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .wheel-tool-page .info-check {
    width: 26px;
    height: 26px;
  }
}

.ts-wheel-tool {
  --wheel-primary: #2563eb;
  --wheel-primary-hover: #1d4ed8;
  --wheel-bg-subtle: #f8fafc;
  --wheel-border-subtle: rgba(15, 23, 42, 0.06);
  --wheel-shadow-card: 0 12px 36px rgba(15, 23, 42, 0.03);
  --wheel-shadow-card-hover: 0 20px 48px rgba(15, 23, 42, 0.065);
  --wheel-radius: 10px;
  --wheel-transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  display: block;
  width: 100%;
  margin-top: 0;
  margin-bottom: 36px;
}

/* Two-column layout: Wheel on the left/center (hero), panels on the right */
.ts-wheel-tool .wheel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 420px);
  gap: 36px;
  align-items: start;
  margin-top: 10px;
  margin-bottom: 40px;
}

/* Sticky layout on desktop to keep the visual hero persistent */
@media (min-width: 821px) {
  .ts-wheel-tool .wheel-canvas-wrap {
    position: sticky;
    top: 36px;
    z-index: 10;
  }
}

/* Wheel visual container wrap - Unboxed, naturally floating */
.ts-wheel-tool .wheel-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent !important; /* Unboxed, transparent bg */
  border: none !important;
  box-shadow: none !important;
  padding: 16px 0;
  min-height: 520px;
  position: relative;
}

/* Soft ambient radial glow backdrop behind the canvas */
.ts-wheel-tool .wheel-canvas-wrap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.ts-wheel-tool .wheel-canvas-container {
  position: relative;
  width: 100%;
  max-width: 580px; /* Enlarge visual scale of the hero centerpiece */
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1440px) {
  .ts-wheel-tool .wheel-canvas-container {
    max-width: 660px; /* Enhanced desktop visual scale */
  }
}

.ts-wheel-tool #wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  display: block;
  user-select: none;
  box-shadow: 
    0 24px 60px rgba(15, 23, 42, 0.08), 
    0 6px 20px rgba(15, 23, 42, 0.04); /* Premium soft shadow under wheel */
}

/* Custom Map Pin pointer with steering wheel cutout and rainbow gradient */
.ts-wheel-tool .wheel-pointer {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: 44px;
  height: 57px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.18));
  z-index: 10;
  transform-origin: 50% 38.5%; /* Center of circular steering wheel head */
  transition: transform 0.05s ease-out;
}

/* Visual Control Actions Row below the wheel */
.ts-wheel-tool .wheel-control-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 4vh, 36px); /* Adaptive gap below the wheel */
  width: 100%;
  position: relative;
  z-index: 10;
}

/* Premium styled control buttons */
.ts-wheel-tool .wheel-control-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 
    0 4px 14px rgba(15, 23, 42, 0.05), 
    0 1px 3px rgba(15, 23, 42, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.15s ease, 
              border-color 0.15s ease, 
              box-shadow 0.2s ease,
              color 0.15s ease;
  user-select: none;
}

.ts-wheel-tool .wheel-control-action-btn svg {
  width: 15px;
  height: 15px;
  color: #64748b; /* Sleek slate icon color */
  transition: color 0.15s ease;
  flex-shrink: 0;
}

/* Hover lift on desktop with brand blue tint */
@media (hover: hover) {
  .ts-wheel-tool .wheel-control-action-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
    border-color: rgba(37, 99, 235, 0.25);
    color: #1e40af;
    box-shadow: 
      0 8px 20px rgba(37, 99, 235, 0.08), 
      0 2px 4px rgba(37, 99, 235, 0.03);
  }
  .ts-wheel-tool .wheel-control-action-btn:hover svg {
    color: #2563eb;
  }
}

/* Active press state */
.ts-wheel-tool .wheel-control-action-btn:active {
  transform: translateY(1px) !important;
  background: #f0f6ff !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  box-shadow: 
    0 2px 4px rgba(37, 99, 235, 0.04), 
    inset 0 1px 2px rgba(37, 99, 235, 0.08) !important;
}

/* Center HTML SPIN button layered cleanly - Tactical design */
.ts-wheel-tool .wheel-spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  color: #0f172a;
  border: 6px solid #ffffff;
  box-shadow: 
    0 0 0 1px rgba(15, 23, 42, 0.08), /* Outer border ring */
    0 12px 28px rgba(15, 23, 42, 0.14), /* Soft floating shadow */
    0 4px 10px rgba(15, 23, 42, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.95); /* Tactile inner bezel shine */
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}

.ts-wheel-tool .wheel-spin-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  box-shadow: 
    0 0 0 1px rgba(37, 99, 235, 0.12),
    0 16px 36px rgba(15, 23, 42, 0.18),
    0 6px 14px rgba(15, 23, 42, 0.10),
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
}

.ts-wheel-tool .wheel-spin-btn:active {
  transform: translate(-50%, -50%) scale(0.94);
  background: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  box-shadow: 
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.12),
    inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ts-wheel-tool .wheel-spin-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  background: #f8fafc;
  color: var(--muted);
  border-color: #cbd5e1;
  box-shadow: none;
}

/* Cards on the right panel - Premium SaaS Style with Color Tinting */
.ts-wheel-tool .wheel-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ts-wheel-tool .wheel-card {
  background: #ffffff;
  border: 1px solid var(--wheel-border-subtle);
  border-radius: var(--wheel-radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, border-top-color 0.25s ease;
}

/* Individual card gradients and top borders */
.ts-wheel-tool .wheel-card.wheel-card-entries {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-top: 4px solid #2563eb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
}
.ts-wheel-tool .wheel-card.wheel-card-entries:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.08), 0 4px 12px rgba(37, 99, 235, 0.02);
  border-color: rgba(37, 99, 235, 0.20);
  border-top-color: #2563eb;
}

.ts-wheel-tool .wheel-card.wheel-card-settings {
  background: linear-gradient(135deg, #ffffff 0%, #f6f5ff 100%);
  border-top: 4px solid #6366f1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
}
.ts-wheel-tool .wheel-card.wheel-card-settings:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.08), 0 4px 12px rgba(99, 102, 241, 0.02);
  border-color: rgba(99, 102, 241, 0.20);
  border-top-color: #6366f1;
}

.ts-wheel-tool .wheel-card.wheel-card-results {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-top: 4px solid #10b981;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
}
.ts-wheel-tool .wheel-card.wheel-card-results:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.20);
  border-top-color: #10b981;
}

.ts-wheel-tool .wheel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  transition: border-color 0.25s ease;
}

/* Compact button layout for card header controls (resolves Copy All overlap) */
.ts-wheel-tool .wheel-card-header .wheel-btn-small {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12.5px;
  width: auto;
}
.ts-wheel-tool .wheel-card-entries .wheel-card-header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
}
.ts-wheel-tool .wheel-card-settings .wheel-card-header {
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
}
.ts-wheel-tool .wheel-card-results .wheel-card-header {
  border-bottom: 1px solid rgba(16, 185, 129, 0.08);
}

.ts-wheel-tool .wheel-card-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-wheel-tool .wheel-card-entries .wheel-card-header h2 {
  color: #1e40af; /* Rich royal blue */
}
.ts-wheel-tool .wheel-card-settings .wheel-card-header h2 {
  color: #3730a3; /* Rich indigo */
}
.ts-wheel-tool .wheel-card-results .wheel-card-header h2 {
  color: #065f46; /* Rich emerald green */
}
.ts-wheel-tool .wheel-card-header h2 svg {
  color: inherit;
  opacity: 0.85;
}

.ts-wheel-tool textarea {
  width: 100%;
  height: 180px;
  padding: 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  color: var(--text);
  outline: none;
  border: 1px solid rgba(37, 99, 235, 0.15);
  background: #ffffff;
  box-shadow: inset 0 1.5px 3px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ts-wheel-tool textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08), inset 0 1.5px 3px rgba(15, 23, 42, 0.03);
}

.ts-wheel-tool textarea::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.ts-wheel-tool textarea::-webkit-scrollbar-track {
  background: transparent;
}
.ts-wheel-tool textarea::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.12);
  border-radius: 4px;
}
.ts-wheel-tool textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.22);
}

/* Panel actions row */
.ts-wheel-tool .wheel-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.ts-wheel-tool .wheel-btn-small {
  flex: 1 1 calc(33.333% - 10px);
  min-height: 40px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--wheel-transition);
}

.ts-wheel-tool .wheel-btn-small svg {
  width: 14px;
  height: 14px;
  color: inherit;
  flex-shrink: 0;
}

.ts-wheel-tool .wheel-btn-small:hover {
  background: var(--wheel-bg-subtle);
  color: var(--text);
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.ts-wheel-tool .wheel-btn-small:active {
  transform: translateY(0.5px);
  box-shadow: none;
}

.ts-wheel-tool .wheel-btn-small.wheel-btn-danger {
  background: #fff5f5;
  color: #c53030;
  border-color: #feb2b2;
}

.ts-wheel-tool .wheel-btn-small.wheel-btn-danger:hover {
  background: #fed7d7;
  color: #9b2c2c;
  border-color: #fc8181;
}

/* Reset and Clear buttons flex nicely on the second row */
.ts-wheel-tool .wheel-btn-small[id="wheel-action-clear"],
.ts-wheel-tool .wheel-btn-small[id="wheel-action-reset"] {
  flex: 1 1 calc(50% - 10px);
}

/* Preset Quick Chips */
.ts-wheel-tool .wheel-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 4px;
}

.ts-wheel-tool .wheel-chip {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 750;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: var(--wheel-transition);
}

.ts-wheel-tool .wheel-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--text);
  transform: translateY(-1px);
}

.ts-wheel-tool .wheel-chip:active {
  transform: translateY(0.5px);
}

/* Settings UI grid */
.ts-wheel-tool .wheel-settings-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ts-wheel-tool .wheel-setting-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted-strong);
}

.ts-wheel-tool .wheel-setting-row span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-wheel-tool .wheel-setting-row input[type="range"] {
  width: 100%;
  accent-color: var(--wheel-primary);
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.ts-wheel-tool .wheel-toggle-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.ts-wheel-tool .wheel-toggle-row input[type="checkbox"] {
  width: 40px;
  height: 22px;
  position: relative;
  appearance: none;
  background: #cbd5e1;
  outline: none;
  border-radius: 11px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ts-wheel-tool .wheel-toggle-row input[type="checkbox"]:checked {
  background: var(--wheel-primary);
}

.ts-wheel-tool .wheel-toggle-row input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.ts-wheel-tool .wheel-toggle-row input[type="checkbox"]:checked::before {
  transform: translateX(18px);
}

.ts-wheel-tool .wheel-settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.ts-wheel-tool .wheel-btn-secondary {
  padding: 12px 16px; /* Larger, premium sizing */
  font-size: 13.5px;
  font-weight: 800;
  border-radius: var(--wheel-radius);
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: center;
  transition: var(--wheel-transition);
}

.ts-wheel-tool .wheel-btn-secondary:hover {
  background: var(--wheel-bg-subtle);
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.04);
}

.ts-wheel-tool .wheel-btn-secondary:active {
  transform: translateY(0.5px);
}

/* Results / History List */
.ts-wheel-tool .wheel-results-list {
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 6px;
  background: var(--wheel-bg-subtle);
}

.ts-wheel-tool .wheel-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  background: #ffffff;
  margin-bottom: 4px;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.ts-wheel-tool .wheel-result-item:last-child {
  margin-bottom: 0;
}

.ts-wheel-tool .wheel-result-item:hover {
  transform: translateX(2px);
  background: #fafafb;
}

.ts-wheel-tool .wheel-result-item .result-index {
  color: var(--muted);
  font-weight: 750;
  margin-right: 8px;
}

.ts-wheel-tool .wheel-result-item .result-name {
  font-weight: 800;
  color: var(--text);
  flex-grow: 1;
}

.ts-wheel-tool .wheel-result-item .result-time {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.ts-wheel-tool .wheel-results-empty {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 24px;
}

/* Trust Line Text styling */
.ts-wheel-tool .wheel-trust-line {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}

.ts-wheel-tool .wheel-trust-line svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Modal Overlay for Winner Announcement */
.wheel-tool-page .ts-wheel-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wheel-tool-page .ts-wheel-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wheel-tool-page .ts-wheel-modal {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  width: 90%;
  max-width: 440px;
  padding: 36px;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wheel-tool-page .ts-wheel-modal-overlay.active .ts-wheel-modal {
  transform: scale(1);
}

.wheel-tool-page .ts-wheel-modal h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-strong);
  margin: 0 0 8px;
  font-weight: 800;
}

.wheel-tool-page .ts-wheel-modal .winner-display {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--wheel-primary);
  margin: 18px 0 26px;
  word-break: break-word;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.wheel-tool-page .ts-wheel-modal .modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wheel-tool-page .ts-wheel-modal .modal-btn-primary {
  width: 100%;
  padding: 13px;
  font-size: 15px;
  font-weight: 850;
  border-radius: var(--wheel-radius);
  background: var(--wheel-primary);
  color: #ffffff;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.15);
  transition: var(--wheel-transition);
}

.wheel-tool-page .ts-wheel-modal .modal-btn-primary:hover {
  background: var(--wheel-primary-hover);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.wheel-tool-page .ts-wheel-modal .modal-btn-primary:active {
  transform: translateY(0.5px);
}

.wheel-tool-page .ts-wheel-modal .modal-btn-secondary {
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 750;
  border-radius: var(--wheel-radius);
  background: #ffffff;
  color: #c53030;
  border: 1px solid #feb2b2;
  cursor: pointer;
  transition: var(--wheel-transition);
}

.wheel-tool-page .ts-wheel-modal .modal-btn-secondary:hover {
  background: #fff5f5;
  border-color: #fc8181;
  transform: translateY(-1px);
}

.wheel-tool-page .ts-wheel-modal .modal-btn-close {
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 750;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
  text-decoration: underline;
}

.wheel-tool-page .ts-wheel-modal .modal-btn-close:hover {
  color: var(--text);
}

@media (max-width: 480px) {
  .wheel-tool-page .ts-wheel-modal {
    padding: 24px 16px;
  }
  .wheel-tool-page .ts-wheel-modal .winner-display {
    font-size: 1.85rem;
    margin: 12px 0 20px;
  }
}

/* Landing title Badges row below H1 */
.wheel-tool-page .wheel-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.wheel-tool-page .wheel-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: var(--muted-strong);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.wheel-tool-page .wheel-badge-item.active {
  background: #eef5ff;
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.14);
}

/* Scoped Related Grid for Placeholder Cards */
.wheel-tool-page .ts-wheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.wheel-tool-page .ts-wheel-placeholder-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--wheel-border-subtle);
  border-radius: var(--wheel-radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, border-top-color 0.25s ease;
}

.wheel-tool-page .ts-wheel-placeholder-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07), 0 4px 10px rgba(0, 0, 0, 0.02);
  border-color: rgba(15, 23, 42, 0.12);
}

.wheel-tool-page .ts-wheel-placeholder-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.wheel-tool-page .ts-wheel-placeholder-card p {
  font-size: 13.5px;
  color: #334155; /* Higher accessibility contrast */
  line-height: 1.6;
  margin: 0;
}

.wheel-tool-page .ts-wheel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.wheel-tool-page .ts-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 4px 10px rgba(15, 23, 42, 0.03), 
    0 1px 2px rgba(15, 23, 42, 0.01);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.15s ease, 
              border-color 0.15s ease, 
              box-shadow 0.2s ease, 
              color 0.15s ease;
  user-select: none;
}

.wheel-tool-page .ts-card-btn svg {
  width: 14px;
  height: 14px;
  color: #64748b;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
  flex-shrink: 0;
}

/* Hover effects with tint matched to each card's theme */
@media (hover: hover) {
  .wheel-tool-page .ts-card-btn:hover {
    transform: translateY(-1.5px);
    box-shadow: 
      0 6px 14px rgba(15, 23, 42, 0.06), 
      0 2px 4px rgba(15, 23, 42, 0.02);
  }
  .wheel-tool-page .ts-card-btn:hover svg {
    transform: translateX(2.5px);
  }
  
  .wheel-tool-page .ts-card-nfl .ts-card-btn:hover {
    background: rgba(100, 116, 139, 0.07);
    border-color: rgba(100, 116, 139, 0.3);
    color: #334155;
  }
  .wheel-tool-page .ts-card-nfl .ts-card-btn:hover svg {
    color: #334155;
  }
  
  .wheel-tool-page .ts-card-classroom .ts-card-btn:hover {
    background: rgba(217, 119, 6, 0.07);
    border-color: rgba(217, 119, 6, 0.3);
    color: #b45309;
  }
  .wheel-tool-page .ts-card-classroom .ts-card-btn:hover svg {
    color: #b45309;
  }
  
  .wheel-tool-page .ts-card-yesno .ts-card-btn:hover {
    background: rgba(13, 148, 136, 0.07);
    border-color: rgba(13, 148, 136, 0.3);
    color: #0d9488;
  }
  .wheel-tool-page .ts-card-yesno .ts-card-btn:hover svg {
    color: #0d9488;
  }
  
  .wheel-tool-page .ts-card-decision .ts-card-btn:hover {
    background: rgba(124, 58, 237, 0.07);
    border-color: rgba(124, 58, 237, 0.3);
    color: #7c3aed;
  }
  .wheel-tool-page .ts-card-decision .ts-card-btn:hover svg {
    color: #7c3aed;
  }
  
  .wheel-tool-page .ts-card-giveaway .ts-card-btn:hover {
    background: rgba(225, 29, 72, 0.07);
    border-color: rgba(225, 29, 72, 0.3);
    color: #e11d48;
  }
  .wheel-tool-page .ts-card-giveaway .ts-card-btn:hover svg {
    color: #e11d48;
  }
}

/* Active tap press state */
.wheel-tool-page .ts-card-btn:active {
  transform: translateY(0.5px);
  box-shadow: 
    0 2px 4px rgba(15, 23, 42, 0.03), 
    inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Individual card customizations */
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-nfl {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-top: 4px solid #64748b;
}
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-nfl .ts-wheel-coming-soon {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

.wheel-tool-page .ts-wheel-placeholder-card.ts-card-classroom {
  background: linear-gradient(135deg, #ffffff 0%, #fffdf5 100%);
  border-top: 4px solid #d97706;
}
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-classroom .ts-wheel-coming-soon {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.wheel-tool-page .ts-wheel-placeholder-card.ts-card-yesno {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border-top: 4px solid #0d9488;
}
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-yesno .ts-wheel-coming-soon {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #99f6e4;
}

.wheel-tool-page .ts-wheel-placeholder-card.ts-card-decision {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border-top: 4px solid #7c3aed;
}
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-decision .ts-wheel-coming-soon {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.wheel-tool-page .ts-wheel-placeholder-card.ts-card-giveaway {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
  border-top: 4px solid #e11d48;
}
.wheel-tool-page .ts-wheel-placeholder-card.ts-card-giveaway .ts-wheel-coming-soon {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.wheel-tool-page .ts-wheel-coming-soon {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}

/* Fullscreen Mode override - Intentionally Styled Overlay */
.ts-wheel-tool:-webkit-full-screen {
  background: #f7f8fb !important;
  padding: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ts-wheel-tool:fullscreen {
  background: #f7f8fb !important;
  padding: 24px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ts-wheel-tool:fullscreen .wheel-layout,
.ts-wheel-tool:-webkit-full-screen .wheel-layout {
  grid-template-columns: 1fr;
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

.ts-wheel-tool:fullscreen .wheel-canvas-wrap,
.ts-wheel-tool:-webkit-full-screen .wheel-canvas-wrap {
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0;
  min-height: auto;
}

.ts-wheel-tool:fullscreen .wheel-canvas-container,
.ts-wheel-tool:-webkit-full-screen .wheel-canvas-container {
  max-width: min(520px, 72vh);
}

.ts-wheel-tool:fullscreen .wheel-panel,
.ts-wheel-tool:-webkit-full-screen .wheel-panel {
  display: none; /* Hide panel sidebar during presentation screen */
}

/* Confetti Canvas overlay */
.wheel-tool-page #wheel-confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Fullscreen Specific Z-Indexes and Positioning for Modals & Confetti */
.ts-wheel-tool:fullscreen #ts-wheel-modal-overlay,
.ts-wheel-tool:-webkit-full-screen #ts-wheel-modal-overlay {
  position: absolute !important;
  z-index: 2147483647 !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

.ts-wheel-tool:fullscreen #wheel-confetti-canvas,
.ts-wheel-tool:-webkit-full-screen #wheel-confetti-canvas {
  position: absolute !important;
  z-index: 2147483646 !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

/* Responsive Media Queries & Mobile Optimizations */
@media (max-width: 820px) {
  .wheel-tool-page .wheel-intro {
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .wheel-tool-page .wheel-intro h1 {
    font-size: clamp(26px, 6vw, 32px);
  }
  .wheel-tool-page .wheel-intro .subtitle {
    margin-bottom: 8px;
  }

  .ts-wheel-tool .wheel-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 0;
    margin-bottom: 24px;
  }
  
  .ts-wheel-tool .wheel-canvas-wrap {
    min-height: auto;
    padding: 8px 0;
  }
  
  .ts-wheel-tool .wheel-canvas-container {
    width: 94%;
    max-width: min(88vw, 76vh); /* Constrain by viewport height in landscape/portrait */
  }
  
  .ts-wheel-tool .wheel-spin-btn {
    width: 72px;
    height: 72px;
    font-size: 14px;
    border-width: 5px;
  }

  /* Show and Style Mobile Quick Actions bar */
  .ts-wheel-tool .wheel-control-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 94%;
    max-width: 320px;
    margin-top: 18px;
  }

  .ts-wheel-tool .wheel-control-action-btn {
    flex: 1;
    padding: 11px 16px;
    font-size: 13px;
  }

  .ts-wheel-tool .wheel-control-action-btn svg {
    width: 14px;
    height: 14px;
  }

  /* Tighten padding in mobile fullscreen to give maximum screen height to the canvas */
  .ts-wheel-tool:fullscreen,
  .ts-wheel-tool:-webkit-full-screen {
    padding: 16px !important;
  }

  .ts-wheel-tool:fullscreen .wheel-canvas-container,
  .ts-wheel-tool:-webkit-full-screen .wheel-canvas-container {
    max-width: min(92vw, 70vh);
  }
}

@media (max-width: 480px) {
  .ts-wheel-tool .wheel-canvas-wrap {
    padding: 8px 0;
  }
  
  .ts-wheel-tool .wheel-spin-btn {
    width: 66px;
    height: 66px;
    border-width: 4.5px;
    font-size: 13px;
  }
  
  .ts-wheel-tool .wheel-btn-small {
    flex: 1 1 calc(50% - 10px);
  }
  
  .ts-wheel-tool .wheel-btn-small.wheel-btn-danger,
  .ts-wheel-tool .wheel-btn-small[id="wheel-action-reset"] {
    flex: 1 1 100%;
  }
  
  .ts-wheel-tool .wheel-settings-actions {
    grid-template-columns: 1fr;
  }
}

/* Landscape fullscreen/low height viewport optimizations (prevent vertical scrolling) */
@media (max-height: 480px) and (orientation: landscape) {
  .ts-wheel-tool:fullscreen,
  .ts-wheel-tool:-webkit-full-screen {
    padding: 8px !important;
  }
  
  .ts-wheel-tool:fullscreen .wheel-control-actions,
  .ts-wheel-tool:-webkit-full-screen .wheel-control-actions {
    margin-top: 10px !important;
    gap: 8px !important;
  }
  
  .ts-wheel-tool:fullscreen .wheel-control-action-btn,
  .ts-wheel-tool:-webkit-full-screen .wheel-control-action-btn {
    padding: 6px 14px !important;
    font-size: 11.5px !important;
    min-height: 28px !important;
  }
  
  .ts-wheel-tool:fullscreen .wheel-control-action-btn svg,
  .ts-wheel-tool:-webkit-full-screen .wheel-control-action-btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}
