/* Home dashboard */

.hm-main { max-width: 1000px; }

.hm-hello {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0.5rem 0 1.2rem;
}

.hm-hello h1 { margin: 0 0 0.3rem; font-size: clamp(1.6rem, 4vw, 2.3rem); }

.home .academy-photo-strip {
  width: 100%;
  margin: 0 0 1.2rem;
}
.hm-hello p { margin: 0; font-size: 1.05rem; }
.hm-bot { flex-shrink: 0; width: 96px; height: 106px; }

/* The coach's message, scrolling across */
.hm-notice {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 164, 92, 0.55);
  background: linear-gradient(90deg, rgba(201, 164, 92, 0.16), rgba(201, 164, 92, 0.05));
}

.hm-notice[hidden] { display: none; }
.hm-notice-icon { font-size: 1.5rem; flex-shrink: 0; }
.hm-notice-window { flex: 1; min-width: 0; overflow: hidden; }

.hm-notice-text {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-light);
  animation: hm-scroll 20s linear infinite;
}

.hm-notice-text.empty { color: var(--muted); font-weight: 400; }
.hm-notice:hover .hm-notice-text { animation-play-state: paused; }

@keyframes hm-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .hm-notice-text { animation: none; padding-left: 0; white-space: normal; }
}

.hm-notice-dialog { width: min(600px, calc(100% - 2rem)); }
.hm-notice-dialog textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

/* Tiles */
.hm-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
}

.hm-tile {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.2rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.hm-tile:hover,
.hm-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.hm-tile-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(201, 164, 92, 0.14);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.hm-tile strong { font-size: 1.15rem; }
.hm-tile small { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.hm-tile.live { border-color: #e05050; box-shadow: 0 0 0 1px #e05050 inset; }
.hm-live { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 600; color: #ff8a8a; }

@media (max-width: 600px) {
  .hm-hello { gap: 0.8rem; }
  .hm-bot { width: 70px; height: 77px; }
  .hm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
  .hm-tile { padding: 0.9rem 0.8rem; }
  .hm-tile-icon { width: 44px; height: 44px; font-size: 1.5rem; }
  .hm-tile strong { font-size: 1rem; }
  .hm-notice-text { font-size: 1rem; }
}
