@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/NotoSans-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("../assets/fonts/NotoSerif-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
body.v4-scope {
  --forest-bg: #062923;
  --forest-surface: #0b352e;
  --forest-raised: #12473b;
  --forest-text: #f5e9c9;
  --forest-muted: #c7d4c4;
  --forest-gold: #f5c85b;
  --forest-action: #ffcd45;
  --forest-ink: #202014;
  --forest-danger: #ffb6ae;
  --forest-success: #a8e6b1;
  --forest-border: rgba(245, 200, 91, .65);
  --forest-display: "Noto Serif", Georgia, serif;
  --forest-body: "Noto Sans", Arial, sans-serif;
  margin: 0;
  background: var(--forest-bg);
  color: var(--forest-text);
  font: 400 16px/1.6 var(--forest-body);
  color-scheme: dark;
}

body.v4-scope *,
body.v4-scope *::before,
body.v4-scope *::after { box-sizing: border-box; }
body.v4-scope img,
body.v4-scope video { max-width: 100%; }
body.v4-scope a { color: var(--forest-gold); }
body.v4-scope button,
body.v4-scope input,
body.v4-scope select,
body.v4-scope textarea { font: inherit; }
body.v4-scope :focus-visible { outline: 2px solid var(--forest-text); outline-offset: 4px; }
body.v4-scope.v3-scope {
  --v3-sky: #12473b;
  --v3-sky-deep: #0b352e;
  --v3-sky-soft: #062923;
  --v3-cloud: #0b352e;
  --v3-grass: #f5c85b;
  --v3-grass-deep: #d6a83f;
  --v3-sun: #ffcd45;
  --v3-sun-deep: #d99f27;
  --v3-ink: #f5e9c9;
  --v3-ink-soft: #c7d4c4;
  --v3-line: rgba(245, 200, 91, .28);
  --v3-success: #a8e6b1;
  --v3-warning: #ffcd45;
  --v3-danger: #ffb6ae;
  --v3-info: #f5c85b;
  --v3-font: "Noto Sans", Arial, sans-serif;
  --v3-radius-sm: 3px;
  --v3-radius: 4px;
  --v3-radius-md: 4px;
  --v3-radius-lg: 4px;
  --v3-shadow: 0 1rem 2.75rem rgba(0, 0, 0, .28);
  --v3-focus: 0 0 0 3px rgba(245, 200, 91, .62);
  color: var(--forest-text);
  font-family: var(--forest-body);
  background: var(--forest-bg);
}

body.v4-scope .v3-main,
body.v4-scope .v3-page { background: var(--forest-bg); color: var(--forest-text); }
body.v4-scope .v3-main { min-width: 0; }
body.v4-scope.v3-page--home .v3-main.v4-main { padding: 0; }
body.v4-scope .v3-header { position: relative; top: auto; width: 100%; }
body.v4-scope.v3-route-download .v3-header { position: relative; top: auto; left: auto; width: 100%; }
body.v4-scope.v3-page--home .v3-header { position: relative; top: auto; left: auto; width: 100%; }
body.v4-scope .v4-skip,
body.v4-scope .v4-skip:visited { position: fixed; z-index: 1000; top: -5rem; left: 1rem; padding: 12px 16px; border: 1px solid var(--forest-gold); background: var(--forest-bg); color: var(--forest-text); }
body.v4-scope .v4-skip:focus { top: 1rem; }
body.v4-scope .v3-content { color: var(--forest-text); }
body.v4-scope .v3-content fieldset { min-inline-size: 0; max-width: 100%; }
body.v4-scope #registration { background: var(--forest-surface) !important; border-color: var(--forest-border) !important; border-radius: 3px !important; }
body.v4-scope #registration .catbg { background: none !important; height: auto !important; white-space: normal; }
@media (max-width: 700px) {
  body.v4-scope #registration .register_form dt,
  body.v4-scope #registration .register_form dd { float: none; width: 100%; margin: 0 0 8px; }
  body.v4-scope #registration input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { max-width: 100%; }
}
body.v4-scope .v3-content h1,
body.v4-scope .v3-content h2,
body.v4-scope .v3-content h3,
body.v4-scope .v3-content h4,
body.v4-scope .v3-content h5,
body.v4-scope .v3-content h6 { color: var(--forest-text); font-family: var(--forest-display); }
body.v4-scope .v3-content a,
body.v4-scope .v3-breadcrumbs a { color: var(--forest-gold); }
body.v4-scope .v3-content a:visited { color: var(--forest-gold); }
body.v4-scope .v3-content input,
body.v4-scope .v3-content select,
body.v4-scope .v3-content textarea,
body.v4-scope .v3-content button { color-scheme: dark; }
body.v4-scope .v3-content input:not([type="checkbox"]):not([type="radio"]),
body.v4-scope .v3-content select,
body.v4-scope .v3-content textarea {
  max-width: 100%;
  border: 1px solid rgba(199, 212, 196, .55);
  border-radius: 3px;
  background: #062923;
  color: var(--forest-text);
}
body.v4-scope .v3-content input::placeholder,
body.v4-scope .v3-content textarea::placeholder { color: #c7d4c4; opacity: 1; }
body.v4-scope .v3-content input:focus-visible,
body.v4-scope .v3-content select:focus-visible,
body.v4-scope .v3-content textarea:focus-visible { border-color: var(--forest-gold); }
body.v4-scope .v3-content .error,
body.v4-scope .v3-content .errorbox { color: var(--forest-danger); }
body.v4-scope .v3-content .success,
body.v4-scope .v3-content .successbox { color: var(--forest-success); }

/* Shared game shell, used on the home page and legacy routes. */
body.v4-scope .v4-header {
  position: relative;
  z-index: 20;
  width: min(calc(100% - 96px), 1440px);
  min-height: 58px;
  margin: 45px auto 40px;
  isolation: isolate;
  background: transparent;
  color: var(--forest-text);
}
body.v4-scope.v3-page--home .v4-header { position: absolute; top: 45px; left: 50%; margin: 0; transform: translateX(-50%); }
body.v4-scope .v4-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 58px;
  padding-inline: 16px;
}
body.v4-scope .v4-brand { position: relative; display: block; flex: 0 0 300px; height: 56px; min-width: 0; line-height: 0; }
body.v4-scope .v4-brand img { position: absolute; top: 50%; left: 0; transform: translateY(-50%); display: block; width: 280px; max-width: 100%; height: auto; object-fit: contain; }
body.v4-scope .v4-brand,
body.v4-scope .v4-brand:visited { color: var(--forest-text); text-decoration: none; }
body.v4-scope .v4-nav {
  order: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  margin-inline: auto;
}
body.v4-scope .v4-nav__links { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
body.v4-scope .v4-nav__account { display: flex; align-items: center; gap: 16px; }
body.v4-scope .v4-mobile-account { display: none; }
body.v4-scope .v4-nav a,
body.v4-scope .v4-nav a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--forest-text);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
body.v4-scope .v4-nav a:hover,
body.v4-scope .v4-nav a[aria-current="page"] { color: var(--forest-gold); }
body.v4-scope .v4-header__actions { order: 2; display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
body.v4-scope .v4-locales { display: flex; align-items: center; gap: 4px; font-size: 15px; }
body.v4-scope .v4-locales a, body.v4-scope .v4-locales span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 28px; }
body.v4-scope .v4-locales span[aria-current] { color: var(--forest-gold); font-weight: 700; }
body.v4-scope .v4-locales a { color: var(--forest-muted); }
body.v4-scope .v4-language,
body.v4-scope .v4-language:visited { color: var(--forest-gold); text-decoration: none; white-space: nowrap; }
body.v4-scope .v4-header__actions > a:not(.v4-language),
body.v4-scope .v4-header__actions > a:not(.v4-language):visited { color: var(--forest-text); text-decoration: none; }
body.v4-scope .v4-header__actions a { font-size: 15px; white-space: nowrap; }
body.v4-scope .v4-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--forest-gold);
  border-radius: 3px;
  background: var(--forest-surface);
  color: var(--forest-gold);
  cursor: pointer;
}
body.v4-scope .v4-menu-toggle img { width: 24px; height: 24px; }

/* Public landing page. The hero art stays behind the fold and fades into the forest page. */
body.v4-scope .v4-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  min-height: 610px;
  padding: 160px max(48px, calc((100vw - 1440px) / 2)) 18px;
  overflow: hidden;
  background: var(--forest-bg);
  color: var(--forest-text);
}
body.v4-scope .v4-hero picture,
body.v4-scope .v4-hero > img,
body.v4-scope .v4-hero__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 675px;
}
body.v4-scope .v4-hero__image, body.v4-scope .v4-hero__image img { pointer-events: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
body.v4-scope .v4-hero picture img { position:absolute; right:0; display:block; width:auto; max-width:none; height:100%; object-fit:contain; object-position:right top; mask-image:linear-gradient(90deg, transparent, #000 24%); }
body.v4-scope .v4-hero picture img { filter: brightness(1.12) saturate(1.06); }
body.v4-scope .v4-hero > img,
body.v4-scope .v4-hero__image { display: block; object-fit: cover; object-position: center 48%; }
body.v4-scope .v4-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 34, 27, .78) 0%, rgba(3, 34, 27, .42) 38%, rgba(3, 34, 27, .03) 62%, transparent 76%), linear-gradient(0deg, var(--forest-bg) 0%, rgba(6, 41, 35, 0) 20%);
  content: "";
  pointer-events: none;
}
body.v4-scope .v4-hero__content { width: min(100%, 650px); padding-top: 0; }
body.v4-scope .v4-kicker {
  margin: 0 0 14px;
  color: var(--forest-action);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
body.v4-scope .v4-hero h1 {
  max-width: 650px;
  margin: 0 0 18px;
  color: var(--forest-text);
  font: 400 clamp(52px, 4.4vw, 60px)/1.06 var(--forest-display);
  text-wrap: balance;
}
body.v4-scope .v4-hero__description { max-width: 46ch; margin: 0; color: var(--forest-text); font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; }
body.v4-scope .v4-hero__platforms { max-width: 46ch; margin: 4px 0 0; color: var(--forest-muted); font-size: 15px; line-height: 1.45; }
body.v4-scope .v4-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 590px; margin-top: 28px; }
body.v4-scope .v4-hero__actions > div { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; min-width: 0; }
/* Share button rows across both columns, including longer Windows labels. */
@media (min-width: 768px) {
  body.v4-scope .v4-hero__actions > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; }
  body.v4-scope .v4-final .v4-hero__actions > div { grid-row: span 2; }
}
body.v4-scope .v4-hero__actions .v4-button { min-height: 56px; padding-inline: 16px; }
body.v4-scope .v4-hero__actions small { color: var(--forest-text); font-size: 13px; line-height: 1.4; }
body.v4-scope .v4-hero__actions small a { color: var(--forest-text); text-underline-offset: 3px; }
body.v4-scope .v4-button,
body.v4-scope .v4-button:visited {
  --cut: 10px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 13px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #28200d;
  font: 700 20px/1.35 var(--forest-display);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 5px rgba(245, 200, 91, .18));
  transition: filter 180ms ease, transform 180ms ease;
}
/* Clip decoration only: the HTML control and its keyboard focus stay intact. */
body.v4-scope .v4-button::before,
body.v4-scope .v4-button::after,
body.v4-scope .v4-header::before,
body.v4-scope .v4-header::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  clip-path: polygon(var(--cut, 12px) 0, calc(100% - var(--cut, 12px)) 0, 100% var(--cut, 12px), 100% calc(100% - var(--cut, 12px)), calc(100% - var(--cut, 12px)) 100%, var(--cut, 12px) 100%, 0 calc(100% - var(--cut, 12px)), 0 var(--cut, 12px));
  background: linear-gradient(#fff1bd, #c9912e 58%, #edc365);
}
body.v4-scope .v4-button::after { inset: 2px; z-index: -1; --cut: 9px; background: linear-gradient(#ffe6a1, #f5c85b 46%, #c99028); box-shadow: inset 0 2px 1px #fff2c5, inset 0 -3px 1px #a86a18; }
body.v4-scope .v4-header::before { background: #b58d36; }
body.v4-scope .v4-header::after { inset: 1px; z-index: -1; --cut: 11px; background: linear-gradient(110deg, #123f32, #062923 80%); }
body.v4-scope .v4-button:hover { filter: brightness(1.09) drop-shadow(0 2px 8px rgba(245, 200, 91, .3)); }
body.v4-scope .v4-button:active { transform: translateY(1px); }
body.v4-scope .v4-button--secondary,
body.v4-scope .v4-button--secondary:visited { color: var(--forest-text); filter: none; }
body.v4-scope .v4-button--secondary::after { background: linear-gradient(#234b3d, #092b24 52%, #08251f); box-shadow: inset 0 1px 1px #6d7650, inset 0 -2px 1px #031a16; }
body.v4-scope .v4-button--compact { --cut: 8px; min-height: 44px; padding: 10px 18px; font: 700 15px/1.3 var(--forest-body); }
body.v4-scope .v4-button--compact::after { --cut: 7px; }
body.v4-scope .v4-hero__register,
body.v4-scope .v4-hero__register:visited { display: inline-flex; align-items: center; min-height: 44px; margin: 12px 0 0; padding: 4px 0; color: var(--forest-text); font-size: 15px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--forest-gold); }
body.v4-scope .v4-hero__register:hover { color: var(--forest-gold); }
body.v4-scope .v4-control-hint { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; color: var(--forest-muted); font-size: 14px; line-height: 1.4; }
body.v4-scope .v4-control-hint svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--forest-gold); }

/* Transform/opacity only; the existing toggle also pauses off-screen motion. */
body.v4-scope .v4-ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0; mask-image: linear-gradient(90deg, transparent 38%, #000 60%); }
body.v4-scope :is(.v4-hero, .v4-registration-backdrop).is-motion-active .v4-ambient { opacity: 1; }
body.v4-scope .v4-ambient span { position: absolute; left: var(--x); top: var(--y); animation-delay: var(--delay); animation-play-state: paused; }
body.v4-scope .v4-firefly { width: var(--size); height: var(--size); border-radius: 50%; background: #fff7c7; box-shadow: 0 0 6px 2px #f5dc79, 0 0 22px 7px #e6c44c66; animation: v4-firefly 9s ease-in-out infinite; }
body.v4-scope .v4-firefly:nth-child(3n) { background: #e5ffb0; box-shadow: 0 0 7px 2px #c3ef83, 0 0 24px 8px #a0d36c55; animation-duration: 13s; }
body.v4-scope .v4-leaf { width: 26px; height: 13px; border-radius: 2px 90% 2px 90%; background: linear-gradient(155deg, #d3db78, #719d39 48%, #dbe694 51%, #47702f 56%, #254a29); box-shadow: 0 2px 3px #001a2266, inset 0 1px 1px #efffa466; animation: v4-leaf var(--duration) linear infinite; }
body.v4-scope .v4-leaf:nth-child(even) { width: 34px; height: 17px; }
body.v4-scope .v4-ambient::before,
body.v4-scope .v4-ambient::after { content: ''; position: absolute; inset: -15% -5% 5% 45%; background: radial-gradient(ellipse at 65% 25%, #e9dc7655, transparent 52%), linear-gradient(115deg, transparent 35%, #f6e6a51c 44%, transparent 53%); animation: v4-forest-light 14s ease-in-out infinite alternate; animation-play-state: paused; }
body.v4-scope .v4-ambient::after { background: radial-gradient(ellipse at 65% 70%, #a6e88b38, transparent 42%); animation-delay: -7s; }
body.v4-scope :is(.v4-hero, .v4-registration-backdrop).is-motion-active .v4-ambient span,
body.v4-scope :is(.v4-hero, .v4-registration-backdrop).is-motion-active .v4-ambient::before,
body.v4-scope :is(.v4-hero, .v4-registration-backdrop).is-motion-active .v4-ambient::after { animation-play-state: running; }
@keyframes v4-firefly { 0%, 100% { opacity: .2; transform: translate3d(-14px, 20px, 0) scale(.75); } 30% { opacity: 1; transform: translate3d(25px, -28px, 0) scale(1.15); } 65% { opacity: .55; transform: translate3d(-20px, -55px, 0) scale(.9); } 85% { opacity: .95; } }
@keyframes v4-leaf { 0% { opacity: 0; transform: translate3d(45px, -90px, 0) rotate(-35deg); } 15% { opacity: .8; } 50% { opacity: .9; transform: translate3d(-45px, 45px, 0) rotate(110deg) scaleX(.55); } 85% { opacity: .75; } 100% { opacity: 0; transform: translate3d(-100px, 190px, 0) rotate(230deg); } }
@keyframes v4-forest-light { from { opacity: .3; transform: translate3d(18px, -12px, 0) scale(.95); } to { opacity: .85; transform: translate3d(-20px, 16px, 0) scale(1.05); } }
body.v4-scope .v4-motion-toggle { display: none; position: absolute; z-index: 2; top: 132px; right: 48px; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid rgba(245, 200, 91, .55); border-radius: 4px; background: rgba(6, 41, 35, .86); color: var(--forest-text); font-size: 12px; cursor: pointer; }
body.v4-scope .v4-motion-toggle.is-ready { display: none; }
body.v4-scope .v4-motion-toggle[aria-pressed="true"] > span:first-child { color: var(--forest-gold); }
body.v4-scope .v4-motion-toggle[aria-pressed="false"] { opacity: .75; }
body.v4-scope .v4-submit-status { display: block; min-height: 1.6em; margin-top: 10px; color: var(--forest-muted); font-size: 14px; }
body.v4-scope form.is-submitting [type="submit"] { cursor: progress; background-image: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.35) 50%, transparent 75%) !important; background-size: 220% 100%; animation: v4-submit 1.2s linear infinite; }
@keyframes v4-submit { to { background-position: -220% 0; } }

body.v4-scope .v4-container {
  width: min(calc(100% - 96px), 1440px);
  margin-inline: auto;
}
body.v4-scope .v4-hero__content { width: min(100%, 650px); margin-inline: 0; }
body.v4-scope .v4-adventures { position: relative; z-index: 1; margin-top: 0; padding-top: 0; }
body.v4-scope .v4-adventures h2,
body.v4-scope .v4-news h2,
body.v4-scope .v4-start h2,
body.v4-scope .v4-faq h2,
body.v4-scope .v4-final h2 {
  margin: 0 0 18px;
  color: var(--forest-text);
  font: 400 clamp(28px, 3.2vw, 44px)/1.15 var(--forest-display);
}
body.v4-scope .v4-adventures__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
body.v4-scope .v4-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 240px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--forest-gold);
  border-radius: 3px;
  background: var(--forest-surface);
  color: var(--forest-text);
  text-decoration: none;
}
body.v4-scope .v4-card:first-child { min-height: 240px; }
body.v4-scope .v4-card { isolation: isolate; overflow: visible; border: 0; background: transparent; }
body.v4-scope .v4-card::before { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--forest-gold); clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px); }

body.v4-scope .v4-card > img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); transition: filter 180ms ease; }
body.v4-scope .v4-card::after { position: absolute; inset: 1px; clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); background: linear-gradient(transparent 45%, rgba(4, 22, 20, .9)); content: ""; pointer-events: none; }
body.v4-scope .v4-card__title { position: relative; z-index: 1; width: 100%; margin: 0; padding: 18px 40px 18px 22px; color: var(--forest-text); font: 400 clamp(24px, 2.1vw, 30px)/1.2 var(--forest-display); }
body.v4-scope .v4-card__arrow { position: absolute; z-index: 2; right: 20px; bottom: 19px; color: var(--forest-gold); font-size: 28px; line-height: 1; }
body.v4-scope .v4-card__eyebrow { position: relative; z-index: 1; padding: 0 22px; margin-bottom: -12px; color: var(--forest-gold); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
body.v4-scope .v4-card:hover > img { filter: brightness(1.08); }
body.v4-scope .v4-card:focus-visible { outline: 2px solid var(--forest-text); outline-offset: 4px; }
body.v4-scope .v4-news { width: min(calc(100% - 96px), 1440px); margin: 0 auto; padding-block: 64px; }
body.v4-scope .v4-news h2 { margin: 0 0 18px; color: var(--forest-text); font: 400 clamp(28px, 3.2vw, 44px)/1.15 var(--forest-display); }
body.v4-scope .v4-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body.v4-scope .v4-news-card { min-width: 0; padding: 20px; border: 1px solid var(--forest-border); background: var(--forest-surface); color: var(--forest-text); }
body.v4-scope .v4-news-card:first-child { grid-column: 1 / -1; }
body.v4-scope .v4-news-card--featured { grid-column: 1 / -1; }
body.v4-scope .v4-news-card h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 8px 0 12px; font: 400 23px/1.3 var(--forest-display); }
body.v4-scope .v4-news-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; max-width: 80ch; color: var(--forest-muted); }
body.v4-scope .v4-news-card--featured h3 { font-size: clamp(24px, 2.3vw, 32px); }
body.v4-scope .v4-news-card--featured p { -webkit-line-clamp: 5; }
body.v4-scope .v4-news-card :is(a, a:visited) { color: var(--forest-gold); }
body.v4-scope .v4-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
body.v4-scope .v4-section-heading h2 { margin: 0; }
body.v4-scope .v4-section-heading a,
body.v4-scope .v4-section-heading a:visited { color: var(--forest-gold); }
body.v4-scope .v4-player-links,
body.v4-scope .v4-gameplay,
body.v4-scope .v4-start,
body.v4-scope .v4-faq,
body.v4-scope .v4-final { padding-block: 64px; }
body.v4-scope .v4-player-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; border-block: 1px solid var(--forest-border); padding: 18px 0; }
body.v4-scope .v4-player-links a,
body.v4-scope .v4-player-links a:visited { color: var(--forest-text); text-underline-offset: 4px; }
body.v4-scope .v4-gameplay { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding-block: 64px; }
body.v4-scope .v4-gameplay h2,
body.v4-scope .v4-start h2,
body.v4-scope .v4-final h2 { margin: 0 0 14px; color: var(--forest-text); font: 400 clamp(28px, 3.2vw, 44px)/1.15 var(--forest-display); }
body.v4-scope .v4-gameplay p,
body.v4-scope .v4-start p,
body.v4-scope .v4-final p { max-width: 65ch; color: var(--forest-muted); }
body.v4-scope .v4-gameplay > picture img { display: block; width: 100%; height: auto; border: 1px solid var(--forest-border); }
body.v4-scope .v4-gameplay a,
body.v4-scope .v4-gameplay a:visited,
body.v4-scope .v4-start a,
body.v4-scope .v4-start a:visited { color: var(--forest-gold); text-underline-offset: 4px; }
body.v4-scope .v4-quicklinks { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; }
body.v4-scope .v4-quicklinks a,
body.v4-scope .v4-quicklinks a:visited { color: var(--forest-gold); text-underline-offset: 4px; }
body.v4-scope .v4-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body.v4-scope .v4-start article { padding: 24px; border: 1px solid var(--forest-border); background: var(--forest-surface); }
body.v4-scope .v4-faq,
body.v4-scope .v4-final { max-width: 900px; }
body.v4-scope .v4-faq,
body.v4-scope .v4-final { padding-block: 64px; }
body.v4-scope .v4-faq details { border-top: 1px solid var(--forest-border); padding: 16px 0; }
body.v4-scope .v4-faq details:last-child { border-bottom: 1px solid var(--forest-border); }
body.v4-scope .v4-faq summary { color: var(--forest-text); font-weight: 700; cursor: pointer; }
body.v4-scope .v4-faq details p,
body.v4-scope .v4-start p,
body.v4-scope .v4-final p { max-width: 65ch; color: var(--forest-muted); }
body.v4-scope .v4-final { text-align: center; }
body.v4-scope .v4-final > * { margin-inline: auto; }
body.v4-scope .v4-final .v4-hero__actions { margin-inline: auto; }
body.v4-scope .v4-service-intro,
body.v4-scope .v4-help,
body.v4-scope .v4-download { width: min(calc(100% - 64px), 1040px); margin: 0 auto; color: var(--forest-text); }
body.v4-scope .v4-service-intro { padding: 24px 0 16px; }
body.v4-scope .v4-service-intro h1 { margin: 0 0 16px; font: 400 clamp(32px, 3.5vw, 48px)/1.15 var(--forest-display); }
body.v4-scope .v4-service-intro h1,
body.v4-scope .v4-help h2,
body.v4-scope .v4-download h2 { color: var(--forest-text); font-family: var(--forest-display); }
body.v4-scope .v4-help,
body.v4-scope .v4-download { padding-block: 24px 48px; }
body.v4-scope .v4-help details,
body.v4-scope .v4-download details,
body.v4-scope .v4-download-steps,
body.v4-scope .v4-download table { border: 1px solid var(--forest-border); background: var(--forest-surface); color: var(--forest-text); }
body.v4-scope .v4-help details { margin-top: 12px; padding: 16px 20px; }
body.v4-scope .v4-help summary,
body.v4-scope .v4-download summary { color: var(--forest-text); font-weight: 700; }
body.v4-scope .v4-download a:not(.v4-button),
body.v4-scope .v4-download a:not(.v4-button):visited,
body.v4-scope .v4-help a:not(.v4-button),
body.v4-scope .v4-help a:not(.v4-button):visited { color: var(--forest-gold); }
body.v4-scope .v4-download-primary,
body.v4-scope .v4-download-steps,
body.v4-scope .v4-requirements { margin-top: 20px; padding: 24px; border: 1px solid var(--forest-border); background: var(--forest-surface); }
body.v4-scope .v4-download-primary > p,
body.v4-scope .v4-download-steps li { color: var(--forest-muted); }
body.v4-scope .v4-download-steps h2 { margin-top: 0; }
body.v4-scope .v4-mirrors { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--forest-border); background: var(--forest-raised); }
body.v4-scope .v4-mirrors summary,
body.v4-scope .v4-requirements summary { cursor: pointer; font-weight: 700; }
body.v4-scope .v4-table-scroll { max-width: 100%; margin-top: 12px; overflow-x: auto; }
body.v4-scope .v4-table-scroll table { width: 100%; border-collapse: collapse; }
body.v4-scope .v4-table-scroll td { padding: 10px; border: 1px solid var(--forest-border); }
body.v4-scope .v4-rating--floating { position: fixed; z-index: 15; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: 140px; padding: 0; border: 0; background: transparent; box-shadow: none; }
body.v4-scope .v4-rating a, body.v4-scope .v4-rating img { display: block; }
body.v4-scope .v4-rating img { width: 100%; height: auto; }
body.v4-scope .v4-rating--floating a { transition: transform 180ms ease; }
body.v4-scope .v4-rating--floating a:hover { transform: translateY(-2px); }
body.v4-scope.v3-page--home .v4-footer { padding-right: 140px; padding-bottom: 42px; }
html:has(body.v4-scope.v3-page--home) { scroll-padding-bottom: 125px; }
body.v4-scope .v4-footer {
  padding: 32px max(4vw, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--forest-border);
  background: #04221d;
  color: var(--forest-muted);
}
body.v4-scope .v4-footer a,
body.v4-scope .v4-footer a:visited { color: var(--forest-text); }
body.v4-scope .v4-footer > nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
body.v4-scope .v4-footer > p { margin: 20px 0 0; text-align: center; }

/* Preserve SMF and legacy layout while replacing their inherited light panels. */
body.v4-scope.v3-route-forum :is(#boardindex_table tbody.content, .roundframe, #messageindex, #quickreplybox, #display_jump_to, .description_board, #forumposts form > .windowbg, #forumposts form > .windowbg2, #forumposts form > .approvebg) {
  border-color: var(--forest-border);
  background: var(--forest-surface) !important;
  color: var(--forest-text);
  box-shadow: none;
}
body.v4-scope.v3-route-forum :is(#boardindex_table tbody.content > tr[id^="board_"]:not([id$="_children"]) + tr[id^="board_"], #boardindex_table tr[id$="_children"] + tr[id^="board_"], #messageindex .table_grid tbody tr, #forumposts .post .inner) { border-color: var(--forest-border); }
body.v4-scope.v3-route-forum #boardindex_table tbody.content > tr[id$="_children"],
body.v4-scope.v3-route-forum #forumposts .poster { background: #082e27 !important; }
body.v4-scope.v3-route-forum :is(#boardindex_table td.info a.subject, #boardindex_table td.lastpost a, #boardindex_table tr[id$="_children"] a, #messageindex td.subject a, #messageindex td.lastpost a, #ic_recentposts a, #forumposts #forumposts a) { color: var(--forest-gold); }
body.v4-scope.v3-route-forum :is(#boardindex_table td.info p, #boardindex_table td.stats, #boardindex_table td.lastpost, #boardindex_table td.children, #messageindex td, #forumposts .post .inner, #ic_recentposts dd) { color: var(--forest-text); }
body.v4-scope.v3-route-forum :is(#messageindex .table_grid tbody td, #quickReplyOptions .roundframe, #quickreplybox) { background: var(--forest-surface) !important; }
body.v4-scope.v3-route-forum :is(#messageindex .table_grid tbody tr:hover td) { background: var(--forest-raised) !important; }
body.v4-scope.v3-route-forum :is(h3.catbg, .cat_bar h3.catbg, #boardindex_table h3.catbg) { border: 1px solid var(--forest-gold); background: #12473b !important; color: var(--forest-text) !important; }
body.v4-scope.v3-route-forum :is(h3.catbg a, .cat_bar h3.catbg a, #boardindex_table h3.catbg a) { color: var(--forest-text) !important; }
body.v4-scope.v3-route-forum .v3-action-strip a { border-color: var(--forest-gold); background: var(--forest-surface); color: var(--forest-text); }

body.v4-scope.v3-route-personal .v3-content,
body.v4-scope.v3-route-about .v3-onboarding-content,
body.v4-scope.v3-route-download .v3-content {
  border-color: var(--forest-border);
  background: var(--forest-surface);
  color: var(--forest-text);
  box-shadow: none;
}
body.v4-scope.v3-route-about .about_wide > a { border-color: var(--forest-border); background-color: var(--forest-raised); }
body.v4-scope.v3-route-personal :is(.profile_table, .profile_table td, .profile_table th, .avatar_change, .welcome),
body.v4-scope.v3-route-personal .profile_table table.v3-character-grid > tbody > tr > td.char {
  border-color: var(--forest-border) !important;
  color: var(--forest-text) !important;
}
body.v4-scope.v3-route-personal :is(.profile_table, .profile_table td, .profile_table th, .avatar_change, .welcome) { background-color: var(--forest-surface) !important; }
body.v4-scope :is(.v3-route-download, .v3-route-about, .v3-route-personal) .v3-service-hero { color: var(--forest-text); }
body.v4-scope .v3-route-personal .profile_table :is(input, select, textarea) { background: var(--forest-bg) !important; color: var(--forest-text) !important; }
body.v4-scope .v3-route-personal .profile_table :is(a, a:visited) { color: var(--forest-gold) !important; }
body.v4-scope.v3-route-about .news_title { color: var(--forest-gold) !important; }

/* Table cells, inline errors and server-provided content keep their structure and visibility. */
body.v4-scope .v3-content :is(.windowbg, .windowbg2, .roundframe, .description, .information, .noticebox, .errorbox, .successbox) {
  border-color: var(--forest-border);
  background-color: var(--forest-surface);
  color: var(--forest-text);
}
body.v4-scope .v3-content :is(.catbg, .titlebg, .titlebg_light) { color: var(--forest-text); }
body.v4-scope .v3-content .titlebg_light { background: var(--forest-raised); }
body.v4-scope .v3-content :is(.catbg, .titlebg, .titlebg_light) a,
body.v4-scope .v3-content :is(.catbg, .titlebg, .titlebg_light) a:visited { color: var(--forest-text); }
body.v4-scope .v3-content :is(table, td, th, tr) { border-color: var(--forest-border); }
body.v4-scope .v3-content :is(td, th, tr) { color: var(--forest-text); background-color: transparent; }
body.v4-scope .v3-content :is(.error, .errorbox, .smalltext.error) { color: var(--forest-danger) !important; }
body.v4-scope .v3-content :is(.success, .successbox) { color: var(--forest-success) !important; }
body.v4-scope .v3-content .button_submit,
body.v4-scope .v3-content input[type="submit"],
body.v4-scope .v3-content button[type="submit"] { border: 1px solid var(--forest-gold); border-radius: 3px; background: var(--forest-action) !important; color: var(--forest-ink) !important; font-weight: 700; }
body.v4-scope .v3-content :disabled { cursor: not-allowed; opacity: .65; }
body.v4-scope .v3-content :is(label, dt, dd) { color: var(--forest-text); }
body.v4-scope .v3-content [style*="rgba(255, 255, 255"] { background: var(--forest-surface) !important; border-color: var(--forest-border) !important; color: var(--forest-text) !important; text-shadow: none !important; }
body.v4-scope .v3-content .login .roundframe { background-color: var(--forest-surface) !important; border: 1px solid var(--forest-border) !important; border-radius: 3px !important; box-shadow: none !important; color: var(--forest-text) !important; }
body.v4-scope .v3-content .login .roundframe > div { background: var(--forest-surface) !important; border-color: var(--forest-border) !important; border-radius: 3px !important; color: var(--forest-text) !important; text-shadow: none !important; }
body.v4-scope .v3-content .login .catbg,
body.v4-scope .v3-content .login h3.catbg { background-color: var(--forest-raised) !important; border-color: var(--forest-gold) !important; border-radius: 3px !important; color: var(--forest-text) !important; text-shadow: none !important; }
body.v4-scope .v3-content .login label { color: var(--forest-text) !important; }

@media (max-width: 1120px) {
  body.v4-scope .v4-header { width: min(calc(100% - 32px), 1440px); margin-top: 16px; }
  body.v4-scope.v3-page--home .v4-header { top: 16px; margin-top: 0; }
  body.v4-scope .v4-header__inner { flex-wrap: wrap; gap: 8px 14px; padding: 6px 12px; }
  body.v4-scope .v4-brand { flex-basis: min(34vw, 240px); margin-right: auto; }
  body.v4-scope .v4-hero { padding-inline: 32px; }
  body.v4-scope .v4-header__actions { order: 1; }
  body.v4-scope .v4-menu-toggle { order: 2; flex: 0 0 44px; }
  html.v4-js body.v4-scope .v4-menu-toggle { display: inline-flex; }
  html:not(.v4-js) body.v4-scope .v4-menu-toggle { display: none; }
  body.v4-scope .v4-nav { order: 3; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; }
  html.v4-js body.v4-scope .v4-nav { display: none; }
  html.v4-js body.v4-scope .v4-nav.is-open { display: flex; }
  body.v4-scope .v4-nav__links { align-items: stretch; flex-direction: column; gap: 0; }
  body.v4-scope .v4-nav__account { align-items: stretch; flex-direction: column; gap: 0; border-top: 1px solid rgba(245, 200, 91, .22); }
  body.v4-scope .v4-nav a { min-height: 48px; border-top: 1px solid rgba(245, 200, 91, .22); }
  body.v4-scope .v4-header__actions { gap: 10px; }
  body.v4-scope .v4-header__actions a { font-size: 14px; }
  body.v4-scope .v4-header__actions .v4-desktop-logout { display: none; }
  body.v4-scope .v4-mobile-account { display: flex; flex-direction: column; border-top: 1px solid var(--forest-border); }
}
@media (max-width: 767px) {
  body.v4-scope .v4-header { width: calc(100% - 32px); margin-top: 12px; }
  body.v4-scope.v3-page--home .v4-header { position: relative; top: auto; left: auto; margin: 12px auto 0; transform: none; }
  body.v4-scope .v4-header__inner { min-height: 60px; }
  body.v4-scope .v4-header__actions { gap: 8px; }
  body.v4-scope .v4-brand { flex: 1 1 0; min-width: 0; max-width: 180px; }
  body.v4-scope .v4-header__actions > .v4-button { display: none; }
  body.v4-scope .v4-locales { gap: 0; }
  body.v4-scope .v4-locales a, body.v4-scope .v4-locales span[aria-current] { min-width: 30px; }
  body.v4-scope .v4-hero { display: block; min-height: 0; padding: 0 16px 48px; }
  body.v4-scope .v4-hero picture,
  body.v4-scope .v4-hero > img,
  body.v4-scope .v4-hero__image { position: relative; inset: auto; width: calc(100% + 32px); height: auto; aspect-ratio: 1.28; margin-inline: -16px; object-fit: cover; object-position: center 48%; }
  body.v4-scope .v4-hero picture img { position:static; width:100%; max-width:100%; object-fit:cover; object-position:center; mask-image:none; }
  body.v4-scope .v4-hero::after { top: 16vw; background: linear-gradient(0deg, var(--forest-bg) 0%, rgba(6, 41, 35, .04) 54%); }
  body.v4-scope .v4-hero__content { width: 100%; margin: 0 auto; padding: 0; text-align: center; }
  body.v4-scope .v4-hero .v4-hero__content { width: 100%; }
  body.v4-scope .v4-kicker { margin-bottom: 8px; font-size: 12px; }
  body.v4-scope .v4-hero h1 { max-width: 100%; margin: 0 auto 12px; font-size: clamp(34px, 8vw, 44px); font-style: italic; line-height: 1.12; }
  body.v4-scope .v4-hero__description { margin-inline: auto; font-size: 18px; }
  body.v4-scope .v4-hero__actions { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  body.v4-scope .v4-hero__actions > div { justify-items: stretch; text-align: center; }
  body.v4-scope .v4-button { width: 100%; min-height: 52px; }
  body.v4-scope .v4-hero__register { margin: 12px 0 0; }
  body.v4-scope .v4-final { grid-template-columns: minmax(0, 1fr); }
  body.v4-scope .v4-final > .v4-button--secondary { grid-column: 1; grid-row: 5; }
  body.v4-scope .v4-final > .v4-account-link { grid-column: 1; grid-row: 6; justify-self: center; }
  body.v4-scope .v4-ambient { height: 76vw; mask-image: none; }
  body.v4-scope .v4-firefly:nth-child(n+9), body.v4-scope .v4-leaf:nth-child(n+18) { display: none; }
  body.v4-scope .v4-leaf { width: 20px; height: 10px; }
  body.v4-scope .v4-ambient::before, body.v4-scope .v4-ambient::after { left: 0; }
  body.v4-scope .v4-motion-toggle { top: 18px; right: 16px; min-height: 44px; }
  body.v4-scope .v4-rating--floating { right: max(6px, env(safe-area-inset-right)); bottom: max(6px, env(safe-area-inset-bottom)); width: 84px; padding: 0; }
  body.v4-scope.v3-page--home .v4-footer { padding-right: 92px; padding-bottom: 32px; }
  body.v4-scope .v4-container,
  body.v4-scope .v4-news { width: calc(100% - 32px); }
  body.v4-scope .v4-news-grid { grid-template-columns: 1fr; }
  body.v4-scope .v4-news-card--featured,
  body.v4-scope .v4-news-card:first-child { grid-column: auto; }
  body.v4-scope .v4-adventures { margin-top: 0; padding-top: 12px; }
  body.v4-scope .v4-adventures h2,
  body.v4-scope .v4-start h2,
  body.v4-scope .v4-faq h2,
  body.v4-scope .v4-final h2 { font-size: clamp(28px, 7vw, 34px); text-align: center; }
  body.v4-scope .v4-adventures__grid { grid-template-columns: 1fr; gap: 10px; }
  body.v4-scope .v4-card,
  body.v4-scope .v4-card:first-child { min-height: 190px; }
  body.v4-scope .v4-card__title { padding: 16px 44px 16px 16px; font-size: 24px; }
  body.v4-scope .v4-player-links,
  body.v4-scope .v4-news,
  body.v4-scope .v4-gameplay,
  body.v4-scope .v4-start,
  body.v4-scope .v4-faq,
  body.v4-scope .v4-final { padding-block: 48px; }
  body.v4-scope .v4-gameplay,
  body.v4-scope .v4-start { grid-template-columns: 1fr; gap: 24px; }
  body.v4-scope .v4-gameplay > picture { order: -1; }
  body.v4-scope .v4-footer { padding: 28px 16px; }
  body.v4-scope .v4-footer > nav { gap: 12px 18px; }
}
@media (max-width: 380px) {
  body.v4-scope .v4-header__inner { padding-inline: 8px; }
  body.v4-scope .v4-brand { flex-basis: 0; max-width: 175px; }
  body.v4-scope .v4-brand { min-width: 0; }
  body.v4-scope .v4-header__inner { gap: 6px; padding-inline: 8px; }
  body.v4-scope .v4-header__actions a { font-size: 14px; }
  body.v4-scope .v4-header__actions { gap: 8px; }
  body.v4-scope .v4-hero { padding-inline: 12px; }
  body.v4-scope .v4-hero picture,
  body.v4-scope .v4-hero > img,
  body.v4-scope .v4-hero__image { width: calc(100% + 24px); margin-inline: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.v4-scope .v4-ambient, body.v4-scope .v4-motion-toggle { display: none !important; }
  body.v4-scope *, body.v4-scope *::before, body.v4-scope *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

body.v4-scope .v4-about { color: var(--forest-text); }
body.v4-scope.v3-route-about .v4-service-intro { display: flex; flex-direction: column; justify-content: center; min-height: 280px; padding: 32px; margin-bottom: 32px; background: linear-gradient(90deg, #062923 10%, rgba(6,41,35,.9) 45%, rgba(6,41,35,.1)), url('../assets/web/hero-cityhall-1280.webp') right center / cover; }
body.v4-scope.v3-route-about .v4-service-intro h1 { max-width: 650px; }
body.v4-scope .v4-about-lead { max-width: 72ch; margin: 0 auto 32px; font-size: 18px; }
body.v4-scope .v4-about-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 48px; }
body.v4-scope .v4-about-section img { width: 100%; height: auto; }
body.v4-scope .v4-about-section h2 { font-size: 30px; line-height: 1.2; }
body.v4-scope .v4-about-section p { font-size: 18px; line-height: 1.6; }
body.v4-scope .v4-about-reference ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 24px; }
body.v4-scope .v4-about-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 590px; gap: 20px; margin-block: 32px; }
body.v4-scope .v4-about-actions .v4-button { min-height: 56px; padding-inline: 16px; }
@media(max-width:767px) { body.v4-scope .v4-about-section { grid-template-columns: minmax(0,1fr); gap: 18px; } body.v4-scope .v4-about-reference ul, body.v4-scope .v4-about-actions { grid-template-columns: 1fr; } }

body.v4-scope .v4-translation-note { padding: 16px 24px; border-left: 2px solid var(--forest-gold); background: var(--forest-surface); color: var(--forest-text); }

body.v4-scope .v4-control-icons { display:inline-flex; align-items:center; gap:6px; flex:0 0 auto; color:var(--forest-gold); }
body.v4-scope .v4-control-icons svg { display:block; width:22px; height:22px; }
body.v4-scope .v4-control-hint { font-size:13px; }

body.v4-scope .v4-hero__actions .v4-hero__register { align-self: flex-start; margin: 0; }
body.v4-scope .v4-card--elga > img { object-position: center 67%; }
body.v4-scope .v4-news-card__image { float: right; width: 64px; height: 64px; margin: 0 0 12px 16px; object-fit: cover; border: 1px solid var(--forest-border); }

body.v4-scope .v4-hero__register.v4-button { justify-self: start; align-self: start; width: fit-content; max-width: 100%; min-height: 44px; padding: 10px 18px; text-decoration: none; }
@media (max-width: 767px) {
  body.v4-scope .v4-hero__register.v4-button { align-self: center; justify-self: center; margin-inline: auto; }
}

body.v4-scope .v4-admin-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; margin: 4px 16px 8px; border-top: 1px solid var(--forest-border); }
body.v4-scope .v4-admin-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--forest-gold); font: 600 14px/1.4 var(--forest-body); text-decoration: none; }
body.v4-scope .v4-admin-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
body.v4-scope .v4-server-facts { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 12px 32px; }
body.v4-scope .v4-server-fact {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 24px 26px;
  border: 1px solid #9fffd052; border-top-color: #d9ffebad; border-bottom-color: #36dca278; border-radius: 22px;
  background: linear-gradient(110deg, #032c24df, #043c2b99 60%, #06453166), linear-gradient(#003b2d88, #003b2d88), url('../assets/web/hero-cityhall-960.webp');
  background-size: auto, auto, 300% auto; background-position: center, center, left 65%;
  box-shadow: inset 0 1px 1px #e2fff37a, inset 1px 0 1px #d0ffe92e, inset 0 -2px 2px #78ffc333, inset 0 0 20px #03271e66, 0 12px 24px #001c2240;
}
body.v4-scope .v4-server-fact:nth-child(2) { background-position: center, center, center 65%; }
body.v4-scope .v4-server-fact:nth-child(3) { background-position: center, center, right 65%; }
body.v4-scope .v4-server-fact::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none; inset: 3px; border-radius: 18px;
  -webkit-backdrop-filter: blur(3px) saturate(125%); backdrop-filter: blur(3px) saturate(125%);
  background: linear-gradient(125deg, #dbffeb24, transparent 28%, transparent 70%, #85ffc91a);
  border-left: 1px solid #effff552; border-right: 1px solid #afffd92e;
}
body.v4-scope .v4-server-fact::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; right: -35px; bottom: -57px; width: 200px; height: 95px;
  border-radius: 50%; transform: rotate(-22deg); border: 1px solid #c3ffe52e;
  box-shadow: 0 -4px 9px #70ffc526, inset 0 3px 6px #ddfff51f;
}
body.v4-scope .v4-server-fact small { display: block; margin-bottom: 8px; color: #d5f5e5; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
body.v4-scope .v4-server-fact strong { display: block; color: #f5fff9; font-size: 22px; line-height: 1.4; text-shadow: 0 1px 3px #001e18b3; overflow-wrap: anywhere; }
body.v4-scope .v4-server-fact[data-v3-server-status] strong::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--forest-muted); }
body.v4-scope .v4-server-fact.is-online strong::before { background: var(--forest-success); }
body.v4-scope .v4-server-fact.is-offline strong::before { background: var(--forest-danger); }
body.v4-scope .v4-server-fact.is-maintenance strong::before { background: var(--forest-gold); }
@media (max-width: 767px) {
  body.v4-scope .v4-admin-nav { justify-content: center; gap: 8px 16px; }
  body.v4-scope .v4-server-facts { grid-template-columns: 1fr; gap: 12px; padding-block: 0 28px; }
  body.v4-scope .v4-server-fact { padding: 20px 22px; border-radius: 18px; }
  body.v4-scope .v4-server-fact { background-size: auto, auto, 160% auto; }
}

/* Decorative motion stays below page content; no image requests or frame loop. */
body.v4-scope { isolation: isolate; }
body.v4-scope .v4-main { position: relative; z-index: 1; background: transparent; }
body.v4-scope .v4-footer { position: relative; z-index: 1; }
body.v4-scope .v4-site-ambient {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 0;
  mask-image: linear-gradient(90deg, #000, #000 8%, transparent 22%, transparent 78%, #000 92%);
}
body.v4-scope .v4-site-ambient.is-motion-active { opacity: 1; }
body.v4-scope .v4-pollen, body.v4-scope .v4-butterfly {
  position: absolute; left: var(--x); top: var(--y); pointer-events: none;
  animation-delay: var(--delay); animation-duration: var(--duration); animation-iteration-count: infinite;
  animation-timing-function: ease-in-out; animation-play-state: paused;
}
body.v4-scope .v4-pollen {
  width: 3px; height: 3px; border-radius: 50%; background: #fff5c0;
  box-shadow: 0 0 5px 2px #f3d58088; animation-name: v4-pollen-drift;
}
body.v4-scope .v4-butterfly {
  width: 32px; height: 27px; animation-name: v4-butterfly-flight;
  background: linear-gradient(#173b38, #366a53) center / 2px 17px no-repeat;
  filter: drop-shadow(0 0 5px #93e9db88);
}
body.v4-scope .v4-butterfly::before, body.v4-scope .v4-butterfly::after {
  content: ''; position: absolute; top: 1px; width: 16px; height: 24px;
  background: radial-gradient(ellipse at 70% 60%, #fff3b4 0 8%, #71e3c6 18%, #2eafa5 57%, #194e68 75%);
  border: 1px solid #b0f5d899; border-radius: 80% 45% 70% 35%;
  transform-origin: right center; animation: v4-butterfly-wing .48s ease-in-out infinite alternate; animation-play-state: paused;
}
body.v4-scope .v4-butterfly::before { left: 0; clip-path: polygon(100% 48%, 68% 7%, 22% 0, 0 17%, 6% 42%, 38% 55%, 10% 70%, 18% 96%, 57% 100%, 100% 58%); }
body.v4-scope .v4-butterfly::after { right: 0; transform-origin: left center; border-radius: 45% 80% 35% 70%; clip-path: polygon(0 48%, 32% 7%, 78% 0, 100% 17%, 94% 42%, 62% 55%, 90% 70%, 82% 96%, 43% 100%, 0 58%); }
body.v4-scope .is-motion-active .v4-pollen,
body.v4-scope .is-motion-active .v4-butterfly,
body.v4-scope .is-motion-active .v4-butterfly::before,
body.v4-scope .is-motion-active .v4-butterfly::after { animation-play-state: running; }
@keyframes v4-pollen-drift {
  0%,100% { opacity: .15; transform: translate3d(-6px,30px,0); }
  45% { opacity: .75; transform: translate3d(12px,-45px,0); }
  75% { opacity: .35; transform: translate3d(-14px,-12px,0); }
}
@keyframes v4-butterfly-flight {
  0%,100% { opacity: 0; transform: translate3d(-15px,65px,0) rotate(-12deg); }
  18% { opacity: .85; }
  45% { opacity: .95; transform: translate3d(18px,-28px,0) rotate(12deg); }
  78% { opacity: .8; transform: translate3d(-12px,-80px,0) rotate(-8deg); }
  92% { opacity: 0; }
}
@keyframes v4-butterfly-wing { from { transform: rotateY(0deg); } to { transform: rotateY(65deg); } }
@media (max-width: 700px) {
  body.v4-scope .v4-pollen--extra, body.v4-scope .v4-butterfly ~ .v4-butterfly { display: none; }
  body.v4-scope .v4-butterfly { width: 26px; }
  body.v4-scope .v4-butterfly::before, body.v4-scope .v4-butterfly::after { width: 13px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.v4-scope .v4-site-ambient, body.v4-scope .v4-pollen, body.v4-scope .v4-butterfly { display: none; }
}
