:root {
  color-scheme: dark;
  --bg: #131211;
  --panel: #1d1b19;
  --border: #594733;
  --text: #faefdc;
  --muted: #cabbab;
  --gold: #f0c77e;
  --gold-dark: #21160c;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100svh; background: radial-gradient(ellipse at 70% 8%, #30261b, #131211 57%); }
a { color: inherit; }
img { max-width: 100%; display: block; }
header { border-bottom: 1px solid var(--border); }
.frame { max-width: 1480px; width: min(94%, 1480px); margin-inline: auto; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 4.3rem; padding-block: .6rem; }
.brand { display: inline-flex; gap: .7rem; align-items: center; text-decoration: none; line-height: 1; font-weight: 720; letter-spacing: .16em; font-size: .73rem; }
.brand b { color: var(--gold); font: 2rem/1 Georgia, serif; letter-spacing: 0; }
.brand span { border-left: 1px solid #886d47; padding-left: .72rem; white-space: nowrap; }
button, .button { min-height: 44px; border-radius: .65rem; border: 1px solid #9a7a4c; background: #211e19; color: var(--text); padding: .62rem 1rem; text-decoration: none; font: inherit; font-weight: 660; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
button:hover, .button:hover { border-color: var(--gold); background: #332b20; }
button:disabled { opacity: .52; cursor: wait; }
:focus-visible { outline: 2px solid #ffe4a0; outline-offset: 3px; }
.primary, .primary:hover { background: linear-gradient(135deg,#f9daa0,#d69a42); color: #20170d; border-color: #fad99a; }
h1,h2,p { margin: 0; }
h1,h2 { text-wrap: balance; }
.muted, small { color: var(--muted); }
.hero { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 3vw, 3.2rem); align-items: center; padding: clamp(1.4rem, 5vw, 4.5rem) 0 clamp(1.3rem, 4vw, 3.3rem); }
.hero h1 { font: 500 clamp(3rem, 5.9vw, 6.1rem)/.97 Georgia, serif; color: var(--gold); letter-spacing: -.035em; text-transform: uppercase; }
.hero h1 span { display: block; font-size: .64em; letter-spacing: -.04em; }
.hero .description { font-size: clamp(1.04rem, 1.65vw, 1.44rem); color: var(--text); margin-top: .9rem; }
.hero .intro { font-size: clamp(1rem, 1.55vw, 1.3rem); margin: clamp(.65rem, 2vw, 1.55rem) 0 1.05rem; border-top: 1px solid var(--border); padding-top: .8rem; max-width: 35ch; }
.hero .primary { font-size: clamp(1.04rem, 1.55vw, 1.4rem); padding: .8rem 1.35rem; }
.length { font-size: .95rem; margin-top: .55rem; }
.cover { position: relative; margin: 0; isolation: isolate; padding: 3% 0 4% 5%; }
.cover .board-cover { width: 100%; height: auto; aspect-ratio: 3000/2060; object-fit: cover; background: #181715; border-radius: .64rem; border: 2px solid #554638; transform: perspective(1650px) rotateY(-7deg) rotateX(5deg); box-shadow: .2rem .55rem 0 #181513, .4rem 1.2rem 1.9rem #000b; }
.cover .deck { position: absolute; width: 23%; left: -1%; bottom: -1%; border-radius: .35rem; border: 1px solid #bc9660; transform: rotate(-12deg); box-shadow: 0 4px 0 #3f3329, 0 6px 0 #6f5741, .2rem .8rem 1.25rem #000b; }
.routes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.route { min-height: 100px; border: 1px solid #72583e; background: linear-gradient(145deg,#27231f,#191817); border-radius: .8rem; text-decoration: none; padding: clamp(.75rem,2vw,1.35rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(.55rem,1.5vw,1.3rem); align-items: center; }
.route:hover { border-color: var(--gold); background-color: #312820; }
.route .icon { width: clamp(1.25rem,2.4vw,2rem); color: var(--gold); }
.route strong, .route small { display: block; }
.route strong { font-size: clamp(1.05rem,2vw,1.43rem); line-height: 1.2; margin-bottom: .28rem; }
.route small { line-height: 1.35; }
.about { display: grid; grid-template-columns: minmax(11rem, .45fr) minmax(0, 1fr); align-items: start; gap: .75rem 1.8rem; border-top: 1px solid var(--border); padding: 1.4rem 0; margin-top: 1.8rem; }
.about h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); color: var(--gold); }
.author { font-weight: 700; font-size: 1.17rem; margin-bottom: .26rem; }
footer { border-top: 1px solid var(--border); }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding-block: 1rem; color: var(--muted); }
.narrow { width: min(94%, 34rem); margin: clamp(1rem,5vw,4rem) auto; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem,3vw,1.8rem); }
.panel h1 { font: 500 clamp(1.85rem,4vw,3rem)/1.14 Georgia, serif; color: var(--gold); margin-bottom: .65rem; }
.panel h2 { font-size: 1.2rem; color: var(--gold); margin-bottom: .6rem; }
.panel p + p { margin-top: .55rem; }
.form { display: grid; gap: .85rem; }
.form .actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.form input:not([type="checkbox"]), .form textarea { color: var(--text); font: inherit; width: 100%; padding: .62rem .72rem; border: 1px solid #776149; border-radius: .55rem; background: #141311; }
.form textarea { resize: vertical; }
.form label { display: grid; gap: .3rem; min-width: 0; }
.form .check { display: flex; align-items: center; gap: .65rem; }
.form .check input { width: 1.2rem; height: 1.2rem; accent-color: var(--gold); }
.error { color: #ffbaaa; }
.page-title { padding-block: 1.2rem; }
.page-title h1 { font: 500 clamp(1.85rem,4vw,3rem)/1.12 Georgia, serif; color: var(--gold); }
.columns { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; align-items:start; }
.flow { display: grid; gap: 1rem; padding-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.thumb { max-height: 10rem; object-fit: contain; border-radius: .4rem; }
.demo { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(16rem,1fr); gap: 1rem; align-items: start; padding-bottom: 1rem; }
.demo-board { position: relative; border: 1px solid var(--border); border-radius: .65rem; overflow: hidden; }
.demo-board img { width: 100%; }
.demo-mark { position: absolute; border: 2px solid var(--gold); box-shadow: inset 0 0 .4rem #fff5bb,0 0 .5rem #000a; border-radius: .26rem; pointer-events: none; }
.demo-mark.rival { border-color: #9dc5ff; }
.demo-status { min-height: 4rem; margin-bottom: .65rem; }
.demo-cash { display: flex; flex-wrap: wrap; gap: .35rem 1rem; padding: .6rem 0; color: var(--gold); }
.demo-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo-firm { width: 88px; border-radius: .32rem; margin-bottom: .75rem; }
.demo-dice { display: flex; gap: .35rem; margin-bottom: .7rem; }
.demo-dice b { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .46rem; background: #f9e6bf; color: #271f14; }
@media (max-width: 670px) and (orientation: portrait), (max-width: 470px) {
  .hero { grid-template-columns: 1fr; gap: 1rem; }
  .hero h1 { font-size: clamp(3rem,10vw,4.7rem); }
  .cover { padding-right: .4rem; margin-bottom: .45rem; }
  .routes { grid-template-columns: 1fr; gap: .5rem; }
  .route { min-height: 70px; }
  .about, .columns, .demo { grid-template-columns: minmax(0,1fr); }
}
@media (orientation: landscape) and (max-height: 540px) {
  .bar { min-height: 3.3rem; }
  .hero { padding-block: 1rem; gap: .9rem; }
  .hero h1 { font-size: clamp(2.4rem,6vw,4rem); }
  .hero .description, .hero .intro { font-size: .98rem; }
  .hero .intro { margin-block: .5rem .65rem; padding-top: .5rem; }
  .route { min-height: 74px; }
  .demo { grid-template-columns: minmax(0, 1.2fr) minmax(13rem,1fr); }
  .demo .panel { padding: .8rem; }
}
