/* ==========================================================================
   LE SZE FEHÉR KARÁCSONY? - FŐ STÍLUSLAP
   Téli hangulat, Glassmorphism és Magas szintű reszponzivitás
   ========================================================================== */

:root {
  --font-title: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Színpaletta */
  --bg-deep-blue: #0b1120;
  --bg-twilight: #181d38;
  --ice-blue: #38bdf8;
  --ice-glow: rgba(56, 189, 248, 0.4);
  --snow-white: #f8fafc;
  --gold-warm: #fbbf24;
  --gold-glow: rgba(251, 191, 36, 0.35);

  /* Glassmorphism kártyák */
  --card-bg: rgba(13, 21, 38, 0.2);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-hover: rgba(56, 189, 248, 0.3);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --blur-amt: 8px;

  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-deep-blue);
  color: var(--snow-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: #0c1222;
}

/* --------------------------------------------------------------------------
   HÁTTÉR ÉS TÁJKÉP RÉTEG
   -------------------------------------------------------------------------- */
.scenery-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.scenery-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/background.jpg');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: brightness(0.92) contrast(1.05);
}

/* Lágy lila-kék esti gradiens réteg a tetején az olvashatóságért */
.scenery-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 85%, rgba(251, 191, 36, 0.08) 0%, transparent 45%),
    linear-gradient(to bottom,
      rgba(11, 17, 32, 0.85) 0%,
      rgba(11, 17, 32, 0.4) 40%,
      rgba(11, 17, 32, 0.7) 100%);
  mix-blend-mode: multiply;
}

/* A kis faház ablakának meleg pislákolása */
.window-glow {
  position: absolute;
  left: 50%;
  bottom: 24%;
  transform: translateX(-50%);
  width: 180px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.35) 0%, rgba(255, 140, 0, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  filter: blur(15px);
  animation: warmPulse 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes warmPulse {
  0% {
    opacity: 0.6;
    transform: translateX(-50%) scale(0.95);
  }

  50% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1.05);
  }

  100% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
}

/* Kéményfüst animáció a házikóból */
.chimney-smoke {
  position: absolute;
  left: 54%;
  bottom: 30%;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

.smoke-puff {
  position: absolute;
  background: radial-gradient(circle, rgba(230, 235, 255, 0.3) 0%, rgba(200, 210, 250, 0.05) 60%, transparent 100%);
  border-radius: 50%;
  filter: blur(4px);
  animation: driftSmoke 5s ease-out infinite;
}

@keyframes driftSmoke {
  0% {
    opacity: 0.5;
    transform: translate(0, 0) scale(0.6);
  }

  50% {
    opacity: 0.35;
    transform: translate(15px, -60px) scale(1.6);
  }

  100% {
    opacity: 0;
    transform: translate(35px, -140px) scale(2.8);
  }
}

/* Ünnepi Fényfüzérek Canvas réteg a háttérben lévő fenyőkön */
#lightsCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Csillagos égbolt Canvas réteg */
#starsCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60%;
  pointer-events: none;
}

/* Hóesés Canvas */
#snowCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   OLDAL ELRENDEZÉS ÉS TARTALOM
   -------------------------------------------------------------------------- */
.page-wrapper {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* --------------------------------------------------------------------------
   FEJLÉC ÉS CÍM
   -------------------------------------------------------------------------- */
.header {
  text-align: center;
  margin-bottom: 0.5rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #bae6fd;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.snowflake-icon {
  animation: spinSlow 12s linear infinite;
  display: inline-block;
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.main-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(56, 189, 248, 0.4), 0 4px 15px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.6rem;
}

.subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #cbd5e1;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* --------------------------------------------------------------------------
   GLASSMORPHISM KÁRTYÁK
   -------------------------------------------------------------------------- */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur-amt));
  -webkit-backdrop-filter: blur(var(--blur-amt));
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.15);
}

.glass-card h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   HERO KÁRTYA: ESÉLYMÉRŐ ÉS VISSZASZÁMLÁLÓ
   -------------------------------------------------------------------------- */
.hero-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), transparent);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.35rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7dd3fc;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px #38bdf8;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.8;
  }
}

.chance-meter-container {
  margin-bottom: 2.2rem;
}

.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.meter-label-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.meter-label {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e8f0;
}

/* Info piktogram gomb a modell részleteihez */
.info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-smooth);
}

.info-icon-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.45);
  transform: scale(1.08);
}

.info-icon-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.meter-percentage {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  color: #38bdf8;
  text-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.progress-track {
  width: 100%;
  height: 18px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #e0f2fe);
  border-radius: 9999px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: white;
  filter: blur(6px);
  opacity: 0.6;
}

/* Részletező dinamikus indikátorok a fő prognózis kártyán */
.prognosis-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.25rem;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition-smooth);
}

.breakdown-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.25);
}

.breakdown-item.interactive {
  cursor: pointer;
  position: relative;
}

.breakdown-item.interactive:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.sub-info-hint {
  font-size: 0.68rem;
  opacity: 0.8;
  margin-left: 2px;
}

.breakdown-label {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.breakdown-val {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.breakdown-val.phase {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: #bae6fd;
}

.breakdown-val.time {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
}

/* Felugró / lenyíló információs buborék a számítási modellhez */
.info-bubble-card {
  display: none;
  background: rgba(10, 18, 38, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  margin: 0.5rem 0 1.25rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.65), 0 0 20px rgba(56, 189, 248, 0.15);
  animation: infoBubbleSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  text-align: left;
}

.info-bubble-card.active {
  display: block;
}

@keyframes infoBubbleSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-bubble-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-bubble-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.info-bubble-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.info-bubble-card .chance-description {
  margin-top: 0;
  background: transparent;
  padding: 0;
  border-left: none;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.info-bubble-footer {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  color: #7dd3fc;
  opacity: 0.85;
}

/* Visszaszámláló doboz */
.countdown-wrapper {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.countdown-heading {
  font-size: 1.05rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.time-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.85rem 1.2rem;
  min-width: 80px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.time-val {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.time-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.4rem;
}

.time-separator {
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   IDŐJÁRÁS ÉS VÁROS VÁLASZTÓ
   -------------------------------------------------------------------------- */
.city-selector-bar {
  display: flex;
  gap: 0.8rem;
  margin: 1.2rem 0 1.5rem;
  flex-wrap: wrap;
}

.styled-select {
  flex: 1;
  min-width: 220px;
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.styled-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.refresh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #e0f2fe;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.refresh-btn:hover {
  background: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.refresh-btn:active {
  transform: scale(0.97);
}

.weather-current-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.weather-icon-temp {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}

.weather-emoji {
  font-size: 3.5rem;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.weather-temp {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.1;
}

.weather-condition {
  color: #94a3b8;
  font-size: 1rem;
}

.weather-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.2rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.25rem;
}

.detail-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
}

.detail-val.highlight {
  color: #38bdf8;
  font-size: 1.3rem;
}

/* --------------------------------------------------------------------------
   SZAVAZÁS SZEKCIÓ
   -------------------------------------------------------------------------- */
.vote-card {
  text-align: center;
}

.vote-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.vote-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.4rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.vote-btn .btn-emoji {
  font-size: 1.5rem;
}

.vote-btn.yes {
  background: rgba(2, 132, 199, 0.25);
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.vote-btn.yes:hover {
  background: rgba(2, 132, 199, 0.45);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}

.vote-btn.no {
  background: rgba(100, 116, 139, 0.25);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.vote-btn.no:hover {
  background: rgba(100, 116, 139, 0.45);
  box-shadow: 0 0 20px rgba(148, 163, 184, 0.25);
  transform: translateY(-2px);
}

.vote-results {
  margin-top: 1.5rem;
}

.vote-results.hidden {
  display: none;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
  text-align: left;
}

.result-label {
  width: 90px;
  font-weight: 600;
  font-size: 0.95rem;
}

.res-track {
  flex: 1;
  height: 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.res-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s ease-out;
}

.res-fill.yes {
  background: #38bdf8;
}

.res-fill.no {
  background: #94a3b8;
}

.res-pct {
  width: 45px;
  text-align: right;
  font-weight: 700;
  color: #f8fafc;
}

.vote-feedback {
  margin-top: 1rem;
  color: #38bdf8;
  font-weight: 500;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   TÖRTÉNELMI TUDÁSTÁR
   -------------------------------------------------------------------------- */
.info-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.info-block h3 {
  font-size: 1.1rem;
  color: #e0f2fe;
  margin-bottom: 0.5rem;
}

.info-block p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

.stats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.stats-list li {
  position: relative;
  padding-left: 1.4rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.stats-list li::before {
  content: '❄';
  position: absolute;
  left: 0;
  color: #38bdf8;
  font-size: 0.8rem;
  top: 3px;
}

/* --------------------------------------------------------------------------
   LÁBLÉC
   -------------------------------------------------------------------------- */
.footer {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  padding: 1.5rem 0;
}

.footer-sub {
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   HANGULAT ÉS HÓESÉS VEZÉRLŐPULT (Lebegő panel)
   -------------------------------------------------------------------------- */
.ambience-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
}

.control-panel.compact {
  padding: 0.8rem 1rem;
  border-radius: 16px;
  background: rgba(13, 21, 38, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.control-buttons {
  display: flex;
  gap: 0.4rem;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.4);
}

.pill-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.lights-control-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
}

.pill-btn.lights-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(224, 64, 251, 0.15);
  border-color: rgba(224, 64, 251, 0.35);
  color: #f5d0fe;
}

.pill-btn.lights-btn.active {
  background: rgba(224, 64, 251, 0.32);
  border-color: rgba(224, 64, 251, 0.6);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(224, 64, 251, 0.45);
}

.sound-control-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
}

.pill-btn.sound-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
  color: #fef3c7;
}

.pill-btn.sound-btn.playing {
  background: rgba(251, 191, 36, 0.28);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

/* --------------------------------------------------------------------------
   MOBIL ÉS KISEBB KÉPERNYŐK RESZPONZIVITÁSA
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 1.5rem 1rem 7rem;
    gap: 1.5rem;
  }

  .glass-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .meter-label {
    font-size: 1rem;
  }

  .meter-percentage {
    font-size: 2rem;
  }

  .info-bubble-card {
    padding: 0.9rem 1rem;
  }

  .info-bubble-card .chance-description {
    font-size: 0.88rem;
  }

  .countdown-timer {
    gap: 0.35rem;
  }

  .time-segment {
    min-width: 62px;
    padding: 0.6rem 0.5rem;
  }

  .time-val {
    font-size: 1.6rem;
  }

  .time-label {
    font-size: 0.65rem;
  }

  .time-separator {
    font-size: 1.4rem;
  }

  .ambience-controls {
    bottom: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
  }

  .control-panel.compact {
    align-items: center;
  }

  .control-buttons {
    width: 100%;
    justify-content: space-between;
  }
}