:root { color-scheme: dark; --home-accent: #a6ecad; --home-surface: #163020; --world-base: #06130a; --glow-primary: #1b813b88; --glow-secondary: #c3414166; --particle-color: #84ed9c; --particle-accent: #ff8970; }
* { box-sizing: border-box; }
body { margin: 0; color: #f4f5ed; background: var(--world-base); font-family: "Baloo 2", system-ui, sans-serif; transition: background-color .8s; }
body[data-world="uni"] { --world-base: #100e22; --glow-primary: #715acb99; --glow-secondary: #327a9d66; --particle-color: #cbb2ff; --particle-accent: #f5d78a; }
body[data-world="mord"] { --world-base: #14070e; --glow-primary: #b5284599; --glow-secondary: #ad592c66; --particle-color: #fa788c; --particle-accent: #ffa15e; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #ffe49b; outline-offset: 5px; }
.home-background { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.home-aurora { position: absolute; inset: -18%; background: radial-gradient(ellipse at 15% 85%, var(--glow-secondary), transparent 54%), radial-gradient(ellipse at 85% 30%, var(--glow-primary), transparent 60%); animation: color-drift 18s ease-in-out infinite alternate; }
.home-background::after { content: ""; position: absolute; inset: 0; background: url("/img/jungle-silhouette.svg") center bottom / cover no-repeat; opacity: .16; transition: opacity .8s; }
body:is([data-world="uni"], [data-world="mord"]) .home-background::after { opacity: 0; }
.particles { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.particle { position: absolute; top: 0; width: var(--size); height: var(--size); background: var(--particle-color); border-radius: 50%; box-shadow: 0 0 9px var(--particle-color); opacity: 0; animation: float-up linear infinite; transition: background-color .8s, box-shadow .8s; }
.accent-particle { background: var(--particle-accent); box-shadow: 0 0 12px var(--particle-accent); }
@keyframes color-drift { from { transform: translate(-3%, 3%) rotate(-6deg) scale(1); } to { transform: translate(3%, -3%) rotate(7deg) scale(1.12); } }
@keyframes float-up { 0% { transform: translate(0, 105vh); opacity: 0; } 15% { opacity: .65; } 80% { opacity: .3; } 100% { transform: translate(var(--drift), -5vh); opacity: 0; } }
.wrapper { position: relative; z-index: 1; width: min(100%, 1040px); min-height: 100dvh; margin: auto; padding: max(20px, env(safe-area-inset-top)) 28px max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-mark { font: 700 12px ui-monospace, monospace; letter-spacing: 2px; text-decoration: none; }
.logo-mark span { color: var(--home-accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-actions > a { font-size: 14px; text-decoration: none; color: #c1c7c0; }
.language-switch { display: flex; background: #ffffff09; padding: 4px; border: 1px solid #ffffff18; border-radius: 12px; }
.language-switch button { min-height: 36px; min-width: 40px; padding: 3px 9px; border: 0; border-radius: 8px; color: #cbd2ca; background: transparent; font-size: 12px; font-weight: 700; }
.language-switch button[aria-pressed="true"] { background: #e5eddf; color: #142219; }
.hero { width: 100%; padding: 35px 0 24px; text-align: center; }
.hero-eyebrow { margin: 0 0 7px; color: #bbcbbb; font-size: 12px; letter-spacing: .1em; }
h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -1.8px; font-weight: 800; }
.brand-dots { color: var(--home-accent); }
h2 { margin: 12px 0 25px; font-size: 18px; font-weight: 600; color: #cfdbcf; }
.world-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.world-card { --card-accent: #b3f3ad; min-width: 0; position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 1px solid #ffffff22; border-radius: 22px; background: #153322; color: var(--card-accent); text-align: left; transition: border-color .15s, transform .15s; }
.world-card:hover { transform: translateY(-3px); }
.world-card[aria-pressed="true"] { border-color: var(--card-accent); box-shadow: 0 0 0 1px var(--card-accent); }
.world-art { width: 100%; height: 118px; display: flex; justify-content: center; align-items: center; gap: 7px; overflow: hidden; background: linear-gradient(0deg, #153322, #15332211), url("img/jungle-bg.jpg") center 40% / cover; }
.world-art img { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 6px 10px #0005); }
.world-copy { display: flex; flex: 1; flex-direction: column; padding: 16px 20px 22px; }
.world-prefix { color: #e8ece3; font-size: 13px; line-height: 1.2; }
.world-copy strong { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; font-weight: 800; }
.world-caption { color: #d3d9d0; font-size: 13px; margin-top: 9px; line-height: 1.3; }
.world-check { position: absolute; top: 12px; right: 12px; width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; background: var(--card-accent); color: #1a1b20; font: 700 14px system-ui, sans-serif; visibility: hidden; }
.world-card[aria-pressed="true"] .world-check { visibility: visible; }
.world-uni { --card-accent: #d1c8ff; background: #24243f; }
.world-uni .world-art { background: linear-gradient(#baa7ff0c 1px, transparent 1px), linear-gradient(90deg, #baa7ff0c 1px, transparent 1px), linear-gradient(155deg, #443965, #24243f); background-size: 24px 24px, 24px 24px, cover; }
.world-mord { --card-accent: #ffa0a8; background: #30151e; }
.world-mord .world-art { background: radial-gradient(ellipse at 90% 0, #7a304355, transparent 80%), repeating-linear-gradient(125deg, #ef78800a 0 1px, transparent 1px 18px), #251017; }
.world-detail { margin: 19px 0 0; padding: 14px 18px; border-radius: 16px; background: var(--home-surface); text-align: left; min-height: 99px; }
.world-detail h3 { margin: 0 0 9px; font-size: 14px; font-weight: 700; color: var(--home-accent); }
.theme-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.theme-preview span { padding: 4px 9px; border-radius: 7px; background: #ffffff09; color: #e2e3df; font-size: 12px; }
.play-button { display: inline-flex; min-height: 51px; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; padding: 9px 30px; border-radius: 14px; background: var(--home-accent); color: #171a18; font-size: 18px; font-weight: 800; text-decoration: none; }
.play-button:hover { filter: brightness(1.08); }
.join-hint { margin: 13px 0 7px; color: #c0cbbf; font-size: 13px; }
.hero-meta { margin: 0; color: #98aa98; font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: #98aa98; font-size: 11px; }
@media (max-width: 620px) {
  .wrapper { padding-inline: 18px; }
  .hero { padding-top: 26px; }
  .header-actions { gap: 12px; }
  .logo-mark { font-size: 10px; letter-spacing: 1px; }
  .world-cards { grid-template-columns: 1fr; gap: 12px; }
  .world-card { flex-direction: row; min-height: 111px; border-radius: 17px; align-items: stretch; }
  .world-art { flex: 0 0 85px; width: 85px; height: auto; }
  .world-art img { width: 100px; height: 100px; }
  .world-copy { min-width: 0; justify-content: center; padding: 14px 28px 14px 13px; }
  .world-copy strong { font-size: 27px; }
  .world-prefix { font-size: 11px; }
  .world-caption { margin-top: 5px; font-size: 12px; }
  .world-check { width: 18px; height: 18px; top: 10px; right: 9px; font-size: 11px; }
  h2 { font-size: 16px; margin-bottom: 21px; }
  .play-button { width: 100%; margin-top: 18px; }
  .world-detail { min-height: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-aurora, .particle { animation: none; }
  .particles { display: none; }
  body, .world-card, .home-background::after { transition: none; }
  .world-card:hover { transform: none; }
}
