:root {
  --bg: #07130c;
  --ink: #021006;
  --panel: #0d2b18;
  --panel2: #143c23;
  --line: #7ac943;
  --text: #efffe1;
  --muted: #a4dca1;
  --danger: #ff5b5b;
  --cyan: #5df7d4;
  --yellow: #d7ff72;
  --pink: #ff6bd6;
  --season-bg: #07190d;
  --season-panel: #12391f;
  --season-accent: #7ac943;
  --season-bright: #d7ff72;
  --px: 4px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  background:
    radial-gradient(circle at 20% 0%, rgba(215,255,114,.2), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(93,247,212,.16), transparent 30%),
    linear-gradient(180deg, var(--season-panel), var(--bg) 45%, #020804);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(215,255,114,.20) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 20%, rgba(93,247,212,.16) 0 4px, transparent 5px),
    radial-gradient(circle at 72% 74%, rgba(255,107,214,.12) 0 5px, transparent 6px),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 42%);
  background-size: 260px 220px, 340px 260px, 300px 300px, auto;
  filter: saturate(1.15);
  opacity: .85;
}

.floating-pixels span {
  position: fixed;
  width: 18px;
  height: 18px;
  background: var(--season-bright);
  opacity: .25;
  box-shadow: 0 0 0 4px rgba(0,0,0,.35);
  animation: floaty 8s infinite steps(8);
  z-index: 0;
  pointer-events: none;
}
.floating-pixels span:nth-child(1){ left:8%; top:22%; animation-delay:0s; }
.floating-pixels span:nth-child(2){ left:78%; top:18%; animation-delay:1s; background:var(--cyan); }
.floating-pixels span:nth-child(3){ left:65%; top:72%; animation-delay:2s; background:var(--pink); }
.floating-pixels span:nth-child(4){ left:16%; top:80%; animation-delay:3s; }
.floating-pixels span:nth-child(5){ left:90%; top:52%; animation-delay:4s; background:var(--cyan); }

@keyframes floaty {
  0%,100% { transform: translate(0,0) scale(1); }
  25% { transform: translate(20px,-18px) scale(1.2); }
  50% { transform: translate(-10px,-34px) scale(.9); }
  75% { transform: translate(-24px,8px) scale(1.1); }
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(240px, 360px) minmax(520px, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 14px 20px;
  background: rgba(5, 20, 11, .94);
  border-bottom: 4px solid var(--season-accent);
  box-shadow: 0 7px 0 #020804;
  backdrop-filter: blur(8px);
}

.mobile-menu {
  display: none;
  color: var(--text);
  background: #0f2c19;
  border: 3px solid #315f35;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 #020804;
}

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--season-panel); color: var(--season-bright);
  border: 4px solid var(--season-accent); box-shadow: 5px 5px 0 #020804;
  transform: rotate(-3deg);
}
.logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 4px 4px 0 #000;
}
.tagline { color: var(--muted); font-size: 12px; margin-top: 4px; }

.nav {
  display: flex;
  justify-content: stretch;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.nav-btn {
  flex: 1 1 auto;
  min-width: max-content;
  text-align: center;
}
.nav-btn, .secondary, .tool, .tab, .vote-btn, .react-btn {
  color: var(--text);
  background: #0f2c19;
  border: 3px solid #315f35;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 #020804;
}
.nav-btn:hover, .secondary:hover, .tool:hover, .tab:hover, .vote-btn:hover, .react-btn:hover {
  border-color: var(--season-accent);
  transform: translate(-1px, -1px);
}
.nav-btn.active, .tool.active, .tab.active, .vote-btn.voted, .react-btn.active, .active-soft {
  background: var(--season-accent);
  color: #06140c;
  border-color: var(--season-bright);
  font-weight: 900;
}

.top-actions { display: flex; gap: 8px; align-items: center; }
.auth-area { display: flex; gap: 8px; align-items: center; }
.lang-select { width: 72px; }

main {
  position: relative;
  z-index: 1;
  max-width: 1480px;
  margin: 0 auto;
  padding: 32px 20px 90px;
}

.view { display: none; }
.view.visible { display: block; }

.landing-grid {
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 36px;
  align-items: center;
  min-height: 680px;
}

.hero-text h1 {
  font-size: clamp(38px, 6vw, 78px);
  line-height: .92;
  margin: 18px 0;
  text-shadow: 6px 6px 0 #000;
  max-width: 940px;
}
.hero-text p {
  max-width: 800px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.pill, .future-note {
  display: inline-block;
  border: 3px solid var(--season-accent);
  color: var(--season-bright);
  background: #0d2b18;
  padding: 10px 14px;
  box-shadow: 4px 4px 0 #000;
}
.future-note {
  margin-top: 16px;
  display: block;
  color: var(--text);
  background: rgba(5,20,11,.8);
}

.hero-actions { display: flex; gap: 14px; margin-top: 24px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.hero-stats div, .daily-prompt {
  background: rgba(7, 24, 13, .9);
  border: 3px solid #315f35;
  padding: 12px;
  box-shadow: 5px 5px 0 #000;
}
.hero-stats b { display: block; font-size: 22px; color: var(--season-bright); }
.hero-stats span, .daily-prompt span { color: var(--muted); font-size: 12px; }
.daily-prompt b { display: block; color: white; font-size: 20px; margin-top: 6px; }

.primary {
  background: var(--season-accent);
  color: #041006;
  font-weight: 900;
  border: 4px solid var(--season-bright);
  padding: 13px 18px;
  box-shadow: 5px 5px 0 #000;
}
.primary:hover, .secondary:hover { filter: brightness(1.1); transform: translate(-1px,-1px); }
.danger-soft {
  color: white;
  background: #351414;
  border: 3px solid #b33;
  padding: 10px 12px;
  box-shadow: 4px 4px 0 #020804;
}
.wide { width: 100%; }

.panel {
  background: rgba(10, 36, 20, .92);
  border: 4px solid var(--season-accent);
  box-shadow: 9px 9px 0 #020804;
  padding: 24px;
  margin-bottom: 26px;
}
.panel h2, .panel h3 { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.panel-head.wrap { flex-wrap: wrap; }
.small, .hint { color: var(--muted); font-size: 13px; }

.landing-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-card {
  background: #07180d;
  border: 3px solid #315f35;
  padding: 16px;
  min-height: 150px;
  box-shadow: 5px 5px 0 #000;
}
.info-card b {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--season-accent); color: #041006;
  border: 3px solid var(--season-bright); box-shadow: 3px 3px 0 #000;
}
.info-card p { color: var(--muted); }

.podium-showcase {
  min-height: 600px;
  position: relative;
  display: grid;
  place-items: end center;
  padding-top: 70px;
}
.podium-stage {
  position: relative;
  width: 100%;
  min-height: 540px;
  background:
    linear-gradient(180deg, rgba(215,255,114,.08), transparent),
    rgba(5,20,11,.65);
  border: 4px solid var(--season-accent);
  box-shadow: 10px 10px 0 #000;
  overflow: hidden;
}
.podium-title {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 3;
  text-align: center;
  font-weight: 900;
  background: var(--season-bright);
  color: #041006;
  border: 4px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 10px;
}
.podium-art {
  position: absolute;
  display: grid;
  gap: 8px;
  justify-items: center;
  animation: hoverPodium 2.8s infinite steps(8);
}
.podium-art img {
  image-rendering: pixelated;
  background: #07180d;
  border: 5px solid var(--season-bright);
  box-shadow: 0 0 0 5px #000, 0 0 28px rgba(215,255,114,.4);
  object-fit: contain;
}
.podium-art .podium-label {
  background: #07180d;
  border: 3px solid var(--season-accent);
  box-shadow: 4px 4px 0 #000;
  padding: 8px 10px;
  text-align: center;
  max-width: 180px;
}
.podium-1 { top: 90px; left: 50%; transform: translateX(-50%); z-index: 4; }
.podium-1 img { width: 230px; height: 230px; }
.podium-2 { top: 215px; left: 36px; z-index: 2; animation-delay: .4s; }
.podium-2 img { width: 150px; height: 150px; }
.podium-3 { top: 230px; right: 36px; z-index: 2; animation-delay: .8s; }
.podium-3 img { width: 135px; height: 135px; }
.podium-base {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 190px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(0,0,0,.25) 12% 14%, transparent 14% 28%, rgba(0,0,0,.25) 28% 30%, transparent 30%),
    linear-gradient(180deg, var(--season-accent), var(--season-panel));
  border-top: 5px solid #000;
  clip-path: polygon(0 45%, 30% 25%, 50% 0, 70% 25%, 100% 45%, 100% 100%, 0 100%);
}
@keyframes hoverPodium {
  0%,100% { margin-top: 0; }
  50% { margin-top: -14px; }
}

.editor-layout {
  display: grid;
  grid-template-columns: 300px minmax(480px, 1fr) 390px;
  gap: 22px;
  align-items: start;
}
.editor-sidebar, .upload-panel { position: sticky; top: 112px; }
.tool-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
#colorPicker { width: 100%; height: 48px; padding: 0; border: 4px solid var(--season-accent); background: transparent; }
#brushSize { accent-color: var(--season-accent); }

#pixelCanvas {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 1;
  image-rendering: pixelated;
  display: block;
  background: #08210f;
  border: 5px solid var(--season-accent);
  margin: 0 auto;
  box-shadow: 8px 8px 0 #000;
  touch-action: none;
}
.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.swatch { height: 30px; border: 3px solid #000; box-shadow: 2px 2px 0 #000; }

.form-grid { display: grid; gap: 12px; }
label { display: grid; gap: 6px; color: var(--muted); }
.checkbox-label {
  display: flex; gap: 10px; align-items: flex-start;
  background: #07180d; border: 3px solid #315f35; padding: 12px;
}
.checkbox-label input { width: auto; margin-top: 4px; }
input, textarea, select {
  background: #06140c;
  color: var(--text);
  border: 3px solid #315f35;
  padding: 12px;
  outline: none;
  width: 100%;
}
textarea { resize: vertical; min-height: 84px; }
input:focus, textarea:focus, select:focus { border-color: var(--season-accent); }

.artwork-card-preview,
.artwork-tile,
.artwork-detail {
  background:
    linear-gradient(135deg, rgba(255,255,255,.03), transparent),
    #07180d;
  border: 4px solid var(--season-accent);
  box-shadow: 8px 8px 0 #000;
  padding: 14px;
  position: relative;
}
.artwork-image-wrap {
  background:
    radial-gradient(circle at 30% 25%, rgba(215,255,114,.10), transparent 28%),
    radial-gradient(circle at 75% 80%, rgba(93,247,212,.09), transparent 32%),
    linear-gradient(180deg, #07180d, #041006);
  border: 4px solid #315f35;
  display: grid;
  place-items: center;
  padding: 14px;
}
.artwork-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: pixelated;
}
.artwork-title {
  font-size: 20px;
  font-weight: 900;
  margin: 12px 0 4px;
  text-shadow: 3px 3px 0 #000;
}
.artwork-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.winner-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--season-bright);
  color: #07180d;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-weight: 900;
  padding: 6px 8px;
  transform: rotate(3deg);
  z-index: 2;
}

.artwork-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.artwork-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.section-block { margin-top: 24px; }
.card-actions { display: grid; gap: 8px; margin-top: 12px; }
.vote-row, .reaction-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.print-btn {
  color: var(--text);
  background: #102b24;
  border: 3px solid var(--cyan);
  padding: 10px 12px;
  box-shadow: 4px 4px 0 #020804;
}
.print-btn.active { background: var(--cyan); color: #041006; font-weight: 900; }
.link-btn { color: var(--cyan); background: transparent; border: 0; padding: 0; text-decoration: underline; box-shadow: none; }

.ranking-list, .admin-list, .archive-weeks { display: grid; gap: 10px; }
.rank-item, .admin-item, .archive-week {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #07180d;
  border: 3px solid #315f35;
  padding: 12px;
  box-shadow: 4px 4px 0 #000;
}
.rank-num { color: var(--season-bright); font-size: 24px; font-weight: 900; }
.archive-week { cursor: pointer; }
.archive-week:hover, .archive-week.active { border-color: var(--season-bright); background: #12391f; }

.detail-layout { display: grid; grid-template-columns: minmax(300px, 540px) 1fr; gap: 24px; align-items: start; }
.artwork-detail .artwork-title { font-size: 32px; }
.artwork-detail .artwork-image-wrap { padding: 24px; }

.chat-layout { max-width: 900px; margin: 0 auto; }
.chat-messages {
  height: min(60vh, 560px);
  overflow: auto;
  background: #041006;
  border: 4px solid #315f35;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-message {
  background: #0d2b18;
  border: 3px solid #315f35;
  padding: 10px;
  box-shadow: 3px 3px 0 #000;
}
.chat-message b { color: var(--season-bright); }
.chat-message span { color: var(--muted); font-size: 12px; }
.chat-input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }

.profile-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.profile-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.profile-stats div { background: #07180d; border: 3px solid #315f35; padding: 12px; }
.profile-stats b { display: block; font-size: 24px; color: var(--season-bright); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.badge { display: inline-flex; gap: 6px; align-items: center; background: #07180d; border: 3px solid var(--season-accent); padding: 8px 10px; box-shadow: 3px 3px 0 #000; }
.admin-thumb { width: 72px; height: 72px; image-rendering: pixelated; object-fit: contain; border: 3px solid var(--season-accent); background: #06140c; }

hr { border: 0; border-top: 3px solid #315f35; margin: 18px 0; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.72);
  padding: 20px;
}
.modal-card {
  width: min(520px, 100%);
  background: #0d2b18;
  border: 4px solid var(--season-accent);
  padding: 22px;
  box-shadow: 10px 10px 0 #000;
  position: relative;
  display: grid;
  gap: 12px;
}
.modal-close { position: absolute; right: 10px; top: 8px; background: transparent; color: white; font-size: 30px; }
.tabs { display: flex; gap: 8px; }
.message { color: var(--season-bright); min-height: 20px; }
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #12391f;
  color: white;
  border: 4px solid var(--season-accent);
  box-shadow: 6px 6px 0 #000;
  padding: 14px 16px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 40px));
}
.hidden { display: none !important; }
.empty-state {
  background: #07180d;
  border: 3px dashed #315f35;
  padding: 22px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1250px) {
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar, .upload-panel { position: static; }
  .tool-group { grid-template-columns: repeat(3, 1fr); }
  .palette { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto 1fr auto; }
  .mobile-menu { display: block; }
  .nav { display: none; grid-column: 1 / -1; justify-content: flex-start; }
  .nav.open { display: flex; }
  .landing-grid, .detail-layout { grid-template-columns: 1fr; }
  .podium-showcase { min-height: 560px; }
  .landing-cards, .hero-stats, .profile-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  main { padding: 18px 10px 70px; }
  .topbar { padding: 12px; grid-template-columns: auto 1fr; }
  .top-actions { grid-column: 1 / -1; justify-content: space-between; }
  .logo { font-size: 23px; }
  .landing-cards, .hero-stats, .profile-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .tool-group { grid-template-columns: 1fr 1fr; }
  .podium-stage { min-height: 520px; }
  .podium-1 { top: 92px; }
  .podium-1 img { width: 180px; height: 180px; }
  .podium-2 { top: 275px; left: 20px; }
  .podium-2 img { width: 110px; height: 110px; }
  .podium-3 { top: 285px; right: 20px; }
  .podium-3 img { width: 100px; height: 100px; }
  .rank-item, .admin-item, .archive-week { grid-template-columns: 1fr; }
  .chat-input-row { grid-template-columns: 1fr; }
}


.home-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 24px;
  align-items: start;
}

.home-chat-panel {
  min-height: 430px;
}

.home-chat-messages {
  height: 300px;
}

.artist-link {
  color: var(--cyan);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 900;
}

.comments-box {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  background: #041006;
  border: 3px solid #315f35;
  padding: 12px;
  margin-bottom: 12px;
}

.comment-item {
  background: #0d2b18;
  border: 3px solid #315f35;
  box-shadow: 3px 3px 0 #000;
  padding: 10px;
}

.comment-item b {
  color: var(--season-bright);
  cursor: pointer;
  text-decoration: underline;
}

.comment-item span {
  color: var(--muted);
  font-size: 12px;
}

.comment-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.xp-wrap {
  margin-top: 16px;
  background: #041006;
  border: 3px solid #315f35;
  box-shadow: 4px 4px 0 #000;
  padding: 10px;
}

.xp-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.xp-bar {
  height: 24px;
  background: #07180d;
  border: 3px solid #000;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background:
    linear-gradient(90deg, var(--season-accent), var(--season-bright));
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.12);
  transition: width .4s steps(8);
}

.profile-click-hint {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1300px) {
  .topbar {
    grid-template-columns: auto minmax(220px, 320px) 1fr auto;
    gap: 14px;
  }
  .nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 1100px) {
  .home-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .comment-input-row {
    grid-template-columns: 1fr;
  }
  .home-chat-messages {
    height: 260px;
  }
}


/* =========================
   PRINT FUND
========================= */

.print-fund-panel {
  position: relative;
  overflow: hidden;
}

.print-fund-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(215, 255, 114, .35);
  pointer-events: none;
}

.fund-big {
  font-size: 42px;
  font-weight: 900;
  color: var(--season-bright);
  text-shadow: 4px 4px 0 #000;
  margin: 12px 0;
}

.fund-big small {
  font-size: 20px;
  color: var(--muted);
}

.fund-bar {
  height: 34px;
  background: #041006;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  margin: 14px 0;
}

.fund-fill {
  width: 0%;
  height: 100%;
  background:
    linear-gradient(90deg, var(--season-accent), var(--season-bright));
  transition: width .5s steps(10);
}

.fund-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  margin: 12px 0;
}

.fund-meta b {
  color: var(--season-bright);
}

.fund-disclaimer {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.fund-link {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 14px;
}

.admin-fund-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
  background: #07180d;
  border: 3px solid #315f35;
  padding: 14px;
  box-shadow: 4px 4px 0 #000;
}

.admin-fund-form label:nth-child(6),
.admin-fund-form button {
  grid-column: 1 / -1;
}

@media (max-width: 720px) {
  .admin-fund-form {
    grid-template-columns: 1fr;
  }

  .fund-big {
    font-size: 32px;
  }

  .fund-meta {
    flex-direction: column;
  }
}


/* =========================
   ADMIN PROMPT
========================= */

.admin-prompt-form {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
  background: #07180d;
  border: 3px solid #315f35;
  padding: 14px;
  box-shadow: 4px 4px 0 #000;
}

.prompt-admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.prompt-admin-actions button {
  flex: 1 1 220px;
}


/* =========================
   V9 POLISH OVERRIDES
========================= */

.avatar {
  width: 34px;
  height: 34px;
  border: 3px solid var(--season-accent);
  background: #041006;
  object-fit: cover;
  image-rendering: pixelated;
  box-shadow: 3px 3px 0 #000;
}

.avatar.big {
  width: 96px;
  height: 96px;
  border-width: 4px;
  box-shadow: 5px 5px 0 #000;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-upload-box {
  margin-top: 16px;
  background: #07180d;
  border: 3px solid #315f35;
  box-shadow: 4px 4px 0 #000;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-actions button,
.avatar-actions label {
  flex: 1 1 180px;
}

.avatar-file-label {
  color: var(--text);
  background: #0f2c19;
  border: 3px solid #315f35;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 #020804;
  text-align: center;
  cursor: pointer;
}

.avatar-file-label input {
  display: none;
}

.chat-message-head,
.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.chat-message-head b,
.comment-head b {
  color: var(--season-bright);
  cursor: pointer;
  text-decoration: underline;
}

.chat-message-head span,
.comment-head span {
  color: var(--muted);
  font-size: 12px;
}

/* Smooth animations */
.floating-pixels span {
  animation: floaty 11s infinite ease-in-out;
}

.podium-art {
  animation: hoverPodiumSmooth 3.4s infinite ease-in-out;
}

.podium-2 {
  animation-delay: .55s;
}

.podium-3 {
  animation-delay: 1.1s;
}

@keyframes hoverPodiumSmooth {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.podium-1 {
  transform: translateX(-50%);
}

.podium-1.podium-art {
  animation-name: hoverPodiumSmoothCenter;
}

@keyframes hoverPodiumSmoothCenter {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-16px);
  }
}

@media (min-width: 1500px) {
  .topbar {
    grid-template-columns: 340px minmax(0, 1fr) max-content;
    gap: 34px;
    padding-left: 38px;
    padding-right: 38px;
  }

  .nav {
    gap: 16px;
  }

  .nav-btn {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1380px) {
  .topbar {
    grid-template-columns: 280px minmax(0, 1fr) max-content;
    gap: 16px;
    padding: 14px 18px;
  }

  .logo {
    font-size: 28px;
  }

  .brand-mark {
    width: 52px;
    height: 52px;
  }

  .nav {
    gap: 8px;
  }

  .nav-btn {
    min-width: 78px;
    padding: 11px 9px;
    font-size: 15px;
  }

  .auth-area .small {
    max-width: 110px;
  }
}

@media (max-width: 1120px) {
  .topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: auto;
  }

  .mobile-menu {
    display: block;
    grid-column: 1;
  }

  .brand {
    grid-column: 2;
  }

  .top-actions {
    grid-column: 3;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    padding-top: 12px;
  }

  .nav.open {
    display: grid;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding: 12px;
  }

  .mobile-menu {
    grid-column: 1;
  }

  .brand {
    grid-column: 2;
  }

  .top-actions {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .logo {
    font-size: 23px;
  }

  .tagline {
    font-size: 10px;
  }

  .nav {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .profile-title-row {
    align-items: flex-start;
  }

  .avatar.big {
    width: 72px;
    height: 72px;
  }
}


/* =========================
   V10 SOCIAL POLISH
========================= */

.top-actions {
  margin-left: auto;
}

.auth-area .small {
  display: none !important;
}

.friend-actions,
.profile-comment-box,
.private-chat-box,
.achievements-box {
  margin-top: 16px;
  background: #07180d;
  border: 3px solid #315f35;
  box-shadow: 4px 4px 0 #000;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.friend-actions {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-comment-list,
.private-message-list {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  background: #041006;
  border: 3px solid #315f35;
  padding: 12px;
}

.private-message {
  background: #0d2b18;
  border: 3px solid #315f35;
  box-shadow: 3px 3px 0 #000;
  padding: 10px;
}

.private-message.mine {
  border-color: var(--season-accent);
  margin-left: 32px;
}

.private-message.theirs {
  margin-right: 32px;
}

.profile-comment-input,
.private-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .profile-comment-input,
  .private-input-row {
    grid-template-columns: 1fr;
  }

  .private-message.mine,
  .private-message.theirs {
    margin-left: 0;
    margin-right: 0;
  }
}


/* =========================
   V11 NOTIFICATIONS / CHAT MODERATION
========================= */

.notification-btn {
  color: var(--text);
  background: #0f2c19;
  border: 3px solid #315f35;
  padding: 12px 14px;
  box-shadow: 4px 4px 0 #020804;
  white-space: nowrap;
  min-width: 74px;
}

.notification-btn.has-items {
  border-color: var(--season-bright);
  background: var(--season-accent);
  color: #06140c;
  font-weight: 900;
  animation: notifyPulse 1.4s infinite ease-in-out;
}

@keyframes notifyPulse {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-2px); filter: brightness(1.25); }
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  background: #07180d;
  border: 3px solid #315f35;
  padding: 12px;
  box-shadow: 4px 4px 0 #000;
  display: grid;
  gap: 10px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-status-box {
  background: #351414;
  border: 3px solid #b33;
  color: #fff;
  padding: 12px;
  box-shadow: 4px 4px 0 #000;
  margin-bottom: 12px;
}

.admin-chat-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-chat-controls button {
  padding: 9px 10px;
}

@media (max-width: 720px) {
  .notification-btn {
    min-width: auto;
  }

  .admin-chat-controls {
    grid-template-columns: 1fr;
  }
}


/* =========================
   V12 LOGO / FAVICON HEADER
========================= */

.logo-brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  cursor: pointer;
  min-width: 0;
}

.site-logo-img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: auto;
}

.logo-brand .brand-mark,
.logo-brand .logo,
.logo-brand .tagline {
  display: none !important;
}

@media (min-width: 1500px) {
  .topbar {
    grid-template-columns: 330px minmax(0, 1fr) max-content;
  }

  .site-logo-img {
    width: 310px;
  }
}

@media (max-width: 1380px) {
  .topbar {
    grid-template-columns: 280px minmax(0, 1fr) max-content;
  }

  .site-logo-img {
    width: 260px;
  }
}

@media (max-width: 1120px) {
  .logo-brand {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .site-logo-img {
    width: 210px;
  }
}
