:root {
  color-scheme: dark;
  --ink: #f4f1e8;
  --muted: #aab5ae;
  --line: rgba(255, 255, 255, .1);
  --surface: rgba(22, 34, 30, .82);
  --green: #2d8a66;
  --gold: #d3a94f;
  --bg: #0d1512;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 70% 0%, #1a3028 0, var(--bg) 42rem); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); overflow: hidden; white-space: nowrap; border: 0; }
.ambient { position: fixed; border-radius: 50%; filter: blur(1px); pointer-events: none; opacity: .18; }
.ambient-one { width: 36rem; height: 36rem; right: -18rem; top: 18rem; background: #907431; }
.ambient-two { width: 28rem; height: 28rem; left: -16rem; top: 48rem; background: #1e7757; }

.site-header { position: relative; z-index: 10; height: 86px; max-width: 1240px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(211,169,79,.55); color: var(--gold); font: 700 20px Georgia, serif; transform: rotate(45deg); }
.wordmark-icon::first-letter { transform: rotate(-45deg); }
.wordmark > span:last-child { display: grid; gap: 2px; }
.wordmark strong { font: 600 18px Georgia, "Songti SC", serif; letter-spacing: .08em; }
.wordmark small { color: #77877f; font-size: 8px; letter-spacing: .32em; }
nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--muted); font-size: 13px; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.server-state { display: flex; align-items: center; gap: 8px; padding-left: 22px; border-left: 1px solid var(--line); color: #84948b; font-size: 12px; }
.server-state i { width: 7px; height: 7px; border-radius: 50%; background: #8b5c52; box-shadow: 0 0 0 4px rgba(139,92,82,.12); }
.server-state i.online { background: #53b486; box-shadow: 0 0 0 4px rgba(83,180,134,.12); }

main { position: relative; z-index: 1; }
.hero { min-height: 650px; max-width: 1240px; margin: auto; padding: 84px 24px 70px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.hero h1 { margin: 22px 0 24px; font: 500 clamp(52px, 6vw, 82px)/1.02 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.primary-button, .secondary-button { min-width: 142px; padding: 14px 22px; border: 1px solid transparent; text-align: center; font-size: 14px; font-weight: 700; transition: transform .2s, border-color .2s, background .2s; }
.primary-button { background: var(--gold); color: #19201d; }
.secondary-button { border-color: var(--line); background: rgba(255,255,255,.03); }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.secondary-button:hover { border-color: rgba(211,169,79,.48); }

.hero-table { position: relative; width: min(480px, 42vw); aspect-ratio: 1; justify-self: end; display: grid; place-items: center; border: 1px solid rgba(211,169,79,.18); border-radius: 50%; background: radial-gradient(circle, rgba(43,90,69,.68), rgba(18,32,27,.24) 62%, transparent 63%); box-shadow: inset 0 0 80px rgba(0,0,0,.42), 0 30px 100px rgba(0,0,0,.24); }
.hero-table::after { content: ""; position: absolute; inset: 12%; border: 1px dashed rgba(211,169,79,.21); border-radius: 50%; }
.table-orbit { position: absolute; inset: 5%; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; }
.orbit-two { inset: 25%; }
.table-center-mark { z-index: 2; display: grid; place-items: center; width: 136px; height: 136px; border-radius: 50%; border: 1px solid rgba(211,169,79,.3); background: #13231d; box-shadow: 0 15px 42px rgba(0,0,0,.35); }
.table-center-mark strong { color: var(--gold); font: 500 23px Georgia, serif; letter-spacing: .18em; }
.table-center-mark small { color: #64766d; font-size: 7px; letter-spacing: .2em; }
.table-card { position: absolute; z-index: 3; width: 94px; height: 128px; display: grid; place-items: center; align-content: center; gap: 10px; color: var(--gold); border: 1px solid rgba(211,169,79,.34); background: linear-gradient(145deg, #20362d, #111e19); box-shadow: 0 20px 38px rgba(0,0,0,.36); }
.table-card::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.07); }
.table-card span { font: 32px Georgia, serif; }
.table-card small { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.card-one { left: 3%; top: 16%; transform: rotate(-13deg); }
.card-two { right: 0; top: 24%; transform: rotate(11deg); }
.card-three { bottom: -2%; left: 38%; transform: rotate(4deg); }

.join-section { max-width: 1192px; margin: 0 auto 110px; padding: 30px 34px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 36px; border: 1px solid rgba(211,169,79,.2); background: linear-gradient(100deg, rgba(40,65,55,.78), rgba(22,34,30,.78)); backdrop-filter: blur(16px); }
.join-section h2 { margin: 8px 0 0; font: 500 24px Georgia, "Songti SC", serif; }
.join-form { display: flex; height: 48px; }
.join-form input { width: 180px; border: 1px solid rgba(255,255,255,.13); border-right: 0; outline: 0; color: var(--ink); background: rgba(0,0,0,.22); text-align: center; font-weight: 800; font-size: 20px; letter-spacing: .28em; text-transform: uppercase; }
.join-form input:focus { border-color: rgba(211,169,79,.65); }
.join-form button { border: 0; padding: 0 22px; cursor: pointer; background: var(--gold); color: #19201d; font-weight: 800; }
.join-feedback { min-height: 18px; grid-column: 2; margin: 2px 0 0; color: #d9b9a4; font-size: 12px; }

.library { max-width: 1240px; margin: auto; padding: 0 24px 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 0; font: 500 clamp(34px, 4vw, 48px) Georgia, "Songti SC", serif; }
.library-meta { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.library-meta strong { color: var(--gold); font: 500 38px Georgia, serif; }
.library-meta span { font-size: 12px; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); animation: card-in .5s both; animation-delay: var(--delay); }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
.game-cover { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: #1d2a25; }
.game-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(9,16,13,.92), transparent 55%); }
.game-cover img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.68) contrast(1.06); }
.availability, .room-count { position: absolute; z-index: 1; }
.availability { left: 18px; top: 18px; padding: 7px 10px; color: #dff6e9; background: rgba(31,112,76,.86); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.availability.soon { color: #e5decf; background: rgba(80,76,69,.85); }
.room-count { left: 18px; bottom: 16px; color: #c0ccc6; font-size: 11px; }
.game-body { padding: 24px; }
.game-title { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.game-title small { color: var(--accent); font-size: 10px; letter-spacing: .14em; }
.game-title h3 { margin: 6px 0 0; font: 500 26px Georgia, "Songti SC", serif; }
.game-title > span { flex: none; margin-top: 6px; padding: 5px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.game-body > p { min-height: 50px; margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.game-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.game-tags span { padding: 5px 8px; background: rgba(255,255,255,.045); color: #93a39b; font-size: 10px; }
.game-facts { display: flex; gap: 18px; margin: 18px 0; color: #75877d; font-size: 11px; }
.launch-button { display: flex; min-height: 44px; align-items: center; justify-content: center; margin-top: 17px; padding: 10px 18px; border: 1px solid color-mix(in srgb, var(--accent), transparent 42%); background: color-mix(in srgb, var(--accent), transparent 90%); color: var(--paper); font-size: 13px; font-weight: 800; transition: border-color .2s, background-color .2s; }
.launch-button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent), transparent 82%); }
.launch-button.disabled { opacity: .45; pointer-events: none; }
.skeleton { min-height: 500px; background: linear-gradient(100deg, rgba(255,255,255,.03) 20%, rgba(255,255,255,.07) 35%, rgba(255,255,255,.03) 50%); background-size: 240% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -240%; } }
.load-error { grid-column: 1/-1; min-height: 240px; display: grid; place-items: center; align-content: center; gap: 10px; border: 1px solid var(--line); color: var(--muted); }
.load-error strong { color: var(--ink); }
.load-error button { margin-top: 8px; padding: 9px 14px; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; }

.platform-note { max-width: 1192px; margin: 0 auto 100px; padding: 46px 0; display: grid; grid-template-columns: 80px 1fr 1fr; align-items: center; gap: 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-index { color: rgba(211,169,79,.28); font: 500 52px Georgia, serif; }
.platform-note h2 { max-width: 460px; margin: 10px 0 0; font: 500 32px/1.25 Georgia, "Songti SC", serif; }
.platform-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
footer { position: relative; z-index: 1; max-width: 1192px; margin: auto; padding: 0 0 34px; display: flex; justify-content: space-between; color: #64746c; font-size: 11px; letter-spacing: .08em; }

@media (max-width: 900px) {
  .nav-link { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 70px; text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-table { width: min(460px, 82vw); justify-self: center; }
  .join-section { margin-inline: 24px; grid-template-columns: 1fr; text-align: center; }
  .join-form { margin-top: 24px; justify-content: center; }
  .join-feedback { grid-column: 1; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-note { margin-inline: 24px; grid-template-columns: 60px 1fr; }
  .platform-note p { grid-column: 2; }
  footer { margin-inline: 24px; }
}

@media (max-width: 620px) {
  .site-header { height: 72px; }
  nav { gap: 0; }
  .server-state { border: 0; padding: 0; }
  .server-state span { display: none; }
  .hero { min-height: auto; padding-top: 54px; gap: 46px; }
  .hero h1 { font-size: 46px; }
  .hero-copy > p { font-size: 15px; }
  .hero-table { width: 86vw; }
  .table-card { width: 72px; height: 100px; }
  .table-center-mark { width: 108px; height: 108px; }
  .join-section { padding: 26px 18px; }
  .join-form input { width: 150px; }
  .join-form button { padding: 0 14px; }
  .section-heading { align-items: start; }
  .library-meta span { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .platform-note { grid-template-columns: 1fr; padding-inline: 6px; }
  .note-index { display: none; }
  .platform-note p { grid-column: 1; }
}
