:root {
  color-scheme: dark;
  --bg: #0b2421;
  --bg-soft: #16362e;
  --panel: rgba(22, 54, 46, 0.82);
  --panel-strong: rgba(33, 74, 61, 0.94);
  --line: rgba(199, 230, 212, 0.22);
  --line-strong: rgba(199, 230, 212, 0.5);
  --text: #fff3d6;
  --muted: #d6d1ad;
  --dim: #8fa786;
  --cyan: #6fc3b5;
  --cyan-soft: #c7e6d4;
  --violet: #d98f72;
  --purple: #7fa866;
  --magenta: #d8bd75;
  --gold: #d8bd75;
  --success: #7fa866;
  --danger: #d9857c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 14px 35px rgba(0, 0, 0, 0.28);
  --radius: 6px;
  --radius-lg: 10px;
  --text-shadow: 0 6px 0 rgba(0, 0, 0, 0.5), 0 0 28px rgba(111, 195, 181, 0.22);
  --theme-font-scale: 1;
  --theme-grid-opacity: 0.18;
  --theme-bg-side-dim: 0.58;
  --theme-panel-alpha: 0.82;
  --theme-panel-strong-alpha: 0.94;
  --theme-glow-opacity: 0.54;
  --header-height: 76px;
  --page-x: max(1rem, calc((100vw - 1180px) / 2));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  font-size: calc(16px * var(--theme-font-scale));
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 74% 14%, rgba(216, 189, 117, 0.14), transparent 25rem),
    radial-gradient(circle at 18% 20%, rgba(199, 230, 212, 0.1), transparent 23rem),
    radial-gradient(circle at 64% 68%, rgba(217, 143, 114, 0.07), transparent 24rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.12), rgba(11, 36, 33, 0.74) 42%, #061917 100%),
    url("optimized/pingu-snow-wallpaper.webp") center top / cover fixed no-repeat,
    var(--bg);
  font-family: var(--font);
  font-feature-settings: "smcp" 1, "c2sc" 1;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.015em;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(216, 189, 117, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 230, 212, 0.03) 1px, transparent 1px),
    radial-gradient(ellipse at 12% 18%, rgba(127, 168, 102, 0.08), transparent 16rem),
    radial-gradient(ellipse at 88% 74%, rgba(216, 189, 117, 0.07), transparent 18rem);
  background-size: 54px 54px, 54px 54px, 100% 100%, 100% 100%;
  opacity: var(--theme-grid-opacity);
}

body::after {
  background:
    radial-gradient(circle at 50% 0%, transparent 0 28rem, rgba(6, 25, 23, 0.28) 52rem),
    radial-gradient(circle at 84% 8%, rgba(216, 189, 117, 0.055), transparent 22rem),
    linear-gradient(90deg, rgba(6, 25, 23, var(--theme-bg-side-dim)), transparent 18%, transparent 82%, rgba(6, 25, 23, var(--theme-bg-side-dim)));
}

body[data-small-caps="false"] {
  font-feature-settings: normal;
  font-variant-caps: normal;
  letter-spacing: 0;
}

body[data-motion="reduced"] .reveal {
  opacity: 1;
  transform: none;
}

body[data-motion="reduced"] *,
body[data-motion="reduced"] *::before,
body[data-motion="reduced"] *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

body > * {
  position: relative;
  z-index: 1;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--cyan-soft);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #061917;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-height);
  padding: 0.7rem var(--page-x);
  border-bottom: 1px solid rgba(199, 230, 212, 0.15);
  background: rgba(6, 25, 23, 0.82);
  backdrop-filter: blur(18px);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(127, 168, 102, 0.34);
  background: rgba(6, 25, 23, 0.94);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 15.5rem;
  max-width: 46vw;
  aspect-ratio: 4 / 1;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 14px rgba(111, 195, 181, 0.36));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.nav-link,
.menu-toggle,
.button,
.icon-button,
.tab-button,
.duration-button,
.copy-chip {
  border: 1px solid rgba(199, 230, 212, 0.28);
  border-radius: var(--radius);
  background: rgba(33, 74, 61, 0.8);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 10px 0 rgba(0, 0, 0, 0.18),
    0 16px 30px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.58rem 0.78rem;
  color: #f7e7bf;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-link:hover,
.nav-link[aria-current="page"],
.menu-toggle:hover,
.button:hover,
.icon-button:hover,
.tab-button:hover,
.duration-button:hover,
.copy-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 230, 212, 0.74);
  background: rgba(111, 195, 181, 0.1);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34), 0 0 22px rgba(111, 195, 181, 0.12);
}

.nav-link[aria-current="page"] {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(111, 195, 181, 0.22), rgba(127, 168, 102, 0.24));
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0.65rem;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

main {
  position: relative;
  min-height: calc(100vh - 18rem);
  padding-top: var(--header-height);
}

main::before,
main::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
}

main::before {
  right: max(1.5rem, 7vw);
  top: 18vh;
  width: 9rem;
  height: 9rem;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(127, 168, 102, 0.24) 0 13%, transparent 15%),
    radial-gradient(ellipse at 68% 26%, rgba(127, 168, 102, 0.2) 0 13%, transparent 15%),
    radial-gradient(ellipse at 32% 28%, rgba(127, 168, 102, 0.2) 0 13%, transparent 15%),
    radial-gradient(ellipse at 74% 48%, rgba(199, 230, 212, 0.13) 0 11%, transparent 13%),
    radial-gradient(ellipse at 26% 48%, rgba(199, 230, 212, 0.13) 0 11%, transparent 13%),
    linear-gradient(102deg, transparent 46%, rgba(216, 189, 117, 0.2) 47% 51%, transparent 52%);
  filter: blur(0.2px);
  transform-origin: center bottom;
  animation: block-drift 14s ease-in-out infinite;
}

main::after {
  left: max(1rem, 6vw);
  bottom: 12vh;
  width: 11rem;
  height: 4.2rem;
  background:
    radial-gradient(ellipse at 18% 54%, transparent 0 36%, rgba(199, 230, 212, 0.18) 38% 44%, transparent 46%),
    radial-gradient(ellipse at 50% 54%, transparent 0 36%, rgba(199, 230, 212, 0.16) 38% 44%, transparent 46%),
    radial-gradient(ellipse at 82% 54%, transparent 0 36%, rgba(199, 230, 212, 0.18) 38% 44%, transparent 46%);
  background-size: 4rem 3rem;
  border-radius: 999px;
  animation: block-drift 18s ease-in-out infinite reverse;
}

.page {
  animation: page-in 260ms ease both;
}

.section,
.hero,
.shop-layout,
.profile-page,
.legal-page {
  padding-left: var(--page-x);
  padding-right: var(--page-x);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(33rem, 58svh, 42rem);
  overflow: clip;
  isolation: isolate;
  border-bottom: 1px solid rgba(127, 168, 102, 0.18);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 74% 28%, rgba(216, 189, 117, 0.16), transparent 18rem),
    radial-gradient(circle at 58% 54%, rgba(111, 195, 181, 0.13), transparent 18rem),
    radial-gradient(circle at 84% 74%, rgba(217, 143, 114, 0.08), transparent 20rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.04), rgba(11, 36, 33, 0.48) 75%, #0b2421 100%),
    linear-gradient(90deg, rgba(11, 36, 33, 0.84) 0%, rgba(11, 36, 33, 0.42) 50%, rgba(11, 36, 33, 0.72) 100%),
    url("optimized/pingu-snow-wallpaper.webp") center / cover no-repeat;
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 50%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(18rem, 0.78fr);
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 0 2.7rem;
}

.hero-copy,
.section-heading,
.profile-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(111, 195, 181, 0.34);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.hero-title {
  max-width: 14ch;
  margin-bottom: 1.2rem;
  color: #ffffff;
  font-size: clamp(3rem, 5vw, 3.85rem);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 7px 0 rgba(0, 0, 0, 0.56),
    0 0 32px rgba(111, 195, 181, 0.32);
  overflow-wrap: normal;
  word-break: normal;
}

h2 {
  margin-bottom: 0.8rem;
  color: #ffffff;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 0.65rem;
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 860;
  line-height: 1.2;
}

.lead,
.section-heading p,
.card p,
.product-card p,
.compare-card p,
.legal-page p,
.profile-body p,
.profile-body li,
.footer-text,
.shop-note,
.cart-empty,
.fineprint {
  color: var(--muted);
}

.lead {
  max-width: 41rem;
  margin-bottom: 1rem;
  color: #fff0cf;
  font-size: 1.06rem;
  line-height: 1.65;
}

.lead,
.section-heading p,
.status-copy p,
.world-content p,
.world-features li,
.creator-panel p,
.creator-details li {
  overflow-wrap: break-word;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.78rem 1rem;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.button.primary {
  border-color: rgba(199, 230, 212, 0.72);
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan) 48%, var(--violet));
  color: #0a2824;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.button.secondary {
  border-color: rgba(127, 168, 102, 0.62);
  background: linear-gradient(135deg, rgba(127, 168, 102, 0.34), rgba(217, 143, 114, 0.28));
}

.button.ghost {
  background: rgba(255, 255, 255, 0.03);
}

.copy-chip {
  display: inline-grid;
  gap: 0.18rem;
  min-width: min(100%, 20rem);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
}

.hero-copy > .copy-chip {
  width: min(100%, 19rem);
  margin-top: 0.8rem;
}

.copy-chip span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.copy-chip strong {
  color: var(--cyan-soft);
  font-size: 1.2rem;
  overflow-wrap: anywhere;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 19rem;
  perspective: 1000px;
}

.hero-mark {
  width: min(100%, 18.5rem);
  aspect-ratio: 1;
  object-fit: contain;
  filter:
    drop-shadow(0 0 26px rgba(111, 195, 181, 0.58))
    drop-shadow(0 0 42px rgba(127, 168, 102, 0.36));
  transform-style: preserve-3d;
  animation: mark-float 6s ease-in-out infinite;
}

.stat span,
.meta-label,
.product-type,
.cart-label,
.comparison th,
.rule-number {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.owner-strip,
.stats-grid,
.feature-grid,
.product-grid,
.partner-grid,
.profile-meta,
.profile-body,
.compact-grid {
  display: grid;
  gap: 1rem;
}

.owner-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 34rem;
  margin: 1rem 0;
}

.owner-card,
.card,
.product-card,
.profile-meta div,
.profile-body article,
.legal-card,
.notice,
.shop-side,
.compare-card,
.rule-accordion,
.partner-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 10px 0 rgba(0, 0, 0, 0.22),
    var(--shadow-soft);
}

.owner-card,
.card,
.product-card,
.profile-meta div,
.profile-body article,
.legal-card,
.notice,
.shop-side,
.compare-card,
.rule-accordion,
.partner-card {
  position: relative;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.owner-card::before,
.card::before,
.product-card::before,
.shop-side::before,
.notice::before,
.rule-accordion::before,
.partner-card::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(199, 230, 212, 0.32);
  background: rgba(111, 195, 181, 0.12);
  image-rendering: pixelated;
  pointer-events: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.owner-card:hover,
.card:hover,
.product-card:hover,
.profile-meta div:hover,
.profile-body article:hover,
.legal-card:hover,
.notice:hover,
.shop-side:hover,
.compare-card:hover,
.rule-accordion:hover,
.partner-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(33, 74, 61, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 24px rgba(111, 195, 181, 0.12);
}

.owner-card:hover::before,
.card:hover::before,
.product-card:hover::before,
.shop-side:hover::before,
.notice:hover::before,
.rule-accordion:hover::before,
.partner-card:hover::before {
  transform: translate3d(-2px, 2px, 0);
  border-color: rgba(199, 230, 212, 0.7);
  background: rgba(111, 195, 181, 0.24);
  box-shadow: 0 0 14px rgba(111, 195, 181, calc(0.18 * var(--theme-glow-opacity)));
}

.owner-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  min-height: 4.75rem;
}

.owner-card span {
  color: var(--cyan-soft);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.owner-card strong {
  color: #fff;
  font-size: 1.15rem;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section.alt {
  background: linear-gradient(180deg, rgba(127, 168, 102, 0.08), rgba(111, 195, 181, 0.03));
}

.status-section {
  padding-top: 2.5rem;
}

.section-inner,
.shop-inner,
.profile-inner,
.legal-inner,
.footer-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.partner-card,
.compare-card {
  padding: 1.2rem;
}

.status-panel,
.discord-panel,
.sync-note {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 10px 0 rgba(0, 0, 0, 0.22),
    var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.status-panel:hover,
.discord-panel:hover,
.sync-note:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(22, 54, 46, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.045),
    0 16px 34px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(111, 195, 181, 0.1);
}

.status-panel {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.status-copy,
.world-content,
.announcement-copy,
.creator-panel-head,
.creator-details,
.creator-cta {
  min-width: 0;
}

.announcement-section {
  background:
    radial-gradient(circle at 80% 30%, rgba(216, 189, 117, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.12), rgba(11, 36, 33, 0.78));
}

.announcement-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1.2rem;
  align-items: stretch;
  padding: 1.25rem;
  border: 1px solid rgba(216, 189, 117, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(216, 189, 117, 0.11), rgba(199, 230, 212, 0.045)),
    rgba(22, 54, 46, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 18px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.announcement-copy p:last-of-type {
  max-width: 58rem;
  color: var(--muted);
}

.announcement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.announcement-tags span {
  border: 1px solid rgba(199, 230, 212, 0.38);
  border-radius: 999px;
  background: rgba(111, 195, 181, 0.1);
  color: var(--cyan-soft);
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.operations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.operation-card {
  display: grid;
  align-content: center;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid rgba(199, 230, 212, 0.2);
  border-radius: var(--radius);
  background: rgba(6, 25, 23, 0.46);
}

.operation-card span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.operation-card strong {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.25;
}

.status-title-link {
  display: inline-grid;
  gap: 0.2rem;
  width: fit-content;
  color: inherit;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.status-title-link:hover {
  color: var(--cyan-soft);
  transform: translateY(-1px);
}

.status-title-link h2,
.status-title-link .eyebrow {
  margin-bottom: 0;
}

.status-copy p:last-child,
.discord-panel p,
.sync-note p,
.changelog-item p {
  color: var(--muted);
}

.changelog-date {
  display: block;
  margin-top: 0.35rem;
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.discord-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.discord-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.changelog-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.changelog-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.78);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at var(--glow-x, 50%) var(--glow-y, 0%),
    rgba(199, 230, 212, 0.18),
    rgba(216, 189, 117, 0.08) 18%,
    transparent 38%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.glow-card:hover::after {
  opacity: var(--theme-glow-opacity);
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

.changelog-item:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(33, 74, 61, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 22px rgba(111, 195, 181, 0.1);
}

.sync-note {
  margin-top: 1rem;
}

.modes-section {
  background:
    radial-gradient(circle at 16% 8%, rgba(216, 189, 117, 0.12), transparent 20rem),
    radial-gradient(circle at 84% 92%, rgba(127, 168, 102, 0.14), transparent 30rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.04), rgba(11, 36, 33, 0.68));
}

.world-stack {
  display: grid;
  gap: 1.35rem;
}

.world-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid rgba(199, 230, 212, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 189, 117, 0.07), transparent 42%),
    radial-gradient(circle at 86% 12%, rgba(111, 195, 181, 0.09), transparent 14rem),
    rgba(6, 25, 23, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    var(--shadow-soft);
  isolation: isolate;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(216, 189, 117, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 168, 102, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.52;
  mask-image: linear-gradient(90deg, transparent, #000 36%, #000 100%);
}

.world-card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 230, 212, 0.42);
  background:
    linear-gradient(135deg, rgba(216, 189, 117, 0.1), transparent 42%),
    radial-gradient(circle at 84% 16%, rgba(199, 230, 212, 0.12), transparent 13rem),
    rgba(22, 54, 46, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 24px 52px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(216, 189, 117, 0.12);
}

.world-card.reveal.is-visible:hover {
  transform: translateY(-4px);
}

.world-media {
  position: relative;
  min-width: 0;
  min-height: 23rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(216, 189, 117, 0.12), rgba(127, 168, 102, 0.16)),
    rgba(6, 25, 23, 0.72);
}

.world-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 54%, rgba(6, 25, 23, 0.9) 100%),
    linear-gradient(180deg, transparent 46%, rgba(6, 25, 23, 0.52) 100%);
  pointer-events: none;
}

.world-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.04) brightness(0.92);
  transform: scale(1.02);
  transition:
    transform 520ms ease,
    filter 520ms ease;
}

.world-card:hover .world-image {
  filter: saturate(1.22) contrast(1.08) brightness(1.02);
  transform: scale(1.075);
}

.world-events .world-image {
  object-position: 28% 50%;
}

.world-nations .world-image {
  object-position: 62% 42%;
}

.world-duels .world-image {
  object-position: 82% 58%;
}

.world-status {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 1;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.status-active {
  background: rgba(52, 211, 153, 0.17);
  color: #86efac;
}

.status-beta {
  background: rgba(216, 189, 117, 0.17);
  color: #fde68a;
}

.status-planned {
  background: rgba(217, 143, 114, 0.19);
  color: #d7b36a;
}

.status-work {
  background: rgba(111, 195, 181, 0.16);
  color: #c7e6d4;
}

.world-content {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 2rem 2.2rem;
}

.world-content h3 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: 0;
}

.world-content p {
  max-width: 42rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.world-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 1.25rem;
}

.world-tag {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 850;
}

.tag-green {
  background: rgba(52, 211, 153, 0.14);
  color: #86efac;
}

.tag-cyan {
  background: rgba(111, 195, 181, 0.13);
  color: #c7e6d4;
}

.tag-violet {
  background: rgba(217, 143, 114, 0.18);
  color: #e0a37a;
}

.tag-gold {
  background: rgba(216, 189, 117, 0.16);
  color: #fde68a;
}

.tag-magenta {
  background: rgba(216, 189, 117, 0.15);
  color: #e9b7a3;
}

.world-features {
  display: grid;
  gap: 0.75rem;
}

.world-features h4 {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
}

.world-features h4 span {
  color: var(--cyan-soft);
}

.world-features ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: #e5e7eb;
  list-style: none;
}

.world-features li {
  position: relative;
  padding-left: 1.25rem;
}

.world-features li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--cyan-soft);
  font-weight: 950;
  transition: transform 180ms ease;
}

.world-card:hover .world-features li::before {
  transform: translateX(2px);
}

.world-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.creator-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(127, 168, 102, 0.18), transparent 28rem),
    linear-gradient(180deg, rgba(24, 20, 16, 0.86), rgba(22, 54, 46, 0.94));
}

.creator-shell {
  width: min(100%, 54rem);
  margin: 0 auto;
}

.creator-heading {
  margin-bottom: 1.8rem;
}

.creator-panel {
  overflow: hidden;
  border: 1px solid rgba(127, 168, 102, 0.52);
  border-radius: 8px;
  background: rgba(22, 54, 46, 0.88);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 22px 54px rgba(0, 0, 0, 0.34),
    0 0 30px rgba(127, 168, 102, 0.1);
}

.creator-panel-head {
  padding: 1.35rem;
  background:
    linear-gradient(135deg, rgba(127, 168, 102, 0.18), rgba(199, 230, 212, 0.04)),
    rgba(46, 34, 24, 0.76);
}

.creator-icons {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.creator-icons span {
  display: inline-grid;
  place-items: center;
  min-width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(216, 180, 254, 0.36);
  border-radius: 5px;
  color: var(--magenta);
  font-size: 0.68rem;
  font-weight: 950;
}

.creator-panel-head p {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--muted);
}

.creator-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 1.35rem;
  cursor: pointer;
  color: var(--magenta);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  list-style: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.creator-details summary:hover {
  color: var(--cyan-soft);
  background: rgba(127, 168, 102, 0.08);
}

.creator-details summary::-webkit-details-marker {
  display: none;
}

.creator-details summary::after {
  content: "+";
  color: var(--magenta);
  font-size: 1.2rem;
}

.creator-details[open] summary::after {
  content: "-";
}

.creator-details ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0 1.35rem 1.25rem 2.45rem;
  color: #f0e4cc;
}

.creator-details li::marker {
  color: var(--magenta);
}

.creator-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 1.35rem 1.35rem;
}

.creator-cta p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.leaderboard-hero {
  min-height: clamp(26rem, 56svh, 38rem);
  padding: calc(var(--header-height) + 3.5rem) var(--page-x) 4rem;
  background:
    radial-gradient(circle at 74% 30%, rgba(216, 189, 117, 0.22), transparent 18rem),
    radial-gradient(circle at 26% 72%, rgba(127, 168, 102, 0.16), transparent 16rem),
    radial-gradient(circle at 54% 22%, rgba(199, 230, 212, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.06), rgba(11, 36, 33, 0.64) 74%, #0b2421 100%),
    linear-gradient(90deg, rgba(11, 36, 33, 0.86), rgba(11, 36, 33, 0.32), rgba(11, 36, 33, 0.78)),
    url("optimized/pingu-snow-wallpaper.webp") center / cover no-repeat;
  border-bottom: 1px solid rgba(199, 230, 212, 0.18);
}

.leaderboard-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
  align-items: end;
  gap: 2rem;
  min-height: 20rem;
}

.leaderboard-copy {
  max-width: 54rem;
}

.leaderboard-update {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(199, 230, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.78);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.leaderboard-orb {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  align-content: center;
  min-height: 18rem;
  border: 1px solid rgba(199, 230, 212, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(199, 230, 212, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 168, 102, 0.1) 1px, transparent 1px),
    rgba(22, 54, 46, 0.78);
  background-size: 1.65rem 1.65rem;
  box-shadow:
    var(--shadow),
    inset 0 0 36px rgba(111, 195, 181, 0.12);
  text-align: center;
}

.leaderboard-orb span {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(216, 189, 117, 0.62);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(216, 189, 117, 0.26), rgba(216, 189, 117, 0.16));
  color: #fff7c2;
  font-size: 1.45rem;
  font-weight: 950;
  box-shadow: 0 0 28px rgba(216, 189, 117, 0.18);
}

.leaderboard-orb strong {
  font-size: 1.35rem;
  font-weight: 950;
}

.leaderboard-orb em {
  color: var(--cyan-soft);
  font-style: normal;
  font-weight: 850;
}

.leaderboard-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.leaderboard-toolbar h2 {
  margin: 0;
}

.leaderboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.leaderboard-tab {
  min-height: 2.6rem;
  border: 1px solid rgba(199, 230, 212, 0.24);
  border-radius: var(--radius);
  background: rgba(33, 74, 61, 0.82);
  color: var(--text);
  padding: 0.58rem 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.leaderboard-tab:hover,
.leaderboard-tab.is-active {
  transform: translateY(-2px);
  border-color: rgba(199, 230, 212, 0.74);
  background: linear-gradient(135deg, rgba(111, 195, 181, 0.2), rgba(127, 168, 102, 0.18));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32), 0 0 22px rgba(111, 195, 181, 0.12);
}

.leaderboard-stats,
.podium-grid {
  display: grid;
  gap: 1rem;
}

.leaderboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.leaderboard-stat,
.podium-card,
.ladder-card,
.leaderboard-table-wrap,
.leaderboard-mobile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.leaderboard-stat:hover,
.podium-card:hover,
.ladder-card:hover,
.leaderboard-table-wrap:hover,
.leaderboard-mobile-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(22, 54, 46, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32), 0 0 20px rgba(111, 195, 181, 0.1);
}

.leaderboard-stat {
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
}

.leaderboard-stat span,
.player-metrics span,
.ladder-row span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.leaderboard-stat strong {
  font-size: 1.55rem;
  line-height: 1;
}

.podium-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-bottom: 1rem;
}

.podium-card {
  position: relative;
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 19rem;
  padding: 1.1rem;
  overflow: hidden;
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(199, 230, 212, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 1.4rem 1.4rem;
  opacity: 0.42;
  pointer-events: none;
}

.podium-card > * {
  position: relative;
  z-index: 1;
}

.podium-card.rank-1 {
  border-color: rgba(216, 189, 117, 0.48);
  background: linear-gradient(180deg, rgba(216, 189, 117, 0.11), rgba(22, 54, 46, 0.84));
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 3rem;
  min-height: 2rem;
  border: 1px solid rgba(199, 230, 212, 0.34);
  border-radius: var(--radius);
  background: rgba(111, 195, 181, 0.1);
  color: var(--cyan-soft);
  font-weight: 950;
}

.player-avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  border: 1px solid rgba(199, 230, 212, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 50%, transparent 50%) 0 0 / 0.8rem 0.8rem,
    linear-gradient(135deg, rgba(111, 195, 181, 0.26), rgba(127, 168, 102, 0.28));
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(111, 195, 181, 0.13);
}

.player-avatar {
  width: 4.25rem;
  height: 4.25rem;
  font-size: 1.25rem;
}

.mini-avatar {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.podium-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.podium-card p,
.leaderboard-mobile-card p {
  margin: 0;
  color: var(--muted);
}

.leaderboard-score {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.leaderboard-score strong {
  font-size: 2rem;
  line-height: 1;
}

.leaderboard-score span {
  color: var(--cyan-soft);
  font-weight: 850;
}

.progress-track {
  width: 100%;
  height: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(199, 230, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 18px rgba(111, 195, 181, 0.2);
}

.player-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.player-metrics div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.player-metrics strong {
  font-size: 0.95rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem);
  gap: 1rem;
  align-items: start;
}

.leaderboard-table-wrap {
  overflow: hidden;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table caption {
  padding: 1rem 1rem 0.8rem;
  color: var(--cyan-soft);
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}

.leaderboard-table th {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.table-player {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.table-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.leaderboard-mobile-list {
  display: none;
}

.ladder-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.ladder-card h3 {
  margin: 0;
}

.ladder-list {
  display: grid;
  gap: 0.55rem;
}

.ladder-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border: 1px solid rgba(199, 230, 212, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(199, 230, 212, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(111, 195, 181, 0.2), rgba(127, 168, 102, 0.22));
  color: var(--cyan-soft);
  font-weight: 900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1rem;
  border-left: 2px solid var(--cyan);
  background: rgba(255, 255, 255, 0.03);
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.shop-hero {
  min-height: clamp(19rem, 34svh, 24rem);
  padding: 4rem var(--page-x) 3.4rem;
  background:
    radial-gradient(circle at 68% 38%, rgba(216, 189, 117, 0.2), transparent 18rem),
    radial-gradient(circle at 22% 70%, rgba(127, 168, 102, 0.13), transparent 16rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.12), rgba(11, 36, 33, 0.58) 72%, #0b2421 100%),
    linear-gradient(90deg, rgba(11, 36, 33, 0.88), rgba(11, 36, 33, 0.32), rgba(11, 36, 33, 0.78)),
    url("optimized/pingu-snow-wallpaper.webp") center / cover no-repeat;
  border-bottom: 1px solid rgba(127, 168, 102, 0.18);
}

.shop-hero .section-inner {
  display: grid;
  align-items: end;
  min-height: 13rem;
}

.shop-layout {
  position: relative;
  z-index: 2;
  margin-top: -2.2rem;
  padding-top: 0;
  padding-bottom: 5rem;
}

.shop-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19.5rem;
  gap: 1.5rem;
  align-items: start;
}

.shop-main {
  min-width: 0;
}

.notice {
  margin-bottom: 1rem;
  padding: 1rem;
  border-color: rgba(127, 168, 102, 0.34);
  background: rgba(34, 88, 62, 0.42);
}

.shop-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  cursor: pointer;
  font-weight: 900;
}

.tab-button[aria-selected="true"] {
  border-color: rgba(127, 168, 102, 0.86);
  background: linear-gradient(135deg, rgba(127, 168, 102, 0.78), rgba(217, 143, 114, 0.45));
  box-shadow: 0 16px 38px rgba(127, 168, 102, 0.22);
}

.tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  min-height: 100%;
  padding: 1rem;
  overflow: hidden;
}

.product-card.featured {
  border-color: rgba(216, 189, 117, 0.5);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.5;
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 11rem;
  margin: -0.2rem -0.2rem 0;
  border-radius: 6px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(199, 230, 212, 0.08), rgba(127, 168, 102, 0.08));
  background-size: 22px 22px, 22px 22px, 100% 100%;
  overflow: hidden;
}

.product-media img {
  width: min(82%, 12rem);
  max-height: 9.6rem;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(111, 195, 181, 0.35));
  transform: translateZ(0);
  transition: transform 240ms ease, filter 240ms ease;
}

.product-card:hover .product-media img {
  transform: translateY(-4px) scale(1.035);
  filter: drop-shadow(0 0 24px rgba(111, 195, 181, 0.52));
}

.product-type {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.48rem;
  border: 1px solid rgba(199, 230, 212, 0.34);
  border-radius: 6px;
  color: var(--cyan-soft);
}

.product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: auto;
}

.product-price strong {
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
}

.product-price span {
  color: var(--dim);
  font-size: 0.9rem;
}

.duration-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.duration-button {
  min-height: 2.2rem;
  padding: 0.42rem 0.62rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.duration-button.is-active {
  border-color: rgba(127, 168, 102, 0.82);
  color: #fff;
  background: rgba(127, 168, 102, 0.32);
}

.shop-side {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.username-box {
  display: grid;
  gap: 0.7rem;
}

.username-box label {
  color: var(--cyan-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.username-box input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(199, 230, 212, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-feature-settings: normal;
  font-variant-caps: normal;
  letter-spacing: 0;
  padding: 0.75rem 0.85rem;
}

.username-box input::placeholder {
  color: #a9c88e;
}

.input-help {
  margin: 0;
  color: var(--dim);
  font-size: 0.86rem;
}

.input-help.is-valid {
  color: var(--success);
}

.input-help.is-error {
  color: var(--danger);
}

.cart-list {
  display: grid;
  gap: 0.7rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: start;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.cart-item strong,
.cart-total strong {
  color: #fff;
}

.cart-item span {
  display: block;
  color: var(--dim);
  font-size: 0.86rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.fineprint {
  margin: 0;
  font-size: 0.84rem;
}

.comparison-wrap {
  margin-top: 2rem;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(199, 230, 212, 0.18);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.78);
}

.comparison caption {
  padding: 0 0 0.8rem;
  color: var(--cyan-soft);
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.comparison th,
.comparison td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.comparison td:not(:first-child),
.comparison th:not(:first-child) {
  text-align: center;
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.check {
  color: var(--success);
  font-weight: 900;
}

.rank-mobile-cards {
  display: none;
  gap: 1rem;
  margin-top: 1rem;
}

.detail-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(6, 25, 23, 0.76);
  backdrop-filter: blur(14px);
}

.product-modal {
  position: relative;
  display: grid;
  gap: 0.85rem;
  width: min(100%, 36rem);
  max-height: min(90vh, 48rem);
  overflow: auto;
  padding: 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(22, 54, 46, 0.96);
  box-shadow: var(--shadow);
}

.product-modal .product-media {
  height: 13rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
}

.rule-list {
  display: grid;
  gap: 0.85rem;
}

.rule-accordion {
  overflow: hidden;
}

.rule-accordion summary {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 4rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.rule-accordion summary:hover {
  color: var(--cyan-soft);
  background: rgba(111, 195, 181, 0.035);
}

.rule-accordion summary::-webkit-details-marker {
  display: none;
}

.rule-accordion summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan-soft);
  font-size: 1.45rem;
  font-weight: 900;
}

.rule-accordion[open] summary::after {
  content: "-";
}

.rule-detail {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem 4rem;
  color: var(--muted);
  animation: reveal-down 200ms ease both;
}

.rule-detail strong {
  color: #fff;
}

.partner-category {
  margin-top: 2.4rem;
}

.category-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(199, 230, 212, 0.2);
}

.category-heading h2 {
  margin-bottom: 0;
}

.category-heading span {
  color: var(--cyan-soft);
  font-weight: 900;
}

.partner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-page,
.legal-page {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.profile-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.profile-page::before,
.profile-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.profile-page::before {
  background:
    radial-gradient(circle at 20% 16%, rgba(240, 249, 255, 0.2), transparent 18rem),
    radial-gradient(circle at 78% 30%, rgba(199, 230, 212, 0.16), transparent 20rem),
    linear-gradient(180deg, rgba(11, 36, 33, 0.36), rgba(11, 36, 33, 0.82) 58%, #0b2421 100%),
    url("optimized/pingu-snow-wallpaper.webp") center / cover no-repeat;
  opacity: 0.72;
}

.profile-page::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 1px, transparent 2px) 0 0 / 42px 42px,
    radial-gradient(circle, rgba(199, 230, 212, 0.45) 0 1px, transparent 2px) 18px 22px / 64px 64px,
    radial-gradient(circle, rgba(255, 255, 255, 0.32) 0 1px, transparent 2px) 9px 12px / 96px 96px;
  opacity: 0.38;
  animation: snow-fall 18s linear infinite;
  mask-image: linear-gradient(180deg, #000 0%, #000 74%, transparent 100%);
}

.profile-page.profile-yuuki::before {
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 123, 213, 0.42), transparent 15rem),
    radial-gradient(circle at 80% 24%, rgba(82, 245, 255, 0.28), transparent 18rem),
    radial-gradient(circle at 54% 78%, rgba(181, 108, 255, 0.38), transparent 22rem),
    linear-gradient(132deg, rgba(255, 123, 213, 0.34), transparent 34%),
    linear-gradient(226deg, rgba(89, 55, 151, 0.58), transparent 42%),
    linear-gradient(180deg, rgba(11, 36, 33, 0.08), rgba(11, 36, 33, 0.82) 58%, #0b2421 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 8px),
    #0b2421;
  opacity: 1;
  animation: synth-aura 8s ease-in-out infinite;
}

.profile-page.profile-yuuki::after {
  inset: auto -16% -16% -16%;
  height: 58%;
  background:
    linear-gradient(rgba(255, 123, 213, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 245, 255, 0.34) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.42;
  transform: perspective(720px) rotateX(64deg);
  transform-origin: center bottom;
  animation: synth-grid 14s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 100%);
}

.profile-page.profile-yuuki .profile-inner {
  position: relative;
}

.profile-page.profile-yuuki .profile-inner::before,
.profile-page.profile-yuuki .profile-inner::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.profile-page.profile-yuuki .profile-inner::before {
  top: -2rem;
  right: 6%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 199, 243, 0.96), rgba(255, 123, 213, 0.86) 48%, rgba(89, 55, 151, 0.28) 49%),
    repeating-linear-gradient(180deg, transparent 0 0.8rem, rgba(11, 36, 33, 0.82) 0.82rem 1.05rem);
  filter: blur(0.2px) drop-shadow(0 0 48px rgba(255, 123, 213, 0.48));
  opacity: 0.56;
  transform: rotate(-8deg);
}

.profile-page.profile-yuuki .profile-inner::after {
  top: 5.5rem;
  left: -2rem;
  width: 9rem;
  height: 9rem;
  background:
    radial-gradient(circle, rgba(255, 199, 243, 0.78) 0 2px, transparent 3px) 0 0 / 28px 28px,
    radial-gradient(circle, rgba(82, 245, 255, 0.56) 0 1px, transparent 3px) 12px 16px / 42px 42px;
  opacity: 0.62;
  animation: synth-sparkle 10s ease-in-out infinite;
}

.profile-yuuki .profile-image {
  border-color: rgba(255, 123, 213, 0.66);
  background:
    linear-gradient(145deg, rgba(255, 123, 213, 0.2), rgba(82, 245, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(82, 245, 255, 0.24),
    0 22px 76px rgba(255, 123, 213, 0.32),
    0 0 42px rgba(82, 245, 255, 0.18),
    var(--shadow);
}

.profile-yuuki .profile-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(82, 245, 255, 0.38);
  border-radius: 50%;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 199, 243, 0.22) 48%, transparent 54%),
    linear-gradient(rgba(82, 245, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 0.55rem;
  box-shadow:
    inset 0 0 32px rgba(255, 123, 213, 0.22),
    0 0 28px rgba(82, 245, 255, 0.2);
  mix-blend-mode: screen;
}

.profile-yuuki .profile-image em {
  color: #ffc7f3;
  text-shadow:
    0 0 16px rgba(255, 123, 213, 0.9),
    0 0 32px rgba(82, 245, 255, 0.55);
}

.profile-yuuki .eyebrow,
.profile-yuuki .profile-meta strong {
  color: #ffc7f3;
}

.profile-yuuki .profile-copy h1 {
  text-shadow:
    0 0 24px rgba(255, 123, 213, 0.36),
    0 0 46px rgba(82, 245, 255, 0.24);
}

.profile-yuuki .profile-meta div,
.profile-yuuki .profile-body article {
  border-color: rgba(255, 123, 213, 0.26);
  background:
    linear-gradient(145deg, rgba(255, 123, 213, 0.09), rgba(82, 245, 255, 0.04)),
    rgba(255, 255, 255, 0.045);
}

.profile-yuuki .profile-meta div:hover,
.profile-yuuki .profile-body article:hover {
  border-color: rgba(255, 199, 243, 0.4);
  box-shadow:
    inset 0 0 0 1px rgba(82, 245, 255, 0.1),
    0 18px 42px rgba(255, 123, 213, 0.16);
}

.profile-inner {
  display: grid;
  gap: 2rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(13rem, 19rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.profile-image {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-image em {
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  color: var(--cyan-soft);
  font-size: 2.2rem;
  font-style: normal;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(111, 195, 181, 0.7);
}

.profile-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.4rem;
}

.profile-meta div,
.profile-body article {
  padding: 1rem;
}

.profile-meta strong {
  display: block;
  margin-top: 0.25rem;
}

.profile-body {
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
}

.profile-body ul {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding-left: 1.15rem;
}

.legal-card {
  max-width: 56rem;
  padding: 1.3rem;
}

.site-footer {
  border-top: 1px solid rgba(199, 230, 212, 0.15);
  background: rgba(6, 25, 23, 0.9);
  padding: 2.3rem var(--page-x);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(9rem, 0.6fr));
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.footer-logo {
  width: 12rem;
}

.footer-title {
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a,
.footer-list span {
  color: var(--muted);
}

.footer-list a {
  display: inline-flex;
  width: fit-content;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.footer-list a:hover {
  color: var(--cyan-soft);
  transform: translateX(2px);
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  max-width: min(22rem, calc(100vw - 2rem));
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(6, 25, 23, 0.94);
  color: var(--text);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 500ms ease,
    transform 500ms ease;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-float {
  0%,
  100% {
    transform: translateY(0) rotateY(-8deg);
  }
  50% {
    transform: translateY(-12px) rotateY(8deg);
  }
}

@keyframes block-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0.8rem, -1.2rem, 0) rotate(2deg);
  }
}

@keyframes snow-fall {
  from {
    background-position:
      0 -80px,
      18px -120px,
      9px -160px;
  }
  to {
    background-position:
      0 220px,
      18px 260px,
      9px 300px;
  }
}

@keyframes synth-grid {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      0 42px,
      42px 0;
  }
}

@keyframes synth-aura {
  0%,
  100% {
    filter: saturate(1) brightness(1);
  }
  50% {
    filter: saturate(1.16) brightness(1.08);
  }
}

@keyframes synth-sparkle {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.36;
  }
  50% {
    transform: translate3d(0.8rem, -0.7rem, 0);
    opacity: 0.54;
  }
}

@media (max-width: 1080px) {
  .feature-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .world-card {
    grid-template-columns: minmax(15rem, 0.82fr) minmax(0, 1.18fr);
  }

  .world-media {
    min-height: 21rem;
  }

  .world-content {
    padding: 1.55rem;
  }

  .shop-shell {
    grid-template-columns: 1fr;
  }

  .shop-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .status-panel,
  .discord-panel,
  .changelog-list,
  .announcement-panel {
    grid-template-columns: 1fr;
  }

  .operations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leaderboard-hero-inner,
  .leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-title,
  h1 {
    font-size: clamp(2.9rem, 7vw, 3.45rem);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .site-header {
    gap: 0.75rem;
  }

  .brand img {
    width: 12rem;
    max-width: 62vw;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.55rem;
    align-items: stretch;
    justify-content: stretch;
    padding: 1rem;
    border-bottom: 1px solid rgba(199, 230, 212, 0.18);
    background: rgba(6, 25, 23, 0.96);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    justify-content: center;
  }

  .hero-grid,
  .profile-hero,
  .profile-body,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1rem;
    padding-top: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .leaderboard-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 2.8rem);
  }

  .leaderboard-hero-inner {
    min-height: 0;
  }

  .leaderboard-orb {
    min-height: 12rem;
  }

  .leaderboard-toolbar {
    display: grid;
    align-items: stretch;
  }

  .leaderboard-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }

  .leaderboard-tab {
    flex: 0 0 auto;
  }

  .owner-strip,
  .partner-grid,
  .compact-grid,
  .profile-meta,
  .stat-grid,
  .shop-side,
  .operations-grid {
    grid-template-columns: 1fr;
  }

  .world-card {
    grid-template-columns: 1fr;
  }

  .world-media {
    min-height: 17rem;
  }

  .world-media::after {
    background:
      linear-gradient(180deg, transparent 44%, rgba(6, 25, 23, 0.92) 100%),
      linear-gradient(90deg, rgba(6, 25, 23, 0.16), transparent 52%, rgba(6, 25, 23, 0.16));
  }

  .creator-shell {
    width: min(100%, 46rem);
  }

  .comparison {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 700px) {
  .podium-grid,
  .leaderboard-stats {
    grid-template-columns: 1fr;
  }

  .leaderboard-table {
    display: none;
  }

  .leaderboard-mobile-list {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .leaderboard-mobile-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem;
  }

  .world-stack {
    grid-auto-columns: min(22rem, 84vw);
    grid-auto-flow: column;
    gap: 0.95rem;
    margin-inline: calc(var(--page-x) * -1);
    overflow-x: auto;
    padding-inline: var(--page-x);
    padding-bottom: 0.9rem;
    scroll-padding-inline: var(--page-x);
    scroll-snap-type: x mandatory;
    scrollbar-color: rgba(199, 230, 212, 0.7) rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .world-card {
    scroll-snap-align: center;
  }

  .world-content {
    padding: 1.15rem;
  }

  .world-content p {
    font-size: 0.94rem;
  }

  .world-features li {
    font-size: 0.9rem;
  }

  .creator-panel-head,
  .creator-details summary,
  .creator-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .creator-details ul {
    padding-right: 1rem;
    padding-left: 2rem;
  }
}

@media (max-width: 560px) {
  :root {
    --page-x: 1.25rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-title,
  h1 {
    font-size: 2.28rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .lead {
    font-size: 0.95rem;
  }

  .section-heading p,
  .status-copy p,
  .announcement-copy p {
    font-size: 0.9rem;
  }

  .section,
  .profile-page,
  .legal-page,
  .shop-layout {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-actions,
  .inline-actions,
  .shop-controls,
  .world-actions,
  .creator-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .copy-chip,
  .tab-button,
  .leaderboard-tab,
  .creator-cta .button {
    width: 100%;
  }

  .product-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .world-stack {
    grid-auto-columns: 84vw;
  }

  .world-media {
    min-height: 13.8rem;
  }

  .world-content h3 {
    font-size: 1.65rem;
  }

  .world-content p {
    font-size: 0.88rem;
  }

  .world-tags {
    gap: 0.35rem;
  }

  .world-tag,
  .world-status {
    font-size: 0.66rem;
  }

  .creator-details summary {
    min-height: 3.45rem;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .comparison {
    display: none;
  }

  .rank-mobile-cards {
    display: grid;
  }

  .product-media {
    height: 9.5rem;
  }

  .shop-hero {
    min-height: 21rem;
    padding-top: 3.2rem;
  }

  .shop-layout {
    margin-top: -1.35rem;
  }

  .leaderboard-hero {
    padding-top: calc(var(--header-height) + 2.2rem);
  }

  .leaderboard-tabs {
    display: grid;
    overflow: visible;
  }

  .leaderboard-mobile-list {
    padding: 0;
  }

  .player-metrics {
    grid-template-columns: 1fr;
  }

  .rule-detail {
    padding-left: 1rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .profile-page::after {
    animation: none;
  }

  .profile-page.profile-yuuki::before,
  .profile-page.profile-yuuki::after,
  .profile-page.profile-yuuki .profile-inner::after {
    animation: none;
  }
}
