/* BambiSMP visual polish — intentionally layered over the existing theme for safe rollback. */
:root {
  --ink: #523547;
  --muted: #806577;
  --pink: #ec72aa;
  --pink-dark: #d8498b;
  --pink-soft: #ffe8f2;
  --cream: #fffaf8;
  --line: rgba(220, 139, 178, .34);
  --lilac: #eee6ff;
  --mint: #e4f8ee;
  --surface: rgba(255, 255, 255, .88);
  --surface-solid: #fffdfd;
  --shadow: 0 24px 65px rgba(116, 66, 92, .14);
  --shadow-soft: 0 12px 34px rgba(116, 66, 92, .09);
  --shadow-hover: 0 22px 48px rgba(139, 67, 104, .16);
  --radius: 26px;
  --radius-sm: 16px;
  --ease-bambi: cubic-bezier(.22, .72, .24, 1);
}

html {
  scroll-padding-top: 88px;
}

body {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  background:
    radial-gradient(circle at 5% 4%, rgba(255, 181, 215, .34), transparent 24%),
    radial-gradient(circle at 94% 14%, rgba(221, 207, 255, .44), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(255, 221, 235, .3), transparent 29%),
    linear-gradient(180deg, #fffafd 0%, #fffdf9 50%, #fff8fc 100%);
}

::selection {
  background: #f7b8d4;
  color: #4b2d3e;
}

:focus-visible {
  outline: 3px solid rgba(222, 73, 140, .34);
  outline-offset: 4px;
}

.shell {
  width: min(1200px, calc(100% - 48px));
}

.site-header {
  padding: 11px 0;
  border-bottom-color: rgba(220, 139, 178, .28);
  background: rgba(255, 252, 250, .86);
  box-shadow: 0 8px 30px rgba(106, 61, 85, .045);
  backdrop-filter: blur(22px) saturate(1.16);
}

.nav-wrap {
  min-height: 54px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-color: rgba(220, 126, 171, .42);
  border-radius: 15px;
  box-shadow: 0 9px 22px rgba(191, 79, 133, .14);
  transform: rotate(-2deg);
  transition: transform .35s var(--ease-bambi), box-shadow .35s ease;
}

.brand:hover .brand-mark {
  transform: rotate(2deg) translateY(-2px);
  box-shadow: 0 13px 27px rgba(191, 79, 133, .2);
}

.brand strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  letter-spacing: -.035em;
}

.brand small {
  margin-top: 3px;
  color: #9a7186;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.site-nav {
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(225, 158, 190, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .54);
}

.site-nav a {
  position: relative;
  padding: 9px 13px;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: transparent;
  box-shadow: none;
  color: #735466;
  font-size: 12.5px;
  font-weight: 800;
  transition: color .22s ease, background .22s ease, transform .22s var(--ease-bambi);
}

.site-nav a:hover {
  background: #fff0f6;
  box-shadow: none;
  transform: translateY(-1px);
}

.site-nav a.active {
  border: 0;
  background: linear-gradient(135deg, #f98dbb, #e25b9a);
  box-shadow: 0 8px 18px rgba(216, 73, 139, .2);
  color: #fff;
}

.button,
.vanilla-copy-button,
.discord-widget-join {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 15px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 850;
  letter-spacing: .005em;
  transition: transform .24s var(--ease-bambi), box-shadow .24s ease, border-color .24s ease;
}

.button::after,
.vanilla-copy-button::after,
.discord-widget-join::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -60%;
  bottom: -60%;
  left: -45%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.46), transparent);
  transform: skewX(-20deg);
  transition: left .62s var(--ease-bambi);
}

.button:hover::after,
.vanilla-copy-button:hover::after,
.discord-widget-join:hover::after {
  left: 125%;
}

.button:hover,
.vanilla-copy-button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(135deg, #f27eb2 0%, #df4f91 100%);
  box-shadow: 0 12px 27px rgba(211, 64, 132, .24);
}

.button-primary:hover {
  box-shadow: 0 17px 34px rgba(211, 64, 132, .3);
}

.button-secondary {
  border-color: rgba(221, 143, 181, .36);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 26px rgba(116, 66, 92, .08);
}

.button-secondary:hover {
  border-color: rgba(219, 91, 151, .46);
  box-shadow: 0 15px 32px rgba(116, 66, 92, .13);
}

.hero,
.page-hero {
  position: relative;
}

.home-page .hero {
  padding-top: 24px;
}

.home-page .hero-heading .eyebrow,
.page-hero .eyebrow,
.section-heading .eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .145em;
}

.home-page .hero-heading h1,
.page-hero h1,
.content-block h2,
.section-heading h2,
.yapping-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 650;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.home-page .hero-heading h1,
.home-page .hero-heading h1 span,
.home-page .hero-heading .title-kawaii,
.page-hero h1,
.page-hero h1 span,
.yapping-hero h1,
.yapping-hero h1 span {
  color: #d94a8b !important;
  text-shadow: 0 3px 0 rgba(255,255,255,.84), 0 14px 34px rgba(197, 71, 132, .09);
}

.home-page .hero-heading h1 {
  max-width: 1120px;
  font-family: 'Baloo 2', 'Fredoka', sans-serif;
  font-weight: 700;
  letter-spacing: -.038em;
  font-size: clamp(47px, 4.1vw, 65px);
  line-height: .98;
}

.home-page .hero-frame-wide,
.page-hero-art img,
.image-stack .main-image,
.image-stack .mini-image {
  border-color: rgba(255, 255, 255, .96);
  box-shadow: 0 25px 62px rgba(104, 59, 84, .14), 0 0 0 1px rgba(220, 137, 177, .16);
}

.home-page .hero-frame-wide {
  border-width: 7px;
  border-radius: 28px;
  transform: none;
  transition: box-shadow .45s ease, transform .45s var(--ease-bambi);
}

.home-page .hero-frame-wide:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 72px rgba(104, 59, 84, .19), 0 0 0 1px rgba(220, 137, 177, .2);
}

.home-page .hero-frame-wide img {
  transition-duration: .65s;
  transition-timing-function: var(--ease-bambi);
}

.bunny-card {
  border: 1px solid rgba(221, 143, 181, .28);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(102, 55, 80, .14);
}

.bunny-card img {
  border-radius: 12px;
}

.home-page .hero-copy-full {
  max-width: 960px;
  padding: 16px 24px;
  border-color: rgba(225, 139, 181, .44);
  border-radius: 18px;
  background: rgba(255, 250, 252, .9);
  box-shadow: 0 13px 35px rgba(119, 65, 94, .08);
  backdrop-filter: blur(12px);
  font-size: 17px;
  font-weight: 750;
}

.home-page .hero-copy-full::before,
.home-page .hero-copy-full::after {
  opacity: .55;
}

.card,
.minecraft-status-card,
.vanilla-join-panel,
.server-choice-card,
.wiki-article,
.wiki-sidebar {
  border-color: rgba(220, 139, 178, .3);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.card,
.info-card,
.rule-card,
.server-feature {
  transition: transform .32s var(--ease-bambi), box-shadow .32s ease, border-color .32s ease;
}

.info-card:hover,
.rule-card:hover,
.server-feature:hover,
.feature-card:hover {
  border-color: rgba(217, 74, 139, .36);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.section {
  padding-block: 90px;
}

.section-soft {
  border-color: rgba(226, 151, 187, .24);
  background: linear-gradient(180deg, rgba(255, 232, 243, .42), rgba(250, 239, 255, .26));
}

.section-heading.center {
  max-width: 820px;
}

.section-heading h2 {
  font-size: clamp(35px, 4.5vw, 52px);
}

.section-heading p,
.content-block p,
.info-card p,
.page-hero p {
  color: #806577;
  line-height: 1.75;
}

.info-grid {
  gap: 20px;
}

.info-card {
  padding: 30px;
}

.info-card h2,
.info-card h3,
.feature-card h3,
.server-feature h3,
.rule-card h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 650;
  letter-spacing: -.025em;
}

.hero-server-switcher {
  border-color: rgba(222, 137, 179, .3);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 36px rgba(116, 66, 92, .1);
  backdrop-filter: blur(18px) saturate(1.15);
}

.hero-server-switcher a {
  border-color: transparent;
  border-radius: 11px;
  background: rgba(255, 243, 248, .74);
  box-shadow: none;
}

.hero-server-switcher a.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #f482b5, #dc4d90);
  box-shadow: 0 9px 20px rgba(211, 64, 132, .22);
}

.minecraft-status-card,
.vanilla-join-panel {
  border-radius: 20px;
}

.minecraft-status-main > img {
  border-radius: 14px;
}

.minecraft-status-footer {
  border: 1px solid rgba(229, 166, 197, .24);
  background: linear-gradient(90deg, #fff3f8, #f8f1ff, #fff3f8);
}

.minecraft-status-card.is-online .minecraft-status-badge i,
.status-dot.online,
.discord-presence-online {
  animation: bambi-status-pulse 2.3s ease-in-out infinite;
}

.server-choice-shell {
  padding-block: 56px;
}

.server-choice-card {
  position: relative;
  width: min(880px, 100%);
  padding: 46px;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 253, 253, .91);
  box-shadow: 0 30px 85px rgba(122, 65, 96, .14);
}

.server-choice-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #f48ab8, #cfaeff, #8fd8bd, #f48ab8);
}

.server-choice-logo {
  border: 5px solid #fff;
  border-radius: 24px;
  box-shadow: 0 13px 30px rgba(131, 68, 102, .16);
  transform: rotate(-2deg);
}

.server-choice-option {
  min-height: 168px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(177, 60, 121, .16);
  transition: transform .34s var(--ease-bambi), box-shadow .34s ease, filter .34s ease;
}

.server-choice-option:hover,
.server-choice-option:focus-visible {
  filter: saturate(1.06) brightness(1.015);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(177, 60, 121, .23);
}

.server-choice-option strong {
  font-family: 'Fredoka', sans-serif;
  font-weight: 650;
  letter-spacing: -.02em;
  text-transform: none;
}

.server-choice-option small {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.45;
}

.discord-widget {
  border-color: #edb9c1;
  border-radius: 30px;
  background: #f5cdd2;
  box-shadow: 0 22px 55px rgba(187, 101, 125, .28);
  color: #6f4653;
  transform: rotate(1deg);
  backdrop-filter: none;
}

.discord-widget:hover {
  transform: rotate(.25deg) translateY(-5px);
  box-shadow: 0 28px 68px rgba(187, 101, 125, .36);
}

.discord-widget-heading img {
  border-radius: 15px;
}

.discord-widget-join {
  min-height: 44px;
}

.page-hero {
  padding-top: 78px;
}

.page-hero-art img {
  border-width: 7px;
  border-radius: 25px;
  transform: rotate(1deg);
  transition: transform .5s var(--ease-bambi), box-shadow .5s ease;
}

.page-hero-art:hover img {
  transform: rotate(0) translateY(-4px);
}

.join-ribbon {
  background: linear-gradient(120deg, #ed78aa, #d85b9b 52%, #b96eb4);
  box-shadow: inset 0 1px rgba(255,255,255,.25);
}

.site-footer {
  background:
    radial-gradient(circle at 14% 0%, rgba(233, 112, 170, .16), transparent 28%),
    linear-gradient(145deg, #3f2b38, #352631);
}

.site-footer h3 {
  color: #fff8fb;
  font-size: 17px;
  letter-spacing: -.01em;
}

.site-footer a {
  transition: color .2s ease, transform .2s var(--ease-bambi);
}

.site-footer a:hover {
  transform: translateX(3px);
}

[data-reveal] {
  transform: translateY(18px) scale(.992);
  transition: opacity .72s ease var(--reveal-delay, 0ms), transform .72s var(--ease-bambi) var(--reveal-delay, 0ms);
}

[data-reveal].visible {
  transform: none;
}

.wiki-page .wiki-article {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.wiki-page .wiki-sidebar {
  border-color: var(--line);
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
}

.wiki-page main {
  min-height: calc(100vh - 76px);
}

.wiki-page .wiki-shell {
  width: min(1380px, calc(100% - 48px));
  grid-template-columns: 240px minmax(0, 800px) 190px;
  justify-content: center;
  gap: 40px;
  padding-top: 44px;
  padding-bottom: 110px;
}

.wiki-page .wiki-article-header {
  padding: 18px 0 32px;
}

.wiki-page .wiki-article-header h1 {
  max-width: 760px;
  font-size: clamp(45px, 5vw, 66px);
  line-height: 1.02;
}

.wiki-page .wiki-prose {
  font-size: 16px;
  line-height: 1.75;
}

.wiki-page .wiki-toc {
  padding-left: 2px;
}

.home-page .section-soft .info-card {
  position: relative;
  overflow: hidden;
}

.home-page .section-soft .info-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ef79ae, #c9a8f6, #8fd4b7);
  opacity: .78;
}

/* Read-only Minecraft live chat */
.bambi-live-chat {
  position: fixed;
  z-index: 180;
  right: auto;
  left: 20px;
  bottom: 20px;
  display: grid;
  justify-items: start;
  gap: 10px;
  color: var(--ink);
}

.live-chat-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 5px;
  border: 1px solid rgba(218, 107, 161, .36);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 38px rgba(88, 45, 68, .18);
  color: #664052;
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform .25s var(--ease-bambi), box-shadow .25s ease;
}

.live-chat-toggle img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
}

.live-chat-toggle-status {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #55c99b;
  box-shadow: 0 0 0 3px rgba(85, 201, 155, .13);
  animation: bambi-status-pulse 2.3s ease-in-out infinite;
}

.live-chat-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(88, 45, 68, .23);
}

.live-chat-toggle-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f58ab9, #dd4f91);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  box-shadow: 0 7px 16px rgba(212, 64, 133, .22);
}

.live-chat-toggle-copy {
  display: grid;
  text-align: left;
}

.live-chat-toggle-copy strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
}

.live-chat-toggle-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: #8e6a7c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.live-chat-toggle-copy small::before,
.live-chat-live-badge i {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55c99b;
  box-shadow: 0 0 0 4px rgba(85, 201, 155, .13);
  animation: bambi-status-pulse 2.3s ease-in-out infinite;
}

.live-chat-panel {
  width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(218, 107, 161, .32);
  border-radius: 24px;
  background: rgba(255, 252, 253, .97);
  box-shadow: 0 27px 75px rgba(79, 40, 60, .23);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(.97);
  transform-origin: bottom left;
  backdrop-filter: blur(22px) saturate(1.1);
  transition: opacity .25s ease, visibility .25s ease, transform .32s var(--ease-bambi);
}

.bambi-live-chat.is-open .live-chat-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.bambi-live-chat.is-open .live-chat-toggle {
  display: none;
}

.live-chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(221, 143, 181, .23);
  background: linear-gradient(135deg, rgba(255, 237, 245, .96), rgba(245, 239, 255, .94));
}

.live-chat-brand {
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 7px 16px rgba(121, 61, 92, .14);
}

.live-chat-title {
  display: grid;
  min-width: 0;
}

.live-chat-title strong {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.15;
}

.live-chat-title span {
  margin-top: 2px;
  color: #906b7e;
  font-size: 10px;
  font-weight: 750;
}

.live-chat-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8f8f1;
  color: #268864;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bambi-live-chat.is-stale .live-chat-live-badge {
  background: #fff2e7;
  color: #a66938;
}

.bambi-live-chat.is-stale .live-chat-live-badge i,
.bambi-live-chat.is-stale .live-chat-toggle-status {
  background: #e9a35f;
}

.live-chat-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.72);
  color: #7a5266;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, transform .2s var(--ease-bambi);
}

.live-chat-close:hover {
  background: #fff;
  transform: rotate(4deg);
}

.live-chat-messages {
  display: grid;
  align-content: start;
  gap: 3px;
  height: min(230px, 30vh);
  padding: 9px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #e8a8c7 transparent;
}

.live-chat-message {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: background .2s ease, border-color .2s ease;
}

.live-chat-message:hover {
  border-color: rgba(222, 143, 182, .21);
  background: #fff7fb;
}

.live-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  object-fit: cover;
  background: #f4e8ee;
}

.live-chat-message-body {
  min-width: 0;
}

.live-chat-message header {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.live-chat-message header strong {
  min-width: 0;
  overflow: hidden;
  color: #5f3b4e;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-chat-message time {
  flex: 0 0 auto;
  margin-left: auto;
  color: #ac8a9a;
  font-size: 9px;
  font-weight: 750;
}

.live-chat-message p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: #775568;
  font-size: 12px;
  line-height: 1.4;
}

.live-chat-message-join,
.live-chat-message-leave,
.live-chat-message-achievement {
  margin: 2px 0;
  border-color: rgba(121, 205, 165, .25);
  background: #f3fcf8;
}

.live-chat-message-leave {
  border-color: rgba(235, 127, 150, .24);
  background: #fff7f8;
}

.live-chat-message-achievement {
  border-color: rgba(232, 192, 99, .28);
  background: #fffaf0;
}

.live-chat-message.is-new {
  animation: live-chat-arrive .55s var(--ease-bambi) both;
}

.live-chat-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 220px;
  padding: 30px;
  text-align: center;
}

.live-chat-empty span {
  color: #e05b98;
  font-size: 28px;
}

.live-chat-empty strong {
  margin-top: 7px;
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
}

.live-chat-empty small {
  max-width: 220px;
  margin-top: 4px;
  color: #987789;
  line-height: 1.4;
}

.live-chat-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid rgba(221, 143, 181, .22);
  background: #fffafd;
  color: #957386;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.live-chat-footer span:last-child {
  color: #d74c8c;
}

@keyframes bambi-status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(85, 201, 155, .12); }
  50% { box-shadow: 0 0 0 6px rgba(85, 201, 155, .04); }
}

@keyframes live-chat-arrive {
  from { opacity: 0; transform: translateY(9px) scale(.985); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .site-nav {
    top: 74px;
    gap: 3px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 253, 253, .97);
    box-shadow: 0 22px 55px rgba(91, 48, 70, .18);
    backdrop-filter: blur(20px);
  }

  .site-nav a {
    min-height: 42px;
    display: grid;
    place-items: center;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid rgba(221, 143, 181, .3);
    border-radius: 14px;
    background: rgba(255,255,255,.78);
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    margin: 2px;
    border-radius: 99px;
  }

  .home-page .hero {
    padding-top: 14px;
  }

  .hero-server-switcher {
    margin-bottom: 18px;
  }

  .page-hero-inner {
    gap: 34px;
  }

  .footer-grid {
    gap: 34px;
  }

  .wiki-page .wiki-shell {
    width: min(100% - 40px, 1040px);
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 30px;
  }
}

@media (max-width: 720px) {
  :root {
    --radius: 22px;
  }

  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 15px;
  }

  .shell,
  .home-page .hero-stack {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 8px 0;
  }

  .nav-wrap {
    min-height: 48px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .brand strong {
    font-size: 19px;
  }

  .brand small {
    max-width: 165px;
    overflow: hidden;
    font-size: 8.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-nav {
    left: 14px;
    right: 14px;
    top: 64px;
  }

  .home-page .hero {
    min-height: auto;
    padding: 12px 0 66px;
  }

  .hero-server-switcher {
    width: calc(100% - 28px);
    margin: 0 auto 14px;
    padding: 8px;
    border-radius: 16px;
  }

  .hero-server-switcher > span {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .hero-server-switcher > div {
    grid-template-columns: 1fr 1fr;
  }

  .hero-server-switcher a {
    min-height: 38px;
    padding: 7px 5px;
    font-size: 11px;
  }

  .home-page .hero-stack {
    gap: 9px;
  }

  .home-page .hero-heading .eyebrow {
    max-width: 330px;
    justify-content: center;
    line-height: 1.45;
  }

  .home-page .hero-heading h1,
  .hero h1,
  .page-hero h1 {
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: 1.02;
    letter-spacing: -.045em;
  }

  .home-page .hero-visual-wide {
    min-height: 295px;
  }

  .home-page .hero-frame-wide {
    inset: 4px 0 44px;
    border-width: 5px;
    border-radius: 22px;
  }

  .bunny-card {
    right: 7px;
    max-width: 210px;
    padding: 8px;
    border-radius: 15px;
  }

  .bunny-card img {
    width: 52px;
    height: 52px;
  }

  .bunny-card strong {
    font-size: 12px;
  }

  .bunny-card span {
    font-size: 9px;
  }

  .home-page .hero-copy-full {
    margin-top: 4px;
    padding: 14px 15px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.55;
  }

  .home-page .hero-details .hero-actions {
    width: 100%;
  }

  .home-page .hero-details .hero-actions,
  .home-page .hero-details .hero-secondary-actions,
  .home-page .hero-details .hero-actions .button,
  .home-copy-pill,
  .vanilla-join-panel {
    width: 100%;
  }

  .home-page .hero-details .promise-row {
    gap: 6px;
  }

  .home-page .hero-details .promise-row span {
    padding: 7px 10px;
    font-size: 10px;
  }

  .minecraft-status-card {
    margin: 10px auto 8px;
  }

  .minecraft-status-main {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .minecraft-status-identity {
    min-width: 150px;
  }

  .minecraft-status-badge {
    margin-left: auto;
  }

  .vanilla-join-panel {
    padding: 17px 12px;
  }

  .vanilla-join-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .vanilla-join-address {
    justify-content: center;
    font-size: 14px;
  }

  .vanilla-copy-button {
    width: 100%;
    min-height: 46px;
  }

  .section {
    padding-block: 66px;
  }

  .home-page .hero + .section-soft {
    padding-top: 68px;
  }

  .section-heading.center {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .content-block h2 {
    font-size: clamp(31px, 9.4vw, 43px);
    line-height: 1.07;
  }

  .info-grid,
  .server-feature-grid,
  .rules-grid {
    gap: 14px;
  }

  .info-card,
  .server-feature,
  .rule-card {
    padding: 22px;
    border-radius: 20px;
  }

  .page-hero {
    padding: 48px 0 32px;
  }

  .page-hero-inner {
    gap: 22px;
  }

  .page-hero-art {
    height: 260px;
  }

  .page-hero-art img {
    border-width: 5px;
    border-radius: 20px;
    transform: none;
  }

  .wiki-page .wiki-shell {
    display: block;
    width: min(100% - 28px, 760px);
    padding-top: 22px;
    padding-bottom: 74px;
  }

  .wiki-page .wiki-article-header h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .server-choice-shell {
    min-height: auto;
    padding: 28px 14px 52px;
  }

  .server-choice-card {
    padding: 30px 18px 22px;
    border-radius: 24px;
  }

  .server-choice-logo {
    width: 72px;
    height: 72px;
    border-width: 4px;
    border-radius: 20px;
  }

  .server-choice-card h1 {
    font-size: clamp(34px, 10vw, 45px);
  }

  .server-choice-grid {
    gap: 12px;
    margin-top: 22px;
  }

  .server-choice-option {
    min-height: 126px;
    padding: 18px;
  }

  .discord-widget {
    border-radius: 22px;
  }

  .join-ribbon-inner,
  .ribbon-actions,
  .ribbon-actions .button {
    width: 100%;
  }

  .ribbon-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    margin-top: 34px;
  }

  .bambi-live-chat {
    right: auto;
    left: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .live-chat-toggle {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .live-chat-toggle img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .live-chat-panel {
    width: calc(100vw - 28px);
    max-height: min(620px, calc(100dvh - 92px));
    border-radius: 22px;
  }

  .live-chat-messages {
    height: min(250px, 34dvh);
  }
}

/* Vanilla live status card */
.vanilla-status-card {
  width: min(100%, 980px);
  margin: 4px auto 10px;
  padding: 16px;
  border-radius: 22px;
}

.vanilla-status-card .minecraft-status-identity strong {
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: -.03em;
}

.vanilla-status-connect {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 12px 12px 16px;
  border: 1px solid rgba(211, 117, 164, .22);
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8fb, #fbf6ff);
}

.vanilla-status-ip-label {
  color: #a06d86;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.vanilla-status-connect code {
  min-width: 0;
  overflow: hidden;
  color: #5b394a;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vanilla-status-connect .vanilla-copy-button {
  min-width: 118px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(201, 61, 126, .2);
  font-size: 13px;
}

.vanilla-status-card .minecraft-status-footer {
  margin-top: 10px;
}

@media (max-width: 620px) {
  .vanilla-status-card .minecraft-status-main {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .vanilla-status-card .minecraft-status-badge {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }

  .vanilla-status-connect {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 14px;
    text-align: center;
  }

  .vanilla-status-connect code {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .vanilla-status-connect .vanilla-copy-button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .brand small {
    display: none;
  }

  .hero-server-switcher a {
    font-size: 10px;
  }

  .minecraft-status-badge {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

@media (pointer: coarse) {
  html,
  body,
  body *,
  a,
  button,
  input,
  textarea,
  select,
  [role="button"] {
    cursor: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark,
  .button,
  .card,
  .server-choice-option,
  .live-chat-panel,
  .live-chat-toggle,
  .live-chat-message,
  [data-reveal] {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Professional refinement — cleaner hierarchy, calmer depth, same BambiSMP character. */
:root {
  --display-font: 'Bricolage Grotesque', 'Fredoka', sans-serif;
  --body-font: 'Nunito Sans', sans-serif;
  --ink: #513747;
  --muted: #806979;
  --line: rgba(190, 112, 151, .22);
  --surface: rgba(255, 253, 253, .94);
  --surface-solid: #fffdfd;
  --shadow: 0 28px 72px rgba(89, 50, 70, .13);
  --shadow-soft: 0 12px 34px rgba(89, 50, 70, .08);
  --shadow-hover: 0 20px 48px rgba(102, 52, 78, .13);
  --radius: 24px;
  --radius-sm: 15px;
}

body {
  font-family: var(--body-font);
  color: var(--ink);
  line-height: 1.65;
}

body::before {
  background:
    radial-gradient(circle at 4% 3%, rgba(249, 197, 220, .34), transparent 25%),
    radial-gradient(circle at 96% 12%, rgba(227, 215, 249, .42), transparent 28%),
    linear-gradient(180deg, #fffafd 0%, #fffdfb 46%, #fff9fc 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.home-page .hero-heading h1,
.page-hero h1,
.content-block h2,
.section-heading h2,
.yapping-hero h1,
.info-card h2,
.info-card h3,
.feature-card h3,
.server-feature h3,
.rule-card h2,
.join-card h2,
.faq-list summary,
.wiki-article-header h1,
.wiki-prose h2,
.vanilla-wiki-intro h1,
.vanilla-wiki-card h2,
.join-ribbon h2 {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-variation-settings: 'wdth' 100;
  letter-spacing: -.035em;
}

.home-page .hero-heading h1 {
  max-width: 1050px;
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: -.052em;
  line-height: .98;
}

.page-hero h1,
.wiki-page .wiki-article-header h1,
.vanilla-wiki-intro h1 {
  font-weight: 700;
  letter-spacing: -.048em;
  line-height: 1;
}

.section-heading h2,
.content-block h2,
.yap-feed-heading h2 {
  font-weight: 700;
  line-height: 1.08;
}

.info-card h2,
.info-card h3,
.feature-card h3,
.server-feature h3,
.rule-card h2,
.join-card h2,
.wiki-prose h2,
.vanilla-wiki-card h2 {
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.eyebrow,
.home-page .hero-heading .eyebrow,
.page-hero .eyebrow,
.section-heading .eyebrow {
  color: #bd4f82;
  font-family: var(--body-font);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .16em;
}

.shell {
  width: min(1180px, calc(100% - 52px));
}

.site-header {
  padding: 9px 0;
  border-bottom: 1px solid rgba(197, 118, 157, .2);
  background: rgba(255, 252, 251, .9);
  box-shadow: 0 6px 24px rgba(84, 49, 67, .05);
}

.site-header::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 92, 151, .35), transparent);
}

.nav-wrap {
  min-height: 56px;
}

.brand-mark {
  transform: none;
}

.brand:hover .brand-mark {
  transform: translateY(-2px);
}

.brand strong {
  font-family: var(--display-font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.site-nav {
  gap: 2px;
  padding: 4px;
  border-color: rgba(195, 112, 153, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.site-nav a {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
}

.site-nav a.active {
  background: #df5c98;
  box-shadow: 0 8px 18px rgba(188, 61, 120, .18);
}

.button,
.vanilla-copy-button,
.discord-widget-join {
  min-height: 46px;
  border-radius: 14px;
  font-family: var(--body-font);
  font-weight: 850;
}

.button:hover,
.vanilla-copy-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #ea70a8 0%, #d94c8c 100%);
  box-shadow: 0 11px 24px rgba(196, 57, 119, .22);
}

.hero-server-switcher {
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(92, 50, 72, .08);
}

.home-page .hero-frame-wide,
.page-hero-art img {
  border-radius: 25px;
  box-shadow: 0 24px 56px rgba(75, 45, 60, .13), 0 0 0 1px rgba(205, 122, 163, .14);
}

.page-hero-art img {
  transform: none;
}

.page-hero-art:hover img {
  transform: translateY(-3px);
}

.home-page .hero-copy-full {
  border-color: rgba(203, 112, 156, .27);
  background: rgba(255, 253, 253, .95);
  box-shadow: 0 12px 30px rgba(91, 50, 71, .07);
  font-weight: 700;
  line-height: 1.62;
}

.card,
.minecraft-status-card,
.vanilla-join-panel,
.server-choice-card,
.wiki-sidebar {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(1.04);
}

.card,
.info-card,
.rule-card,
.server-feature {
  transition: transform .28s var(--ease-bambi), box-shadow .28s ease, border-color .28s ease;
}

.info-card:hover,
.rule-card:hover,
.server-feature:hover,
.feature-card:hover {
  border-color: rgba(201, 76, 136, .3);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.section {
  padding-block: 88px;
}

.section-soft {
  border-top: 1px solid rgba(204, 124, 163, .14);
  border-bottom: 1px solid rgba(204, 124, 163, .14);
  background: linear-gradient(180deg, rgba(255, 238, 246, .34), rgba(249, 244, 255, .22));
}

.section-heading.center {
  max-width: 780px;
}

.section-heading h2 {
  font-size: clamp(34px, 4.2vw, 50px);
}

.section-heading p,
.content-block p,
.info-card p,
.page-hero p,
.wiki-prose p {
  color: var(--muted);
  line-height: 1.72;
}

.info-grid {
  gap: 22px;
}

.info-card {
  padding: 32px;
  border-radius: 21px;
}

.minecraft-status-card,
.vanilla-join-panel {
  border-radius: 19px;
}

.server-choice-card {
  border-radius: 28px;
  box-shadow: 0 26px 68px rgba(87, 48, 68, .12);
}

.server-choice-option {
  border-radius: 20px;
  box-shadow: 0 14px 32px rgba(146, 54, 101, .14);
}

.server-choice-option:hover,
.server-choice-option:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(146, 54, 101, .19);
}

.server-choice-option strong {
  font-family: var(--display-font);
  font-weight: 700;
}

.wiki-page .wiki-sidebar {
  border-radius: 20px;
  background: rgba(255, 253, 253, .9);
}

.wiki-sidebar-head strong,
.wiki-sidebar nav h2,
.wiki-sidebar nav a,
.wiki-toc > strong {
  font-family: var(--display-font);
}

.wiki-prose code,
.wiki-command-list code {
  border: 1px solid rgba(198, 111, 153, .18);
  border-radius: 8px;
  background: #fff5f9;
}

.faq-list details,
.vanilla-wiki-card,
.promise-panel {
  border-color: var(--line);
  box-shadow: 0 9px 28px rgba(88, 48, 69, .06);
}

.join-ribbon {
  background: linear-gradient(115deg, #e96fa7, #d45594 54%, #b870b1);
}

.join-ribbon h2 {
  font-weight: 700;
  letter-spacing: -.04em;
}

.site-footer h3,
.live-chat-title strong,
.live-chat-message header strong,
.live-chat-empty strong {
  font-family: var(--display-font);
}

[data-reveal] {
  transform: translateY(14px);
  transition: opacity .62s ease var(--reveal-delay, 0ms), transform .62s var(--ease-bambi) var(--reveal-delay, 0ms);
}

@media (max-width: 720px) {
  .shell,
  .home-page .hero-stack {
    width: min(100% - 30px, 1180px);
  }

  .home-page .hero-heading h1,
  .hero h1,
  .page-hero h1 {
    font-size: clamp(37px, 11vw, 50px);
    letter-spacing: -.048em;
    line-height: 1;
  }

  .section {
    padding-block: 62px;
  }

  .section-heading h2 {
    font-size: clamp(31px, 9vw, 42px);
  }

  .info-card {
    padding: 25px;
  }

  .site-nav {
    padding: 9px;
  }
}
