/* Pandora's Box fan site: mahogany, gold and parchment, after the original's mood (not its art). */
:root {
  --bg: #1a0b05;
  --bg-2: #2a130b;
  --panel: #321810;
  --line: #6b4421;
  --gold: #e2b65c;
  --gold-2: #f3d58e;
  --text: #f3e6cf;
  --muted: #cbb89a;
  --red: #7a2412;
  --radius: 10px;
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", "URW Palladio L", Georgia, serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg) radial-gradient(1200px 700px at 75% -10%, #4a1c0e 0%, transparent 60%) no-repeat;
  color: var(--text);
  font: 18px/1.65 var(--serif);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: #fff1c9; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
em { color: #fff3dc; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--gold); color: #1a0b05; padding: 6px 12px; z-index: 10; }

h1, h2, h3, .brand, .app-strip-title {
  font-family: var(--serif);
  font-weight: normal;
  letter-spacing: 0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); margin: 0.2em 0 0.35em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); color: var(--gold); margin: 0 0 0.6em; }
.gold { color: var(--gold); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; color: var(--muted); margin: 0; }
.lead { font-size: 1.2rem; color: #fbf1df; }
.small { font-size: 0.85rem; color: var(--muted); }
.more { margin-top: 1.2em; }
.more a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(26, 11, 5, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #3d2112;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { color: var(--gold); text-decoration: none; font-size: 1.25rem; white-space: nowrap; }
.brand span { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 4px; }
nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 6px 0; align-items: center; }
nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold-2); }
nav a[aria-current="page"] { border-bottom: 1px solid var(--gold); }
.nav-play { border: 1px solid var(--gold); padding: 3px 14px; border-radius: 999px; color: var(--gold-2) !important; }

/* Buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0 0.6em; }
.btn {
  display: inline-block; padding: 11px 22px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 1rem;
}
.btn:hover { border-color: var(--gold); color: #fff; }
.btn-gold {
  background: linear-gradient(#f0cd7a, #c9953b); border-color: #f3d58e; color: #2a1206; font-weight: bold;
  box-shadow: 0 2px 0 #7a5418, 0 6px 18px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover { color: #1a0b05; filter: brightness(1.06); }
.btn-soon { color: var(--muted); border-style: dashed; cursor: default; }

/* Hero */
.hero { padding: 40px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.frame {
  margin: 0; padding: 10px;
  background: linear-gradient(135deg, #f3d58e, #a8752c 40%, #f0cd7a 60%, #7a5418);
  border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.frame img { border-radius: 2px; }
.hero-art { max-width: 420px; justify-self: end; transform: rotate(1.2deg); }

/* Sections */
.section { padding: 46px 20px; }
.section + .section { border-top: 1px solid #3a1f11; }
.page-head { padding-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }

.facts { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #4a2a16; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; }
.facts dd { margin: 0; }

.shot { margin: 32px 0 8px; max-width: 520px; }
.shot img { border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.shot figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; font-style: italic; }
.shot-small { max-width: 400px; }
.shot-strip { max-width: 640px; }

.steps { padding-left: 1.3em; }
.steps li { margin-bottom: 0.8em; padding-left: 0.3em; }
.steps li::marker { color: var(--gold); }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; margin-top: 24px; }
.video { margin: 0; }
.video figcaption { font-size: 0.92rem; color: var(--muted); margin-top: 8px; }
.video figcaption strong { color: var(--text); font-weight: normal; }
.yt, .video iframe, .soon-card {
  display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; background: #000;
}
.yt { position: relative; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.yt:hover img { opacity: 1; }
.yt::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(26, 11, 5, 0.8) no-repeat 56% 50% / 26px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3d58e' d='M6 3l15 9-15 9z'/%3E%3C/svg%3E");
  border: 2px solid var(--gold);
}
.soon-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: radial-gradient(circle at 50% 40%, #5a2412, #1a0b05 75%); color: var(--gold-2);
}
.soon-card p { margin: 4px 0; }

/* Puzzle types and tricksters */
.puzzle-list, .trickster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.puzzle, .trickster {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
.puzzle h2, .trickster h2 { font-size: 1.6rem; margin-bottom: 0.2em; }
.puzzle .shot { margin: 18px 0 0; }
.meta { font-size: 0.9rem; color: var(--muted); }
.trickster .level { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; }

.faq article { max-width: 760px; margin-bottom: 30px; }
.faq h2 { font-size: 1.45rem; }
.faq li { margin-bottom: 0.6em; }

/* The new game */
.new-game {
  margin-top: 20px; padding: 56px 0;
  background: linear-gradient(180deg, #3a160b, #24100a);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.new-game .two-col { align-items: center; padding: 0 20px; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: 0.45em; }
.ticks li::before { content: "\2726"; position: absolute; left: 0; color: var(--gold); }
.phone { margin: 0 auto; max-width: 270px; }
.phone img {
  border-radius: 34px; border: 8px solid #0d0604; box-shadow: 0 0 0 2px #6b4421, 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* Footer */
.site-footer { padding: 40px 0 50px; border-top: 1px solid #3a1f11; margin-top: 30px; }
.app-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px;
}
.app-strip p { margin: 0.2em 0; }
.app-strip-title { color: var(--gold); font-size: 1.6rem; }
.app-strip .cta-row { margin: 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 36px 16px; }
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { justify-self: center; max-width: 320px; transform: none; order: -1; }
  .site-header { position: static; }
  .header-row { padding-top: 6px; padding-bottom: 6px; }
  nav ul { gap: 2px 14px; }
  .new-game .two-col { padding: 0 16px; }
  .facts div { grid-template-columns: 6.5em 1fr; }
  .puzzle-list, .trickster-list { grid-template-columns: 1fr; }
}

.sources { padding-left: 1.2em; }
.sources li { margin-bottom: 0.5em; }
/* A page that already has the new-game section doesn't need the footer's reminder of it. */
body:has(#new-game) .app-strip { display: none; }
.two-col .shot { margin-top: 26px; }
