@font-face {
  font-family: "Drop Dungeon Display";
  src: url("assets/fonts/DropDungeonDisplay-Bold.ttf") format("truetype");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "Drop Dungeon Text";
  src: url("assets/fonts/DropDungeonText-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-weight: 600;
}

:root {
  color-scheme: dark;
  --ink: #0a1621;
  --deep: #212223;
  --stone: #4b4a4c;
  --wood: #5a3b2b;
  --copper: #883f1e;
  --copper-deep: #3f291c;
  --gold: #faa001;
  --ember: #f85c01;
  --cobalt: #0051db;
  --teal: #00b4c1;
  --forest: #1c6201;
  --paper: #eee3c1;
  --muted: #a8a294;
  --display: "Drop Dungeon Display", Georgia, serif;
  --text: "Drop Dungeon Text", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--text);
  letter-spacing: .01em;
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 4.5rem);
  border-bottom: 1px solid rgba(238, 227, 193, .16);
}
.brand { width: 148px; height: 66px; overflow: hidden; }
.brand img { width: 170px; margin: -14px 0 0 -11px; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); text-transform: uppercase; font-size: .72rem; letter-spacing: .16em; }
nav a { text-decoration: none; }
.nav-play { color: var(--gold); border-bottom: 2px solid var(--gold); padding: .6rem 0 .45rem; }

.hero {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(330px, .85fr) minmax(420px, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  padding: 7rem clamp(1.25rem, 5vw, 6.5rem) 3rem;
  background-color: var(--ink);
  background-image:
    linear-gradient(100deg, rgba(10,22,33,.95) 0%, rgba(10,22,33,.8) 34%, rgba(10,22,33,.35) 60%, rgba(10,22,33,.08) 100%),
    url("assets/drop-dungeon-hero-backdrop-gpt-image-2.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
}
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  margin: 0 0 1.8rem;
  padding: .3rem 1.5rem;
  border-width: 13px 38px;
  border-style: solid;
  border-color: transparent;
  border-image: url("assets/drop-dungeon-chrome-badge-gpt-image-2.png") 35% 22% fill / 13px 38px;
  color: var(--ink);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,221,166,.35);
}
.hero-logo { width: min(540px, 94%); margin: -6% 0 -7%; }
.hero-line { margin: 1.7rem 0 2.1rem; font-family: var(--display); font-size: clamp(1.55rem, 2.25vw, 2.65rem); line-height: 1.06; }
.hero-body { max-width: 48ch; margin: -1rem 0 2rem; color: var(--muted); font-size: .92rem; line-height: 1.65; }

.primary-action, .secondary-action {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
  min-width: 190px;
  padding: 1rem 1.3rem;
  border-width: 30px 39px;
  border-style: solid;
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .16em;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}
.primary-action {
  border-image: url("assets/drop-dungeon-chrome-button-gpt-image-2.png") 42% 19% fill / 30px 39px;
  text-shadow: 0 1px 0 rgba(255,221,166,.35);
}
.primary-action:hover { transform: translateY(-2px); filter: brightness(1.12) saturate(1.08); }
.primary-action:active { transform: translateY(1px); filter: brightness(.94); }

.game-shell {
  position: relative;
  width: min(100%, 620px);
  justify-self: end;
  padding: 22px 24px;
  background: #151d23;
  border-width: 22px 24px;
  border-style: solid;
  border-color: transparent;
  border-image: url("assets/drop-dungeon-game-frame-gpt-image-2.png") 3% 4% / 22px 24px;
  box-shadow: 18px 22px 0 rgba(0,0,0,.25);
}
.game-toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .25rem 0 .6rem;
  border-bottom: 1px solid rgba(238,227,193,.14);
}
.live-mark { font-size: .58rem; letter-spacing: .18em; color: var(--muted); }
.toolbar-button {
  border: 1px solid rgba(238,227,193,.2);
  border-radius: 2px;
  background: transparent;
  padding: .55rem .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .58rem;
  cursor: pointer;
}
.toolbar-button:disabled { opacity: .35; cursor: default; }
.game-poster { position: relative; width: 100%; height: min(68dvh, 650px); min-height: 460px; padding: 0; overflow: hidden; border: 0; background: #080d10; cursor: pointer; }
.game-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: .72; transition: transform 500ms ease, opacity 300ms ease; }
.game-poster:hover img { transform: scale(1.018); opacity: .85; }
.poster-action { position: absolute; inset: auto 1.5rem 1.5rem; display: grid; gap: .25rem; padding: 1rem; border-left: 3px solid var(--gold); background: rgba(10,22,33,.92); text-align: left; }
.poster-action b { font-family: var(--display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .05em; }
.poster-action small { color: var(--muted); font-size: .66rem; letter-spacing: .08em; }
.loading-panel, .error-panel { height: min(68dvh, 650px); min-height: 460px; place-content: center; padding: 2rem; background: #080d10; text-align: center; }
.loading-panel:not([hidden]), .error-panel:not([hidden]) { display: grid; }
.loading-panel strong, .error-panel strong { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; }
.loading-panel p, .error-panel p { color: var(--muted); }
.loader-mark { display: flex; justify-content: center; gap: 6px; margin-bottom: 1.5rem; }
.loader-mark span { width: 14px; height: 14px; border: 2px solid var(--gold); animation: drop 900ms infinite alternate; }
.loader-mark span:nth-child(2) { animation-delay: 180ms; }
.loader-mark span:nth-child(3) { animation-delay: 360ms; }
@keyframes drop { to { transform: translateY(14px); background: var(--gold); } }
.secondary-action {
  justify-self: center;
  min-width: 130px;
  gap: 0;
  padding: .85rem 1.1rem;
  border-width: 26px 32px;
  border-image: url("assets/drop-dungeon-chrome-button-ghost-gpt-image-2.png") 42% 19% / 26px 32px;
  color: var(--gold);
}
.secondary-action:hover { transform: translateY(-2px); filter: brightness(1.2); }
.secondary-action:active { transform: translateY(1px); filter: brightness(.9); }
.game-frame { width: 100%; height: min(68dvh, 650px); min-height: 460px; background: var(--ink); }
.game-frame iframe { width: 100%; height: 100%; border: 0; background: var(--ink); }
.orientation-hint { display: none; margin: .7rem .35rem 0; color: var(--muted); font-size: .62rem; text-align: center; }
.exit-fullscreen { position: absolute; z-index: 9; top: 1rem; right: 1rem; padding: .7rem .9rem; border: 1px solid var(--paper); background: rgba(10,22,33,.88); color: var(--paper); text-transform: uppercase; letter-spacing: .1em; font-size: .58rem; }

.mechanics {
  padding: clamp(6rem, 11vw, 11rem) clamp(1.25rem, 6vw, 8rem);
  background-color: #171c1e;
  background-image: url("assets/drop-dungeon-section-backdrop-gpt-image-2.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
}
.section-heading { max-width: 920px; display: grid; gap: 1.25rem; margin-bottom: 4rem; }
.section-heading .eyebrow { margin: 0 0 .7rem; }
.ornament {
  display: block;
  width: 220px;
  height: 15px;
  margin: .2rem 0;
  background: url("assets/drop-dungeon-chrome-divider-gpt-image-2.png") left center / contain no-repeat;
}
.section-heading > p:last-child { max-width: 64ch; margin: .5rem 0 0; color: var(--muted); line-height: 1.7; }
.section-heading h2, .side-door h2, .feedback h2 { margin: 0; font-family: var(--display); font-size: clamp(3.2rem, 7vw, 7.4rem); line-height: .82; text-transform: uppercase; letter-spacing: -.035em; }
.mechanic-flow { display: grid; grid-template-columns: 1fr 1.35fr; grid-template-rows: repeat(3, minmax(125px, auto)); gap: 1.1rem; background: transparent; border: 0; }
.mechanic {
  padding: clamp(1.6rem, 2.5vw, 2.7rem);
  border-width: 24px 30px;
  border-style: solid;
  border-color: transparent;
  border-image: url("assets/drop-dungeon-chrome-card-gpt-image-2.png") 35% 22% fill / 24px 30px;
}
.mechanic h3 { margin: 0 0 .55rem; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 2rem); text-transform: uppercase; }
.mechanic p { max-width: 36rem; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.mechanic-art { grid-column: 2; grid-row: 1 / 4; margin: 0; overflow: hidden; background: var(--ink); }
.mechanic-art img { width: 100%; height: 100%; object-fit: cover; }

.side-door { position: relative; min-height: 90dvh; display: grid; grid-template-columns: .9fr 1.1fr; align-items: stretch; overflow: hidden; background: #0f171c; }
.side-door-copy { position: relative; z-index: 2; grid-column: 1; align-self: center; padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 6vw, 7rem); background: linear-gradient(90deg, rgba(10,22,33,.98) 0%, rgba(10,22,33,.9) 72%, transparent 100%); }
.side-door h2 { max-width: 680px; }
.side-door-copy > p { max-width: 500px; margin: 2rem 0; color: var(--muted); line-height: 1.75; }
.text-action { display: inline-flex; gap: 1rem; padding-bottom: .45rem; border-bottom: 2px solid var(--gold); color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; }
.side-door-art { position: absolute; inset: 0; overflow: hidden; }
.side-door-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.feedback { padding: clamp(6rem, 12vw, 12rem) clamp(1.25rem, 11vw, 13rem); background: var(--copper-deep); border-top: 1px solid var(--copper); }
.feedback h2 { max-width: 900px; }
.feedback > p { max-width: 560px; margin: 2rem 0; color: #d3c6a6; line-height: 1.7; }
.feedback-action { min-width: min(100%, 320px); }
.feedback .privacy-line { margin-top: 1rem; font-size: .72rem; }

footer { display: flex; align-items: center; justify-content: space-between; min-height: 110px; padding: 1rem clamp(1.25rem, 5vw, 6rem); border-top: 1px solid rgba(238,227,193,.12); background: #080f15; color: var(--muted); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
footer img { width: 140px; max-height: 78px; object-fit: contain; }
footer div { text-align: right; }
footer p { margin: .35rem 0; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.game-shell:fullscreen { width: 100vw; height: 100dvh; max-width: none; padding: 0; border: 0; background: var(--ink); }
.game-shell:fullscreen .game-toolbar, .game-shell:fullscreen .orientation-hint { display: none; }
.game-shell:fullscreen .game-frame, .game-shell:fullscreen .game-poster, .game-shell:fullscreen .loading-panel, .game-shell:fullscreen .error-panel { width: 100%; height: 100dvh; min-height: 0; }

@media (max-width: 900px) {
  .site-header { height: 72px; }
  .brand { width: 118px; height: 58px; }
  .brand img { width: 140px; }
  nav a:first-child { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 3.2rem; padding-top: 7.5rem; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-logo { margin-inline: auto; }
  .primary-action { margin-inline: auto; }
  .game-shell { justify-self: center; width: min(100%, 560px); }
  .mechanic-flow { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mechanic-art { grid-column: 1; grid-row: 2; min-height: 430px; }
  .mechanic-match { grid-row: 3; }
  .mechanic-fight { grid-row: 4; }
  .side-door { grid-template-columns: 1fr; }
  .side-door-copy { grid-column: 1; min-height: 70dvh; background: linear-gradient(90deg, rgba(10,22,33,.97) 0%, rgba(10,22,33,.84) 70%, rgba(10,22,33,.38) 100%); }
  .side-door-art img { object-position: 62% center; }
}

@media (max-width: 560px) {
  .hero { padding-inline: 1rem; }
  .hero-line { font-size: 1.7rem; }
  .game-shell { padding: 8px; box-shadow: 8px 10px 0 rgba(0,0,0,.25), inset 0 0 0 3px var(--copper-deep); }
  .game-poster, .loading-panel, .error-panel, .game-frame { height: 68dvh; min-height: 520px; }
  .orientation-hint { display: block; }
  .mechanics { padding-inline: 1rem; }
  .mechanic-art { min-height: 290px; }
  .section-heading h2, .side-door h2, .feedback h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .side-door-copy { padding-inline: 1.25rem; }
  .feedback { padding-inline: 1.25rem; }
  footer { flex-direction: column; justify-content: center; gap: .3rem; text-align: center; }
  footer div { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .game-shell { animation: arrive 700ms cubic-bezier(.16, 1, .3, 1) both; }
  .game-shell { animation-delay: 120ms; }
  @keyframes arrive { from { opacity: 0; transform: translateY(18px); } }
}

/* ---- finish-site: landing page sections ---------------------------------- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.hero-actions .secondary-action { justify-self: start; }
.hero-note { margin: 1.2rem 0 0; max-width: 46ch; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.chapters, .screens, .download {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 8rem);
  background-color: #12181c;
  background-image: url("assets/drop-dungeon-section-backdrop-gpt-image-2.png");
  background-repeat: no-repeat; background-position: top center; background-size: 100% auto;
}
.screens { background-color: #0d1418; background-position: bottom center; }
.chapter-row, .shot-row, .download-row { display: grid; gap: clamp(1.2rem, 2.5vw, 2.2rem); }
.chapter-row { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.chapter {
  display: grid; gap: .6rem; padding: clamp(1.2rem, 2vw, 1.8rem);
  border-width: 24px 30px; border-style: solid; border-color: transparent;
  border-image: url("assets/drop-dungeon-chrome-card-gpt-image-2.png") 35% 22% fill / 24px 30px;
}
.chapter img { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; object-position: top; border: 2px solid rgba(250,160,1,.45); box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.chapter h3, .mechanic h3 { margin: .4rem 0 0; font-family: var(--display); font-size: 1.25rem; color: var(--gold); letter-spacing: .02em; }
.chapter p, .mechanic p { margin: 0; color: var(--paper); line-height: 1.55; font-size: .95rem; }
.mechanic-art { width: 100%; aspect-ratio: 9 / 8; object-fit: cover; object-position: top; margin-bottom: .6rem; border: 2px solid rgba(250,160,1,.4); }
.shot-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.shot-row figure { margin: 0; display: grid; gap: .55rem; }
.shot-row img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border: 2px solid rgba(250,160,1,.5); box-shadow: 0 14px 30px rgba(0,0,0,.5); background: #000; }
.shot-row figcaption { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.download-row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.download-card {
  display: grid; gap: .35rem; padding: 1.4rem 1.6rem; text-decoration: none; color: var(--paper);
  border-width: 24px 30px; border-style: solid; border-color: transparent;
  border-image: url("assets/drop-dungeon-chrome-card-gpt-image-2.png") 35% 22% fill / 24px 30px;
  transition: transform 160ms ease, filter 160ms ease;
}
.download-card:hover { transform: translateY(-2px); filter: brightness(1.08); }
.download-platform { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.download-card b { font-family: var(--display); font-size: 1.15rem; }
.download-card small { color: var(--muted); font-size: .8rem; }
.download-note { margin: 2rem 0 0; color: var(--muted); font-size: .85rem; max-width: 60ch; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 2rem clamp(1.25rem, 6vw, 8rem); color: var(--muted); font-size: .78rem; border-top: 1px solid rgba(238,227,193,.12); }
.build-stamp { letter-spacing: .08em; }
@media (max-width: 700px) {
  .hero-actions { gap: .8rem; }
  .shot-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  html, body { overflow-x: hidden; }
  .site-header nav a:not(.nav-play) { display: none; }
  .hero { padding-top: 6rem; }
  .hero-logo { width: min(320px, 88%); }
  .hero-line { font-size: 1.6rem; }
  .hero-body { font-size: .95rem; }
  .mechanic-flow, .chapter-row, .download-row { grid-template-columns: 1fr; }
  .eyebrow { white-space: normal; max-width: 100%; justify-self: center; text-align: center; line-height: 1.5; }
  .hero-copy, .game-shell, .mechanic, .chapter, .section-heading, main, .hero { min-width: 0; max-width: 100vw; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .mechanic-flow, .chapter-row, .shot-row, .download-row { grid-template-columns: minmax(0, 1fr); }
  .shot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  img { max-width: 100%; height: auto; }
  .game-poster img { height: 100%; }
  .game-toolbar { flex-wrap: wrap; gap: .4rem; }
  .mechanic-art { min-height: 0; aspect-ratio: 9 / 7; }
  .game-shell { width: 100%; justify-self: stretch; }
}

/* ---- finish-site-2: buttons in the display face, centred; the adventure band */
.primary-action, .secondary-action, .download-card {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.primary-action, .secondary-action {
  justify-content: center;
  gap: 0;
  min-width: 250px;
  padding: .55rem 1.6rem;
  font-size: 1.05rem;
  line-height: 1;
}
.primary-action { color: #2b1507; text-shadow: 0 1px 0 rgba(255,232,180,.55); }
.secondary-action { color: var(--gold); text-shadow: 0 1px 0 rgba(0,0,0,.6); font-size: .95rem; padding: .5rem 1.4rem; }
.eyebrow {
  justify-content: center;
  padding: .2rem 1.2rem;
  font-family: var(--display);
  font-size: .78rem;
  letter-spacing: .12em;
  line-height: 1;
  color: #2b1507;
}
.toolbar-button { font-family: var(--display); letter-spacing: .08em; }
.download-card b { font-size: 1.2rem; }
.hero-actions { margin-top: .2rem; }
.adventure {
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 8rem);
  background-color: #12181c;
  background-image: url("assets/drop-dungeon-section-backdrop-gpt-image-2.png");
  background-repeat: no-repeat; background-position: top center; background-size: 100% auto;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start;
}
.adventure .section-heading { grid-column: 1; margin-bottom: 1.5rem; }
.adventure-points { grid-column: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.adventure-points li {
  display: grid; gap: .3rem; padding: 1.1rem 1.4rem;
  border-width: 24px 30px; border-style: solid; border-color: transparent;
  border-image: url("assets/drop-dungeon-chrome-card-gpt-image-2.png") 35% 22% fill / 24px 30px;
}
.adventure-points b { font-family: var(--display); font-size: 1.1rem; color: var(--gold); }
.adventure-points span { color: var(--paper); font-size: .95rem; line-height: 1.5; }
.adventure-art { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: stretch; }
.adventure-art img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: center 30%; border: 3px solid rgba(250,160,1,.55); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
@media (max-width: 900px) {
  .adventure { grid-template-columns: minmax(0, 1fr); }
  .adventure-art { grid-column: 1; grid-row: auto; }
  .adventure-art img { min-height: 0; aspect-ratio: 4 / 3; }
}
.mechanic-art { object-position: center 42%; }
