:root {
  color-scheme: dark;
  --bg: #090f20;
  --panel: #121b34;
  --ink: #f3f7ff;
  --muted: #b9c9e2;
  --ice: #c6faff;
  --lilac: #d6bfff;
  --line: #acc5f033;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 42%, #3b286655, transparent 45%), var(--bg);
  color: var(--ink);
  font: 500 16px/1.65 Nunito, system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
header { background: #0a1124; border-bottom: 1px solid var(--line); }
nav, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; }
.logo { font: 700 26px Spectral, Georgia, serif; white-space: nowrap; }
.logo span, .eyebrow { color: var(--ice); }
.navlinks, .actions { display: flex; align-items: center; gap: 24px; }
.navlinks { color: var(--muted); font-size: 14px; }
.navlinks a:hover { color: var(--ice); }
.hero {
  min-height: clamp(480px, 72vh, 720px);
  display: grid;
  align-items: center;
  background: linear-gradient(0deg, var(--bg), transparent 34%),
    linear-gradient(90deg, #080e1fe8 2%, #0a11268a 45%, #14133120 85%),
    url(hero.webp) center / cover #131c36;
}
.hero .wrap { padding-block: 56px 70px; }
.eyebrow { font-size: 12px; letter-spacing: .19em; font-weight: 900; }
h1, h2, h3 { margin: 0; font-family: Spectral, Georgia, serif; line-height: 1.12; }
.hero h1 { font-size: clamp(48px, 8.5vw, 114px); letter-spacing: -.055em; margin: 14px 0 22px; }
.hero h1 em { color: var(--ice); font-weight: 500; text-shadow: 0 0 34px #86f3ff44; }
.hero p { max-width: 430px; color: #ebf1ff; font-size: 18px; margin: 0 0 26px; }
.actions { flex-wrap: wrap; gap: 11px; }
.primary, .outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 17px;
  font-size: 14px; font-weight: 900;
}
.primary { background: linear-gradient(115deg, var(--ice), var(--lilac)); color: #111732; }
.primary:hover { background: #effbff; }
.outline { background: #101a32bc; color: var(--ink); }
.outline:hover { border-color: var(--ice); }
.address { margin-top: 17px; color: var(--ice); font: 600 13px monospace; }
.store, .world { padding-block: 52px; scroll-margin-top: 16px; }
.wrap h2 { font-size: clamp(35px, 5.5vw, 66px); letter-spacing: -.045em; margin: 9px 0 22px; }
.catalog { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 0 0 20px; }
.catalog a {
  padding: 9px 17px; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); background: var(--panel); font-weight: 900;
}
.catalog a[aria-current], .catalog a:hover { background: var(--ice); color: #101932; }
.catalog-panel { scroll-margin-top: 20px; }
.catalog-panel[hidden] { display: none; }
.section-intro, .store-note, .role-grid p, .homes, .features p, .details p, footer, dialog p { color: var(--muted); }
.section-intro { max-width: 68ch; margin: 0 0 22px; }
.store-grid, .role-grid, .features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.store-card, .features article, .bloom {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(155deg, #1a2545, var(--panel) 62%, #10182e);
  box-shadow: 0 15px 35px #03071045;
}
.store-card {
  --accent: #c6faff; display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-top: 2px solid var(--accent);
  background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%), var(--panel);
}
.store-card h3 { color: var(--accent); font-size: 30px; }
.store-card p, .store-card ul, .store-prices, .store-prices dd { margin: 0; }
.homes strong, .shard-mark { color: var(--accent); }
.rank-shards { color: var(--ice); font-weight: 900; font-size: .9rem; }
.perk-list { list-style: none; padding: 0; display: grid; gap: 6px; }
.perk-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px; font-size: .88rem; }
.store code { color: var(--lilac); }
.store-note { font-size: .85rem; }
.store-prices { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.store-prices dt, .price span { color: var(--muted); font-size: .85rem; }
.store-prices dd, .pack-price { font-size: 1.25rem; font-weight: 900; }
.store-card .primary { align-self: flex-start; }
.roles-heading { margin: 34px 0 14px; }
.role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shard-mark, .features span { color: var(--ice); font-size: 30px; line-height: 1; }
.features article { padding: 25px; }
.features h3 { margin-top: 9px; font-size: 25px; }
.features p { margin-bottom: 0; }
.bloom { display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; }
.bloom img { width: 100%; height: 100%; object-fit: cover; }
.details, dialog { padding: 28px; }
.details h3, dialog h2 { font-size: 38px; }
.details ul { padding-left: 21px; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 15px 0; }
.price strong { font-size: 24px; }
footer { border-top: 1px solid var(--line); font-size: 13px; }
dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); color: var(--ink); width: min(430px, calc(100% - 32px)); }
dialog::backdrop { background: #060c1cde; }
dialog label, dialog input, dialog select { display: block; width: 100%; }
dialog input, dialog select { padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); margin: 6px 0 13px; }
.close { position: absolute; right: 12px; top: 8px; background: none; border: 0; color: var(--ink); font-size: 25px; }
.order-status { margin-bottom: 0; font-size: 14px; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
@media (max-width: 920px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .navlinks { display: none; }
  .hero { background-position: 59% center; }
  .store, .world { padding-block: 36px; }
  .features, .bloom { grid-template-columns: 1fr; }
  .bloom img { height: auto; }
}
@media (max-width: 530px) {
  .store-grid, .role-grid { grid-template-columns: 1fr; }
  .logo { font-size: 23px; }
  header .outline { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
