/* /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 rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.03), 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 4.5px 4.5px 0;
  background: linear-gradient(180deg, #2563eb, #8b5cf6);
  opacity: 0.95;
}
.wheel-tool-page .faq-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 42px rgba(37, 99, 235, 0.08), 0 4px 10px rgba(0, 0, 0, 0.02);
}
.wheel-tool-page .faq-item h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 850;
  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-hub .ts-card-btn:hover {
    background: rgba(37, 99, 235, 0.07);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1e40af;
  }
  .wheel-tool-page .ts-card-hub .ts-card-btn:hover svg {
    color: #2563eb;
  }
  
  .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-hub {
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
  border-top: 4px solid #2563eb;
}

.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;
  }
}/* ==========================================================================
   WHEEL CATEGORY HUB PAGE OVERRIDES & POLISH
   ========================================================================== */

/* Hero layout & vertical centering on desktop */
.wheel-hub .page-hero {
  align-items: center !important;
}

.wheel-hub .page-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
}

@media (min-width: 1024px) {
  .wheel-hub .page-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr) !important;
    gap: 48px !important;
  }
  
  .wheel-hub .hero-panel {
    margin-top: 10px !important; /* visually align with the main H1 heading text baseline */
  }
}

.wheel-hub .hero-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(15, 23, 42, 0.085) !important;
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.1), 0 10px 18px rgba(15, 23, 42, 0.035), 0 2px 0 rgba(255, 255, 255, 0.78) inset !important;
  padding: 28px 24px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.035), rgba(255, 255, 255, 0) 42%), #ffffff !important;
}
.wheel-hub .hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #8b5cf6, rgba(37, 99, 235, 0)) !important;
  pointer-events: none;
}

.wheel-hub .hero-panel-head .hero-tool-icon {
  background: rgba(37, 99, 235, 0.06) !important;
  width: 54px !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  border: 1px solid rgba(37, 99, 235, 0.12) !important;
}

/* Hero tool list icon color variants */
.wheel-hub .hero-tool-icon.blue {
  background: #eff6ff !important;
  color: #2563eb !important;
}
.wheel-hub .hero-tool-icon.teal {
  background: #f0fdfa !important;
  color: #0d9488 !important;
}
.wheel-hub .hero-tool-icon.gold {
  background: #fffbeb !important;
  color: #b45309 !important;
}

.wheel-hub .hero-actions .btn {
  border: 0;
  font-family: inherit;
}

.wheel-hub .hero-actions .btn-secondary {
  border: 1px solid var(--line);
}
.ts-wheel-placeholder-card {
  overflow: hidden;
}

.ts-wheel-placeholder-card .card-topline {
  margin-bottom: 4px;
}

.ts-wheel-placeholder-card .card-icon {
  width: 40px;
  height: 40px;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.wheel-icon-blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.wheel-icon-gold {
  background: #fff7ed;
  color: #b45309;
}

.wheel-icon-teal {
  background: #ecfdf5;
  color: #047857;
}

.wheel-icon-purple {
  background: #f5f3ff;
  color: #6d28d9;
}

.wheel-icon-rose {
  background: #fff1f2;
  color: #be123c;
}

.wheel-icon-gray {
  background: #f1f5f9;
  color: #334155;
}

.ts-wheel-placeholder-card .card-badge {
  color: #334155;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.ts-wheel-placeholder-card .card-desc {
  margin-bottom: 0;
}

.ts-wheel-placeholder-card .ts-wheel-card-footer {
  gap: 10px;
  padding-top: 16px;
}

.ts-wheel-placeholder-card .ts-card-btn {
  width: auto;
  min-width: 152px;
  min-height: 40px;
  border-radius: 8px;
  border-color: rgba(11, 111, 246, 0.92);
  background: linear-gradient(180deg, #0b6ff6, #075fdd);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 111, 246, 0.18);
}

.ts-wheel-placeholder-card .ts-card-btn svg {
  color: currentColor;
}

.ts-wheel-placeholder-card .ts-card-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

@media (hover: hover) {
  .ts-wheel-placeholder-card .ts-card-btn:hover {
    transform: translateY(-1.5px);
    border-color: #075fdd !important;
    background: linear-gradient(180deg, #075fdd, #064fb8) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(11, 111, 246, 0.24) !important;
  }
}
.wheel-hub .wheel-hero-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 54%, rgba(37, 99, 235, 0.16), transparent 45%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(16, 185, 129, 0.06)),
    #f8fbff;
}

.wheel-hub .wheel-hero-preview-disc {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: conic-gradient(#2563eb 0 20%, #10b981 20% 38%, #f59e0b 38% 56%, #f43f5e 56% 74%, #8b5cf6 74% 88%, #0ea5e9 88% 100%);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.16), inset 0 0 0 4px rgba(255, 255, 255, 0.92);
}

.wheel-hub .wheel-hero-preview-disc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 3px solid #0f172a;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.wheel-hub .wheel-hero-preview-pointer {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 11px solid #0f172a;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.18));
}

.wheel-hub .wheel-feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: -6px -6px 18px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0) 34%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0) 55%),
    #f8fbff;
}

.wheel-hub .wheel-feature-disc {
  position: relative;
  width: min(138px, 48vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 20%, #10b981 20% 38%, #f59e0b 38% 56%, #f43f5e 56% 74%, #8b5cf6 74% 88%, #0ea5e9 88% 100%);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18), inset 0 0 0 8px rgba(255, 255, 255, 0.9);
}

.wheel-hub .wheel-feature-disc::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 5px solid #0f172a;
  transform: translate(-50%, -50%);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.22);
}

.wheel-hub .wheel-feature-pointer {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #0f172a;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.22));
}

/* Featured Wheel Section (Option B Two-Column Grid) */
.wheel-hub .wheel-featured-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 24px;
}

@media (max-width: 820px) {
  .wheel-hub .wheel-featured-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Flagship Featured Card Styling */
.wheel-hub .featured-flagship-card {
  padding: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  border-top: 5px solid #2563eb !important;
  background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%) !important;
  box-shadow: 
    0 12px 30px rgba(37, 99, 235, 0.035), 
    0 1px 3px rgba(0, 0, 0, 0.015),
    0 6px 18px rgba(37, 99, 235, 0.015) !important;
  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 !important;
}

.wheel-hub .featured-flagship-card:hover {
  transform: translateY(-4px) scale(1.01) !important;
  box-shadow: 
    0 20px 42px rgba(37, 99, 235, 0.08), 
    0 4px 10px rgba(0, 0, 0, 0.02),
    0 10px 24px rgba(37, 99, 235, 0.03) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.wheel-hub .featured-flagship-card h3 {
  font-size: 1.45rem !important;
  margin-bottom: 6px !important;
}

.wheel-hub .featured-flagship-card p {
  font-size: 15px !important;
  line-height: 1.68 !important;
}

/* Right-side Checklist Panel */
.wheel-hub .featured-checklist-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.075);
  border-top: 5px solid #8b5cf6;
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  box-shadow: 
    0 12px 30px rgba(139, 92, 246, 0.035), 
    0 1px 3px rgba(0, 0, 0, 0.015),
    0 6px 18px rgba(139, 92, 246, 0.015);
  box-sizing: border-box;
  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-hub .featured-checklist-panel:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 
    0 20px 42px rgba(139, 92, 246, 0.08), 
    0 4px 10px rgba(0, 0, 0, 0.02),
    0 10px 24px rgba(139, 92, 246, 0.03);
  border-color: rgba(139, 92, 246, 0.2);
}

.wheel-hub .featured-checklist-panel h3 {
  font-size: 1.15rem;
  font-weight: 850;
  margin: 0;
  color: #0f172a;
  letter-spacing: -0.015em;
}

.wheel-hub .featured-checklist-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wheel-hub .featured-checklist-list li {
  display: flex;
  gap: 14px;
  align-items: start;
  transition: transform 0.2s ease;
}

.wheel-hub .featured-checklist-list li:hover {
  transform: translateX(3px);
}

.wheel-hub .featured-checklist-list li .check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef5ff;
  color: #2563eb;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.wheel-hub .featured-checklist-list li .check-icon svg {
  width: 13px;
  height: 13px;
  stroke-width: 3.5;
}

.wheel-hub .featured-checklist-list li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wheel-hub .featured-checklist-list li strong {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.wheel-hub .featured-checklist-list li span {
  font-size: 13px;
  color: #59677a;
  line-height: 1.4;
}
/* Premium card layout and responsive overrides */
.ts-wheel-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 24px !important;
  margin-top: 28px !important;
}

.ts-wheel-grid .ts-card-hub {
  --wheel-card-accent: #2563eb;
  --wheel-card-tint: #f4f8ff;
}

.ts-wheel-grid .ts-card-classroom {
  --wheel-card-accent: #d97706;
  --wheel-card-tint: #fff8eb;
}

.ts-wheel-grid .ts-card-yesno {
  --wheel-card-accent: #0d9488;
  --wheel-card-tint: #effdfa;
}

.ts-wheel-grid .ts-card-decision {
  --wheel-card-accent: #7c3aed;
  --wheel-card-tint: #f6f2ff;
}

.ts-wheel-grid .ts-card-giveaway {
  --wheel-card-accent: #e11d48;
  --wheel-card-tint: #fff4f6;
}

.ts-wheel-grid .ts-card-nfl {
  --wheel-card-accent: #64748b;
  --wheel-card-tint: #f8fafc;
}

.ts-wheel-grid .ts-wheel-placeholder-card {
  border-radius: 8px !important;
  border-color: rgba(15, 23, 42, 0.075) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.075) !important;
  background: linear-gradient(180deg, var(--wheel-card-tint, #f8fbff) 0, #ffffff 58%) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055), 0 1px 3px rgba(0, 0, 0, 0.015) !important;
  height: 100%;
  box-sizing: border-box;
  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 !important;
}

.ts-wheel-grid .ts-wheel-placeholder-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--wheel-card-accent, #2563eb), rgba(37, 99, 235, 0.12), transparent 92%);
  pointer-events: none;
}

.ts-wheel-grid .ts-wheel-placeholder-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.085), 0 4px 10px rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.ts-wheel-grid .ts-card-btn {
  width: 100%;
}

/* Card Best For styles for both layout formats */
.card-best-for {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.card-best-for-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.35rem;
  color: #334155;
}
.card-best-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.card-best-for-tags li {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
}

/* Compact Best For list style for related wheels cards */
.card-best-for-compact {
  margin: 0.4rem 0 0;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.05);
}
.card-best-for-compact .card-best-for-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
  color: #334155;
}
.card-best-for-text {
  font-size: 0.78rem;
  margin: 0;
  color: #334155;
  line-height: 1.4;
  font-weight: 600;
}

.ts-wheel-placeholder-card {
  display: flex;
  flex-direction: column;
}
.ts-wheel-placeholder-card .ts-wheel-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}
/* Spacing Rhythm & Section Paddings */
.wheel-hub .section {
  padding: clamp(42px, 5vw, 64px) 0 !important;
  margin: 0 !important;
}

.wheel-hub .section.compact {
  padding: clamp(30px, 4vw, 46px) 0 !important;
  margin: 0 !important;
}

/* Lower Premium Content Blocks styling */
.wheel-hub .category-insight {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.08) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(255, 255, 255, 0) 42%), linear-gradient(180deg, #ffffff, #fbfdff) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06) !important;
}

.wheel-hub .category-insight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #8b5cf6, rgba(37, 99, 235, 0)) !important;
  pointer-events: none;
}

.wheel-hub .wheel-workflow-band {
  position: relative;
  overflow: hidden;
  border-color: rgba(37, 99, 235, 0.12) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(255, 255, 255, 0) 48%), #ffffff !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06) !important;
}

.wheel-hub .wheel-workflow-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #2563eb, rgba(139, 92, 246, 0.24)) !important;
  pointer-events: none;
}

/* Theme-tinted info-check indicators */
.wheel-hub .info-check {
  background: #eef5ff !important;
  color: #2563eb !important;
  box-shadow: 0 2px 5px rgba(37, 99, 235, 0.15) !important;
}

@media (max-width: 640px) {
  .wheel-hub .page-hero {
    gap: 28px !important;
  }

  .wheel-hub .hero-panel,
  .wheel-hub .featured-flagship-card,
  .wheel-hub .featured-checklist-panel {
    padding: 22px !important;
  }

  .wheel-hub .wheel-feature-visual {
    min-height: 132px;
    margin: -2px -2px 16px;
  }

  .wheel-hub .wheel-feature-disc {
    width: min(118px, 50vw);
  }

  .wheel-hub .ts-wheel-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-top: 22px !important;
  }

  .wheel-hub .ts-wheel-placeholder-card {
    padding: 22px !important;
  }

  .wheel-hub .ts-wheel-placeholder-card .ts-card-btn {
    width: 100%;
    min-width: 0;
  }
}
