/* 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 {
  --accent: var(--gold);
  --neon-core: #fff6d6;
  --neon-glow: #ff8800;
  position: relative;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, #ffffff 12%);
  border-radius: 19px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(32, 24, 42, 0.78), rgba(17, 14, 27, 0.88));
  box-shadow:
    inset 0 1px 0 #ffffff28,
    inset 0 0 28px color-mix(in srgb, var(--accent) 16%, transparent),
    0 14px 32px #06040dc0,
    0 0 14px color-mix(in srgb, var(--accent) 44%, transparent),
    0 0 32px color-mix(in srgb, var(--neon-glow) 28%, transparent);
  backdrop-filter: blur(16px);
}

.hof-tab {
  --accent: var(--cyan);
  --neon-core: #e0fcff;
  --neon-glow: #00b7ff;
  border-color: color-mix(in srgb, var(--accent) 32%, #ffffff 12%);
  background: linear-gradient(135deg, rgba(20, 32, 46, 0.76), rgba(16, 15, 28, 0.88));
  box-shadow:
    inset 0 1px 0 #ffffff28,
    0 10px 24px #05030b99,
    0 0 12px color-mix(in srgb, var(--accent) 32%, transparent);
}

.hof-tab[aria-selected="true"] {
  --accent: var(--gold);
  --neon-core: #fff6d6;
  --neon-glow: #ff8800;
}

.hof-panel::before,
.hof-tab::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 2;
  border-radius: inherit;
  padding: 2.3px;
  background: conic-gradient(
    from var(--neon-angle),
    transparent 0deg 72deg,
    color-mix(in srgb, var(--neon-glow, var(--accent)) 35%, transparent) 98deg,
    var(--accent) 136deg,
    var(--neon-core, #fff8dd) 158deg,
    #ffffff 168deg,
    var(--accent) 175deg,
    transparent 180deg 252deg,
    color-mix(in srgb, var(--neon-glow, var(--accent)) 35%, transparent) 278deg,
    var(--accent) 316deg,
    var(--neon-core, #fff8dd) 338deg,
    #ffffff 348deg,
    var(--accent) 355deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .94;
  pointer-events: none;
}

.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);
}

/* Button-frame v2: the artwork is a 3:1 ornamental frame. Nine-slice rendering
   preserves its jeweled corners at every control width instead of crushing the
   entire bitmap into each button. Labels remain real text for accessibility. */
.btn-play-now,
.mascot-reaction-btn,
.page-button,
.card-action-btn,
.btn-dock-ghost,
.explore-menu-btn,
.btn-copy-ip {
  --flaro-button-frame: url('../assets/ui/button-frame-ember-v1.webp');
  position: relative;
  isolation: isolate;
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid transparent;
  border-image-source: var(--flaro-button-frame);
  border-image-slice: 96 170 fill;
  border-image-width: 13px 25px;
  border-image-outset: 1px;
  border-image-repeat: stretch;
  border-radius: 12px;
  background: #171021;
  background-image: none;
  box-shadow: 0 7px 18px #09050c80, 0 0 18px #ff9d3e32;
  color: #fffaf0;
  font-weight: 900;
  letter-spacing: .035em;
  line-height: 1.05;
  text-shadow: 0 2px 4px #08040dcc, 0 0 9px #ffcf7c2e;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.adventure-reaction-btn,
.page-button.secondary,
.card-store .card-action-btn,
.card-vote .card-action-btn,
.btn-dock-ghost,
.explore-menu-btn {
  --flaro-button-frame: url('../assets/ui/button-frame-cyan-v1.webp');
  background-color: #0f1324;
  box-shadow: 0 7px 18px #05081280, 0 0 18px #36e8ed30;
  color: #f4ffff;
  text-shadow: 0 2px 4px #030713dd, 0 0 9px #76f4fa30;
}

.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,
.card-action-btn:hover,
.card-action-btn: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 {
  transform: translateY(-2px) scale(1.012);
  filter: brightness(1.16) saturate(1.08);
  box-shadow: 0 10px 24px #05030a99, 0 0 28px #ffca6552;
}

.btn-play-now:active,
.mascot-reaction-btn:active,
.page-button:active,
.btn-dock-ghost:active,
.explore-menu-btn:active,
.btn-copy-ip:active {
  transform: translateY(1px) scale(.992);
}

.card-action-btn { display: grid; place-items: center; width: 100%; }
.btn-dock-ghost { min-width: 102px; padding-inline: 18px; }
.explore-menu-btn { min-width: 102px; }

@media (max-width: 700px) {
  .btn-play-now,
  .mascot-reaction-btn,
  .page-button,
  .card-action-btn,
  .btn-dock-ghost,
  .explore-menu-btn,
  .btn-copy-ip {
    min-height: 46px;
    padding: 10px 18px;
    border-image-width: 12px 22px;
  }
}

.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;
  }
}

/* Typography System: Rajdhani for display, Outfit for headings & controls, Inter for body */
h1, h2, .server-title, .brand-header, .page-heading h1, .hof-main h1 {
  font-family: var(--font-display) !important;
  letter-spacing: 0.04em;
  font-weight: 750;
}
h3, h4, .card-title, .card-action-btn, .btn-play-now, .page-button, .btn-dock-ghost, .btn-copy-ip, .nav-links a, .eyebrow, .status-pill, .explore-menu-btn {
  font-family: var(--font-heading) !important;
  letter-spacing: 0.03em;
}
body, p, .card-desc, .dock-text, .spec-list, .fine-print, .server-tagline {
  font-family: var(--font-body);
}
