@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=EB+Garamond:wght@400;700&display=swap');

body {
  background: linear-gradient(135deg, #23272f 0%, #2e3640 100%);
  color: #f7f7f7;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  letter-spacing: 0.01em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  background: rgba(30,34,40,0.95);
  padding: 1rem 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1.5px solid #e94f4f22;
}
nav a {
  color: #f7f7f7;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(233,79,79,0.04);
}
nav a.active, nav a:hover {
  background: #e94f4f;
  color: #fff;
  box-shadow: 0 2px 12px #e94f4f33;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem 1rem;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 2.5rem 1rem 2rem 1rem;
  background: rgba(40,44,52,0.95);
  border-radius: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  color: #e94f4f;
  letter-spacing: 0.02em;
  font-family: 'EB Garamond', serif;
  text-shadow: 0 2px 8px #000a, 0 0px 1px #fff2;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f7f7f7;
  opacity: 0.92;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.quick-link {
  background: #e94f4f;
  color: #fff;
  padding: 0.7rem 1.3rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.quick-link:hover {
  background: #c43c3c;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px #e94f4f33;
}

.section-card {
  background: rgba(36,40,48,0.93);
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  margin-bottom: 2rem;
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  transition: box-shadow 0.2s, transform 0.2s;
  border-left: 5px solid #e94f4f33;
}
.section-card:hover {
  box-shadow: 0 6px 32px rgba(233,79,79,0.10);
  transform: translateY(-2px) scale(1.01);
  border-left: 5px solid #e94f4f;
}
.section-card h2 {
  color: #e94f4f;
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  font-weight: 600;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.01em;
}
.section-card ul {
  list-style: disc inside;
  color: #f7f7f7;
  margin: 0 0 0 0.5rem;
  padding: 0;
  font-size: 1.08rem;
}
.section-card li {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: 1.7rem;
  }
  .hero {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .section-card {
    padding: 1.1rem 0.5rem 0.7rem 0.5rem;
  }
  nav {
    font-size: 0.97rem;
    padding: 0.7rem 0.2rem;
  }
}

.badges { margin: 0.8rem 0 0.2rem 0; display: flex; gap: 0.5rem; justify-content: center; }
.badge { background: #fff2; color: #fff; border: 1px solid #e94f4f55; border-radius: 1rem; padding: 0.2rem 0.6rem; font-size: 0.9rem; }
#streak-info { margin: 0.4rem 0 0.4rem 0; opacity: 0.85; }

.form { margin-top: 0.6rem; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem; }
.form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.95rem; }
.form input, .form select { background: #2c323b; color: #fff; border: 1px solid #3b414d; border-radius: 0.6rem; padding: 0.6rem 0.8rem; font-size: 1rem; }
.form input:focus, .form select:focus { outline: 2px solid #e94f4f; }
.actions { margin-top: 0.6rem; display: flex; gap: 0.6rem; }
.secondary { background: #3a4252; color: #fff; padding: 0.7rem 1.2rem; border-radius: 2rem; border: none; cursor: pointer; transition: background 0.2s; }
.secondary:hover { background: #586178; }
.results { margin-top: 1rem; }
.result-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
.result-list li { background: #2c323b; border: 1px solid #3b414d; border-radius: 0.6rem; padding: 0.6rem 0.8rem; }

@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.coach { margin: 1rem auto 0; max-width: 780px; background: #2c323b; border: 1px solid #3b414d; border-radius: 1rem; padding: 0.8rem 1rem; text-align: left; }
.coach-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.coach-msg { font-size: 1.05rem; opacity: 0.95; }

.leaderboard { margin-top: 1rem; }
.lb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.lb-card { background: #2c323b; border: 1px solid #3b414d; border-radius: 0.8rem; padding: 0.8rem; text-align: center; }
@media (max-width: 720px) { .lb-grid { grid-template-columns: 1fr; } }
.present-svg {
  display: block;
  margin-bottom: 2px;
}
.present-label {
  font-size: 0.98em;
  color: #e6e6e6;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: none;
}
.present-trigger:focus {
  outline: 2px solid #ffe066;
}
/* Klocka, datum och nedräkning */
.clock-date-countdown {
  position: fixed;
  top: 12px;
  right: 18px;
  z-index: 100;
  font-family: inherit;
  font-size: 1.08rem;
  color: #e6e6e6;
  background: rgba(30,34,38,0.72);
  border-radius: 8px;
  padding: 7px 14px 7px 14px;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  letter-spacing: 0.01em;
  opacity: 0.92;
  transition: background 0.3s;
  user-select: none;
  pointer-events: none;
}
.clock-date-countdown .clock {
  font-weight: 600;
  letter-spacing: 0.04em;
}
.clock-date-countdown .date {
  margin-left: 0.7em;
  opacity: 0.82;
}
.clock-date-countdown .countdown {
  display: block;
  margin-top: 2px;
  font-size: 0.98em;
  color: #ffe066;
  font-weight: 500;
  letter-spacing: 0.03em;
}
body.julstamning .clock-date-countdown {
  background: rgba(255, 0, 0, 0.13);
  color: #b22222;
  box-shadow: 0 2px 12px 0 rgba(255,0,0,0.08);
}
body.julstamning .clock-date-countdown .countdown {
  color: #b22222;
}
.snowparty-btn {
  display: block;
  margin: 1.5em auto 0 auto;
  padding: 0.7em 1.5em;
  font-size: 1.1rem;
  font-family: 'Inter', Arial, sans-serif;
  background: #ffe066;
  color: #b22222;
  border: none;
  border-radius: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  opacity: 0.95;
  transition: background 0.2s, color 0.2s;
  z-index: 2001;
}
/* Rund snö/nisse-knapp med tomte-ikon */
.snowparty-btn-round {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: #fff3;
  border: 2.5px solid #b22222;
  border-radius: 50%;
  box-shadow: 0 2px 8px #0002;
  cursor: pointer;
  margin: 0 auto;
  margin-top: 24px;
  transition: background 0.2s, border 0.2s;
  z-index: 20;
}
.snowparty-btn-round:hover {
  background: #fff6;
  border-color: #fff;
}
.snowparty-btn-round svg {
  display: block;
}
#falling-extras {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2005;
}
.falling-flake {
  position: fixed;
  top: -20px;
  pointer-events: none;
  z-index: 30;
  animation: fall-flake 6s linear forwards;
}
.falling-nisse {
  position: fixed;
  top: -30px;
  pointer-events: none;
  z-index: 31;
  animation: fall-flake 7s linear forwards;
}
.falling-gift {
  position: fixed;
  top: -30px;
  pointer-events: none;
  z-index: 32;
  animation: fall-flake 7.5s linear forwards;
}
.centered-high-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 3.5em auto;
  font-size: 1.7rem;
  color: #e6e6e6;
  font-family: 'Inter', Arial, sans-serif;
  opacity: 0.8;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  background: none;
  padding: 0.1em 0.7em;
  border-radius: 0.7em;
  transition: opacity 0.2s, background 0.2s;
  outline: none;
  min-width: 120px;
  max-width: 90vw;
}
.centered-high-text:hover, .centered-high-text:focus-visible {
  opacity: 1;
  background: #222b3a;
}
.undo-jul-btn {
  display: block;
  margin: 2.5em auto 0 auto;
  padding: 0.7em 1.5em;
  font-size: 1.1rem;
  font-family: 'Inter', Arial, sans-serif;
  background: #fff;
  color: #b22222;
  border: none;
  border-radius: 1.5em;
  cursor: pointer;
  box-shadow: 0 2px 8px #0003;
  opacity: 0.92;
  transition: background 0.2s, color 0.2s;
  z-index: 2000;
}
.undo-jul-btn:hover, .undo-jul-btn:focus-visible {
  background: #b22222;
  color: #fff;
}
.jul-glitter, #jul-glitter {
  position: fixed;
  inset: 0;
  z-index: 1003;
  pointer-events: none;
}
.glitter-star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #ffe066, #fff0);
  box-shadow: 0 0 8px 2px #fff8;
  animation: glitter-twinkle 2.2s infinite ease-in-out;
}
@keyframes glitter-twinkle {
  0%,100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3) rotate(10deg); }
}
.santa-label {
  color: #e6e6e6;
  font-family: 'EB Garamond', serif;
  font-size: 1.15rem;
  margin-left: 0.5em;
  letter-spacing: 0.04em;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  text-shadow: 0 2px 8px #000a, 0 0px 1px #fff2;
}
body.julstamning {
  background: linear-gradient(135deg, #b22222 0%, #228B22 100%) !important;
  transition: background 0.7s;
}
#jul-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.jul-snow {
  position: absolute;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, #fff8 0 2px, transparent 2px 20px);
  opacity: 0.25;
  z-index: 2;
}
#jul-figures {
  position: fixed;
  inset: 0;
  z-index: 1002;
  pointer-events: none;
}
.reindeer, .santa-run {
  will-change: transform, left, top;
  filter: drop-shadow(0 2px 8px #0005);
}
.santa-btn {
  position: fixed;
  left: 2vw;
  bottom: 2vw;
  z-index: 300;
  width: 38px;
  height: 38px;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
}
.santa-btn:hover, .santa-btn:focus-visible {
  opacity: 1;
  background: #222b3a;
}
.centered-mid-text {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 1.5em auto;
  font-size: 1.7rem;
  color: #e6e6e6;
  font-family: 'Inter', Arial, sans-serif;
  opacity: 0.8;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  background: none;
  padding: 0.1em 0.7em;
  border-radius: 0.7em;
  transition: opacity 0.2s, background 0.2s;
  outline: none;
  min-width: 120px;
  max-width: 90vw;
}
.centered-mid-text:hover, .centered-mid-text:focus-visible {
  opacity: 1;
  background: #222b3a;
}
.music-toggle {
  position: fixed;
  top: 0.7em;
  left: 0.9em;
  z-index: 300;
  font-size: 1.15rem;
  color: #e6e6e6;
  font-family: 'Inter', Arial, sans-serif;
  opacity: 0.55;
  cursor: pointer;
  user-select: none;
  background: none;
  padding: 0.1em 0.5em;
  border-radius: 0.7em;
  transition: opacity 0.2s, background 0.2s;
  border: none;
}
.music-toggle:hover, .music-toggle:focus-visible {
  opacity: 1;
  background: #222b3a;
}

.centered-top-text {
.koala-container {
  position: fixed;
  top: 2.2em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 251;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  min-height: 60px;
  pointer-events: none;
}
.centered-top-text {
  position: fixed;
  top: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  font-size: 1.35rem;
  color: #e6e6e6;
  font-family: 'Inter', Arial, sans-serif;
  opacity: 0.7;
  letter-spacing: 0.01em;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  background: none;
  padding: 0.1em 0.7em;
  border-radius: 0.7em;
  transition: opacity 0.2s, background 0.2s;
  outline: none;
  min-width: 120px;
  max-width: 90vw;
}
.centered-top-text:hover, .centered-top-text:focus-visible {
  opacity: 1;
  background: #222b3a;
}
}
.music-btn {
  position: fixed;
  right: 2vw;
  bottom: 7.5em;
  z-index: 202;
  background: none;
  color: #e6e6e6;
  border: none;
  font-size: 1.7rem;
  font-family: 'EB Garamond', serif;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.2s;
  padding: 0.1em 0.4em;
  outline: none;
}
.music-btn:hover, .music-btn:focus-visible {
  opacity: 1;
  color: #fff;
}
.corner-btn {
  position: fixed;
  right: 2vw;
  bottom: 2vw;
  z-index: 200;
  background: #222b3a;
  color: #e6e6e6;
  border: none;
  border-radius: 1.5em;
  font-size: 1.05rem;
  padding: 0.7em 1.3em;
  opacity: 0.85;
  cursor: pointer;
  box-shadow: 0 2px 8px #0005;
  transition: background 0.3s, color 0.3s;
}
.corner-btn:hover, .corner-btn:focus-visible {
  background: #3a4252;
  color: #fff;
}
.corner-answer {
  position: fixed;
  right: 2vw;
  bottom: 4.5em;
  z-index: 201;
  background: #222b3a;
  color: #e6e6e6;
  border-radius: 1em;
  padding: 0.7em 1.2em;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: center;
  opacity: 0.92;
  box-shadow: 0 2px 8px #0005;
  display: none;
}
body {
  background: #181f2a;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #e6e6e6;
  font-family: 'Inter', Arial, sans-serif;
}
.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}
.message {
  font-size: 2.5rem;
  font-weight: 400;
  color: #e6e6e6;
  opacity: 0.85;
  letter-spacing: 0.01em;
  text-align: center;
  font-family: 'EB Garamond', serif;
  text-shadow: 0 2px 8px #000a, 0 0px 1px #fff2;
  margin-bottom: 0.3em;
}
.submessage {
  font-size: 1.3rem;
  color: #e6e6e6;
  opacity: 0.7;
  text-align: center;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.01em;
}
.snow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  z-index: 100;
}
