/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

/* ===== BASE ===== */
body {
  margin: 0;
  padding: 16px;
  background-color: #faf7f2;
  color: #1c1c1e;
  overflow-x: hidden;
  position: relative;
}

/* ===== SUBTLE DOG BACKGROUND ===== */
body::after {
  content: "";
  position: fixed;
  bottom: 12px;
  right: 12px;
  width: 140px;
  height: 140px;
  background: url("/static/dog.png") no-repeat center / contain;

  /* яркость */
  opacity: 0.25;

  /* усиление без "кричащего" эффекта */
  filter: contrast(1.15) saturate(1.1);

  pointer-events: none;
}

/* ===== TITLES ===== */
h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 600;
  color: #8b2e2e;
}

/* ===== CARD ===== */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ===== INFO ITEMS ===== */
.music-item {
  margin: 6px 0;
  line-height: 1.5;
}

/* ===== ACTIONS ===== */
#actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== BUTTONS ===== */
button {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 14px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  background: #e74c3c;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s ease, background 0.2s ease;
}

button:hover {
  background: #d84335;
}

button:active {
  transform: scale(0.97);
}

/* ===== DANGER / CANCEL ===== */
button.red,
button.danger {
  background: #b94a48;
}

button.red:hover,
button.danger:hover {
  background: #a13f3d;
}

/* ===== INPUT ===== */
input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  margin-top: 12px;
}

/* ===== LINKS ===== */
a {
  color: #2a7cff;
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* ===== HR ===== */
hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* ===== CLICK NOTES (SUBTLE, OUTLINED) ===== */
.note {
  position: fixed;
  font-size: 22px;
  pointer-events: none;
  z-index: 9999;

  /* спокойный цвет */
  color: #7a6a58;

  /* обводка */
  text-shadow:
    -1px -1px 0 #ffffff,
     1px -1px 0 #ffffff,
    -1px  1px 0 #ffffff,
     1px  1px 0 #ffffff;

  animation: note-fly 1.6s ease-out forwards;
}

@keyframes note-fly {
  0% {
    transform: translateY(0) scale(0.85);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) scale(1.25);
    opacity: 0;
  }
}

/* ===== PAW PRINTS (VERY SUBTLE) ===== */
.paw {
  position: fixed;
  font-size: 20px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 9998;
  animation: paw-fade 1.8s ease-out forwards;
}

@keyframes paw-fade {
  0% {
    transform: translateY(0) scale(0.9);
    opacity: 0.35;
  }
  100% {
    transform: translateY(-24px) scale(1.15);
    opacity: 0;
  }
}

/* ===== TEACHER NEWS BUTTON ===== */
button.news-admin {
  background: #f8bc4d;
  color: #3b2f2f;
  font-weight: 600;
}

button.news-admin:hover {
  background: #f2b13c;
}

button.news-admin:active {
  transform: scale(0.97);
}

/* ===== NEWS ===== */
.news-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.news-content {
  font-size: 15px;
  line-height: 1.55;
}

.news-content br {
  line-height: 1.6;
}
