:root {
  color-scheme: dark;
  --bg: #0b0b0e;
  --panel: #141418;
  --raised: #1a1a20;
  --line: #29292f;
  --text: #f7f6f7;
  --muted: #aaa9b4;
  --red: #eb3047;
  --red-fill: #cc1734;
  --red-tint: #ff8796;
  --radius: 13px;
  --shell: 1240px;
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  font-synthesis: none;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; min-height: 55vh; outline: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
input { min-width: 0; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ff7d91; outline-offset: 4px; }
.shell { width: min(var(--shell), calc(100% - 88px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 5; transform: translateY(-150%); background: var(--red-fill); padding: 10px 16px; border-radius: 8px; }
.skip:focus { transform: none; }
.icon { display: block; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.site-header { background: #0e0e11; border-bottom: 1px solid #212127; }
.header-inner { min-height: 73px; display: flex; align-items: center; gap: 49px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; }
.brand img, .footer-brand img { border-radius: 8px; background: #080609; }
.wordmark { display: grid; font-weight: 780; font-size: 17px; letter-spacing: .22em; line-height: 1.05; }
.wordmark span { color: var(--red-tint); font-size: 9px; letter-spacing: .38em; margin-top: 6px; font-weight: 750; }
.main-nav { align-self: stretch; display: flex; align-items: stretch; gap: 32px; }
.main-nav a { display: flex; align-items: center; gap: 7px; position: relative; white-space: nowrap; font-size: .91rem; font-weight: 640; color: #b9b7c0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current]::after { content: ''; position: absolute; height: 2px; background: var(--red); inset: auto 0 0; box-shadow: 0 -2px 12px #ee284761; }
.main-nav a[aria-current] .icon { color: #ff667b; }
.header-actions { display: flex; align-items: center; gap: 13px; margin-left: auto; }
.icon-button { display: grid; place-items: center; min-width: 42px; min-height: 42px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: #c2bfcb; }
.icon-button:hover { background: var(--raised); border-color: var(--line); color: white; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 1px solid #38363f; border-radius: 8px; background: #1a1a20; color: #f6f5f6; font-size: .91rem; font-weight: 690; white-space: nowrap; transition: background .16s, border-color .16s; }
.button:hover { background: #25242c; border-color: #55525f; }
.button.primary { background: var(--red-fill); border-color: #ec3650; color: #fff; }
.button.primary:hover { background: #df2040; border-color: #fa6075; }
.button.secondary { background: #121015d9; border-color: #4d3d46; }
.button.secondary:hover { background: #25191f; border-color: #73515b; }
.button .icon { width: 17px; height: 17px; }
.sign-in { max-width: min(180px, 30vw); min-height: 40px; }
#account-label { overflow: hidden; text-overflow: ellipsis; }

.hero { position: relative; min-height: 393px; isolation: isolate; display: grid; align-items: center; margin-top: 32px; overflow: hidden; border: 1px solid #49202a; border-radius: 16px; background: #110a0f; }
.hero-art { position: absolute; z-index: -2; width: 77%; height: 100%; object-fit: cover; object-position: 50% 49%; right: 0; inset-block: 0; }
.hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,#110a10 1%,#110a10 23%,#110a10f5 30%,#110a1085 45%,transparent 64%),linear-gradient(0deg,#18070c4d,transparent 34%); }
.hero-copy { padding: 40px 0 44px clamp(27px, 4.3vw, 61px); position: relative; max-width: 555px; }
.eyebrow { margin: 0 0 15px; display: flex; align-items: center; gap: 8px; color: #ff8394; font-size: .74rem; font-weight: 740; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ''; display: block; width: 16px; height: 1px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(2.55rem, 4.35vw, 4.15rem); letter-spacing: -.068em; line-height: .99; margin-bottom: 18px; font-weight: 760; }
.hero h1 span { display: block; color: #ff6076; }
.hero-copy > p:not(.eyebrow) { color: #c4b9c4; line-height: 1.57; max-width: 350px; margin-bottom: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { min-height: 46px; }
.catalog { margin-top: 40px; scroll-margin-top: 24px; }
.catalog-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.12rem); line-height: 1.12; margin-bottom: 7px; font-weight: 730; letter-spacing: -.044em; }
.catalog-heading p { color: var(--muted); margin: 0; }
.search-field { display: flex; align-items: center; gap: 10px; background: #121216; color: #9997a7; border: 1px solid var(--line); border-radius: 8px; min-height: 43px; padding: 0 12px; width: min(290px, 100%); }
.search-field:focus-within { border-color: #ac5264; }
.search-field input { border: 0; width: 100%; background: transparent; padding: 9px 0; color: var(--text); outline: none; font-size: .91rem; }
input::placeholder { color: #9a98a6; opacity: 1; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 0 12px; background: #141418; border: 1px solid #29282f; border-radius: 7px; color: #bebcc8; font-weight: 640; font-size: .87rem; }
.filter:hover { background: #212127; color: #fff; }
.filter[aria-pressed='true'] { border-color: #7f2b3a; background: #35151e; color: #ff99a9; }
.filter .icon { width: 16px; height: 16px; }
.results-count { color: var(--muted); font-size: .87rem; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { overflow: hidden; border: 1px solid #27262e; border-radius: var(--radius); background: #15151a; height: 100%; display: flex; flex-direction: column; transition: border-color .18s, transform .18s; }
.card:hover { border-color: #833947; transform: translateY(-3px); }
.cover { aspect-ratio: 3 / 2; position: relative; overflow: hidden; background: linear-gradient(135deg,#321523,#13141d 76%); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.cover-atlas { background: #231921 url('/assets/catalog-art.png') no-repeat; background-size: 200% 200%; }
.cover-lantern { background-position: 0 0 !important; }
.cover-signals { background-position: 100% 0 !important; }
.cover-beyond { background-position: 0 100% !important; }
.cover-atlas.cover-gold { background-position: 100% 100% !important; }
.cover-empty { display: grid; place-items: center; color: #ff9ca9; }
.cover-empty .icon { width: 45px; height: 45px; stroke-width: 1.2; }
.category-tag { display: inline-flex; align-items: center; gap: 6px; position: absolute; left: 10px; top: 10px; padding: 5px 8px; border: 1px solid #ffffff30; border-radius: 6px; background: #0b0a11e8; color: #f9f5f7; font-size: .75rem; font-weight: 670; }
.category-tag .icon { width: 13px; height: 13px; }
.card-content { display: grid; gap: 6px; padding: 14px 13px 12px; flex: 1; }
.card h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.02em; font-weight: 710; }
.card-content p { color: var(--muted); margin: 0; font-size: .87rem; overflow-wrap: anywhere; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #28272e; padding: 10px 13px; min-height: 44px; color: #d2ced7; font-size: .85rem; font-weight: 630; }
.card-bottom .icon { width: 15px; height: 15px; color: #a9a5b3; }
.card-bottom .free { color: #96e1ad; }
.card-bottom .owned { color: #ff9bab; }
.redeem-strip { display: flex; align-items: center; gap: 15px; margin: 30px 0 0; padding: 18px 19px; background: linear-gradient(95deg,#241219,#151319 68%); border: 1px solid #45222c; border-radius: 12px; }
.feature-icon { display: grid; place-items: center; width: 43px; height: 43px; flex: none; color: #ff7e93; background: #381923; border: 1px solid #602a39; border-radius: 9px; }
.redeem-strip h2 { font-size: 1.03rem; letter-spacing: -.015em; margin-bottom: 3px; }
.redeem-strip p { margin: 0; font-size: .9rem; color: #b8adb9; }
.redeem-strip .button { margin-left: auto; min-height: 38px; }
.site-footer { border-top: 1px solid #222128; margin-top: 45px; color: var(--muted); }
.footer-inner { display: flex; min-height: 73px; align-items: center; gap: 18px; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 7px; color: #d4d1d9; font-weight: 690; white-space: nowrap; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 9px 20px; font-size: .87rem; }
.site-footer a:hover { color: #fff; }

.inner-page { padding-top: 42px; }
.inner-page h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.08; margin-bottom: 9px; }
.page-heading { margin-bottom: 24px; }
.page-heading p, .empty p, .detail p, .account-dialog p, .redeem-panel p { color: var(--muted); line-height: 1.6; }
.empty { padding: 44px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); text-align: center; }
.empty .feature-icon { margin: 0 auto 15px; }
.empty p { margin-bottom: 18px; }
.back { color: #c0b9c4; display: inline-block; margin-bottom: 19px; font-size: .92rem; }
.back:hover { color: #fff; }
.detail { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 55px); }
.detail > .cover { border: 1px solid var(--line); border-radius: var(--radius); }
.detail .eyebrow { color: #ff8394; margin-bottom: 7px; }
.detail .creator { color: #d0c6d1; }
.detail .description { white-space: pre-line; }
.download-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 16px 0 0; }
.download-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.download-name { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.download-name small { color: var(--muted); font-size: .82rem; }
.redeem-panel { width: min(100%, 540px); border: 1px solid #3f2530; background: linear-gradient(140deg,#21151d,#141418 50%); border-radius: var(--radius); padding: clamp(23px, 5vw, 38px); margin: 0 auto 24px; }
.redeem-panel .feature-icon { margin-bottom: 15px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; font-weight: 650; font-size: .91rem; }
.field input { width: 100%; border: 1px solid #3a373f; border-radius: 8px; padding: 10px 11px; min-height: 46px; background: #0f0f13; color: var(--text); font-weight: 500; font-size: 1rem; }
.key-field input { font-family: ui-monospace, Consolas, monospace; text-transform: uppercase; }
.form-error { color: #ffa2ad !important; margin: 0; overflow-wrap: anywhere; }
.notice { padding: 14px 16px; border-radius: 8px; background: #10271d; border: 1px solid #38644b; color: #a5e8bc; margin: 16px 0 0; }
.notice a { text-decoration: underline; }
.account-dialog { width: min(calc(100% - 30px), 450px); padding: 28px; color: var(--text); background: #17161b; border: 1px solid #433740; border-radius: 14px; box-shadow: 0 24px 120px #0009; }
.account-dialog::backdrop { background: #060508bf; backdrop-filter: blur(5px); }
.account-dialog h2 { margin-right: 34px; }
.close-dialog { position: absolute; right: 12px; top: 12px; }
.dialog-switch { color: #ff9baa; background: transparent; border: none; padding: 0; text-decoration: underline; }
.account-dialog .switch-line { margin: 15px 0 0; }
.toast { position: fixed; z-index: 4; right: 18px; bottom: 18px; max-width: min(430px, calc(100% - 36px)); padding: 13px 17px; color: var(--text); background: #261a24; border: 1px solid #744051; border-radius: 9px; box-shadow: 0 8px 22px #0007; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 52px); }
  .header-inner { gap: 31px; }
  .main-nav { gap: 22px; }
  .hero { min-height: 350px; }
  .hero-art { width: 73%; }
}
@media (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 79%; }
  .hero::after { background: linear-gradient(90deg,#110a10 4%,#110a10f2 26%,#110a10b3 43%,#110a1012 79%); }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 30px); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 0; min-height: auto; padding-top: 7px; }
  .main-nav { grid-row: 2; grid-column: span 2; gap: 23px; min-height: 43px; }
  .main-nav a { font-size: .86rem; }
  .header-actions { gap: 4px; }
  .hero { margin-top: 18px; min-height: 0; display: block; }
  .hero-art { width: 100%; height: min(46vw, 235px); object-position: 50% 48%; }
  .hero::after { bottom: auto; height: min(46vw, 235px); background: linear-gradient(0deg,#110a10,transparent 32%); }
  .hero-copy { padding: calc(min(46vw, 235px) + 12px) 18px 22px; }
  .hero h1 { font-size: clamp(2.35rem, 9vw, 3.4rem); }
  .hero-copy > p:not(.eyebrow) { margin-bottom: 17px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 11px; }
  .catalog { margin-top: 29px; }
  .catalog-heading { display: grid; gap: 12px; margin-bottom: 14px; }
  .search-field { width: 100%; }
  .filter-row { gap: 9px; }
  .filters { gap: 6px; }
  .filter { padding-inline: 8px; }
  .product-grid { gap: 10px; }
  .card-content, .card-bottom { padding-inline: 9px; }
  .category-tag { left: 6px; top: 6px; }
  .redeem-strip { flex-wrap: wrap; padding: 13px; }
  .redeem-strip .button { margin-left: 58px; }
  .detail { grid-template-columns: 1fr; }
  .inner-page { padding-top: 26px; }
  .footer-inner { flex-wrap: wrap; padding-block: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
