:root {
  color-scheme: light;
  --color-canvas: #FFFDF5;
  --color-surface: #FFFFFF;
  --color-surface-soft: #FFF9EA;
  --color-border: #1E232A;
  --color-border-subtle: #EBE6D7;
  
  --color-text-primary: #1E232A;
  --color-text-secondary: #5A6270;
  --color-text-muted: #8E98A8;

  --color-orange: #FF5E36;
  --color-orange-soft: #FFF2EE;
  --color-blue: #3D5AFE;
  --color-blue-soft: #EEF2FF;
  --color-yellow: #FFD15C;
  --color-yellow-soft: #FFF9E6;
  --color-teal: #00BFA5;
  --color-teal-soft: #E0F2F1;

  --font-heading: 'Fredoka', cursive, system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-full: 9999px;
  --radius-card: 24px;
  --radius-button: 32px;
  --radius-input: 38px;

  --shadow-pop: 4px 4px 0px #1E232A;
  --shadow-pop-lg: 6px 6px 0px #1E232A;
  --shadow-card: 0 4px 20px rgba(30, 35, 42, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 80px 24px;
}

/* Nav */
.header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-sq {
  width: 44px;
  height: 44px;
  background-color: var(--color-orange);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px var(--color-border);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-primary);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill-tag {
  background-color: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0 60px 0;
}

@media (min-width: 900px) {
  .hero-section {
    grid-template-columns: 1.25fr 0.9fr;
  }
}

.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-orange-soft);
  border: 1.5px solid #FFD8CF;
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-orange);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw + 1rem, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--color-orange);
}

.hero-deck {
  font-size: 19px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 540px;
}

/* Search Box Pop Widget */
.search-widget {
  background: var(--color-surface);
  border: 2.5px solid var(--color-border);
  border-radius: 40px;
  padding: 6px 8px 6px 24px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-pop);
  max-width: 560px;
  margin-bottom: 32px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.search-widget:focus-within {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop-lg);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.mode-select {
  border: none;
  background: var(--color-surface-soft);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-right: 8px;
  outline: none;
  cursor: pointer;
}

.btn-pop {
  background-color: var(--color-blue);
  color: #FFFFFF;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-button);
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0px var(--color-border);
  transition: all 0.15s ease;
}

.btn-pop:hover {
  background-color: #2f49e0;
}

.btn-pop:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* Mascot Art Stage */
.hero-art-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.art-backdrop-circle {
  width: 380px;
  height: 380px;
  background-color: var(--color-yellow);
  border: 3px solid var(--color-border);
  border-radius: 50%;
  position: absolute;
  z-index: 1;
}

.art-svg-mascot {
  position: relative;
  z-index: 2;
  filter: drop-shadow(4px 8px 0px rgba(30, 35, 42, 0.15));
}

/* Live Progress State */
.progress-container {
  display: none;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-pop);
  margin-bottom: 40px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.progress-track {
  width: 100%;
  height: 14px;
  background-color: var(--color-surface-soft);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background-color: var(--color-orange);
  transition: width 0.3s ease;
}

.progress-status-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Results Showcase */
.results-section {
  display: none;
  margin-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow-pop);
}

.stat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  margin-top: 4px;
}

.stat-card.brilliant {
  background: var(--color-orange-soft);
  border-color: var(--color-orange);
}

.stat-card.brilliant .stat-num {
  color: var(--color-orange);
}

/* Moves Table Pop */
.table-container {
  background: var(--color-surface);
  border: 2.5px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}

.table-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--color-surface-soft);
}

.table-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.moves-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.moves-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: var(--color-text-secondary);
  border-bottom: 2px solid var(--color-border);
  background: #FAF8F2;
  font-size: 13px;
}

.moves-table td {
  padding: 16px 20px;
  border-bottom: 1.5px solid var(--color-border-subtle);
}

.moves-table tr:hover {
  background-color: var(--color-surface-soft);
}

.badge-brilliant-pop {
  display: inline-block;
  background-color: var(--color-orange);
  color: #FFFFFF;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 3px 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
}

/* Footer */
.app-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 2px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
