:root {
  color-scheme: dark;
  --bg: #071117;
  --panel: rgba(17, 32, 40, 0.78);
  --panel-strong: #10232b;
  --line: rgba(175, 217, 215, 0.16);
  --text: #f4f2e9;
  --muted: #a8b8b7;
  --mint: #77e8c3;
  --gold: #e5b650;
  --danger: #e98172;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(28, 115, 105, 0.22), transparent 32rem),
    linear-gradient(145deg, #08141b 0%, #071117 42%, #0b171c 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
.ambient { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .18; pointer-events: none; }
.ambient-one { width: 28rem; height: 28rem; background: #1ca58f; top: 12rem; right: -13rem; }
.ambient-two { width: 24rem; height: 24rem; background: #9c6a29; bottom: -12rem; left: -12rem; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #f0ca70, #a56f20);
  color: #142125;
  font: 800 21px/1 Georgia, serif;
  box-shadow: 0 8px 26px rgba(221, 170, 61, .18);
}
.brand strong { display: block; font: 700 19px/1.1 Georgia, serif; letter-spacing: .03em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.server-state { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 13px var(--mint); }

main, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: 105px 0 90px; max-width: 850px; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; font-weight: 600; }
h1 span { color: #98c8c0; }
.lead { max-width: 650px; margin: 30px 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.primary-action, .card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8be61, #c78a2d);
  color: #132126;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 13px 38px rgba(187, 128, 32, .2);
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-action { min-height: 54px; padding: 0 24px; }
.primary-action:hover, .card-button:hover { transform: translateY(-2px); box-shadow: 0 17px 44px rgba(187, 128, 32, .27); }

.projects { padding: 45px 0 90px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
h2 { margin: 0; font-size: clamp(34px, 4vw, 50px); letter-spacing: -.025em; }
.project-count { color: var(--muted); font-size: 13px; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.game-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 22px 65px rgba(0, 0, 0, .2);
  backdrop-filter: blur(18px);
}
.card-art { height: 220px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 62%, #705127, #17191b 62%, #081015); }
.game-card-luxury .card-art::before {
  content: "";
  position: absolute;
  width: 118%;
  height: 92px;
  left: -9%;
  bottom: 17px;
  border: 1px solid rgba(225, 185, 96, .34);
  transform: rotate(-4deg);
  background: linear-gradient(90deg, rgba(169, 113, 37, .35), rgba(255, 234, 174, .06), rgba(107, 58, 22, .37));
}
.gem { position: absolute; display: block; width: 68px; height: 68px; top: 68px; transform: rotate(45deg); border-radius: 19px 7px 21px 8px; border: 2px solid rgba(255,255,255,.52); box-shadow: inset 8px 8px 18px rgba(255,255,255,.28), inset -10px -8px 20px rgba(0,0,0,.48), 0 16px 28px rgba(0,0,0,.4); }
.gem-white { left: 12%; background: linear-gradient(135deg, #fff, #a4c3d0); }
.gem-blue { left: 30%; background: linear-gradient(135deg, #59d9ff, #083aab); }
.gem-green { left: 48%; background: linear-gradient(135deg, #5cf4a7, #087044); }
.gem-red { left: 66%; background: linear-gradient(135deg, #ff766e, #9d0f21); }
.gem-black { left: 84%; background: linear-gradient(135deg, #7e8d9c, #05090c); }
.lumen-art { background: radial-gradient(circle at 50% 50%, #237590, #11293c 43%, #080e1a 75%); }
.lumen-core { position: absolute; width: 76px; height: 76px; left: calc(50% - 38px); top: calc(50% - 38px); border-radius: 50%; background: #eaffff; box-shadow: 0 0 18px #9ff5ff, 0 0 58px #3cc5df, 0 0 100px #3088b6; }
.lumen-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(155, 235, 243, .45); border-radius: 50%; transform: translate(-50%, -50%) rotate(-12deg); }
.orbit-one { width: 270px; height: 96px; }
.orbit-two { width: 410px; height: 142px; transform: translate(-50%, -50%) rotate(23deg); }
.card-copy { padding: 27px 28px 30px; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { padding: 7px 10px; border-radius: 999px; background: rgba(119, 232, 195, .1); color: #a6edda; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.availability { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: #879292; }
.availability.online i { background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.availability.offline i { background: var(--danger); }
.card-copy h3 { margin: 22px 0 10px; font-size: 38px; }
.card-copy > p { min-height: 52px; margin: 0; color: var(--muted); line-height: 1.6; }
.card-actions { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.card-button { min-height: 46px; padding: 0 18px; font-size: 14px; }
.players, .text-link { color: var(--muted); font-size: 13px; }
.text-link { text-underline-offset: 4px; }

.downloads { margin: 0 0 90px; padding: 34px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: rgba(10, 25, 31, .74); }
.downloads h2 { font-size: 36px; }
.downloads p:last-child { margin: 10px 0 0; color: var(--muted); }
.download-list { display: grid; gap: 10px; }
.download-list a { display: grid; grid-template-columns: 1fr auto 30px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); text-decoration: none; transition: background .18s ease, border-color .18s ease; }
.download-list a:hover { background: rgba(119,232,195,.07); border-color: rgba(119,232,195,.3); }
.download-list small { color: var(--muted); }
.download-list b { color: var(--gold); font-size: 20px; text-align: center; }
footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .project-grid, .downloads { grid-template-columns: 1fr; }
  .downloads { gap: 26px; }
  .hero { padding-top: 75px; }
  .gem { width: 56px; height: 56px; top: 76px; }
}

@media (max-width: 540px) {
  .topbar, main, footer { width: min(100% - 26px, 1180px); }
  .server-state { font-size: 0; }
  .hero { padding: 58px 0 62px; }
  .projects { padding-top: 20px; }
  .section-heading { align-items: start; }
  .project-count { display: none; }
  .card-art { height: 180px; }
  .gem { width: 45px; height: 45px; top: 68px; border-radius: 13px 5px 14px 5px; }
  .gem-white { left: 8%; } .gem-blue { left: 26%; } .gem-green { left: 44%; } .gem-red { left: 62%; } .gem-black { left: 80%; }
  .card-copy { padding: 23px 20px 25px; }
  .card-meta, .card-actions { align-items: flex-start; flex-direction: column; }
  .card-copy > p { min-height: 0; }
  .downloads { padding: 25px 20px; }
  .download-list a { grid-template-columns: 1fr 24px; }
  .download-list small { display: none; }
  footer { flex-direction: column; align-items: flex-start; justify-content: center; }
}

