:root {
  --bg: #070b1a;
  --bg-2: #0d1430;
  --card: rgba(22, 30, 62, 0.72);
  --card-edge: rgba(140, 170, 255, 0.14);
  --text: #e8ecff;
  --muted: #8f9bc6;
  --accent: #7cc4ff;
  --accent-2: #b58cff;
  --good: #5fe0a0;
  --warn: #ffb35c;
  --bad: #ff6b7d;
  --gold: #ffd166;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: radial-gradient(1200px 700px at 70% -10%, #1b2560 0%, transparent 60%),
    radial-gradient(900px 600px at -10% 20%, #24124a 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%) fixed;
  color: var(--text);
  font: 16px/1.55 ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

/* A field of stars behind everything. */
.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 72%, #cfe0ff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 47% 32%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, #dfe7ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 26%, #c7d6ff 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 88%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 36% 46%, #e6ecff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 84%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 90%, #cfe0ff 50%, transparent 51%);
  background-size: 480px 480px;
  opacity: 0.55;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.7; } }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--muted); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: 1.15rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
h3 { font-size: 1.05rem; }

/* Header and footer */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 11, 26, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(124, 196, 255, 0.45);
}

nav { display: flex; gap: 0.25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
nav a {
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.95rem;
}
nav a:hover { color: var(--text); text-decoration: none; background: rgba(255, 255, 255, 0.05); }
nav a.on { color: var(--text); background: rgba(124, 196, 255, 0.14); }

.live-dot { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-dot.on { color: var(--good); }
.live-dot.on i { background: var(--good); box-shadow: 0 0 0 0 rgba(95, 224, 160, 0.6); animation: pulse 2s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(95, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 224, 160, 0); }
}

main { max-width: 1180px; margin: 0 auto; padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 3rem; display: grid; gap: 2.2rem; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--card-edge);
  font-size: 0.9rem;
}

/* Cards */

.card, .status {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(8px);
}

/* Home */

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.eyebrow { color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; margin: 0 0 0.6rem; }
.lede { color: #c5cdf0; font-size: 1.08rem; max-width: 34rem; }
.render { width: 100%; height: auto; border-radius: 18px; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); image-rendering: pixelated; }

.address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin: 1.4rem 0 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(124, 196, 255, 0.08);
  border: 1px solid rgba(124, 196, 255, 0.25);
}
.address > div { display: grid; }
.address b { font-size: 1.25rem; letter-spacing: 0.01em; }
.label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

button {
  font: inherit;
  font-weight: 700;
  color: #06122b;
  background: linear-gradient(135deg, var(--accent), #a9dbff);
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  margin-left: auto;
}
button:hover { filter: brightness(1.08); }

.counts { font-size: 0.95rem; }

.columns { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.6rem; align-items: start; }
.market-columns { grid-template-columns: 1.4fr 1fr; }

/* Status */

.status-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.55rem; }
.status .big { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.status.down { border-color: rgba(255, 107, 125, 0.3); }

.pill { font-size: 0.75rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; align-self: center; }
.pill.up { color: #062417; background: var(--good); }
.pill.down { color: #2b0610; background: var(--bad); }
.pill.idle { color: var(--muted); background: rgba(255, 255, 255, 0.07); }

.tps { margin-left: auto; font-size: 0.85rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 8px; }
.tps.good { color: var(--good); background: rgba(95, 224, 160, 0.1); }
.tps.slow { color: var(--warn); background: rgba(255, 179, 92, 0.12); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; margin: 0.9rem 0 0; }
.chips a { display: block; padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--card-edge); color: var(--text); font-weight: 600; font-size: 0.92rem; }
.chips a:hover { text-decoration: none; border-color: var(--accent); }
.chips li.online a { border-color: rgba(95, 224, 160, 0.55); box-shadow: 0 0 12px rgba(95, 224, 160, 0.15); }
.big-chips a { font-size: 1rem; padding: 0.45rem 0.95rem; }

/* Feeds */

.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.feed-empty { padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px dashed var(--card-edge); }

.event {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--card-edge);
}
.event .icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}
.event time { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.event .who { font-weight: 700; color: var(--text); }
.event .said { color: #d4dbf8; overflow-wrap: anywhere; }
.event .rank { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--gold); margin-right: 0.35rem; letter-spacing: 0.05em; }

.event.join .icon { color: var(--good); }
.event.quit .icon { color: var(--muted); }
.event.crate .icon { color: var(--accent-2); }
.event.parkour .icon { color: #7ef0e0; }
.event.quest .icon { color: var(--good); }
.event.trade .icon { color: var(--gold); }
.event.island .icon { color: #8fe38f; }
.event.chat .icon { color: var(--accent); }
.event.rare { border-color: rgba(181, 140, 255, 0.6); box-shadow: 0 0 24px rgba(181, 140, 255, 0.18); }

.event.new { animation: arrive 0.6s ease-out; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(-8px); background: rgba(124, 196, 255, 0.25); }
  to { opacity: 1; transform: none; }
}

.flash { animation: flash 0.8s ease-out; }
@keyframes flash { from { filter: brightness(1.35); } to { filter: none; } }

/* Leaderboards */

.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.board ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.board li { display: grid; grid-template-columns: 1.8rem 1fr auto; align-items: center; gap: 0.6rem; padding: 0.45rem 0.55rem; border-radius: 10px; }
.board li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.board .place { font-weight: 800; color: var(--muted); text-align: center; }
.board .who { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .value { font-weight: 700; font-variant-numeric: tabular-nums; }
.board .place-1 .place { color: var(--gold); }
.board .place-2 .place { color: #dfe6f5; }
.board .place-3 .place { color: #e0a36b; }

/* Market */

.table-wrap { padding: 0.4rem; overflow-x: auto; }
table.market { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.market th, .market td { padding: 0.55rem 0.8rem; text-align: left; }
.market th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.market tbody tr:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.market .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Profile */

.profile-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.stat { display: grid; gap: 0.3rem; }
.stat .value { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Narrow screens */

@media (max-width: 860px) {
  .hero, .columns, .market-columns { grid-template-columns: 1fr; }
  .boards { grid-template-columns: 1fr; }
  .render { order: -1; }
  .top { gap: 0.6rem; }
  .live-dot { display: none; }
  button { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, .sky { animation: none !important; }
}

/* A page title and the line under it belong together. */
main > h1 + .muted { margin-top: -1.9rem; }

/* Achievements on a profile */
.achievements { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.achievements li { display: grid; gap: 0.1rem; padding: 0.55rem 0.75rem; border-radius: 10px; background: rgba(255, 209, 102, 0.07); border: 1px solid rgba(255, 209, 102, 0.22); }
.achievements b { color: var(--gold); }
.event.achievement .icon { color: var(--gold); }

/* Staff analytics */

.chart-card { padding: 1rem 1rem 0.6rem; }
.chart { display: block; width: 100%; height: auto; }
.chart .bar { fill: var(--accent); }
.chart .bar:hover { fill: var(--accent-2); }
.chart .axis { stroke: var(--card-edge); stroke-width: 1.5; }
.chart .grid { stroke: var(--card-edge); stroke-dasharray: 4 4; }
.chart .tick { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-note { margin: 0.4rem 0 0; font-size: 0.88rem; }
@media (max-width: 560px) {
  .chart .tick { font-size: 20px; }
}

/* The home page's flight round the spawn (public/tour.js). Without the script, or for those who ask for
   less motion, it is a hero with the render beside it and the sights as cards below. */
.journey-stage { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.journey-hero { display: block; }
.journey-sights { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.journey-sight, .journey-end {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(10px);
}
.journey-sight h2 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.journey-sight p { margin: 0; color: #c5cdf0; }
.journey-end { grid-column: 1 / -1; text-align: center; }
.journey-end h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.journey-end button { margin-top: 0.4rem; }

/* The flight. */
.journey-on { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.journey-on .journey-stage { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.journey-on .journey-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60vw 80vh at 10% 55%, rgba(7, 11, 26, 0.55), transparent 70%),
    linear-gradient(180deg, transparent 75%, rgba(7, 11, 26, 0.6));
  opacity: 0;
  transition: opacity 0.6s ease;
}
.journey-on .journey-stage.flying::after { opacity: 1; }
.journey-on .journey-hero, .journey-on .journey-sight, .journey-on .journey-end { position: absolute; z-index: 2; }
.journey-on .journey-hero { left: clamp(1rem, 6vw, 6rem); top: max(28vh, 7rem); width: min(34rem, 42vw); }
.journey-on .journey-sights { display: block; }
.journey-on .journey-sight { left: clamp(1rem, 6vw, 6rem); top: 34vh; width: min(24rem, 36vw); opacity: 0; }
.journey-on .journey-sight h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.journey-on .journey-end { left: 50%; bottom: 9vh; width: min(30rem, calc(100vw - 2rem)); opacity: 0; }

@media (max-width: 760px) {
  .journey-on .journey-hero { top: 5rem; width: calc(100vw - 2rem); left: 1rem; }
  .journey-on .journey-sight { top: auto; bottom: 7vh; left: 1rem; width: calc(100vw - 2rem); }
}

/* The spawn in 3D, when the browser can draw it; the picture otherwise. */
.journey-canvas { display: none; }
.journey-3d .journey-canvas { display: block; position: absolute; inset: 0; }
.journey-3d .journey-canvas canvas { display: block; }

/* The loader, while the spawn downloads. */
.journey-loader { display: none; }
.journey-loading .journey-loader {
  display: flex;
}
.journey-on .journey-loader {
  position: absolute;
  z-index: 3;
  right: clamp(1rem, 12vw, 12rem);
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  transition: opacity 0.6s ease;
}
.journey-on:not(.journey-loading) .journey-loader { display: flex; opacity: 0; pointer-events: none; }
.journey-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(124, 196, 255, 0.18);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.journey-on .journey-canvas { opacity: 1; transition: opacity 0.8s ease; }
.journey-loading .journey-canvas { opacity: 0; }
@media (max-width: 760px) {
  .journey-on .journey-loader { right: auto; left: 50%; top: 68%; transform: translate(-50%, -50%); flex-direction: column; }
}

/* The look of the header and the home page's title, in the font of the server's logo. */
@font-face {
  font-family: "Lilita One";
  src: url("/public/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
}

/* A floating glass bar. */
.top {
  top: 12px;
  width: min(1120px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 0.45rem 0.5rem 0.45rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(180deg, rgba(20, 28, 62, 0.72), rgba(10, 15, 36, 0.62));
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  isolation: isolate;
}
/* Its edge: a thin gradient line, brightest at the top. */
.top::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(124, 196, 255, 0.55), rgba(181, 140, 255, 0.35) 45%, rgba(124, 196, 255, 0.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.brand { gap: 0.6rem; font-weight: 400; font-size: 1.35rem; letter-spacing: 0.01em; font-family: "Lilita One", ui-rounded, system-ui, sans-serif; }
.brand span {
  background: linear-gradient(180deg, #ffffff 30%, #9fd3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-mark { width: 32px; height: 32px; border-radius: 9px; transition: transform 0.3s ease; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
nav { justify-content: center; }
nav a { position: relative; padding: 0.45rem 0.95rem; transition: color 0.2s, background 0.2s; }
nav a.on {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 196, 255, 0.28), rgba(181, 140, 255, 0.24));
  box-shadow: inset 0 0 0 1px rgba(160, 200, 255, 0.25);
}
button.play {
  margin-left: 0;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, #7cc4ff, #b58cff);
  color: #0a0f24;
  box-shadow: 0 0 22px rgba(140, 170, 255, 0.45);
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button.play:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(160, 180, 255, 0.7); filter: none; }

/* The title on the home page. */
.journey-hero h1 {
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2.7rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin-bottom: 0.4em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.45);
}
.sky-words {
  display: inline-block;
  background: linear-gradient(100deg, #7cc4ff 0%, #c9b3ff 35%, #ffd6f2 50%, #7cc4ff 70%, #b58cff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite alternate;
  text-shadow: none;
  filter: drop-shadow(0 4px 24px rgba(124, 160, 255, 0.35));
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.journey-hero .lede { font-size: clamp(1.02rem, 1.3vw, 1.18rem); color: #cbd3f5; line-height: 1.6; }
.journey-hero .address {
  margin: 1.6rem 0 1rem;
  padding: 0.8rem 0.8rem 0.8rem 1.2rem;
  gap: 1.6rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 196, 255, 0.12), rgba(181, 140, 255, 0.08));
  border: 1px solid rgba(150, 190, 255, 0.28);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.journey-hero .address b { font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; font-size: 1.45rem; letter-spacing: 0.02em; }
.journey-hero .address button {
  padding: 0.75rem 1.3rem;
  background: linear-gradient(135deg, #7cc4ff, #b58cff);
  box-shadow: 0 0 24px rgba(140, 170, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.journey-hero .address button:hover { transform: translateY(-1px); box-shadow: 0 0 32px rgba(160, 180, 255, 0.65); filter: none; }
.counts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.counts span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-edge);
  color: var(--muted);
  font-size: 0.88rem;
}
.counts b { color: var(--text); }

/* The title's lines arrive one after another. */
.journey-hero > div > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.journey-hero > div > :nth-child(2) { animation-delay: 0.12s; }
.journey-hero > div > :nth-child(3) { animation-delay: 0.24s; }
.journey-hero > div > :nth-child(4) { animation-delay: 0.36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
  .journey-hero > div > *, .sky-words { animation: none; }
}

@media (max-width: 760px) {
  .top { padding-left: 0.6rem; gap: 0.4rem; }
  .brand span { display: none; }
  nav { justify-content: flex-start; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.88rem; }
  button.play { padding: 0.5rem 0.8rem; font-size: 0.85rem; }
  .journey-on .journey-hero { top: 6rem; }
}
.journey-hero .address { display: inline-flex; padding-right: 1.4rem; }

/* A link to get the game, on Minecraft's own site. */
.counts .get-bedrock {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #dfe9ff;
  background: linear-gradient(135deg, rgba(95, 224, 160, 0.16), rgba(124, 196, 255, 0.14));
  border: 1px solid rgba(120, 220, 170, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.counts .get-bedrock:hover { text-decoration: none; transform: translateY(-1px); background: linear-gradient(135deg, rgba(95, 224, 160, 0.28), rgba(124, 196, 255, 0.22)); }

/* Discord, beside Play now. */
a.discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: #e3e6ff;
  font-weight: 700;
  font-size: 0.92rem;
  background: rgba(88, 101, 242, 0.22);
  border: 1px solid rgba(120, 132, 255, 0.45);
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
a.discord:hover { text-decoration: none; background: rgba(88, 101, 242, 0.42); transform: translateY(-1px); }
a.discord svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 760px) {
  a.discord { padding: 0.5rem; }
  a.discord span { display: none; }
}

/* Below the flight: what is happening now, in glass cards. */
.display { font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0.01em; color: var(--text); }
.live { display: grid; gap: 1.4rem; padding-top: 2rem; }
.live-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.2rem; background: linear-gradient(100deg, #ffffff, #9fd3ff 60%, #c9b3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.live-head p { margin: 0; }
.live-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; grid-template-areas: "status feed" "chat feed"; gap: 1.1rem; align-items: start; }
.live-status { grid-area: status; }
.live-feed { grid-area: feed; }
.live-chat { grid-area: chat; }
.live-card {
  position: relative;
  padding: 1.2rem 1.3rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(28, 38, 80, 0.7), rgba(14, 20, 46, 0.6));
  border: 1px solid rgba(150, 180, 255, 0.16);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}
.live-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.9rem; }
.live-card .status { background: none; border: 0; padding: 0; box-shadow: none; backdrop-filter: none; }
.status-head { align-items: center; }
.status-word { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; }
.beacon { width: 10px; height: 10px; border-radius: 50%; }
.beacon.up { background: var(--good); box-shadow: 0 0 12px var(--good); animation: pulse 2s infinite; }
.beacon.down { background: var(--bad); box-shadow: 0 0 12px var(--bad); }
.status-count { display: flex; align-items: baseline; gap: 0.6rem; margin: 0.5rem 0 0.9rem; }
.status-count b {
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 0.9;
  background: linear-gradient(180deg, #ffffff, #8fd0ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(124, 196, 255, 0.35));
}
.live-card .status > p { margin: 0; }
.feed-empty { border: 0; background: rgba(255, 255, 255, 0.03); border-radius: 14px; padding: 1rem 1.1rem; }
.live-feed .feed, .live-chat .feed { max-height: 26rem; overflow-y: auto; scrollbar-width: thin; }

/* The footer. */
footer.foot {
  max-width: 1180px;
  margin: 4rem auto 0;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 2.5rem;
  border-top: 1px solid var(--card-edge);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2rem;
  align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: 0.8rem; }
.foot-brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 22px rgba(124, 196, 255, 0.35); }
.foot-brand b { display: block; font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; font-size: 1.4rem; line-height: 1.1; }
.foot-brand span { font-size: 0.9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; justify-content: flex-end; }
.foot-links a { color: var(--muted); font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.foot-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; padding-top: 1.2rem; border-top: 1px solid rgba(140, 170, 255, 0.08); }

@media (max-width: 760px) {
  .live-grid { grid-template-columns: 1fr; grid-template-areas: "status" "feed" "chat"; }
  footer.foot { grid-template-columns: 1fr; }
  .foot-links { justify-content: flex-start; }
}

/* Every page: the sky runs the length of the page, not just the first screen. */
html { background: var(--bg-2); }

/* The top of a page. */
.page-head { display: grid; gap: 0.6rem; padding-top: 1.2rem; }
.page-title {
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  margin: 0;
  background: linear-gradient(100deg, #ffffff 20%, #9fd3ff 60%, #c9b3ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(124, 160, 255, 0.25));
}
.page-head > p { margin: 0; max-width: 46rem; font-size: 1.05rem; }
.section-title { font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0.01em; color: var(--text); font-size: 1.5rem; margin-bottom: 0.8rem; }

/* Initials in a colour of one's own. */
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.3);
}
.avatar.small { width: 28px; height: 28px; border-radius: 8px; font-size: 0.72rem; }
.avatar.big { width: 84px; height: 84px; border-radius: 24px; font-size: 1.9rem; }

/* Search. */
.filter { display: flex; align-items: center; gap: 0.6rem; max-width: 26rem; margin-top: 0.6rem; padding: 0.15rem 0.9rem; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--card-edge); transition: border-color 0.2s, box-shadow 0.2s; }
.filter:focus-within { border-color: rgba(124, 196, 255, 0.55); box-shadow: 0 0 0 4px rgba(124, 196, 255, 0.12); }
.filter span { color: var(--muted); font-size: 1.2rem; }
.filter input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font: inherit; padding: 0.55rem 0; }

/* Leaderboards. */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.1rem; }
.board-card {
  padding: 1.3rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(28, 38, 80, 0.75), rgba(14, 20, 46, 0.65));
  border: 1px solid rgba(150, 180, 255, 0.16);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.board-title { display: flex; align-items: center; gap: 0.6rem; font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; text-transform: none; letter-spacing: 0.01em; color: var(--text); font-size: 1.45rem; margin-bottom: 1rem; }
.board-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, rgba(124, 196, 255, 0.25), rgba(181, 140, 255, 0.2)); font-size: 1.1rem; }
.podium, .ranks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.podium li, .ranks li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.75rem; border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.podium li { padding: 0.75rem 0.85rem; border: 1px solid transparent; }
.podium .place-1 { background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 209, 102, 0.04)); border-color: rgba(255, 209, 102, 0.35); }
.podium .place-2 { background: linear-gradient(135deg, rgba(200, 214, 240, 0.16), rgba(200, 214, 240, 0.03)); border-color: rgba(200, 214, 240, 0.25); }
.podium .place-3 { background: linear-gradient(135deg, rgba(222, 150, 96, 0.18), rgba(222, 150, 96, 0.03)); border-color: rgba(222, 150, 96, 0.3); }
.medal { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 800; font-size: 0.85rem; color: #1a1406; flex: none; }
.place-1 .medal { background: linear-gradient(135deg, #ffe08a, #f2b632); box-shadow: 0 0 14px rgba(255, 209, 102, 0.6); }
.place-2 .medal { background: linear-gradient(135deg, #f0f4ff, #aab6cc); }
.place-3 .medal { background: linear-gradient(135deg, #f2b98a, #b8703c); }
.podium .who, .ranks .who { flex: 1; color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .value, .ranks .value { font-weight: 800; color: #dfe9ff; font-variant-numeric: tabular-nums; }
.place-1 .value { color: var(--gold); }
.ranks { margin-top: 0.5rem; }
.ranks .place { width: 26px; text-align: center; color: var(--muted); font-weight: 700; flex: none; }
.board-empty { padding: 1.2rem; border-radius: 14px; background: rgba(255, 255, 255, 0.03); margin: 0; }

/* Market. */
.market-layout { display: grid; grid-template-columns: 1fr 20rem; gap: 1.4rem; align-items: start; }
.market-sections { display: grid; gap: 2rem; }
.item-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 0.7rem; }
.item-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(28, 38, 80, 0.7), rgba(14, 20, 46, 0.6));
  border: 1px solid rgba(150, 180, 255, 0.14);
  transition: transform 0.2s, border-color 0.2s;
}
.item-card:hover { transform: translateY(-2px); border-color: rgba(150, 190, 255, 0.35); }
.item-swatch {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 45%, rgba(0, 0, 0, 0.3)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 5px, transparent 5px 10px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 5px, transparent 5px 10px),
    var(--swatch);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18), 0 4px 14px rgba(0, 0, 0, 0.3);
  image-rendering: pixelated;
}
.item-name { flex: 1; display: grid; min-width: 0; }
.item-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-name span { font-size: 0.8rem; }
.item-prices { display: grid; gap: 0.25rem; justify-items: end; }
.price { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.price i { font-style: normal; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.08rem 0.4rem; border-radius: 999px; }
.price.buy i { background: rgba(124, 196, 255, 0.18); color: var(--accent); }
.price.sell i { background: rgba(95, 224, 160, 0.16); color: var(--good); }
.price.none { color: var(--muted); font-weight: 500; }
.market-trades { position: sticky; top: 5.5rem; }
.market-trades .feed { max-height: 70vh; overflow-y: auto; }

/* Players. */
.player-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.8rem; }
.player-card a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  color: var(--text);
  background: linear-gradient(160deg, rgba(28, 38, 80, 0.7), rgba(14, 20, 46, 0.6));
  border: 1px solid rgba(150, 180, 255, 0.14);
  transition: transform 0.2s, border-color 0.2s;
}
.player-card a:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(150, 190, 255, 0.4); }
.avatar-wrap { position: relative; flex: none; }
.online-dot { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--good); border: 2px solid #121a3a; box-shadow: 0 0 10px var(--good); }
.player-name { flex: 1; display: grid; min-width: 0; }
.player-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-name span { font-size: 0.8rem; }
.player-stats { display: grid; justify-items: end; font-size: 0.8rem; color: var(--muted); }
.player-stats b { color: var(--text); }

/* Profile. */
.profile-hero { display: flex; align-items: center; gap: 1.3rem; padding-top: 1.2rem; }
.profile-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin: 0 0 0.3rem; line-height: 1; }
.profile-hero p { margin: 0; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.8rem; }
.stat-tile {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(28, 38, 80, 0.7), rgba(14, 20, 46, 0.6));
  border: 1px solid rgba(150, 180, 255, 0.14);
}
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, rgba(124, 196, 255, 0.22), rgba(181, 140, 255, 0.18)); margin-bottom: 0.3rem; }
.stat-tile b { font-family: "Lilita One", ui-rounded, system-ui, sans-serif; font-weight: 400; font-size: 1.5rem; letter-spacing: 0.01em; }
.profile-card { padding: 1.3rem 1.4rem; border-radius: 22px; background: linear-gradient(160deg, rgba(28, 38, 80, 0.7), rgba(14, 20, 46, 0.6)); border: 1px solid rgba(150, 180, 255, 0.14); }
.profile-card p { margin: 0; }
.section-title .muted { font-family: inherit; font-size: 1rem; }
.progress { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); margin-bottom: 1rem; overflow: hidden; }
.progress::after { content: ""; display: block; height: 100%; width: var(--done); border-radius: inherit; background: linear-gradient(90deg, #7cc4ff, #b58cff); }
.achievement-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.6rem; }
.achievement-grid li { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: start; padding: 0.7rem 0.8rem; border-radius: 14px; background: rgba(255, 255, 255, 0.03); border: 1px solid transparent; }
.achievement-grid li b { grid-column: 2; }
.achievement-grid li span.muted { grid-column: 2; font-size: 0.82rem; }
.achievement-mark { grid-row: 1 / span 2; font-size: 1.2rem; line-height: 1.2; }
.achievement-grid .earned { background: linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(255, 209, 102, 0.02)); border-color: rgba(255, 209, 102, 0.28); }
.achievement-grid .earned .achievement-mark { color: var(--gold); text-shadow: 0 0 10px rgba(255, 209, 102, 0.6); }
.achievement-grid .locked { opacity: 0.55; }

@media (max-width: 900px) {
  .market-layout { grid-template-columns: 1fr; }
  .market-trades { position: static; }
}

/* The game's own item icons, drawn crisp at two and a half times their size, on a tile. */
.item-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(150, 180, 255, 0.14);
}
.item-icon img { width: 40px; height: 40px; image-rendering: pixelated; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45)); }

/* Vote. */
.vote-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.1rem; align-items: start; }
.vote-card { padding: 1.4rem; border-radius: 22px; background: linear-gradient(160deg, rgba(28, 38, 80, 0.75), rgba(14, 20, 46, 0.65)); border: 1px solid rgba(150, 180, 255, 0.16); box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3); }
.vote-steps { list-style: none; counter-reset: step; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.vote-steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; column-gap: 0.9rem; }
.vote-steps li::before {
  content: counter(step);
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-size: 1.2rem;
  color: #0a0f24;
  background: linear-gradient(135deg, #7cc4ff, #b58cff);
}
.vote-steps code { background: rgba(124, 196, 255, 0.14); padding: 0.05rem 0.4rem; border-radius: 6px; color: var(--accent); }
.vote-button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: "Lilita One", ui-rounded, system-ui, sans-serif;
  font-size: 1.25rem;
  color: #0a0f24;
  background: linear-gradient(135deg, #5fe0a0, #7cc4ff);
  box-shadow: 0 0 30px rgba(95, 224, 160, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.vote-button:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 40px rgba(95, 224, 160, 0.6); }
.vote-soon { margin: 0; padding: 0.9rem 1.1rem; border-radius: 14px; background: rgba(255, 209, 102, 0.1); border: 1px solid rgba(255, 209, 102, 0.3); color: var(--gold); font-weight: 700; }
.vote-rewards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.vote-rewards li { display: flex; gap: 0.8rem; align-items: center; }
.vote-rewards div { display: grid; }
.reward-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; font-size: 1.2rem; background: linear-gradient(135deg, rgba(255, 209, 102, 0.25), rgba(255, 209, 102, 0.06)); color: var(--gold); }
@media (max-width: 900px) { .vote-layout { grid-template-columns: 1fr; } }
