/* Live status, dock actions, and the Hall of Fame page.
   Builds on css/modern.css: same colour variables, same glass gradients, same modal boxes. */

/* ---------- Front page: dock additions ---------- */

.dock-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-dock-ghost {
  border: 1px solid #f3dcc26b;
  background: linear-gradient(120deg, #ffffff10, #ffffff05);
  border-radius: 30px;
  color: #fff4eb;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.btn-dock-ghost:hover,
.btn-dock-ghost:focus-visible {
  background: #ffffff1f;
  border-color: var(--gold);
  outline: none;
}

/* Dock links are anchors styled as pills. Same box as the buttons; no underline. */
a.btn-dock-ghost {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 1000px) and (min-width: 821px) {
  .status-dock { gap: 11px; }
  .dock-status-group { gap: 8px; }
  .status-pill { padding: 7px 9px; font-size: 13px; }
  .dock-text { font-size: 11px; }
  .dock-actions { gap: 6px; }
  .btn-dock-ghost { padding: 7px 10px; font-size: 11px; }
  .btn-copy-ip { padding-inline: 13px; font-size: 12px; }
}

@media (max-width: 820px) {
  .dock-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
  }

  .btn-dock-ghost,
  a.btn-dock-ghost {
    width: 100%;
    min-height: 44px;
    min-width: 0;
    justify-content: center;
    padding: 7px 6px;
    font-size: 10px;
  }
}

.ping-label {
  color: #d9cfe0;
  font-size: 12px;
  opacity: .85;
}

.player-ticker {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff4eb;
}

.modal-body p {
  margin-top: 0;
}

/* ---------- Hall of Fame page ---------- */

body.hof-page {
  min-height: 100vh;
  margin: 0;
}

.hof-main {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 118px 22px 60px;
  color: #faf7f5;
}

.hof-main h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -.02em;
  text-shadow: 0 3px 4px #211a36b3, 0 0 25px #30223a55;
}

.hof-sub {
  margin: 8px 0 26px;
  color: #e9dfee;
  font-size: 15px;
}

.hof-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hof-tab {
  position: relative;
  flex: 1 1 200px;
  border: 1px solid #d8c5b36b;
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(125deg, #b9ad9347, #6e55563d);
  box-shadow: inset 0 1px 0 #ffffff20, 0 12px 24px #0004;
  backdrop-filter: blur(16px);
  color: #fff4eb;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s;
}

.hof-tab small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #d8cfe0;
}

.hof-tab:hover,
.hof-tab:focus-visible {
  transform: translateY(-3px);
  background-color: #ffffff14;
  outline: none;
}

.hof-tab[aria-selected="true"] {
  border-color: var(--gold);
  background: linear-gradient(125deg, #f6bd7033, #6e55564d);
}

/* Animated glow indicator under the active tab. */
.hof-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -7px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  animation: hofGlow 2.4s ease-in-out infinite;
}

@keyframes hofGlow {
  0%, 100% { box-shadow: 0 0 6px 1px #f6bd7055; opacity: .75; }
  50% { box-shadow: 0 0 20px 5px #f6bd70aa; opacity: 1; }
}

.hof-panel {
  border: 1px solid #d8c5b36b;
  border-radius: 19px;
  padding: 20px;
  background: linear-gradient(125deg, #b9ad9333, #6e55562d);
  box-shadow: inset 0 1px 0 #ffffff20, 0 12px 24px #0004;
  backdrop-filter: blur(16px);
}

.hof-notice {
  margin: 0 0 14px;
  font-size: 13px;
  color: #ffdc99;
}

.hof-notice[data-state="live"] {
  color: #9fe9c0;
}

.hof-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hof-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff0a;
  border: 1px solid #ffffff14;
}

.hof-rank {
  font-weight: 800;
  font-size: 18px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hof-row:nth-child(-n+3) .hof-rank {
  text-shadow: 0 0 12px #f6bd7088;
}

.hof-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hof-metric {
  color: #d8cfe0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hof-empty {
  margin: 8px 0;
  color: #e9dfee;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .hof-tab[aria-selected="true"]::after {
    animation: none;
    box-shadow: 0 0 10px #f6bd7088;
  }
  .hof-tab,
  .btn-dock-ghost {
    transition: none;
  }
}

/* Custom FlaroCity button frames. Kept in the last-loaded stylesheet so the
   project artwork wins over the generic inner-page button fallbacks. */
.btn-play-now,
.mascot-reaction-btn,
.page-button,
.card-action-btn,
.btn-dock-ghost,
.explore-menu-btn,
.btn-copy-ip {
  border-color: transparent;
  background-color: #1c1428;
  background-image: url('../assets/ui/button-frame-ember-v1.webp');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 0 18px #ffad4d38;
  color: #fff8ea;
  text-shadow: 0 2px 4px #09050dcc;
}

.adventure-reaction-btn,
.page-button.secondary,
.card-store .card-action-btn,
.card-vote .card-action-btn,
.btn-dock-ghost,
.explore-menu-btn {
  background-color: #10182a;
  background-image: url('../assets/ui/button-frame-cyan-v1.webp');
  box-shadow: 0 0 18px #50e3df36;
  color: #f3ffff;
}

.btn-play-now:hover,
.btn-play-now:focus-visible,
.mascot-reaction-btn:hover,
.mascot-reaction-btn:focus-visible,
.page-button:hover,
.page-button:focus-visible,
.btn-dock-ghost:hover,
.btn-dock-ghost:focus-visible,
.explore-menu-btn:hover,
.explore-menu-btn:focus-visible,
.btn-copy-ip:hover,
.btn-copy-ip:focus-visible {
  border-color: transparent;
  background-color: #251a34;
  filter: brightness(1.12) saturate(1.08);
}

.btn-play-now:hover,
.btn-play-now:focus-visible,
.mascot-reaction-btn:hover,
.mascot-reaction-btn:focus-visible,
.page-button:hover,
.page-button:focus-visible,
.btn-copy-ip:hover,
.btn-copy-ip:focus-visible {
  box-shadow: 0 0 28px #ffd06b55;
}

.adventure-reaction-btn:hover,
.adventure-reaction-btn:focus-visible,
.page-button.secondary:hover,
.page-button.secondary:focus-visible,
.btn-dock-ghost:hover,
.btn-dock-ghost:focus-visible,
.explore-menu-btn:hover,
.explore-menu-btn:focus-visible {
  box-shadow: 0 0 28px #5df4ee55;
}

/* The 320px layout must not let the dock's intrinsic button labels widen the
   page. Keep each grid track shrinkable and fit the whole dock to the viewport. */
@media (max-width: 360px) {
  .navbar {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
  }

  .navbar nav,
  .nav-links,
  .nav-cta {
    width: calc(100vw - 20px);
    max-width: calc(100vw - 20px);
    min-width: 0;
  }

  .nav-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .nav-cta .search-icon-btn {
    position: absolute;
    top: 9px;
    right: 9px;
  }

  .status-dock {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    min-width: 0;
    justify-self: center;
  }

  .dock-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-dock-ghost,
  a.btn-dock-ghost {
    width: 100%;
    min-width: 0;
    padding-inline: 4px;
    font-size: 9px;
  }
}
