﻿:root {
  --bg: #f6f1e6;
  --ink: #1a2a28;
  --muted: #4d5f5b;
  --gold: #d4a017;
  --gold-soft: #c4a15a;
  --teal: #0f3d38;
  --teal-mid: #1a5c54;
  --found: #2f7d6b;
  --glass: rgba(15, 61, 56, 0.04);
  --line: rgba(15, 61, 56, 0.12);
  --paper: #fffdf8;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, Outfit, system-ui, sans-serif; }
body { min-height: 100vh; overflow-x: hidden; }
.nav, main, .foot { position: relative; z-index: 1; }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5vw;
  background: rgba(246, 241, 230, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 8;
  backdrop-filter: blur(12px);
}
.logo { color: var(--teal); text-decoration: none; font-family: Fraunces, Georgia, serif; font-size: 1.4rem; letter-spacing: -0.03em; }
.logo span { color: var(--gold); }
.nav nav { display: flex; gap: 1.2rem; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.cta {
  background: var(--teal); color: #f6f1e6 !important;
  padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.cta:hover { background: var(--teal-mid); }
.cta-lg { padding: 0.9rem 1.35rem; font-size: 1.05rem; }
.ghost { color: #f6f1e6; text-decoration: none; border-bottom: 1px solid var(--gold-soft); padding-bottom: 0.15rem; }

.hero-bleed {
  position: relative;
  min-height: min(88vh, 52rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
}
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,61,56,0.15) 20%, rgba(15,61,56,0.72) 100%);
}
.hero-copy {
  position: relative; z-index: 1;
  padding: 5rem 0 3.2rem 6vw;
  max-width: 42rem;
  color: #f6f1e6;
}
.hero-copy .eyebrow { color: var(--gold-soft); }
.hero-copy h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95; margin: 0 0 1rem; letter-spacing: -0.03em;
}
.hero-copy .lead { color: rgba(246,241,230,0.88); font-size: 1.15rem; line-height: 1.55; max-width: 32rem; }
.hero-actions { display: flex; gap: 1.2rem; align-items: center; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-bleed .cta { background: var(--gold); color: #1a2a28 !important; }

.eyebrow { color: var(--teal-mid); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 0.8rem; font-weight: 600; }
.scenes, .showcase { padding: 4rem 6vw 2rem; }
.section-head h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0.3rem 0 1.6rem; color: var(--teal); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.card {
  position: relative; overflow: hidden; border-radius: 18px; min-height: 280px;
  text-decoration: none; color: #f6f1e6;
  border: 1px solid var(--line); background: var(--teal);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.2rem; isolation: isolate;
}
.card-lg { min-height: 340px; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(15,61,56,0.88) 94%); z-index: -1; }
.card .thumb { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transform: scale(1.03); transition: transform 0.6s ease; }
.card:hover .thumb { transform: scale(1.08); }
.card h3 { font-family: Fraunces, Georgia, serif; margin: 0 0 0.25rem; font-size: 1.45rem; }
.card p { margin: 0; color: rgba(246,241,230,0.82); font-size: 0.95rem; }
.foot { padding: 2.4rem 6vw 2.8rem; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }

@media (max-width: 800px) {
  .hero-bleed { min-height: 78vh; }
}

/* FinchBridge-like player */
.play-body { background: var(--bg); color: var(--ink); }
.play-body .glow { display: none; }
.sf-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem 4vw; }
.sf-back, .sf-brand { color: var(--muted); text-decoration: none; font-size: 0.95rem; margin: 0; }
.sf-brand { font-family: Fraunces, Georgia, serif; color: var(--teal); }
.sf {
  max-width: 94rem; margin: 0 auto 2rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(26,42,40,0.08);
}
.sf-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); background: #efe8d6; }
.sf-eye { margin: 0 0 0.2rem; color: var(--teal-mid); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.sf-title { margin: 0; font-family: Fraunces, Georgia, serif; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); }
.sf-progress { display: grid; grid-template-columns: auto 10rem; gap: 0.7rem; align-items: center; font-weight: 700; color: var(--muted); }
.sf-track { height: 0.65rem; background: #e6dfcf; border-radius: 999px; overflow: hidden; }
.sf-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.sf-play { display: grid; grid-template-columns: minmax(15rem, 19rem) 1fr; gap: 1.2rem; padding: 1.3rem; }
.sf-targets { border: 1px solid var(--line); border-radius: 18px; padding: 1rem; background: #fff; }
.sf-targets-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.8rem; }
.sf-targets-head h2 { margin: 0; font-size: 1.15rem; }
.sf-count { margin: 0; padding: 0.2rem 0.55rem; border-radius: 999px; background: #efe8d6; color: var(--teal); font-weight: 800; }
.sf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.sf-item { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; align-items: center; min-height: 3.2rem; padding: 0.45rem 0.65rem; border: 1px solid var(--line); border-radius: 12px; }
.sf-item.is-found { background: #eef6f2; border-color: #9bd4b3; }
.sf-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid #9aa6b5; }
.sf-item.is-found .sf-dot { background: var(--found); border-color: var(--found); }
.sf-instruction { margin: 0 0 0.7rem; color: var(--muted); }
.sf-scene { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #e6dfcf; }
.sf-scene img { display: block; width: 100%; height: auto; vertical-align: middle; }
.sf-hits { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.sf-hit { position: absolute; margin: 0; padding: 0; border: 3px dashed var(--gold); border-radius: 50%; background: rgba(212,160,23,0.10); cursor: pointer; box-sizing: border-box; }
.sf-hit.is-found { border-color: var(--found); background: color-mix(in srgb, var(--found) 16%, transparent); box-shadow: 0 0 0 3px rgba(255,255,255,0.65); }
.sf-feedback { min-height: 1.5rem; margin: 0.7rem 0 0; font-weight: 700; color: var(--found); }
@media (max-width: 800px) { .sf-play { grid-template-columns: 1fr; } }

.edit-open .sf-scene { overflow: visible; }
.sf-hits { z-index: 5; }

.play-body:not(.is-edit) .sf-hit { border-color: transparent; background: transparent; }
.play-body:not(.is-edit) .sf-hit.is-found { border-color: var(--found); background: color-mix(in srgb, var(--found) 16%, transparent); }

.edit-bar { display:flex; gap:0.7rem; align-items:center; margin-top:0.8rem; }
.edit-bar[hidden] { display:none !important; }
.edit-bar button { border:0; border-radius:999px; padding:0.7rem 1.1rem; font-weight:700; cursor:pointer; background:var(--found); color:#fff; }
.play-body.is-edit .sf-hit { border-color:var(--gold); background:rgba(212,160,23,0.12); cursor:grab; }
.play-body.is-edit .sz { position:absolute; right:-8px; bottom:-8px; width:18px; height:18px; border-radius:50%; background:var(--teal); border:2px solid #fff; cursor:nwse-resize; }
.play-body.is-edit .lbl { position:absolute; left:50%; top:-1.25rem; transform:translateX(-50%); white-space:nowrap; font-size:0.72rem; font-weight:700; color:var(--ink); background:var(--gold); padding:0.08rem 0.4rem; border-radius:999px; pointer-events:none; }

.sf-done {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 61, 56, 0.62);
  backdrop-filter: blur(6px);
}
.sf-done[hidden] { display: none !important; }
.sf-done-card {
  width: min(32rem, 100%);
  padding: 2rem 2.1rem 2.1rem;
  border-radius: 22px;
  background: #0f3d38;
  color: #f6f1e6;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 61, 56, 0.35);
  border: 1px solid rgba(212, 160, 23, 0.35);
}
.sf-done .sf-eye { color: #d4a017; margin-bottom: 0.4rem; }
.sf-done h2 {
  margin: 0 0 0.5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
}
.sf-done p { margin: 0 0 1.4rem; color: rgba(246,241,230,0.86); font-size: 1.05rem; }
.sf-done .cta { display: inline-block; text-decoration: none; }
.board { padding: 4rem 6vw 1rem; }
.board-note { max-width: 36rem; color: var(--muted); margin: -0.8rem 0 1.4rem; line-height: 1.5; }
.board-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.board-list li {
  display: grid;
  grid-template-columns: 3rem 1fr minmax(8rem, 1.4fr) 5rem;
  gap: 0.8rem;
  align-items: center;
  padding: 0.95rem 1.2rem;
  border-top: 1px solid var(--line);
}
.board-list li:first-child { border-top: 0; }
.board-empty { display: block !important; color: var(--muted); }
.board-rank { font-weight: 800; color: var(--gold); }
.board-name { font-weight: 700; color: var(--teal); }
.board-scene { color: var(--muted); }
.board-time { font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }
.board-list li:nth-child(-n+3) { background: #fff8e6; }
@media (max-width: 700px) {
  .board-list li { grid-template-columns: 2.2rem 1fr 4.2rem; }
  .board-scene { display: none; }
}
.sf-time { font-family: Fraunces, Georgia, serif; font-size: 1.4rem; color: var(--gold); margin: 0 0 1rem !important; }
.sf-score { display: grid; gap: 0.45rem; justify-items: center; margin-bottom: 1rem; }
.sf-score label { font-size: 0.85rem; color: rgba(246,241,230,0.75); }
.sf-score input {
  width: min(16rem, 100%);
  border: 1px solid rgba(212,160,23,0.45);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font: inherit;
  text-align: center;
  background: #14524b;
  color: #f6f1e6;
}
.sf-score .cta { border: 0; cursor: pointer; font: inherit; }
.sf-score-status { min-height: 1.2rem; margin: 0; font-size: 0.9rem; color: #d4a017; }
.ghost-ink { color: #f6f1e6 !important; }

.board {
  position: relative;
  z-index: 2;
  width: min(26rem, 42vw);
  margin: auto 5vw 3.2rem 0;
  padding: 1.15rem 1.2rem 1.1rem;
  border-radius: 20px;
  background: rgba(15, 61, 56, 0.78);
  border: 1px solid rgba(212, 160, 23, 0.38);
  box-shadow: 0 18px 40px rgba(10, 28, 26, 0.28);
  backdrop-filter: blur(10px);
  color: #f6f1e6;
}
.board .eyebrow { color: var(--gold); margin-bottom: 0.25rem; }
.board h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  margin: 0 0 0.8rem;
  color: #f6f1e6;
}
.hero-bleed .board-list {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.hero-bleed .board-list li {
  grid-template-columns: 2rem 1fr 4.2rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(246,241,230,0.12);
  color: #f6f1e6;
  align-items: start;
}
.hero-bleed .board-list li:nth-child(-n+3) { background: transparent; }
.hero-bleed .board-who { display: grid; gap: 0.12rem; min-width: 0; }
.hero-bleed .board-name { color: #f6f1e6; }
.hero-bleed .board-scene { display: block; color: rgba(246,241,230,0.72); font-size: 0.78rem; }
.hero-bleed .board-empty { color: rgba(246,241,230,0.78); padding-top: 0.2rem; }
@media (max-width: 860px) {
  .hero-bleed { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-copy { padding: 4rem 6vw 1.2rem; max-width: none; }
  .board { width: auto; margin: 0 6vw 2.2rem; }
}
/* play-fs-layout */
.play-body { height: 100vh; overflow: hidden; background: #071614; color: #f6f1e6; }
.play-body .sf-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7;
  padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, rgba(7,22,20,0.72), transparent);
}
.play-body .sf-back, .play-body .sf-brand { color: #f6f1e6; }
.play-body .sf {
  max-width: none; margin: 0; height: 100vh;
  border: 0; border-radius: 0; box-shadow: none; background: #071614;
  display: grid;
  grid-template-columns: minmax(17rem, 22rem) 1fr;
}
.play-body .sf-play { display: contents; }
.play-body .sf-targets {
  height: 100vh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem 1.1rem;
  border: 0;
  border-radius: 0;
  color: #1a2a28;
  background: linear-gradient(180deg, #ffffff 0%, #f7f3ea 55%, #efe8d6 100%);
  box-shadow: 8px 0 28px rgba(7, 22, 20, 0.18);
}
.play-body .sf-targets-head { flex: 0 0 auto; }
.play-body .sf-targets-head h1,
.play-body .sf-title { color: #0f3d38; font-size: 1.45rem; }
.play-body .sf-eye { color: #b8860b; }
.play-body .sf-count { background: #efe8d6; color: #0f3d38; }
.play-body .sf-progress { display: grid; grid-template-columns: auto 1fr; color: #4d5f5b; font-size: 0.9rem; }
.play-body .sf-track { background: #e6dfcf; }
.play-body .sf-list {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.25rem;
  gap: 0.4rem;
  align-content: start;
  grid-auto-rows: min-content;
}
.play-body .sf-item {
  min-height: 0;
  height: auto;
  padding: 0.42rem 0.7rem;
  align-self: start;
  background: #ffffff;
  border-color: #e4ddd0;
  color: #1a2a28;
}
.play-body .sf-item.is-found {
  background: #d8d2c6;
  border-color: #c9c2b4;
  color: #5a5448;
}
.play-body .sf-item.is-found span:last-child { text-decoration: line-through; }
.play-body .sf-dot { border-color: #b8b0a2; }
.play-body .sf-stage { height: 100vh; min-height: 0; position: relative; padding: 0; }
.play-body .sf-instruction { display: none; }
.play-body .sf-scene {
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #071614;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-body .sf-scene img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.play-body .sf-feedback {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  color: #f6f1e6;
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.play-body .edit-bar { position: absolute; right: 1rem; bottom: 1rem; z-index: 6; }
@media (max-width: 800px) {
  .play-body { height: auto; overflow: auto; }
  .play-body .sf { grid-template-columns: 1fr; height: auto; }
  .play-body .sf-targets { height: min(42vh, 22rem); }
  .play-body .sf-stage { height: 58vh; min-height: 18rem; }
}
.ed-nav { color:#f6f1e6; text-decoration:none; font-weight:700; padding:0.55rem 0.8rem; border-radius:999px; background:rgba(15,61,56,0.75); }
.ed-nav[hidden]{display:none!important;}

.play-body .sf-home {
  display: flex; align-items: center; gap: 0.55rem;
  width: 100%; box-sizing: border-box;
  margin: 0 0 0.85rem; padding: 0.7rem 0.95rem;
  border-radius: 14px; border: 1px solid rgba(212,160,23,0.45);
  background: linear-gradient(180deg, #14524b, #0f3d38);
  color: #f6f1e6 !important; text-decoration: none;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 8px 18px rgba(15,61,56,0.18);
}
.play-body .sf-home:hover { background: linear-gradient(180deg, #1a6a60, #14524b); border-color: #d4a017; }
.play-body .sf-home-arrow { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: #d4a017; color: #1a2a28; font-size: 1rem; font-weight: 800; }
.auth-body { background: var(--bg); }
.auth-main { padding: 3rem 6vw 4rem; }
.auth-card {
  max-width: 28rem; margin: 0 auto; padding: 1.6rem 1.5rem 1.7rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
}
.auth-wide { max-width: 36rem; }
.auth-card h1 { font-family: Fraunces, Georgia, serif; margin: 0 0 0.8rem; color: var(--teal); }
.auth-form { display: grid; gap: 0.75rem; }
.auth-form label { display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.auth-form input, .auth-form select {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink);
}
.auth-form .cta { border: 0; cursor: pointer; font: inherit; justify-self: start; }
.auth-error { color: #9b2c2c; font-weight: 600; }
.auth-ok { color: var(--found); font-weight: 600; }
.auth-foot { margin: 1rem 0 0; color: var(--muted); }
.nav-name { color: var(--teal); font-weight: 700; margin-right: 0.4rem; }

.admin-grid { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.admin-tile {
  display: grid; gap: 0.3rem; padding: 1rem 1.1rem; border-radius: 16px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff;
}
.admin-tile strong { font-family: Fraunces, Georgia, serif; font-size: 1.2rem; color: var(--teal); }
.admin-tile span { color: var(--muted); font-size: 0.95rem; }
.admin-tile.is-soon { opacity: 0.65; pointer-events: none; }