@font-face {
  font-family: Cinzel;
  src: url("../Assets/portal/Cinzel-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111610;
  --panel: #1b2119;
  --ink: #f9eedb;
  --soft: #c6c1ad;
  --gold: #efc279;
  --border: #675434;
  --heading: Cinzel, Georgia, serif;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ffe4a9; outline-offset: 4px; }
p { margin: 0; line-height: 1.6; }
h1, h2, h3 { margin: 0; font-family: var(--heading); line-height: 1.13; }
.skip { position: fixed; z-index: 10; top: -5rem; left: 1rem; background: var(--gold); color: #21170d; padding: 1rem; }
.skip:focus { top: .5rem; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1.25rem; min-height: 4.6rem; padding: .55rem clamp(1rem, 4vw, 4rem);
  background: #11150f; border-bottom: 1px solid var(--border);
}
.brand { justify-self: start; }
.brand img { width: 9.5rem; height: 3.15rem; object-fit: contain; }
.topbar nav, .top-actions, .actions { display: flex; align-items: center; gap: 1.5rem; }
.topbar nav, .top-actions { font-size: .93rem; font-weight: 700; }
.topbar a:not(.button):hover, footer a:hover { color: var(--gold); }
.top-actions { justify-self: end; white-space: nowrap; }
.actions { gap: .85rem; flex-wrap: wrap; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  min-height: 3.25rem; padding: .75rem 1.25rem;
  border: 1px solid #ffdd9d; border-radius: 2px;
  color: #24170d; background: #efbc71; font-weight: 750; text-align: center;
}
.button:hover { background: #ffda99; }
.button.ghost { border-color: #ad8953; background: #151811db; color: var(--ink); }
.button.ghost:hover { background: #3b3020; }
.button.compact { min-height: 2.55rem; padding: .5rem .85rem; }

.hero { min-height: clamp(34rem, 75svh, 51rem); position: relative; isolation: isolate; display: grid; align-items: center; padding: 4rem max(5vw, calc((100vw - 77rem)/2)) 5.5rem; overflow: hidden; }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-image { object-fit: cover; object-position: center 50%; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(0deg, #111610 0%, transparent 33%), linear-gradient(90deg, #10140ff5 0%, #10140fd9 24%, #10140f59 60%, #10140f14 100%); }
.hero-inner { max-width: 38rem; }
.eyebrow { color: var(--gold); font-size: .88rem; letter-spacing: .19em; text-transform: uppercase; font-weight: 750; line-height: 1.3; }
.eyebrow span { display: inline-block; width: .45rem; height: .45rem; margin-right: .4rem; background: currentColor; transform: rotate(45deg); vertical-align: .12rem; }
.hero h1 { font-size: clamp(3.45rem, 8.5vw, 8.5rem); letter-spacing: -.065em; line-height: .95; margin: .9rem 0 1.15rem; text-shadow: 0 3px 22px #10140f99; }
.hero-lead { color: #f2e8d6; max-width: 29rem; margin-bottom: 1.5rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-more { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--soft); display: flex; flex-direction: column; align-items: center; gap: .5rem; font-size: .9rem; }
.hero-more span { width: .5rem; height: .5rem; border: solid var(--gold); border-width: 0 1px 1px 0; transform: rotate(45deg); }

.section { padding: 4.6rem max(5vw, calc((100vw - 77rem)/2)); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.25rem 3rem; margin-bottom: 1.9rem; }
.section h2, .download h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); letter-spacing: -.045em; margin-top: .4rem; }
.section-heading > p { color: var(--soft); width: min(100%, 27rem); margin-bottom: .18rem; }
.rules-section { padding-top: 2.25rem; }
.demo-grid, .mode-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.demo { border-top: 1px solid var(--border); }
.demo-media { width: 100%; position: relative; display: block; border: 0; padding: 0; background: #111610; }
.demo-media img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.play-icon { position: absolute; inset: auto .85rem .85rem auto; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--gold); background: #111610df; }
.play-icon::before { content: ""; border: .45rem solid transparent; border-left: .7rem solid var(--gold); transform: translateX(.2rem); }
.demo-media[aria-pressed="true"] .play-icon::before { border: 0; width: .7rem; height: .8rem; border-inline: .2rem solid var(--gold); transform: none; }
.demo h3, .mode-grid h3 { font-size: 1.25rem; margin-block: .95rem .35rem; }
.demo p, .mode-grid p { color: var(--soft); }
.rules-details { margin-top: 2rem; border-top: 1px solid var(--border); }
.rules-details details { border-bottom: 1px solid var(--border); padding: .8rem 0; }
.rules-details summary { cursor: pointer; color: var(--gold); font-weight: 650; }
.rules-details p { color: var(--soft); max-width: 53rem; padding-top: .55rem; }

.collection { background: radial-gradient(ellipse at 84% 0%, #3a3020, transparent 61%), #1a1d15; border-block: 1px solid #473c29; }
.catalog { display: grid; grid-template-columns: minmax(13rem, .39fr) minmax(0, 1fr); min-height: 29rem; border: 1px solid var(--border); }
.catalog-selector { background: #141812; border-right: 1px solid var(--border); padding: 1rem; }
.filters { display: flex; gap: .35rem; margin-bottom: .75rem; flex-wrap: wrap; }
.filters button { border: 1px solid #57503a; background: transparent; padding: .45rem .55rem; font-size: .88rem; }
.filters [aria-pressed="true"] { background: #efd2a0; color: #24170d; border-color: #efd2a0; }
.card-list { max-height: 23rem; overflow: auto; padding: .2rem .45rem .25rem .25rem; scrollbar-color: #9b794b #202318; }
.card-choice { display: flex; width: 100%; align-items: center; gap: .65rem; background: transparent; border: 1px solid transparent; padding: .34rem; text-align: start; }
.card-choice:hover { background: #262b20; }
.card-choice[aria-pressed="true"] { border-color: #947345; background: #302a1e; color: #ffe0a3; }
.card-choice img { width: 2rem; height: 2.15rem; object-fit: cover; }
.card-detail { display: grid; grid-template-columns: minmax(9rem, .85fr) minmax(0, 1fr); align-items: center; gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1rem, 3vw, 2.2rem); }
.card-art { padding: .38rem; border: 1px solid #9a7843; background: #171510; box-shadow: 0 14px 26px #0c100974; }
.card-art img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.card-info h3 { font-size: clamp(1.65rem, 3.2vw, 3.2rem); margin: .35rem 0 .6rem; }
.card-info > p:not(.eyebrow) { color: var(--soft); }
.card-info .card-stats { margin-bottom: .55rem; color: var(--gold) !important; font-weight: 700; }
.card-info ul { padding-left: 1.18rem; margin-bottom: 0; line-height: 1.45; }
.card-info li { margin-top: .45rem; }
.card-info li::marker { color: var(--gold); }

.mode-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mode-grid article { border: 1px solid #5b4a32; background: var(--panel); }
.mode-grid img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.mode-grid article div { padding: 0 1rem 1.15rem; }
.mode-note { color: var(--soft); margin-top: 1rem; font-size: .93rem; }
.download { text-align: center; padding: clamp(3rem, 8vw, 6.5rem) 1rem; border-block: 1px solid var(--border); background: linear-gradient(#0d140edb,#12170ef0),url("../Assets/portal/vale.webp") center 50% / cover; }
.download-inner { margin-inline: auto; max-width: 36rem; }
.download p:not(.eyebrow) { color: var(--soft); margin-top: .75rem; }
.download .button { margin-top: 1.35rem; }
.download-meta { font-size: .88rem; }
.account-strip, footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 2rem max(5vw, calc((100vw - 77rem)/2)); }
.account-strip p { color: var(--soft); margin-top: .4rem; }
.account-strip h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
footer { border-top: 1px solid #4b402b; color: var(--soft); }
footer img { object-fit: contain; }

dialog { padding: 0; width: min(30rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); border: 1px solid var(--border); background: #1b2119; color: var(--ink); }
dialog::backdrop { background: #090c08d9; }
.dialog-body { position: relative; padding: 2rem 1.5rem 1.5rem; }
.dialog-body h2 { margin: 0 2rem 1.15rem 0; }
.dialog-close { position: absolute; right: .6rem; top: .5rem; width: 2.4rem; height: 2.4rem; background: transparent; border: 0; font-size: 1.65rem; }
#account-form { display: grid; gap: .65rem; }
#account-form label { display: grid; gap: .25rem; }
#account-form input { color: var(--ink); min-height: 2.6rem; background: #10150f; border: 1px solid #766a54; padding: .45rem .6rem; width: 100%; }
.form-feedback { color: #ffd098; font-size: .92rem; }
.form-feedback:empty { display: none; }
.text-button { margin-top: .9rem; padding: .4rem 0; background: transparent; border: 0; color: var(--gold); text-decoration: underline; }
button:disabled { cursor: wait; opacity: .62; }

@media (max-width: 57rem) {
  .topbar { grid-template-columns: 1fr 1fr; gap: .3rem 1rem; }
  .topbar nav { grid-row: 2; grid-column: 1/-1; justify-content: center; padding-bottom: .4rem; }
  html { scroll-padding-top: 7.1rem; }
  .section { padding-block: 3.4rem; }
  .mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 41rem) {
  .top-actions, .topbar nav { gap: .85rem; }
  .desktop-only { display: none; }
  .hero { min-height: 36rem; padding-top: 10rem; align-items: end; }
  .hero-image { object-position: 62% center; }
  .hero::after { background: linear-gradient(0deg, #111610 4%, #111610df 32%, #11161035 76%); }
  .hero h1 { font-size: clamp(3.4rem, 13vw, 5.8rem); }
  .section-heading, .account-strip { display: block; }
  .section-heading > p, .account-strip .actions, .account-strip > button { margin-top: .8rem; }
  .demo-grid, .catalog { grid-template-columns: minmax(0,1fr); }
  .demo-grid { gap: 1.65rem; }
  .catalog-selector { border-right: 0; border-bottom: 1px solid var(--border); padding: .75rem; }
  .card-list { display: flex; gap: .3rem; }
  .card-choice { min-width: max-content; padding-right: .6rem; }
  .card-detail { grid-template-columns: minmax(0,1fr); }
  .card-art { width: min(100%, 14rem); }
}
@media (max-width: 23rem) {
  .brand img { width: 7.2rem; }
  .topbar { padding-inline: .7rem; }
  .topbar nav { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
