:root {
  color-scheme: light;
  --bg: #f7fbf6;
  --surface: #ffffff;
  --surface-2: #eef7f1;
  --ink: #163229;
  --muted: #61736a;
  --line: #d7e6dc;
  --green: #287a46;
  --green-dark: #155b33;
  --blue: #217da5;
  --yellow: #f0b429;
  --red: #ba3d2e;
  --shadow: 0 18px 50px rgba(22, 50, 41, 0.11);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.focus-mode .topbar,
body.stage-mode .topbar {
  display: none;
}

body.stage-mode {
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

button,
.button {
  min-height: 42px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(33, 125, 165, 0.35);
  outline-offset: 2px;
}

.primary,
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.secondary,
button.secondary {
  background: #edf8fb;
  border-color: #b9dfe9;
  color: #155c79;
}

.danger,
button.danger {
  background: #fff1ec;
  border-color: #e3aa9f;
  color: var(--red);
}

.ghost-button {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 70px;
  padding: 14px clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(215, 230, 220, 0.88);
  background: rgba(247, 251, 246, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 4vw, 44px);
}

.app-shell:focus {
  outline: none;
}

body.focus-mode .app-shell {
  width: 100%;
  padding: 0;
}

body.stage-mode .app-shell {
  width: 100%;
  padding: 0;
}

.stage-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: clamp(28px, 5vw, 56px);
  padding: clamp(28px, 6vw, 78px);
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(16, 77, 47, 0.98), rgba(22, 50, 41, 0.88) 48%, rgba(33, 125, 165, 0.82)),
    url("./assets/characters/09-toprak-ana-preview.png") right bottom / min(42vw, 520px) auto no-repeat,
    #155b33;
}

.stage-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stage-backdrop img {
  position: absolute;
  width: clamp(120px, 15vw, 230px);
  height: clamp(120px, 15vw, 230px);
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.22));
  opacity: 0.9;
}

.stage-backdrop img:nth-child(1) {
  left: 5vw;
  bottom: 6vh;
}

.stage-backdrop img:nth-child(2) {
  right: 8vw;
  top: 8vh;
}

.stage-backdrop img:nth-child(3) {
  left: 23vw;
  top: 9vh;
  opacity: 0.54;
}

.stage-backdrop img:nth-child(4) {
  right: 24vw;
  bottom: 8vh;
  opacity: 0.52;
}

.stage-backdrop img:nth-child(5),
.stage-backdrop img:nth-child(6) {
  display: none;
}

.stage-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.stage-copy span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.stage-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(54px, 9vw, 132px);
  line-height: 0.92;
}

.stage-copy p {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.25;
}

.stage-status {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stage-status div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.stage-status strong,
.stage-status span {
  display: block;
}

.stage-status strong {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.stage-status span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.stage-page {
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(13, 70, 48, 0.98), rgba(19, 95, 74, 0.92) 42%, rgba(28, 111, 147, 0.88)),
    #155b33;
}

.stage-hero {
  position: relative;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  padding: clamp(24px, 4.2vw, 56px) clamp(28px, 5vw, 68px) clamp(16px, 3vw, 28px);
}

.stage-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(13, 70, 48, 0), rgba(247, 251, 246, 0.96));
}

.stage-hero .stage-copy {
  width: min(760px, 100%);
}

.stage-hero .stage-copy h1 {
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 0.93;
}

.stage-hero .stage-copy p {
  max-width: 600px;
  margin-top: 18px;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.26;
}

.stage-scene {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  min-height: clamp(280px, 39vw, 440px);
  display: grid;
  align-items: center;
}

.stage-group-photo {
  position: relative;
  width: min(820px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 18px;
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.22);
}

.stage-group-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-character {
  position: absolute;
  margin: 0;
  display: grid;
  place-items: center;
}

.stage-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(0, 0, 0, 0.22));
}

.stage-character-1 {
  width: clamp(150px, 16vw, 240px);
  height: clamp(150px, 16vw, 240px);
  left: 4%;
  bottom: 12%;
}

.stage-character-2 {
  width: clamp(140px, 14.5vw, 220px);
  height: clamp(140px, 14.5vw, 220px);
  right: 6%;
  top: 8%;
}

.stage-character-3 {
  width: clamp(128px, 13vw, 200px);
  height: clamp(128px, 13vw, 200px);
  left: 34%;
  top: 0;
}

.stage-character-4 {
  width: clamp(148px, 15.5vw, 232px);
  height: clamp(148px, 15.5vw, 232px);
  right: 22%;
  bottom: 2%;
}

.stage-character-5 {
  width: clamp(172px, 18vw, 272px);
  height: clamp(172px, 18vw, 272px);
  right: -2%;
  bottom: 10%;
}

.stage-page .stage-status {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: end;
  z-index: 1;
  width: min(560px, 100%);
}

.stage-guide {
  position: relative;
  z-index: 2;
  padding: 12px clamp(18px, 5vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #f7fbf6;
  color: var(--ink);
}

.stage-guide div {
  min-height: 96px;
  padding: 12px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-content: start;
  gap: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(22, 50, 41, 0.07);
}

.stage-guide span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  border-radius: var(--radius);
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.stage-guide strong {
  font-size: 15px;
  line-height: 1.12;
}

.stage-guide p {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.3;
}

.stage-rail {
  padding: 0 clamp(18px, 5vw, 68px) 12px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  background: #f7fbf6;
  color: var(--ink);
}

.stage-rail figure {
  min-height: 90px;
  margin: 0;
  padding: 7px 5px;
  display: grid;
  align-content: space-between;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.stage-rail img {
  width: 100%;
  height: 58px;
  object-fit: contain;
}

.stage-rail figcaption {
  color: var(--green-dark);
  font-size: 9.5px;
  font-weight: 850;
  text-align: center;
  line-height: 1.1;
}

.adventure-page {
  min-height: 100svh;
  overflow: visible;
  padding: clamp(10px, 1.5vw, 18px) clamp(18px, 4vw, 54px);
  display: grid;
  grid-template-rows: auto auto auto;
  gap: clamp(8px, 1.25vh, 12px);
  color: #111111;
  background:
    linear-gradient(180deg, #f3fbf5 0%, #ffffff 42%, #eef7f1 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.adventure-hero {
  display: grid;
  grid-template-columns: minmax(430px, 0.72fr) minmax(620px, 1.28fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  overflow: visible;
}

.adventure-hero-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.festival-mark {
  width: fit-content;
  min-height: 34px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(40, 122, 70, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.adventure-hero-copy h1,
.adventure-steps h2,
.adventure-locations h2 {
  margin: 0;
  color: #10251e;
  font-weight: 900;
  letter-spacing: 0;
}

.adventure-hero-copy h1 {
  font-size: clamp(42px, 3.4vw, 58px);
  line-height: 0.98;
  max-width: 720px;
}

.adventure-hero-copy p {
  max-width: 620px;
  margin: 0;
  color: #2d5145;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 650;
}

.adventure-characters {
  position: relative;
  height: clamp(196px, 25svh, 260px);
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(40, 122, 70, 0.18);
  border-radius: var(--radius);
  background: #edf6ef;
  box-shadow: 0 20px 48px rgba(22, 50, 41, 0.13);
}

.adventure-characters::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 251, 246, 0.08), rgba(247, 251, 246, 0.02)),
    url("./assets/stage/toplu-karakterler.png") center / cover no-repeat;
  filter: blur(10px) saturate(1.06);
  transform: scale(1.04);
}

.adventure-characters img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.adventure-action-row {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(142px, 166px) minmax(142px, 166px);
  align-items: stretch;
  gap: 12px;
}

.adventure-steps {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(40, 122, 70, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 36px rgba(22, 50, 41, 0.08);
}

.adventure-steps h2,
.adventure-locations h2 {
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.12;
}

.adventure-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.adventure-step-grid article {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding: 9px;
  border-radius: var(--radius);
  background: #f7fbf6;
}

.adventure-step-grid article > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.adventure-step-grid strong,
.adventure-step-grid p {
  margin: 0;
}

.adventure-step-grid strong {
  display: block;
  color: #10251e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.adventure-step-grid p {
  margin-top: 4px;
  color: #4f675d;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 650;
}

.adventure-qr-card,
.adventure-live-card {
  min-height: 100%;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(40, 122, 70, 0.18);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 36px rgba(22, 50, 41, 0.08);
}

.adventure-qr-card > span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.adventure-qr-card img {
  width: clamp(88px, 7vw, 108px);
  height: clamp(88px, 7vw, 108px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.adventure-qr-card p,
.adventure-live-card p,
.adventure-location-title p {
  margin: 0;
  color: #4f675d;
  font-size: 12px;
  line-height: 1.28;
  font-weight: 650;
}

.adventure-live-card strong {
  color: var(--green-dark);
  font-size: clamp(38px, 3vw, 48px);
  line-height: 0.9;
}

.adventure-live-card span {
  color: #10251e;
  font-size: 14px;
  font-weight: 900;
}

.adventure-locations {
  display: grid;
  grid-template-rows: auto auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(40, 122, 70, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 42px rgba(22, 50, 41, 0.09);
}

.adventure-location-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.adventure-location-title p {
  max-width: 470px;
  text-align: right;
}

.adventure-location-grid {
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(300px, 0.62fr) minmax(660px, 1.38fr);
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.adventure-map {
  margin: 0;
  overflow: visible;
  display: grid;
  justify-items: center;
  align-items: center;
}

.adventure-map img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: clamp(160px, 23svh, 230px);
  object-fit: contain;
  object-position: center;
}

.location-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  grid-template-rows: repeat(6, auto);
  align-content: center;
  align-items: center;
  gap: 6px 12px;
  overflow: visible;
}

.location-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: var(--radius);
  background: #f7fbf6;
}

.location-pin {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.pin-tone-1 .location-pin { background: #2374a7; }
.pin-tone-2 .location-pin { background: #4d94c6; }
.pin-tone-3 .location-pin { background: #d7317c; }
.pin-tone-4 .location-pin { background: #b42f45; }
.pin-tone-5 .location-pin { background: #6652a4; }
.pin-tone-6 .location-pin { background: #1f1f1f; }

.location-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.location-item strong {
  min-width: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.08;
}

.home-layout {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(420px, 1.15fr);
  align-items: stretch;
  gap: 24px;
}

.intro-panel {
  min-height: 580px;
  padding: clamp(28px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(21, 91, 51, 0.95), rgba(33, 125, 165, 0.85)),
    url("./assets/characters/09-toprak-ana-preview.png") right bottom / min(58%, 460px) auto no-repeat;
  box-shadow: var(--shadow);
}

.intro-panel h1,
.plain-section h1,
.final-header h1,
.surface h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

.intro-panel p,
.plain-section p,
.surface p,
.final-header p {
  max-width: 680px;
  color: inherit;
  line-height: 1.6;
}

.intro-panel p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-stats div,
.metric-grid div {
  min-height: 86px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
}

.home-stats strong,
.metric-grid strong {
  display: block;
  font-size: 30px;
}

.home-stats span,
.metric-grid span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.surface,
.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.surface {
  padding: clamp(20px, 3vw, 30px);
}

.progress-panel {
  min-height: 580px;
}

.progress-panel h2,
.surface h2,
.qr-card h2 {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 34px);
}

.progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.progress-tile,
.character-strip-item {
  min-height: 168px;
  padding: 10px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: #fbfdfb;
}

.progress-tile.done {
  border-color: rgba(40, 122, 70, 0.42);
  background: #ecf8ef;
}

.progress-tile img,
.character-strip-item img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.progress-tile span,
.character-strip-item span {
  font-weight: 800;
}

.progress-tile strong {
  color: var(--green-dark);
  font-size: 13px;
}

.character-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workspace,
.form-page,
.admin-shell {
  display: grid;
  gap: 20px;
}

.plain-section {
  padding: 6px 0;
}

.plain-section p {
  color: var(--muted);
}

.form-page {
  max-width: 780px;
  margin: 0 auto;
}

.form-stack {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 125, 165, 0.14);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 6px;
  accent-color: var(--green);
}

.check-row span {
  min-width: 0;
  line-height: 1.35;
}

.notice {
  min-height: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.participant-badge {
  width: fit-content;
  min-width: 170px;
  padding: 12px 16px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(240, 180, 41, 0.68);
  border-radius: var(--radius);
  background: #fffaf0;
  color: #7a5600;
}

.intro-panel .participant-badge {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.participant-badge span,
.area-label {
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.participant-badge strong {
  font-size: 32px;
  line-height: 1;
}

.area-label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  margin: 8px 0 4px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--green-dark);
}

.character-page {
  min-height: calc(100svh - 130px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  align-items: stretch;
  gap: 22px;
}

.character-page.question-only {
  min-height: auto;
  display: block;
  max-width: 820px;
  margin: 0 auto;
}

.character-question-card h1 {
  margin: 0;
}

.character-card-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.character-card-head img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.character-card-head span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.character-card-head b {
  min-height: 34px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  background: #fff8dd;
  color: #8b6200;
  font-weight: 900;
}

.character-hero {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.character-hero img {
  width: 100%;
  height: min(72svh, 720px);
  object-fit: contain;
  padding: 20px;
}

.character-headline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.character-headline span,
.rank-meta b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  background: #fff8dd;
  color: #8b6200;
  font-weight: 850;
}

.question-box {
  padding: 18px;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  background: #edf8fb;
  color: #16495e;
  font-size: 18px;
  line-height: 1.55;
  font-weight: 760;
}

.success-block {
  padding: 18px;
  border: 1px solid #b8dec4;
  border-radius: var(--radius);
  background: #ecf8ef;
}

.done-page {
  min-height: calc(100svh - 130px);
  display: grid;
  place-items: center;
}

.done-card {
  width: min(700px, 100%);
}

.welcome-page {
  min-height: calc(100svh - 130px);
  display: grid;
  place-items: center;
}

.welcome-card {
  width: min(980px, 100%);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    url("./assets/characters/01-rehber-yaprak-preview.png") right bottom / min(34%, 280px) auto no-repeat;
  box-shadow: var(--shadow);
}

.welcome-copy {
  display: grid;
  gap: 12px;
}

.welcome-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1;
}

.welcome-copy p,
.welcome-hint {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.welcome-number {
  margin: 24px 0;
  width: min(460px, 100%);
  padding: 18px 22px;
  border: 1px solid #cce3d2;
  border-radius: var(--radius);
  background: #eff9f1;
}

.welcome-number span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.welcome-number strong {
  display: block;
  margin-top: 6px;
  color: var(--green-dark);
  font-size: clamp(56px, 12vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.welcome-steps {
  margin: 22px 0;
}

.welcome-steps h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.welcome-steps ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.welcome-steps li {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.welcome-steps li span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.welcome-steps li p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 700;
}

.final-screen {
  min-height: 100svh;
  padding: clamp(24px, 4vw, 52px);
  background:
    linear-gradient(180deg, #f7fbf6 0%, #eef7f1 100%);
}

.final-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.final-header p {
  color: var(--muted);
}

.leaderboard {
  display: grid;
  gap: 10px;
}

.rank-row {
  min-height: 76px;
  display: grid;
  grid-template-columns: 70px 1fr minmax(120px, auto);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.rank-row.completed {
  border-color: rgba(240, 180, 41, 0.72);
  background: #fffaf0;
}

.rank {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--green-dark);
  font-size: 18px;
  font-weight: 900;
}

.rank-row strong {
  display: block;
  font-size: clamp(18px, 2vw, 26px);
}

.rank-row span,
.rank-meta small {
  color: var(--muted);
}

.rank-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.empty {
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.qr-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qr-card {
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.qr-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.qr-card h2 {
  font-size: 18px;
}

.qr-number {
  width: fit-content;
  min-height: 32px;
  padding: 5px 10px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--green);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.qr-number.register {
  background: var(--blue);
}

.qr-card span,
.qr-card strong,
.qr-card small {
  word-break: break-word;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.qr-card .qr-number {
  color: #ffffff;
}

.admin-tabs {
  min-height: 58px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-tabs a {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 780;
}

.admin-tabs a.active {
  background: var(--green);
  color: #ffffff;
}

.admin-tabs button {
  margin-left: auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
}

.metric-grid {
  margin: 18px 0;
}

.metric-grid div {
  border-color: var(--line);
  background: var(--surface-2);
}

.metric-grid span {
  color: var(--muted);
}

.settings-form {
  display: grid;
  gap: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

td span {
  color: var(--muted);
  font-size: 13px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.row-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.danger-zone {
  border-color: #e8b9ae;
}

.error-card {
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 1060px) {
  .home-layout,
  .stage-hero,
  .character-page,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    min-height: 460px;
  }

  .stage-hero {
    min-height: 0;
    padding: 20px clamp(18px, 5vw, 52px) 12px;
  }

  .stage-scene {
    min-height: clamp(230px, 42vw, 340px);
  }

  .stage-page .stage-status {
    width: min(520px, 100%);
  }

  .stage-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-rail {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .stage-rail figure {
    min-height: 78px;
  }

  .stage-rail img {
    height: 48px;
  }

  .adventure-page {
    padding: 14px 24px;
    grid-template-rows: auto auto minmax(260px, 1fr);
    gap: 8px;
  }

  .adventure-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(170px, 1fr);
    gap: 10px;
  }

  .adventure-hero-copy {
    justify-items: center;
    text-align: center;
  }

  .adventure-hero-copy h1 {
    max-width: 760px;
    font-size: 44px;
    line-height: 0.94;
  }

  .adventure-hero-copy p {
    max-width: 760px;
    font-size: 15px;
  }

  .adventure-characters img {
    object-position: center;
  }

  .adventure-action-row {
    grid-template-columns: minmax(0, 1fr) 160px 160px;
  }

  .adventure-step-grid {
    gap: 8px;
  }

  .adventure-location-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(320px, 1fr);
    gap: 14px;
  }

  .location-list {
    gap: 6px 12px;
  }

  .qr-grid,
  .qr-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell {
    padding: 16px;
  }

  .intro-panel {
    min-height: 520px;
    background:
      linear-gradient(135deg, rgba(21, 91, 51, 0.95), rgba(33, 125, 165, 0.85)),
      url("./assets/characters/09-toprak-ana-preview.png") center bottom / 78% auto no-repeat;
  }

  .home-stats,
  .metric-grid,
  .progress-grid,
  .character-strip,
  .qr-grid,
  .qr-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .rank-row {
    grid-template-columns: 54px 1fr;
  }

  .rank-meta {
    grid-column: 2;
    justify-items: start;
  }

  .final-header,
  .character-headline {
    flex-direction: column;
  }

  .character-card-head {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .character-card-head img {
    width: 78px;
    height: 78px;
  }

  .character-card-head b {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tabs a,
  .admin-tabs button {
    flex: 1 1 140px;
  }

  .admin-tabs button {
    margin-left: 0;
  }

  body.stage-mode {
    overflow: auto;
  }

  .adventure-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 14px;
    grid-template-rows: auto;
  }

  .adventure-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 10px;
    overflow: visible;
  }

  .adventure-hero-copy h1 {
    font-size: 32px;
    line-height: 0.95;
  }

  .adventure-hero-copy p {
    font-size: 13px;
    line-height: 1.3;
  }

  .adventure-characters {
    height: 180px;
  }

  .adventure-action-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .adventure-steps h2,
  .adventure-locations h2 {
    font-size: 24px;
  }

  .adventure-step-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .adventure-step-grid article {
    gap: 4px;
  }

  .adventure-step-grid p {
    max-width: 360px;
  }

  .adventure-qr-card,
  .adventure-live-card {
    min-height: 0;
  }

  .adventure-qr-card img {
    width: 96px;
    height: 96px;
  }

  .adventure-live-card strong {
    font-size: 32px;
  }

  .adventure-location-title {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .adventure-location-title p {
    max-width: 100%;
    text-align: center;
  }

  .adventure-location-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    height: auto;
    overflow: visible;
  }

  .adventure-map {
    justify-items: center;
    height: auto;
    overflow: visible;
  }

  .adventure-map img {
    width: min(100%, 460px);
    height: auto;
    max-height: none;
    object-position: center;
  }

  .location-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    height: auto;
    overflow: visible;
  }

  .location-item {
    grid-template-columns: 24px 32px minmax(0, 1fr);
    gap: 6px;
  }

  .location-item img {
    width: 32px;
    height: 32px;
  }

  .location-item strong {
    font-size: 11px;
  }

  .welcome-card {
    padding-bottom: 180px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
      url("./assets/characters/01-rehber-yaprak-preview.png") center bottom / 52% auto no-repeat;
  }

  .stage-screen {
    min-height: 100svh;
    align-content: end;
    padding: 28px 18px;
    background:
      linear-gradient(180deg, rgba(16, 77, 47, 0.96), rgba(33, 125, 165, 0.84)),
      url("./assets/characters/09-toprak-ana-preview.png") right bottom / 72% auto no-repeat,
      #155b33;
  }

  .stage-backdrop img:nth-child(n + 3) {
    display: none;
  }

  .stage-backdrop img:nth-child(1) {
    left: -26px;
    bottom: 22vh;
  }

  .stage-backdrop img:nth-child(2) {
    right: -24px;
    top: 4vh;
  }

  .stage-copy p {
    max-width: 360px;
  }

  .stage-status {
    grid-template-columns: 1fr 1fr;
  }

  .stage-hero {
    align-content: start;
    padding: 12px 12px 8px;
    gap: 9px;
  }

  .stage-hero::after {
    height: 36px;
  }

  .stage-scene {
    order: -1;
    grid-column: 1;
    grid-row: auto;
    min-height: clamp(88px, 18svh, 126px);
    display: grid;
    grid-template-columns: 1fr;
  }

  .stage-group-photo {
    height: clamp(92px, 18svh, 126px);
    border-radius: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  }

  .stage-hero .stage-copy h1 {
    font-size: clamp(32px, 10.4vw, 50px);
    line-height: 0.94;
  }

  .stage-hero .stage-copy p {
    max-width: 100%;
    margin-top: 9px;
    font-size: clamp(12px, 3.7vw, 15px);
    line-height: 1.24;
  }

  .stage-page .stage-status {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }

  .stage-status {
    gap: 6px;
  }

  .stage-status div {
    min-height: 50px;
    padding: 8px;
  }

  .stage-status strong {
    font-size: clamp(22px, 7vw, 32px);
  }

  .stage-status span {
    margin-top: 3px;
    font-size: 11px;
  }

  .stage-guide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
    gap: 6px;
  }

  .stage-guide div {
    min-height: 0;
    padding: 8px;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px 7px;
  }

  .stage-guide span {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .stage-guide strong {
    font-size: 12px;
  }

  .stage-guide p {
    font-size: 10.5px;
    line-height: 1.18;
  }

  .stage-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 0 10px 8px;
    gap: 6px;
  }

  .stage-rail figure {
    min-height: 48px;
    padding: 4px 3px;
  }

  .stage-rail img {
    height: 28px;
  }

  .stage-rail figcaption {
    font-size: 7.5px;
  }

  .welcome-steps ol {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  body.stage-mode {
    overflow: auto;
  }

  .stage-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .adventure-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
}

@media (max-width: 460px) {
  button,
  .button {
    width: 100%;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-stats,
  .metric-grid,
  .progress-grid,
  .character-strip,
  .qr-grid,
  .qr-grid.compact {
    grid-template-columns: 1fr;
  }

  .intro-panel h1,
  .plain-section h1,
  .final-header h1,
  .surface h1 {
    font-size: 34px;
  }
}

/* ===== Demo eki: harita yok, tek sütun durak listesi, "Sen" vurgusu ===== */
.adventure-location-grid { grid-template-columns: 1fr; }
.adventure-qr-card .button { margin-top: 8px; }
.rank-row.is-me { outline: 3px solid #2e8b57; background: #eaf7ef; }
.me-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 6px; background: #2e8b57; color: #fff; font-size: 0.6em; vertical-align: middle; }
