/* Conquer: the page is the board. Ocean all the way down, sand at the shorelines, tile colours for the resources. */
:root {
  --sea: #0b5fd6;
  --sea-deep: #073f96;
  --sand: #ecd27a;
  --violet: #8d2fae;
  --lilac: #ecb9ff;
  --gold: #f4c534;
  --wood: #7fdc1e;
  --brick: #e0762b;
  --metal: #9fb4c9;
  --mana: #f08be6;
  --rock: #c9b98f;
  --desert: #f5dc7d;
  --display: "Righteous", "Rubik", system-ui, sans-serif;
}
body { background: var(--sea); color: var(--white); }
:focus-visible { outline-color: var(--gold); }
.btn { background: var(--gold); border-radius: 14px; }
.btn--plain { background: var(--white); }
.nav a:hover { background: var(--gold); }
.sec > .wrap > h2, .h2 { font-weight: 400; letter-spacing: .01em; margin-bottom: 1rem; }
.lede { max-width: 56ch; font-size: 1.1875rem; }

/* Hero */
.chero { position: relative; overflow: hidden; background: var(--sea-deep); border-bottom: 10px solid var(--sand); }
.chero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 2 22 / .78), rgb(10 2 22 / .45) 45%, rgb(10 2 22 / .25)), linear-gradient(180deg, rgb(10 2 22 / .4), transparent 30%); }
.chero > .wrap { position: relative; z-index: 1; max-width: 1560px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; min-height: min(940px, 96vh); padding-block: 8rem 4.5rem; }
.top .wrap { max-width: 1560px; }
.chero__logo { width: min(640px, 100%); }
.chero p { margin-block: 1.5rem 2rem; max-width: 40ch; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; }
.chero small { display: block; margin-top: 1.25rem; font-size: 1rem; }

/* Trailer */
.trailer { position: relative; min-width: 0; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.trailer video { width: 100%; height: 100%; }
.trailer button { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(10 2 22 / .18); cursor: pointer; display: grid; place-items: end start; padding: clamp(.75rem, 2.5vw, 2rem); }
.trailer button span { white-space: nowrap; display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.75rem; border: var(--line); border-radius: 14px; background: var(--gold); color: var(--ink); font: 600 clamp(1rem, 1.6vw, 1.25rem)/1 var(--body); box-shadow: 0 6px 0 var(--ink); }
.trailer button:hover span { background: var(--white); }
.trailer button:focus-visible { outline-offset: -10px; }
.trailer button[hidden] { display: none; }
.trailer svg { width: 1.2em; height: 1.2em; fill: currentColor; }

/* Chapters */
.chapters { display: grid; gap: clamp(3rem, 7vw, 5.5rem); }
.chapter__clip { border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; background: var(--ink); aspect-ratio: 1920 / 540; }
.chapter__clip { position: relative; }
.chapter__clip video { width: 100%; height: 100%; object-fit: cover; }
.chapter__clip h2 { position: absolute; inset: 0; display: grid; place-items: center; }
.chapter__clip h2 img { width: 46%; filter: drop-shadow(0 6px 22px rgb(10 2 22 / .45)); }
.chapter__text { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; font-size: 1.125rem; }

/* Board */
.island { background: linear-gradient(180deg, var(--sea), #0665df 30%, #0665df 70%, var(--sea)); }
.island__grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; margin-top: 1.5rem; }
.board { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
.board__zoom { position: relative; width: 128%; margin-left: -14.5%; }
.board img { width: 100%; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.board polygon { fill: transparent; stroke: transparent; stroke-width: 9; stroke-linejoin: round; cursor: pointer; transition: fill .18s, stroke .18s; }
.board.picked polygon { fill: rgb(4 18 52 / .68); }
.board.picked polygon.on { fill: transparent; stroke: var(--white); }
.resource { display: grid; gap: 1.25rem; align-content: center; }
.hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.hand button { padding: 0; border: 0; background: none; cursor: pointer; transition: transform .18s; border-radius: 10px; }
.hand button.on { transform: translateY(-14px); }
.resource h3 { font: 400 2.25rem/1.1 var(--display); }
.resource [aria-live] { min-height: 7.5rem; }
.resource [aria-live] p { margin-top: .4rem; font-size: 1.125rem; }

/* Costs */
.sandy { background: var(--sand); color: var(--ink); }
.costs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); margin-top: 2rem; }
.cost { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding-block: 1.25rem; border-top: var(--line); }
.cost h3 { font: 400 1.625rem/1.15 var(--display); }
.cost div:last-child { display: flex; gap: .3rem; }
.cost img { width: clamp(38px, 4.4vw, 58px); }

/* Dev cards */
.deck { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 1.75rem; margin-top: 2.5rem; }
.deck img { width: 100%; max-width: 190px; transition: transform .18s; }
.deck li:hover img { transform: rotate(-3deg) translateY(-6px); }
.deck h3 { margin-top: .9rem; font: 400 1.375rem/1.15 var(--display); }
.deck p { margin-top: .3rem; line-height: 1.45; font-size: 1rem; }

/* Modes + wardrobe */
.violet { background: var(--violet); background-image: repeating-linear-gradient(45deg, rgb(255 255 255 / .045) 0 18px, transparent 18px 36px); }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 2.25rem; }
.modes h3 { font: 400 1.5rem/1.15 var(--display); color: var(--gold); }
.modes p { margin-top: .35rem; }
.wardrobe { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.wardrobe img { transition: transform .25s cubic-bezier(.3, 2.2, .5, 1); }
.wardrobe li:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.08); }

/* Shots */
.shots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.shots a { grid-column: span 2; border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 16 / 9; }
.shots img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shots a:hover img { transform: scale(1.04); }
.viewer { width: min(1400px, 96vw); max-width: none; max-height: none; padding: 0; border: 5px solid var(--ink); border-radius: 18px; background: var(--ink); color: var(--white); }
.viewer::backdrop { background: rgb(10 2 22 / .86); }
.viewer img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.viewer div { display: flex; justify-content: center; gap: .75rem; padding: .75rem; }
.viewer button { padding: .55rem 1.2rem; border: 0; border-radius: 10px; background: var(--white); color: var(--ink); font: 600 1rem/1.2 var(--body); cursor: pointer; }
.viewer button:hover { background: var(--gold); }

/* Specs, FAQ, press */
.deep { background: var(--sea-deep); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem clamp(2rem, 6vw, 5rem); }
.two h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.1 var(--display); margin-bottom: 1.25rem; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem 1rem .6rem 0; border-top: 1px solid rgb(255 255 255 / .28); }
thead th { border: 0; }
th { font-weight: 600; }
.note { margin-top: 1rem; font-size: 1rem; }
details { border-top: 2px solid rgb(255 255 255 / .35); }
details:last-of-type { border-bottom: 2px solid rgb(255 255 255 / .35); }
summary { padding: .95rem 0; font-weight: 600; font-size: 1.125rem; cursor: pointer; }
summary:hover { color: var(--gold); }
details p { padding-bottom: 1.1rem; max-width: 58ch; }

.final { position: relative; overflow: hidden; background: var(--ink) url("img/conquer-wide.webp") center / cover; border-block: 10px solid var(--sand); text-align: center; }
.final::before { content: ""; position: absolute; inset: 0; background: rgb(10 2 22 / .55); }
.final .wrap { position: relative; display: grid; justify-items: center; gap: 1.5rem; padding-block: clamp(4rem, 10vw, 8rem); }
.final img { width: min(640px, 100%); }
.final p { font-size: 1.375rem; }
.foot { background: #05275e; color: #d4e4ff; }
.links a { background: var(--sea); }
.links a:hover { background: var(--gold); }

@media (max-width: 1000px) {
  .chero > .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .deck { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wardrobe { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .island__grid { grid-template-columns: minmax(0, 1fr); }
  .resource [aria-live] { min-height: 5.5rem; }
  .hand { max-width: 420px; }
}
@media (max-width: 720px) {
  .chapter__text, .costs, .two { grid-template-columns: minmax(0, 1fr); }
  .chapter__clip { aspect-ratio: 16 / 7; }
  .chapter__clip h2 img { width: 62%; }
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .shots a { grid-column: span 3; }
  .shots a:first-child { grid-column: 1 / -1; }
  .board__zoom { width: 140%; margin-left: -20.5%; }
}
@media (max-width: 480px) {
  .trailer button span { padding: .7rem 1.1rem; }
  .modes { grid-template-columns: minmax(0, 1fr); }
}
.sec > .wrap > h2.later { margin-top: 4.5rem; }
