/* Home promo — free server CTA + public top */
.home-promo {
  position: relative;
  max-width: none;
  margin: 0 0 1.35rem;
  padding: .9rem 1rem 1rem;
  border: 3px solid #6b3d22;
  background:
    linear-gradient(135deg, rgba(255, 252, 245, .94) 0%, rgba(232, 247, 255, .9) 55%, rgba(214, 245, 200, .88) 100%);
  box-shadow: 4px 4px 0 rgba(31, 45, 40, .14);
  overflow: hidden;
}
.home-promo-layout {
  position: relative;
  z-index: 1;
}
.home-promo-track {
  display: grid;
  gap: 1rem;
  align-items: start;
}
.home-promo-slide { min-width: 0; }
.home-promo-dots {
  display: none;
}
@media (min-width: 900px) {
  .home-promo-track {
    grid-template-columns: minmax(0, 1.05fr) minmax(17rem, .95fr);
    gap: 1.25rem;
  }
}
@media (max-width: 899px) {
  .home-promo-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    /* pan-y: page scroll; horizontal swipe handled in JS */
    touch-action: pan-y;
  }
  .home-promo-track::-webkit-scrollbar { display: none; }
  .home-promo-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .home-promo-inner { max-width: none; }
  .home-promo-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: .65rem;
  }
  .home-promo-dots button {
    width: .55rem;
    height: .55rem;
    padding: 0;
    border: 2px solid #6b3d22;
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    box-shadow: 1px 1px 0 rgba(31, 45, 40, .12);
    cursor: pointer;
  }
  .home-promo-dots button.is-active {
    background: #5dbd3a;
    border-color: #2f7a28;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-promo-track { scroll-behavior: auto; }
}
.home-promo-glow {
  position: absolute;
  inset: -28% -14% auto auto;
  width: min(160px, 42vw);
  height: min(160px, 42vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 74, .3), transparent 68%);
  pointer-events: none;
}
.home-promo-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .5rem;
  max-width: 28rem;
}
.home-promo .brand-kicker {
  margin: 0;
  font-size: .68rem;
}
.home-promo h1 {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-weight: 800;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.22;
  letter-spacing: .01em;
  color: #1a3d18;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .55);
}
.home-promo-lead {
  margin: 0;
  color: #3b536b;
  font-size: .88rem;
  line-height: 1.4;
}
.home-promo-games {
  list-style: none;
  margin: .05rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.home-promo-games li {
  padding: .22rem .5rem;
  border: 2px solid rgba(47, 122, 40, .28);
  background: rgba(93, 189, 58, .14);
  color: #1a3d18;
  font-family: var(--brand-font, Oxanium, sans-serif);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .02em;
}
.home-promo-perks {
  list-style: none;
  margin: .1rem 0 0;
  padding: 0;
  display: grid;
  gap: .28rem;
}
.home-promo-perks li {
  position: relative;
  padding-left: 1rem;
  color: #2a4034;
  line-height: 1.35;
  font-size: .82rem;
}
.home-promo-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  width: .45rem;
  height: .45rem;
  background: #5dbd3a;
  box-shadow: 1px 1px 0 #2f7a28;
}
.home-promo-perks strong {
  color: #1a3d18;
  font-weight: 800;
}
.home-promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .2rem;
}
.home-promo-actions .btn.game {
  min-height: 2.25rem;
  padding: .45rem .85rem;
  font-size: .88rem;
}
/* RuStore download badge */
.rustore-badge {
  --rs-ink: #f4f8ff;
  --rs-muted: rgba(220, 232, 255, .78);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--rs-ink);
  border: 3px solid #1a2f5c;
  background:
    linear-gradient(135deg, #152a55 0%, #0d1f42 55%, #1a3d7a 100%);
  box-shadow:
    3px 3px 0 rgba(20, 35, 70, .28),
    inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.rustore-badge:hover {
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    4px 5px 0 rgba(20, 35, 70, .3),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  filter: brightness(1.06);
}
.rustore-badge:active {
  transform: translateY(1px);
  box-shadow: 1px 1px 0 rgba(20, 35, 70, .28);
}
.rustore-badge-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.rustore-badge-mark svg {
  display: block;
  width: 2.15rem;
  height: 2.15rem;
}
.rustore-badge-copy {
  display: grid;
  gap: .05rem;
  min-width: 0;
  text-align: left;
}
.rustore-badge-kicker {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--rs-muted);
  line-height: 1.1;
}
.rustore-badge-title {
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .01em;
  line-height: 1.15;
  color: #fff;
}
.rustore-badge-sub {
  font-size: .72rem;
  font-weight: 650;
  color: var(--rs-muted);
  line-height: 1.2;
}

.rustore-badge-badge {
  padding: .42rem .75rem .42rem .48rem;
  border-radius: .55rem;
  min-height: 2.7rem;
}
.rustore-badge-badge .rustore-badge-title {
  font-size: 1rem;
}

.rustore-badge-compact {
  gap: .4rem;
  padding: .28rem .55rem .28rem .3rem;
  border-radius: 999px;
  border-width: 2px;
  min-height: 2.15rem;
  align-self: flex-start;
}
.side-rustore {
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid rgba(40, 70, 40, .18);
}
.side-rustore .rustore-badge {
  width: 100%;
  box-sizing: border-box;
}
.rustore-badge-compact .rustore-badge-mark svg {
  width: 1.45rem;
  height: 1.45rem;
}
.rustore-badge-compact .rustore-badge-title {
  font-size: .78rem;
  padding-right: .15rem;
}

.rustore-badge-banner {
  gap: .75rem;
  padding: .7rem .95rem .7rem .65rem;
  border-radius: .65rem;
  min-width: min(100%, 17.5rem);
  flex-shrink: 0;
}
.rustore-badge-banner .rustore-badge-mark svg {
  width: 2.55rem;
  height: 2.55rem;
}
.rustore-badge-banner .rustore-badge-title {
  font-size: 1.05rem;
}

.home-app-strip {
  position: relative;
  margin: 0 0 1.35rem;
  padding: .95rem 1rem;
  border: 3px solid #1a2f5c;
  background:
    linear-gradient(120deg, rgba(226, 238, 255, .95) 0%, rgba(255, 252, 245, .92) 48%, rgba(210, 232, 255, .9) 100%);
  box-shadow: 4px 4px 0 rgba(26, 47, 92, .16);
  overflow: hidden;
}
.home-app-strip::before {
  content: "";
  position: absolute;
  inset: auto -8% -40% auto;
  width: min(220px, 55vw);
  height: min(220px, 55vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 140, 255, .28), transparent 70%);
  pointer-events: none;
}
.home-app-strip-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .85rem 1.25rem;
}
.home-app-copy {
  display: grid;
  gap: .28rem;
  min-width: min(100%, 18rem);
  flex: 1 1 14rem;
}
.home-app-copy .brand-kicker {
  margin: 0;
  font-size: .68rem;
  color: #1a3d7a;
}
.home-app-copy h2 {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  line-height: 1.2;
  color: #12264f;
}
.home-app-lead {
  margin: 0;
  max-width: 34rem;
  color: #3b536b;
  font-size: .86rem;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .home-promo { padding: .85rem .85rem .95rem; }
  .home-promo-actions .btn.game { flex: 1 1 auto; }
  .home-app-strip { padding: .85rem; }
  .rustore-badge-banner { width: 100%; justify-content: flex-start; }
  .rustore-badge-compact .rustore-badge-title { display: none; }
  .rustore-badge-compact { padding: .28rem; border-radius: 999px; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-promo {
    animation: home-promo-in .45s cubic-bezier(.16, 1, .3, 1) both;
  }
  .home-app-strip {
    animation: home-promo-in .5s cubic-bezier(.16, 1, .3, 1) .08s both;
  }
  .home-promo-games li {
    animation: home-promo-chip .4s ease both;
  }
  .home-promo-games li:nth-child(2) { animation-delay: .06s; }
  .home-promo-games li:nth-child(3) { animation-delay: .12s; }
  .home-top-item { animation: home-promo-chip .4s ease both; }
  .home-top-item:nth-child(1) { animation-delay: .05s; }
  .home-top-item:nth-child(2) { animation-delay: .1s; }
  .home-top-item:nth-child(3) { animation-delay: .15s; }
}
.home-top-servers {
  position: relative;
  z-index: 1;
  padding: .8rem .85rem .9rem;
  border: 3px solid #6b3d22;
  background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(232, 246, 220, .72));
  border-radius: .5rem;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .45) inset,
    5px 6px 0 rgba(31, 45, 40, .12);
}
.home-top-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .55rem;
}
.home-top-head h2 {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-size: .95rem;
  font-weight: 800;
  color: #1a3d18;
}
.home-top-all {
  font-size: .78rem;
  font-weight: 700;
  color: #2f6b28;
  text-decoration: none;
}
.home-top-all:hover { text-decoration: underline; }
.home-top-empty { margin: 0 0 .55rem; }
.home-top-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.home-top-item {
  border: 3px solid rgba(107, 61, 34, .32);
  border-radius: .45rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(248, 252, 255, .9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .5) inset,
    3px 4px 0 rgba(31, 45, 40, .1);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.home-top-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .55) inset,
    4px 5px 0 rgba(31, 45, 40, .14);
}
.home-top-item.is-gold {
  border-color: rgba(196, 146, 22, .65);
  background: linear-gradient(90deg, rgba(255, 236, 170, .55), rgba(255, 252, 245, .95));
}
.home-top-item.is-silver {
  border-color: rgba(120, 135, 150, .55);
  background: linear-gradient(90deg, rgba(225, 232, 240, .7), rgba(255, 252, 245, .95));
}
.home-top-item.is-bronze {
  border-color: rgba(166, 108, 55, .55);
  background: linear-gradient(90deg, rgba(242, 214, 186, .55), rgba(255, 252, 245, .95));
}
.home-top-link {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
  padding: .5rem .55rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.home-top-link:hover .home-top-name { color: #1f6b28; }
.home-top-link:focus-visible {
  outline: 3px solid #2f7a28;
  outline-offset: 2px;
}
.home-top-rank {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: .35rem;
  font-size: .72rem;
  font-weight: 800;
  background: rgba(47, 90, 122, .12);
  color: #2a4034;
  border: 2px solid rgba(47, 90, 122, .2);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .08);
}
.home-top-item.is-gold .home-top-rank {
  background: #e8b923;
  color: #3a2a05;
  border-color: #a67c12;
}
.home-top-item.is-silver .home-top-rank {
  background: #b8c2cc;
  color: #243040;
  border-color: #7a8794;
}
.home-top-item.is-bronze .home-top-rank {
  background: #c8844a;
  color: #2e1808;
  border-color: #8a5228;
}
.home-top-body { min-width: 0; display: grid; gap: .28rem; }
.home-top-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .5rem;
  min-width: 0;
}
.home-top-name {
  font-size: .88rem;
  font-weight: 800;
  color: #1a3d18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.home-top-online {
  font-size: .78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  flex-shrink: 0;
  line-height: 1.1;
}
.home-top-online.is-on { color: #1a7a22; }
.home-top-online.is-off { color: #c62828; }
.home-top-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  font-size: .68rem;
  color: #5a7084;
}
.home-top-game {
  font-weight: 700;
  color: #3b536b;
}
.home-top-addr {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .68rem;
  color: #1a3d18;
  padding: .18rem .45rem;
  border: 2px solid #6b3d22;
  border-radius: .3rem;
  background: linear-gradient(180deg, #fffef8, #e8f6d8);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .12);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-top-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .05rem;
  min-width: 2.75rem;
  padding: .28rem .4rem;
  border: 2px solid rgba(196, 146, 22, .55);
  border-radius: .4rem;
  background: linear-gradient(180deg, rgba(255, 246, 200, .95), rgba(232, 185, 35, .35));
  box-shadow: 2px 2px 0 rgba(107, 78, 10, .12);
  color: #6b4e0a;
  line-height: 1.1;
}
.home-top-star {
  font-size: .95rem;
  line-height: 1;
  color: #d4a017;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.home-top-rating-val {
  font-size: .72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-top-boost-tag {
  font-size: .55rem;
  letter-spacing: .04em;
  font-weight: 800;
  color: #8a2e0a;
}
@media (prefers-reduced-motion: reduce) {
  .home-top-item { transition: none; }
}
.play-boost-modal {
  display: grid;
  gap: .65rem;
  max-width: 22rem;
  width: min(92vw, 22rem);
}
.play-boost-presets {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.boost-history { display: grid; gap: .4rem; }
.boost-history .row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .7rem;
}
.boost-history .boost-active {
  border-color: rgba(196, 146, 22, .45);
  background: rgba(255, 236, 170, .25);
}
@keyframes home-promo-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes home-promo-chip {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Public catalog /play */
.play-page { margin: 0 0 2rem; }
.play-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin: 0 0 1rem;
}
.play-head h1 {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  color: #1a3d18;
}
.play-lead {
  margin: .25rem 0 0;
  color: #3b536b;
  font-size: .9rem;
  max-width: 36rem;
}
.play-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1rem;
  align-items: center;
}
.play-filters .form-input { min-width: 10rem; max-width: 16rem; }
.play-kind-tabs { display: flex; flex-wrap: wrap; gap: .3rem; }
.play-kind-tab {
  border: 2px solid rgba(47, 122, 40, .25);
  background: rgba(255, 255, 255, .7);
  border-radius: .35rem;
  padding: .28rem .55rem;
  font-size: .78rem;
  font-weight: 700;
  color: #2a4034;
  cursor: pointer;
  text-decoration: none;
}
.play-kind-tab.is-active {
  background: rgba(93, 189, 58, .22);
  border-color: rgba(47, 122, 40, .45);
  color: #1a3d18;
}
.play-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.play-card {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: .65rem;
  align-items: center;
  padding: .75rem .9rem;
  border: 3px solid rgba(107, 61, 34, .28);
  border-radius: .5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(232, 246, 220, .75));
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .45) inset,
    5px 6px 0 rgba(31, 45, 40, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}
.play-card:hover {
  border-color: rgba(47, 122, 40, .5);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .5) inset,
    6px 8px 0 rgba(31, 45, 40, .16);
}
.play-card:focus-visible {
  outline: 3px solid #2f7a28;
  outline-offset: 2px;
}
.play-card.is-gold {
  border-color: rgba(196, 146, 22, .5);
  background: linear-gradient(90deg, rgba(255, 236, 170, .4), rgba(255, 255, 255, .9));
}
.play-card.is-silver {
  border-color: rgba(120, 135, 150, .45);
  background: linear-gradient(90deg, rgba(225, 232, 240, .55), rgba(255, 255, 255, .9));
}
.play-card.is-bronze {
  border-color: rgba(166, 108, 55, .45);
  background: linear-gradient(90deg, rgba(242, 214, 186, .4), rgba(255, 255, 255, .9));
}
.play-rank {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: .35rem;
  font-weight: 800;
  font-size: .8rem;
  background: rgba(47, 90, 122, .12);
  border: 2px solid rgba(47, 90, 122, .2);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .08);
  color: #2a4034;
}
.play-card.is-gold .play-rank {
  background: #e8b923;
  color: #3a2a05;
  border-color: #a67c12;
}
.play-card.is-silver .play-rank {
  background: #b8c2cc;
  color: #243040;
  border-color: #7a8794;
}
.play-card.is-bronze .play-rank {
  background: #c8844a;
  color: #2e1808;
  border-color: #8a5228;
}
.play-card-body { min-width: 0; display: grid; gap: .3rem; }
.play-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .55rem;
  min-width: 0;
}
.play-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a3d18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.play-card-online {
  font-size: .88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  line-height: 1.1;
}
.play-card-online.is-on { color: #1a7a22; }
.play-card-online.is-off { color: #c62828; }
.play-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  font-size: .78rem;
  color: #5a7084;
}
.play-card-game { font-weight: 700; color: #3b536b; }
.play-card-addr {
  display: inline-flex;
  align-items: center;
  font-family: ui-monospace, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: .78rem;
  color: #1a3d18;
  padding: .22rem .5rem;
  border: 2px solid #6b3d22;
  border-radius: .3rem;
  background: linear-gradient(180deg, #fffef8, #e8f6d8);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .12);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.play-card-rating {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .05rem;
  min-width: 3rem;
  font-weight: 800;
  color: #6b4e0a;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 246, 200, .95), rgba(232, 185, 35, .35));
  border: 2px solid rgba(196, 146, 22, .55);
  border-radius: .4rem;
  padding: .35rem .5rem;
  line-height: 1.1;
  box-shadow: 2px 2px 0 rgba(107, 78, 10, .12);
}
.play-card-star {
  font-size: 1.05rem;
  line-height: 1;
  color: #d4a017;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.play-card-rating-val {
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.play-card-rating-hint {
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #8a6a12;
  opacity: .9;
}
.play-status {
  display: inline-block;
  padding: .08rem .35rem;
  border-radius: .25rem;
  font-size: .68rem;
  font-weight: 700;
}
.play-status.is-online { background: rgba(93, 189, 58, .22); color: #1a4d18; }
.play-status.is-offline { background: rgba(120, 135, 150, .2); color: #44505c; }
.play-badge-boost {
  background: rgba(232, 185, 35, .28) !important;
  border-color: rgba(196, 146, 22, .5) !important;
  color: #6b4e0a !important;
}
.play-online-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem 1rem;
  margin: .55rem 0 0;
  padding: .7rem .9rem;
  border-radius: .45rem;
  border: 2px solid rgba(47, 122, 40, .35);
  background: rgba(93, 189, 58, .16);
  max-width: 28rem;
}
.play-online-panel.is-offline {
  border-color: rgba(90, 105, 120, .35);
  background: rgba(120, 135, 150, .14);
}
.play-online-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: #2f9e3a;
  box-shadow: 0 0 0 4px rgba(47, 158, 58, .22);
  flex-shrink: 0;
}
.play-online-panel.is-offline .play-online-dot {
  background: #8a97a5;
  box-shadow: 0 0 0 4px rgba(120, 135, 150, .2);
}
.play-online-text {
  display: grid;
  gap: .05rem;
  min-width: 0;
}
.play-online-label {
  font-size: .72rem;
  font-weight: 700;
  color: #3b536b;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.play-online-count {
  font-variant-numeric: tabular-nums;
  color: #1a3d18;
  line-height: 1.1;
}
.play-online-count strong {
  font-size: 1.45rem;
  font-weight: 800;
}
.play-online-max {
  font-size: 1rem;
  font-weight: 700;
  opacity: .65;
}
.play-online-since { margin-left: auto; }

/* Standalone /play/{slug} landing (no panel chrome) */
.play-landing-shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.play-landing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.25rem;
  padding: .85rem clamp(1rem, 3vw, 1.75rem);
  background: linear-gradient(180deg, rgba(255, 252, 245, .88), rgba(255, 252, 245, .55));
  border-bottom: 3px solid rgba(107, 61, 34, .35);
  box-shadow: 0 6px 0 rgba(31, 45, 40, .06);
  backdrop-filter: blur(8px);
}
.play-landing-brand { text-decoration: none; }
.play-landing-back {
  font-weight: 800;
  font-size: .88rem;
  color: #1a3d18;
  text-decoration: none;
  padding: .45rem .85rem;
  border: 3px solid #6b3d22;
  border-radius: .4rem;
  background: linear-gradient(180deg, #fffef8, #e8f6d8);
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.play-landing-back:hover {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 rgba(31, 45, 40, .2);
  filter: brightness(1.03);
}
.play-landing-back:focus-visible {
  outline: 3px solid #2f7a28;
  outline-offset: 2px;
}
.play-landing-main {
  flex: 1;
  width: min(100% - 1.5rem, 42rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) 0 3.5rem;
}
.play-landing-loading,
.play-landing-empty {
  text-align: center;
  padding: 2rem 1rem;
}
.play-landing-empty h1 {
  margin: 0 0 .5rem;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  color: #1a3d18;
}
.play-landing-flash { margin: 0 0 1rem; }

.play-landing {
  display: grid;
  gap: 1.15rem;
}
.play-landing-hero {
  text-align: center;
  padding: 1.35rem 1.1rem 1.5rem;
  border: 4px solid #6b3d22;
  border-radius: .65rem;
  background:
    linear-gradient(165deg, rgba(255, 253, 246, .96) 0%, rgba(214, 245, 200, .9) 55%, rgba(176, 224, 230, .55) 100%);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .45) inset,
    8px 10px 0 rgba(31, 45, 40, .16),
    0 18px 36px rgba(47, 90, 122, .12);
}
.play-landing-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem;
  margin: 0 0 .75rem;
  min-height: 1.4rem;
}
.play-landing-chip {
  display: inline-flex;
  align-items: center;
  padding: .28rem .65rem;
  border-radius: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  border: 2px solid rgba(47, 122, 40, .35);
  background: rgba(255, 255, 255, .75);
  color: #1a3d18;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .1);
}
.play-landing-chip.is-rank-1 {
  background: linear-gradient(180deg, #ffe566, #e8b923);
  border-color: #a67c12;
  color: #3a2a05;
}
.play-landing-chip.is-rank-2 {
  background: linear-gradient(180deg, #eef2f6, #b8c2cc);
  border-color: #7a8794;
  color: #243040;
}
.play-landing-chip.is-rank-3 {
  background: linear-gradient(180deg, #f6d4b0, #c8844a);
  border-color: #8a5228;
  color: #2e1808;
}
.play-landing-chip.is-boost {
  background: rgba(232, 185, 35, .35);
  border-color: rgba(196, 146, 22, .55);
  color: #6b4e0a;
}
.play-landing-title {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-size: clamp(2.35rem, 9vw, 3.75rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.05;
  color: #145214;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, .65),
    3px 4px 0 rgba(31, 45, 40, .12);
  word-break: break-word;
}
.play-landing-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem .85rem;
  margin: 1rem 0 0;
}
.play-landing-kind {
  display: inline-flex;
  align-items: center;
  padding: .4rem .85rem;
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  font-weight: 800;
  color: #1a3d18;
  background: rgba(93, 189, 58, .28);
  border: 3px solid rgba(47, 122, 40, .45);
  border-radius: .4rem;
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .12);
}
.play-landing-rating {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .4rem .85rem;
  background: rgba(232, 185, 35, .32);
  border: 3px solid rgba(196, 146, 22, .55);
  border-radius: .4rem;
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .12);
  color: #6b4e0a;
}
.play-landing-rating-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
}
.play-landing-rating strong {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.play-landing-stats { display: grid; gap: .75rem; }
.play-landing-stat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  padding: 1rem 1.15rem;
  border-radius: .55rem;
  border: 4px solid #6b3d22;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .4) inset,
    6px 8px 0 rgba(31, 45, 40, .14);
}
.play-landing-online.is-online {
  background: linear-gradient(135deg, rgba(93, 189, 58, .35), rgba(214, 245, 200, .85));
}
.play-landing-online.is-offline {
  background: linear-gradient(135deg, rgba(160, 175, 190, .28), rgba(236, 240, 244, .9));
}
.play-landing-stat-dot {
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.play-landing-online.is-online .play-landing-stat-dot {
  background: #2f9e3a;
  box-shadow: 0 0 0 5px rgba(47, 158, 58, .25);
  animation: play-pulse 1.6s ease-in-out infinite;
}
.play-landing-online.is-offline .play-landing-stat-dot {
  background: #8a97a5;
  box-shadow: 0 0 0 5px rgba(120, 135, 150, .22);
}
.play-landing-stat-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #3b536b;
}
.play-landing-stat-value {
  margin: .1rem 0 0;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #1a3d18;
}
.play-landing-stat-value strong {
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 800;
}
.play-landing-stat-value span {
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 700;
  opacity: .65;
}
.play-landing-stat-status {
  margin-left: auto;
  font-size: .82rem;
  font-weight: 800;
  color: #2a4034;
}

.play-landing-connect {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 4px solid #6b3d22;
  border-radius: .55rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(232, 246, 220, .88));
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, .5) inset,
    6px 8px 0 rgba(31, 45, 40, .14);
}
.play-landing-addr-label {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #3b536b;
  margin: 0;
}
.play-landing-fields {
  display: grid;
  gap: .65rem;
}
.play-landing-field {
  display: grid;
  gap: .3rem;
}
.play-landing-field-label {
  font-size: .72rem;
  font-weight: 800;
  color: #3b536b;
}
.play-landing-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}
.play-landing-addr {
  margin: 0;
  flex: 1 1 8rem;
  min-width: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 800;
  font-size: clamp(1.05rem, 3.5vw, 1.4rem);
  color: #145214;
  word-break: break-all;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .7);
  padding: .45rem .65rem;
  border: 3px solid #6b3d22;
  border-radius: .4rem;
  background: linear-gradient(180deg, #fffef8, #e8f6d8);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .1);
}
.play-landing-port {
  flex: 0 1 auto;
  font-variant-numeric: tabular-nums;
}
.play-landing-copy {
  flex: 0 0 auto;
  min-height: 44px;
  cursor: pointer;
}
.play-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.play-landing-btn {
  flex: 1 1 10rem;
  min-height: 48px;
  justify-content: center;
  font-size: 1rem !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.play-landing-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.play-landing-boost-btn {
  background: linear-gradient(180deg, #ffe566, #e8b923) !important;
  border-color: #a67c12 !important;
  color: #3a2a05 !important;
  box-shadow: 4px 4px 0 rgba(107, 78, 10, .25) !important;
}

.play-landing-about {
  padding: 1.1rem 1.15rem;
  border: 3px solid rgba(107, 61, 34, .4);
  border-radius: .5rem;
  background: rgba(255, 252, 245, .88);
  box-shadow: 5px 6px 0 rgba(31, 45, 40, .1);
  display: grid;
  gap: .75rem;
}
.play-landing-about-title {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-size: 1.05rem;
  color: #1a3d18;
}
.play-landing-desc {
  white-space: pre-wrap;
  line-height: 1.55;
  color: #2a4034;
  font-size: .95rem;
}
.play-landing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0;
  list-style: none;
  padding: 0;
}
.play-landing-tags li {
  padding: .22rem .5rem;
  border-radius: .3rem;
  border: 2px solid rgba(47, 90, 122, .2);
  background: rgba(47, 90, 122, .1);
  font-size: .75rem;
  font-weight: 700;
  color: #2a4034;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .06);
}
.play-landing-social {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.play-landing-cta {
  text-align: center;
  padding: 1.1rem 1.15rem;
  border: 4px solid #6b3d22;
  border-radius: .5rem;
  background: linear-gradient(135deg, rgba(255, 252, 245, .94), rgba(176, 224, 230, .55));
  box-shadow: 6px 8px 0 rgba(31, 45, 40, .12);
}
.play-landing-cta p {
  margin: 0 0 .7rem;
  font-weight: 700;
  color: #2a4034;
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(47, 158, 58, .22); }
  50% { box-shadow: 0 0 0 9px rgba(47, 158, 58, .12); }
}

@media (prefers-reduced-motion: no-preference) {
  .play-landing-hero,
  .play-landing-stat,
  .play-landing-connect {
    animation: play-landing-in .4s cubic-bezier(.16, 1, .3, 1) both;
  }
  .play-landing-stat { animation-delay: .06s; }
  .play-landing-connect { animation-delay: .12s; }
  .play-landing-about { animation: play-landing-in .4s cubic-bezier(.16, 1, .3, 1) .18s both; }
  .play-landing-cta { animation: play-landing-in .4s cubic-bezier(.16, 1, .3, 1) .24s both; }
}
@media (prefers-reduced-motion: reduce) {
  .play-landing-online.is-online .play-landing-stat-dot { animation: none; }
  .play-landing-btn,
  .play-landing-back { transition: none; }
}
@keyframes play-landing-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .play-landing-stat-status { margin-left: 0; width: 100%; }
  .play-landing-actions { flex-direction: column; }
  .play-landing-btn { flex: 1 1 auto; width: 100%; }
}

/* Legacy play-server bits (catalog still uses tags etc.) */
.play-desc {
  white-space: pre-wrap;
  line-height: 1.5;
  color: #2a4034;
  margin: 0 0 1rem;
}
.play-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 0 0 1.25rem;
  list-style: none;
  padding: 0;
}
.play-tags li {
  padding: .18rem .45rem;
  border-radius: .3rem;
  background: rgba(47, 90, 122, .1);
  font-size: .75rem;
  font-weight: 700;
  color: #2a4034;
}
.play-cta {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 3px solid #6b3d22;
  border-radius: .45rem;
  background: linear-gradient(135deg, rgba(255, 252, 245, .94), rgba(214, 245, 200, .88));
}
.play-cta h2 { margin: 0 0 .35rem; font-size: 1.05rem; color: #1a3d18; }
.play-cta p { margin: 0 0 .65rem; color: #3b536b; font-size: .88rem; }
.listing-charge-hint {
  padding: .45rem .6rem;
  border-radius: .35rem;
  border: 2px solid rgba(196, 146, 22, .45);
  background: rgba(255, 236, 170, .35);
  color: #6b4e0a !important;
  font-weight: 700;
}
.listing-form {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.25rem;
  padding: .85rem .9rem;
  border: 2px solid rgba(47, 90, 122, .16);
  border-radius: .45rem;
  background: rgba(248, 252, 255, .75);
}
.listing-form label { display: grid; gap: .25rem; }
.listing-check {
  display: flex !important;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  color: #1a3d18;
}
.listing-desc { min-height: 5.5rem; resize: vertical; }

/* News feed & article */
.news-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.news-article-head {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
}
.news-feed-head-compact {
  margin-bottom: .85rem;
  padding-top: .15rem;
  border-top: 2px dashed rgba(31, 45, 40, .12);
}
.news-feed-title {
  margin: .35rem 0 0;
  font-family: Oxanium, Nunito, sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: .01em;
  color: #1a3350;
}
.news-feed-head h1,
.news-article-head h1 {
  margin: .15rem 0 .35rem;
  font-family: Oxanium, Nunito, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  color: #1a3350;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.news-feed-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.news-list {
  display: grid;
  gap: 1.1rem;
}
.news-card {
  display: grid;
  gap: .85rem;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  border: 3px solid #6b3d22;
  background: #fffaf0;
  background-image: linear-gradient(160deg, #fffaf0 0%, #eef8ff 55%, #dff5c8 100%);
  box-shadow: 5px 5px 0 rgba(31, 45, 40, .14);
  position: relative;
}
.news-card.is-pinned {
  border-color: #b8860b;
}
.news-pin {
  position: absolute;
  z-index: 2;
  top: .7rem;
  left: .7rem;
  padding: .2rem .55rem;
  border-radius: 0;
  background: rgba(255, 214, 120, .98);
  color: #5a3a10;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .12);
}
.news-card-body {
  display: grid;
  gap: .7rem;
  padding: 1rem 1.1rem 1.1rem;
}
.news-card-panel {
  margin: 0;
  padding: .7rem .8rem;
  border: 2px solid rgba(107, 61, 34, .22);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.news-card-title-panel {
  padding: .75rem .85rem .8rem;
  border-color: #3c7a22;
  background: linear-gradient(180deg, #86d155 0%, #63b437 46%, #47912a 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .38),
    inset 0 -2px 0 rgba(28, 74, 18, .28);
}
.news-card-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  font-family: Oxanium, Nunito, sans-serif;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: .01em;
}
.news-card-title a {
  display: inline;
  color: #fffef7;
  text-decoration: none;
  text-shadow: 0 2px 0 rgba(26, 68, 16, .45);
}
.news-card-title a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
}
.news-card-summary {
  margin: 0;
  color: #1e2f3f;
  line-height: 1.55;
  font-size: 1.02rem;
  font-weight: 600;
}
.news-card-summary-panel .news-carousel {
  border: 2px solid rgba(107, 61, 34, .22);
  background: rgba(20, 50, 80, .06);
}
.news-card-summary-panel .news-carousel + .news-card-summary {
  margin-top: .7rem;
}
.news-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem .65rem;
  margin: 0;
  padding: .65rem .75rem;
  border: 2px solid rgba(107, 61, 34, .22);
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
@media (min-width: 640px) {
  .news-card-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.news-card-meta-item {
  display: grid;
  gap: .12rem;
  min-width: 0;
}
.news-card-meta-label {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6a7f92;
  font-family: var(--brand-font, Oxanium, sans-serif);
}
.news-card-meta-item time,
.news-card-meta-item span:not(.news-card-meta-label) {
  color: #1f2d28;
  font-weight: 700;
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
}
.news-card-reactions {
  display: grid;
  gap: .35rem;
}
.news-react-summary {
  flex-wrap: wrap;
}
.news-reactions-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
  margin-bottom: .55rem;
}
.news-reactions-head .news-section-title { margin: 0; }
.emoji-chip-add {
  min-width: 2rem;
  justify-content: center;
  font-weight: 800;
  color: #2a6f28;
}
.emoji-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(30, 70, 110, .38);
  backdrop-filter: blur(5px);
}
.emoji-modal {
  width: min(420px, 100%);
  max-height: min(80vh, 560px);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 3px solid #6b3d22;
  border-radius: 0;
  background: linear-gradient(160deg, #fffaf0 0%, #eef8ff 55%, #dff5c8 100%);
  box-shadow: 5px 5px 0 rgba(31, 45, 40, .18);
  color: #1f2d28;
}
.emoji-modal-title {
  margin: 0 0 .35rem;
  font-family: Oxanium, Nunito, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a3350;
}
.emoji-modal-text {
  margin: 0 0 .85rem;
  color: #5a7390;
  line-height: 1.4;
  font-size: .92rem;
}
.emoji-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3.1rem, 1fr));
  gap: .4rem;
}
.emoji-modal-grid .emoji-chip {
  justify-content: center;
  min-height: 2.4rem;
}
.emoji-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1rem;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .45rem;
  align-items: center;
  color: #5a7188;
  font-size: .86rem;
  margin-bottom: .75rem;
}
.news-author { margin-left: auto; opacity: .85; }
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 1.35rem 0 .5rem;
}
.news-page-btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 .55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(31, 45, 40, .16);
  background: rgba(255, 252, 245, .92);
  color: #1f2d28;
  font-family: var(--brand-font, Oxanium, sans-serif);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .1);
}
a.news-page-btn:hover {
  text-decoration: none;
  background: #fff;
  border-color: #3f9e3a;
  color: #1a3d18;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .14);
}
.news-page-btn.is-current {
  background: #5dbd3a;
  border-color: #2f7a28;
  color: #0b2a12;
  box-shadow: 2px 2px 0 rgba(47, 122, 40, .25);
}
.news-page-btn.is-disabled {
  opacity: .35;
  pointer-events: none;
}
.news-page-ellipsis {
  min-width: 1.5rem;
  text-align: center;
  color: #5a7188;
  font-weight: 700;
}
.news-empty { text-align: center; }

.news-carousel {
  position: relative;
  overflow: hidden;
  background: rgba(20, 50, 80, .08);
  touch-action: pan-y;
}
.news-carousel-lg { border-radius: 16px; margin-bottom: 1rem; }
.news-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.news-carousel-track::-webkit-scrollbar { display: none; }
.news-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: block;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.news-carousel-slide img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(180px, 42vw, 360px);
  object-fit: cover;
}
.news-image-open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: inherit;
  color: inherit;
  font: inherit;
}
.news-image-open img {
  pointer-events: none;
}
/* Fullscreen image viewer — keep in news.css so feed/article work without chat.css updates */
.news-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(8, 14, 12, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.news-lightbox img {
  max-width: min(96vw, 1100px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  cursor: default;
  background: rgba(255,255,255,.04);
}
.news-lightbox-close {
  position: absolute;
  top: .75rem;
  right: .85rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.news-lightbox-close:hover {
  background: rgba(0,0,0,.65);
}
.news-carousel-lg .news-carousel-slide img {
  height: clamp(220px, 48vw, 460px);
}
.news-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(20,40,70,.45);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.news-carousel-btn.prev { left: .55rem; }
.news-carousel-btn.next { right: .55rem; }
@media (min-width: 861px) {
  .news-carousel-btn { display: inline-flex; }
}
.news-carousel-dots {
  position: absolute;
  left: 0; right: 0; bottom: .55rem;
  display: flex;
  justify-content: center;
  gap: .35rem;
  z-index: 2;
  pointer-events: none;
}
.news-carousel-dots span {
  width: .45rem; height: .45rem;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}
.news-carousel-dots span.is-active { background: #fff; }

.news-video-badge {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(40, 90, 50, .15);
  border: 1px solid rgba(40, 90, 50, .35);
  color: #2a5535;
  font-size: .78rem;
  font-weight: 800;
  font-family: var(--pixel-font), Oxanium, monospace;
  letter-spacing: 0;
}
.news-file-badge {
  display: inline-flex;
  align-items: center;
  margin-left: .45rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(40, 90, 140, .12);
  border: 1px solid rgba(40, 90, 140, .3);
  color: #2a4a6a;
  font-size: .78rem;
  font-weight: 800;
  font-family: var(--pixel-font), Oxanium, monospace;
}

.news-videos {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.news-attachments {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  border: 2px solid rgba(107, 61, 34, .22);
  background: rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.news-attachments .news-section-title {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
}
.news-attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.news-attachment-link {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .7rem;
  border: 2px solid rgba(107, 61, 34, .2);
  background: linear-gradient(180deg, #fffef8, #f3f8ff);
  color: #1f2d28;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .08);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.news-attachment-link:hover {
  text-decoration: none;
  color: #143018;
  border-color: rgba(63, 158, 58, .5);
  background: #e7f8da;
  transform: translateY(-1px);
}
.news-attachment-icon { flex: 0 0 auto; }
.news-attachment-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.news-attachment-size {
  flex: 0 0 auto;
  color: #6a7f92;
  font-size: .82rem;
  font-weight: 700;
}

/* Minecraft-style video player */
.mc-player {
  --mc-dirt: #8b5a2b;
  --mc-dirt-dark: #5c3a18;
  --mc-grass: #5d9e3a;
  --mc-stone: #7a7a7a;
  --mc-slot: #c6c6c6;
  border: 4px solid #3a2a1a;
  border-radius: 4px;
  background:
    linear-gradient(#6fb344, #6fb344) top / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, #8b5a2b 0 16px, #7a4e24 16px 32px);
  box-shadow:
    0 0 0 2px #2a1c10,
    0 10px 24px rgba(40, 30, 10, .28);
  overflow: hidden;
  max-width: 52rem;
}
.mc-player-screen {
  position: relative;
  background: #0b1a12;
  aspect-ratio: 16 / 9;
  border-bottom: 3px solid var(--mc-dirt-dark);
}
.mc-player-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #07140e;
}
.mc-player-bigplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4.2rem;
  height: 4.2rem;
  border: 3px solid #1a1208;
  border-radius: 4px;
  background: linear-gradient(180deg, #8fd35a, #4e8a2f);
  color: #163012;
  font-size: 1.4rem;
  font-family: var(--pixel-font), Oxanium, monospace;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 4px 0 #2f5518;
  image-rendering: pixelated;
}
.mc-player-bigplay:hover { filter: brightness(1.08); }
.mc-player.is-playing .mc-player-bigplay { display: none; }
.mc-player-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .55rem;
  background:
    repeating-linear-gradient(90deg, #9a9a9a 0 8px, #7e7e7e 8px 16px);
  border-top: 2px solid #bdbdbd;
}
.mc-player-btn {
  flex: 0 0 auto;
  min-width: 2rem;
  height: 2rem;
  border: 2px solid #222;
  border-radius: 2px;
  background: linear-gradient(180deg, #d8d8d8, #9e9e9e);
  color: #1a1a1a;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  font-family: var(--pixel-font), Oxanium, monospace;
  padding: 0 .35rem;
}
.mc-player-btn:hover { filter: brightness(1.05); }
.mc-player-track {
  position: relative;
  flex: 1 1 auto;
  height: .85rem;
  border: 2px solid #222;
  border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, #3d2a18 0 6px, #2a1c10 6px 12px);
  cursor: pointer;
  overflow: hidden;
}
.mc-player-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(180deg, #8fd35a, #3f7a28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
  pointer-events: none;
}
.mc-player-time {
  flex: 0 0 auto;
  min-width: 3.4rem;
  font-size: .62rem;
  font-family: var(--pixel-font), Oxanium, monospace;
  color: #1d140c;
  text-shadow: 0 1px 0 rgba(255,255,255,.35);
}

.news-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .75rem;
}

/* Article page — opaque Minecraft-themed panel (Pixel Art + editorial clarity) */
.news-article {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.25rem 1.35rem 1.5rem;
  border: 4px solid #6b3d22;
  border-radius: 0;
  background: #fffaf0;
  background-image:
    linear-gradient(160deg,
      #fffaf0 0%,
      #eef8ff 48%,
      #dff5c8 100%);
  box-shadow: 6px 6px 0 rgba(31, 45, 40, .16);
}
.news-article .news-article-head {
  display: grid;
  gap: .45rem;
  align-items: start;
  justify-content: stretch;
  position: relative;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 2px dashed rgba(31, 45, 40, .12);
}
.news-article .news-pin {
  position: static;
  justify-self: start;
  margin-bottom: .15rem;
}
.news-article .news-meta {
  margin-bottom: .15rem;
}
.news-article .news-share {
  margin-top: .15rem;
}
.news-lead {
  font-size: 1.05rem;
  color: #35506a;
  line-height: 1.5;
  max-width: 52rem;
  margin: 0;
}
.news-body {
  max-width: 52rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #24384d;
}
.news-body p { margin: 0 0 1rem; white-space: pre-wrap; }
.news-section-title {
  font-family: Oxanium, Nunito, sans-serif;
  font-size: 1.15rem;
  margin: 1.35rem 0 .75rem;
  color: #1a3350;
}
.news-share { margin-top: .35rem; }

.news-comment-form {
  display: grid;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 0;
  border: 2px solid rgba(107, 61, 34, .28);
  background: rgba(255, 252, 245, .92);
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .08);
}
.comment-inline-reply {
  margin: .7rem 0 .25rem;
  padding: .75rem .8rem .8rem;
  border-radius: 10px;
  border: 2px solid rgba(60, 130, 90, .32);
  background: rgba(255, 255, 255, .92);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .08);
}
.comment-inline-reply .field { margin-bottom: 0; }
.comment-actions .btn.tiny-btn.is-active {
  border-color: rgba(40, 140, 90, .55);
  background: rgba(90, 200, 140, .2);
}
.news-comment-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
}
.news-comment-emoji-bar {
  padding: .55rem .6rem;
  border: 2px solid rgba(47, 122, 40, .22);
  background: rgba(232, 247, 255, .75);
}
.news-tool-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.25rem;
  padding: .4rem .75rem;
  border: 2px solid rgba(31, 45, 40, .16);
  border-radius: 0;
  background: rgba(255, 255, 255, .88);
  color: #2a4034;
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  box-shadow: 2px 2px 0 rgba(31, 45, 40, .1);
  user-select: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.news-tool-btn:hover {
  border-color: rgba(47, 122, 40, .45);
  background: #e7f8da;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .12);
}
.news-tool-btn.is-active {
  border-color: rgba(47, 122, 40, .55);
  background: rgba(93, 189, 58, .18);
  color: #1a3d18;
}
.news-tool-btn .attach-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.news-tool-icon {
  display: inline-flex;
  line-height: 0;
  color: #2f7a28;
}

.emoji-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.emoji-bar.compact { gap: .3rem; }
.emoji-chip {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .28rem .55rem;
  border-radius: 0;
  border: 2px solid rgba(40, 80, 120, .22);
  background: rgba(255, 255, 255, .85);
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
  box-shadow: 1px 1px 0 rgba(31, 45, 40, .08);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.emoji-chip:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(40, 120, 80, .4);
}
.emoji-chip.is-mine {
  background: rgba(90, 200, 140, .22);
  border-color: rgba(40, 140, 90, .45);
}
.emoji-chip:disabled { opacity: .55; cursor: not-allowed; }
.emoji-count { font-size: .78rem; color: #3d5a73; font-weight: 700; }

.comment-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}
.comment-tree.replies {
  margin-top: .65rem;
  padding-left: .85rem;
  border-left: 3px solid rgba(60, 130, 90, .28);
}
.comment-branch-toggle {
  display: inline-flex;
  align-items: center;
  margin-top: .55rem;
  padding: .35rem .7rem;
  border-radius: 8px;
  border: 2px solid rgba(60, 130, 90, .35);
  background: rgba(90, 200, 140, .14);
  color: #14521c;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  box-shadow: 1px 1px 0 rgba(31, 45, 40, .08);
}
.comment-branch-toggle:hover {
  background: rgba(90, 200, 140, .24);
  border-color: rgba(60, 130, 90, .5);
}
.comment-branch-toggle.is-open {
  background: rgba(255, 255, 255, .85);
  border-color: rgba(40, 80, 120, .28);
  color: #2a4034;
}
.comment-item {
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(40, 80, 120, .14);
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  align-items: flex-start;
  margin-bottom: .35rem;
}
.comment-author {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.comment-author .avatar-stage.mini {
  --frame-pad: 4px;
  flex-shrink: 0;
}
.comment-author .avatar-stage.mini .avatar-ring {
  width: 56px;
  height: 56px;
}
.comment-author .avatar-stage.mini .avatar-fallback {
  font-size: 1rem;
}
.comment-author .avatar-frame-badge.mini {
  right: 1px;
  bottom: -4px;
  min-height: 1.05rem;
  padding: .14rem .32rem .16rem;
  font-size: .36rem;
}
.comment-author-meta {
  min-width: 0;
  display: grid;
  gap: .15rem;
}
.comment-author-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .45rem;
}
.comment-author-line strong {
  color: #1a3350;
}
.comment-body {
  white-space: pre-wrap;
  line-height: 1.45;
  color: #24384d;
}
.comment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .55rem;
}
.comment-mod-panel {
  margin-top: .65rem;
  padding: .7rem .8rem;
  border-radius: 10px;
  border: 1px dashed rgba(180, 70, 60, .35);
  background: rgba(255, 240, 235, .75);
  display: grid;
  gap: .55rem;
}
.comment-mod-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}
.comment-mod-row select {
  margin-left: .35rem;
  padding: .2rem .4rem;
  border-radius: 6px;
  border: 1px solid rgba(40,80,120,.25);
}
.btn.tiny-btn.is-reported {
  opacity: .7;
  cursor: default;
}
.comment-highlight {
  outline: 2px solid rgba(220, 140, 40, .85);
  box-shadow: 0 0 0 4px rgba(255, 200, 80, .35);
  transition: outline .3s ease, box-shadow .3s ease;
}
.badge.warn {
  background: rgba(220, 160, 40, .2);
  color: #7a4e10;
  border: 1px solid rgba(200, 140, 40, .4);
}

.notif-dropdown {
  position: relative;
}
.notif-btn {
  position: relative;
  width: 2.15rem;
  height: 2.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.55);
  color: #1a3350;
  text-decoration: none;
  font-size: 1rem;
}
.notif-btn .nav-badge {
  position: absolute;
  top: -.25rem;
  right: -.3rem;
}
.notif-page { max-width: 42rem; }
.notif-list {
  display: grid;
  gap: .75rem;
  margin-top: .35rem;
}
.notif-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .85rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  border: 2px solid rgba(45, 90, 40, .22);
  background: linear-gradient(180deg, #fffef8 0%, #f3f9ec 100%);
  box-shadow: 0 4px 14px rgba(30, 60, 20, .08);
  color: #163018;
}
.notif-card.is-unread {
  border-color: rgba(62, 150, 50, .55);
  background: linear-gradient(180deg, #fffdf0 0%, #e8f7d8 100%);
  box-shadow:
    inset 4px 0 0 #3f9e3a,
    0 6px 16px rgba(40, 100, 30, .12);
}
.notif-card.is-read {
  opacity: .92;
}
.notif-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(45, 90, 40, .18);
  flex-shrink: 0;
}
.notif-card-body {
  display: grid;
  gap: .35rem;
  min-width: 0;
}
.notif-card-top {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  flex-wrap: wrap;
}
.notif-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #14320f;
}
.notif-card-title a {
  color: inherit;
  text-decoration: none;
}
.notif-card-title a:hover {
  color: #1a5fb4;
  text-decoration: underline;
}
.notif-new {
  display: inline-flex;
  align-items: center;
  padding: .12rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #1d4d18;
  background: rgba(90, 200, 100, .35);
  border: 1px solid rgba(45, 120, 40, .35);
}
.notif-card-text {
  margin: 0;
  font-size: .95rem;
  line-height: 1.45;
  color: #1e3a1a;
  font-weight: 600;
}
.notif-card-time {
  font-size: .78rem;
  color: #5a6e52;
  font-weight: 600;
}

/* legacy hooks (keep if referenced elsewhere) */
.notif-item {
  display: grid;
  gap: .2rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(40,80,120,.12);
}
.notif-item.is-unread { background: rgba(90, 200, 140, .08); margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; border-radius: 8px; }
.notif-item a { color: #16324f; text-decoration: none; font-weight: 700; }
.notif-item a:hover { text-decoration: underline; }


/* Admin news board — published cards, separate from editor */
.admin-news-board {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 3px solid #6b3d22;
  background:
    linear-gradient(160deg, rgba(255, 252, 245, .96) 0%, rgba(232, 247, 255, .9) 55%, rgba(220, 245, 210, .88) 100%);
  box-shadow: 5px 5px 0 rgba(31, 45, 40, .12);
}
.admin-news-board .page-head {
  margin-bottom: 1rem;
}
.admin-news-board h2 {
  margin: 0;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-weight: 800;
  color: #1a3d18;
  font-size: 1.35rem;
}
.admin-news-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  border: 2px dashed rgba(47, 122, 40, .28);
  background: rgba(255, 255, 255, .55);
  color: #2a4034;
}
.admin-news-cards {
  display: grid;
  gap: .75rem;
}
.admin-news-cards.is-compact {
  gap: .55rem;
}
.admin-news-card {
  display: grid;
  gap: .75rem;
  align-items: start;
  padding: .95rem 1rem;
  border: 2px solid rgba(47, 122, 40, .22);
  background: rgba(255, 255, 255, .82);
  box-shadow: 3px 3px 0 rgba(31, 45, 40, .08);
  position: relative;
  transition: border-color .15s ease, transform .12s ease, box-shadow .12s ease;
}
@media (min-width: 720px) {
  .admin-news-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
.admin-news-card:hover {
  border-color: rgba(47, 122, 40, .45);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 rgba(31, 45, 40, .12);
}
.admin-news-card.is-pinned {
  border-color: rgba(210, 150, 40, .55);
  background: linear-gradient(135deg, rgba(255, 248, 220, .95), rgba(255, 255, 255, .88));
}
.admin-news-card.is-draft {
  border-style: dashed;
  opacity: .92;
}
.admin-news-card.is-editing {
  outline: 3px solid rgba(93, 189, 58, .45);
  outline-offset: 2px;
}
.admin-news-badge.pin {
  position: absolute;
  top: .55rem;
  right: .55rem;
  padding: .18rem .5rem;
  background: rgba(255, 214, 120, .95);
  color: #5a3a10;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.admin-news-card-title {
  margin: 0 0 .2rem;
  font-family: var(--brand-font, Oxanium, Nunito, sans-serif);
  font-weight: 800;
  font-size: 1.08rem;
  color: #16324f;
  line-height: 1.25;
  padding-right: 4.5rem;
}
.admin-news-card.is-draft .admin-news-card-title,
.admin-news-card:not(.is-pinned) .admin-news-card-title {
  padding-right: 0;
}
.admin-news-card-slug {
  margin: 0 0 .45rem;
  color: #5a7188;
  font-size: .82rem;
}
.admin-news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .45rem;
  align-items: center;
  color: #5a7188;
  font-size: .84rem;
}
.admin-news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.admin-react-modal {
  width: min(440px, 100%);
}
.admin-react-users {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
  max-height: min(48vh, 320px);
  overflow: auto;
}
.admin-react-users li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .65rem;
  border: 1px solid color-mix(in srgb, #6b3d22 22%, transparent);
  background: color-mix(in srgb, #fff 72%, transparent);
}
.admin-react-user-login {
  font-weight: 700;
  color: #16324f;
  word-break: break-word;
}
.admin-news-drafts {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.admin-news-drafts h3 {
  margin: 0 0 .65rem;
  font-family: var(--brand-font, Oxanium, sans-serif);
  font-size: 1rem;
  color: #3b536b;
}
.admin-news-editor {
  scroll-margin-top: 5rem;
}

.admin-news-form {
  display: grid;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.admin-news-form .row2 {
  display: grid;
  gap: .75rem;
}
@media (min-width: 760px) {
  .admin-news-form .row2 { grid-template-columns: 1fr 1fr; }
}
.admin-news-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
}
.admin-news-media {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: .85rem 0 .25rem;
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}
.admin-news-file-btn {
  position: relative;
  display: inline-flex;
  margin-top: .35rem;
  cursor: pointer;
}
.admin-news-file-btn .btn {
  pointer-events: none;
}
.admin-news-file-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.admin-news-thumbs {
  margin-top: .75rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: .5rem;
}
.admin-news-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(31, 45, 40, .14);
  background: rgba(20, 50, 80, .08);
}
.admin-news-thumbs img,
.admin-news-thumb img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
}
.admin-news-thumb-remove {
  position: absolute;
  top: .3rem;
  right: .3rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.55);
  background: rgba(160, 30, 30, .88);
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.admin-news-thumb-remove:hover:not(:disabled) {
  background: rgba(190, 40, 40, .95);
}
.admin-news-thumb-remove:disabled {
  opacity: .55;
  cursor: wait;
}
.admin-news-video-list {
  margin-top: .65rem;
}

/* ===== Mobile news + comments ===== */
@media (max-width: 720px) {
  .news-card {
    box-shadow: 3px 3px 0 rgba(31, 45, 40, .12);
  }
  .news-card-body {
    padding: .7rem .65rem .8rem;
    gap: .55rem;
  }
  .news-card-panel {
    padding: .55rem .6rem;
  }
  .news-card-title {
    font-size: clamp(1.15rem, 5.5vw, 1.4rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  /* Drop nested panel chrome around media — image full width, no crooked inset */
  .news-card-summary-panel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .news-card-summary-panel .news-carousel {
    border: 2px solid rgba(107, 61, 34, .28);
    background: rgba(20, 50, 80, .06);
    width: 100%;
  }
  .news-card-summary-panel .news-carousel + .news-card-summary,
  .news-card-summary-panel > .news-card-summary {
    margin: .55rem .6rem .65rem;
  }
  .news-carousel-slide img {
    height: clamp(160px, 52vw, 280px);
  }
  .news-card-actions {
    gap: .4rem;
  }
  .news-card-actions .btn {
    flex: 1 1 calc(50% - .4rem);
    justify-content: center;
    min-height: 2.5rem;
  }
  .news-card-meta {
    padding: .55rem .6rem;
    gap: .4rem .5rem;
  }
  .news-card-meta-item time,
  .news-card-meta-item span:not(.news-card-meta-label) {
    font-size: .82rem;
  }

  .news-article {
    padding-left: .15rem;
    padding-right: .15rem;
  }
  .news-carousel-lg {
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .news-carousel-lg .news-carousel-slide img {
    height: clamp(180px, 55vw, 320px);
  }

  /* Flat comment threads: rail instead of nested shrinking cards */
  .comment-tree {
    gap: .45rem;
  }
  .comment-tree.replies {
    margin-top: .4rem;
    padding-left: .55rem;
    border-left: 2px solid rgba(60, 130, 90, .4);
  }
  /* Cap indent after 2 reply levels — no more narrowing */
  .comment-tree.replies .comment-tree.replies {
    padding-left: .4rem;
  }
  .comment-tree.replies .comment-tree.replies .comment-tree.replies {
    padding-left: 0;
    border-left-color: rgba(60, 130, 90, .22);
  }
  .comment-item {
    padding: .65rem .7rem;
  }
  .comment-item.is-reply {
    padding: .4rem 0 .35rem .1rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .comment-author {
    gap: .5rem;
  }
  .comment-author .avatar-stage.mini {
    --frame-pad: 3px;
  }
  .comment-author .avatar-stage.mini .avatar-ring {
    width: 40px;
    height: 40px;
  }
  .comment-author .avatar-stage.mini .avatar-fallback {
    font-size: .85rem;
  }
  .comment-author-meta time {
    font-size: .72rem;
    line-height: 1.25;
  }
  .comment-actions {
    gap: .35rem;
    margin-top: .4rem;
  }
  .comment-actions .btn.tiny-btn {
    min-height: 2.25rem;
    padding: .35rem .65rem;
  }
  .comment-inline-reply {
    margin: .5rem 0 .15rem;
    padding: .6rem .65rem;
  }
  .comment-branch-toggle {
    width: 100%;
    justify-content: center;
    min-height: 2.35rem;
  }
  .news-comment-form {
    padding: .75rem .7rem;
  }
  .news-tool-btn {
    min-height: 2.4rem;
  }
}

@media (max-width: 420px) {
  .news-card-actions .btn {
    flex: 1 1 100%;
  }
  .comment-tree.replies {
    padding-left: .4rem;
  }
  .comment-tree.replies .comment-tree.replies {
    padding-left: .25rem;
  }
}
