@font-face {
  font-family: "Euclid Circular A";
  src: url("./fonts/EuclidCircularA-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("./fonts/EuclidCircularA-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("./fonts/EuclidCircularA-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Euclid Circular A";
  src: url("./fonts/EuclidCircularA-Bold.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

 :root {
  --bg: #FFF7FA;
  --bg-2: #FFFFFF;
  --light-pink: #FFE2E9;
  --coral: #F58CAA;
  --coral-dark: #E7648F;
  --coral-soft: #FFE2E9;
  --peach: #FFF3F6;
  --mint: #E9F7F1;
  --green: #23C483;
  --ink: #27251F;
  --text: #27251F;
  --muted: #807A76;
  --soft-grey: #DCDDE1;
  --warm-grey: #807A76;
  --white: #ffffff;
  --yellow: #FFD166;
  --red: #F06474;
  --blue: #84A8FF;
  --purple: #A28BFF;
  --card: rgba(255,255,255,.72);
  --card-2: rgba(255,255,255,.92);
  --stroke: rgba(39, 37, 31, .11);
  --shadow: 0 22px 70px rgba(39, 37, 31, .10);
  --shadow-soft: 0 12px 30px rgba(39, 37, 31, .075);
  --radius: 30px;
  --radius-sm: 18px;
  --font: "Euclid Circular A", "Inter", Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,226,233,.95), transparent 28%),
    radial-gradient(circle at 88% 4%, rgba(245,140,170,.34), transparent 26%),
    radial-gradient(circle at 62% 92%, rgba(220,221,225,.44), transparent 30%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
textarea { resize: vertical; }

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .7;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255,255,255,.55) 42%, transparent 54% 100%),
    linear-gradient(60deg, transparent 0 58%, rgba(255,107,95,.16) 65%, transparent 76% 100%);
  filter: blur(22px);
}

.app-shell {
  width: min(1360px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
  position: relative;
}

.card {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}
.panel { padding: clamp(20px, 2.8vw, 34px); }
.loading-card { padding: 50px; margin-top: 70px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 12px;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: -.035em;
  user-select: none;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), #ff9a72);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(255,107,95,.28);
}
.logo-mark svg { width: 22px; fill: currentColor; }
.inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.right { flex: 1; }
.topbar-right { justify-content: flex-end; }
.status-pill, .mini-pill, .team-chip, .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 7px rgba(35,196,131,.14);
}
.status-dot.off { background: var(--red); box-shadow: 0 0 0 7px rgba(255,77,94,.13); }
.team-chip {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--team-color) 48%, white);
  background: color-mix(in srgb, var(--team-color) 18%, white);
  font-weight: 850;
}
.badge { padding: 6px 10px; font-weight: 850; color: var(--text); }
.badge.yellow { background: rgba(255,209,102,.42); }
.badge.red { background: rgba(255,77,94,.14); color: #b51d30; }
.timer {
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--ink);
  color: white;
  font-weight: 950;
  letter-spacing: .02em;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: stretch;
}
.hero-card {
  padding: clamp(28px, 4.5vw, 62px);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: auto -80px -120px auto;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,95,.22), transparent 68%);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral-dark);
  background: rgba(255,107,95,.14);
  border: 1px solid rgba(255,107,95,.2);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 950;
  margin-bottom: 18px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(42px, 7vw, 92px);
  line-height: .92;
  letter-spacing: -.075em;
  margin-bottom: 18px;
  color: var(--ink);
}
h2 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.055em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--ink);
}
h3 { font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.lead { font-size: clamp(18px, 1.9vw, 23px); color: var(--muted); max-width: 780px; line-height: 1.45; }
.muted, .small-text { color: var(--muted); }
.small-text { font-size: 13px; line-height: 1.35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.info-grid { margin-top: 28px; }

.btn {
  border: 0;
  padding: 13px 18px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--coral), #ff8d65);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(255,107,95,.25);
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
.btn:active { transform: translateY(0); }
.btn.secondary {
  color: var(--text);
  background: rgba(255,255,255,.74);
  border: 1px solid var(--stroke);
  box-shadow: none;
}
.btn.coral { color: white; background: linear-gradient(135deg, var(--coral-dark), var(--coral)); }
.btn.danger { background: var(--red); color: white; box-shadow: 0 16px 34px rgba(255,77,94,.18); }
.btn.yellow { background: var(--yellow); color: #36280a; box-shadow: 0 12px 28px rgba(255,209,102,.24); }
.btn.small { padding: 9px 12px; border-radius: 12px; font-size: 13px; }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.kingdom-card { padding: 18px; min-height: 540px; position: relative; overflow: hidden; }
.castle-scene {
  min-height: 500px;
  height: 100%;
  border-radius: 26px;
  background:
    radial-gradient(circle at 75% 16%, rgba(255,209,102,.38), transparent 12%),
    linear-gradient(180deg, #fff6df 0%, #ffded1 45%, #dff7ed 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
}
.sun-orb { position:absolute; right: 70px; top: 54px; width: 80px; height: 80px; border-radius: 50%; background: #ffd166; filter: blur(.4px); }
.cloud { position:absolute; width: 180px; height: 64px; border-radius: 999px; background: rgba(255,255,255,.68); filter: blur(1px); }
.cloud::before, .cloud::after { content:''; position:absolute; border-radius:50%; background:inherit; }
.cloud::before { width:82px; height:82px; left:30px; top:-28px; }
.cloud::after { width:70px; height:70px; right:25px; top:-18px; }
.c1 { left: 32px; top: 70px; }
.c2 { right: 105px; top: 180px; transform: scale(.82); opacity:.65; }
.castle-base { position:absolute; left: 50%; bottom: 80px; transform: translateX(-50%); width: 420px; height: 170px; border-radius: 40px 40px 18px 18px; background: linear-gradient(180deg, #ffffff, #ffe4dc); border:1px solid rgba(255,107,95,.16); box-shadow: 0 20px 40px rgba(99,54,38,.12); }
.tower { position:absolute; bottom: 80px; width: 78px; background: linear-gradient(180deg, #fff, #ffd9cf); border: 1px solid rgba(255,107,95,.18); border-radius: 22px 22px 8px 8px; box-shadow: 0 18px 28px rgba(99,54,38,.12); }
.tower::before { content:''; position:absolute; left:50%; top:-46px; transform:translateX(-50%); border-left:43px solid transparent; border-right:43px solid transparent; border-bottom:52px solid var(--coral); filter: drop-shadow(0 10px 12px rgba(255,107,95,.15)); }
.t1 { left: 17%; height: 190px; }
.t2 { left: 43%; height: 260px; width: 96px; }
.t3 { right: 16%; height: 220px; }
.gate { position:absolute; left:50%; bottom:80px; transform:translateX(-50%); width:170px; height:118px; border-radius: 30px 30px 0 0; background: #48352f; }
.path { position:absolute; left:50%; bottom:-80px; transform:translateX(-50%); width:240px; height:180px; border-radius: 50% 50% 0 0; background: rgba(255,255,255,.5); }
.coral-flag { position:absolute; width: 54px; height: 34px; background: var(--coral); border-radius: 4px 16px 16px 4px; box-shadow: 0 10px 24px rgba(255,107,95,.22); }
.f1 { left: 28%; top: 170px; }
.f2 { right: 25%; top: 140px; }

.screen { display: grid; gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.form-grid { display: grid; gap: 14px; }
.stack { display: grid; gap: 12px; }
.label { display: grid; gap: 8px; color: var(--text); font-weight: 850; }
.input, input, textarea, select {
  width: 100%;
  border: 1px solid rgba(39,39,42,.13);
  outline: none;
  border-radius: 17px;
  padding: 13px 14px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
textarea { line-height: 1.45; }
.input:focus, input:focus, textarea:focus, select:focus { border-color: rgba(255,107,95,.55); box-shadow: 0 0 0 5px rgba(255,107,95,.12); }
.color-row { display:flex; gap:10px; flex-wrap: wrap; }
.color-dot { width: 38px; height: 38px; border-radius: 14px; border: 3px solid white; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.color-dot.active { outline: 3px solid var(--coral); }
.submission-card, .pending-card, .team-row, .quiz-row, .locked-hint, .answer-reveal, .trainer-hint {
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.72);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.status-card { background: rgba(35,196,131,.12); border-color: rgba(35,196,131,.22); }
.score-big { font-size: 28px; line-height: 1.1; font-weight: 950; color: var(--ink); margin-top: 4px; }
.station-map { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.station-tile { display:flex; align-items:center; gap: 12px; padding: 14px; border-radius: 22px; background: rgba(255,255,255,.64); border:1px solid var(--stroke); }
.station-tile.active { background: var(--coral-soft); border-color: rgba(255,107,95,.35); }
.station-number { width: 36px; height: 36px; border-radius: 14px; display:grid; place-items:center; background: var(--coral); color:white; font-weight:950; }
.station-title { font-weight: 900; color: var(--ink); }
.station-head { background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,226,220,.66)); }

.dialogue { display: grid; gap: 10px; }
.bubble { padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.78); border: 1px solid var(--stroke); font-weight: 760; }
.bubble.accent { background: rgba(255,226,220,.72); }
.answer-reveal { margin-top: 16px; background: rgba(35,196,131,.12); border-color: rgba(35,196,131,.22); }
.locked-hint { margin-top: 16px; color: var(--muted); background: rgba(255,255,255,.5); }
.objection-card { padding: clamp(24px, 4vw, 42px); border-radius: 28px; background: linear-gradient(135deg, var(--coral), #ff9a72); color:white; box-shadow: 0 20px 45px rgba(255,107,95,.25); }
.objection-card .small-text { color: rgba(255,255,255,.82); }
.objection-card.final { background: linear-gradient(135deg, var(--green), #55d6a0); }
.objection-text { font-size: clamp(34px, 5vw, 60px); font-weight: 950; line-height: .98; letter-spacing: -.05em; }
.chain-progress { display:flex; gap: 8px; margin-bottom: 18px; }
.progress-dot { width:34px; height:34px; display:grid; place-items:center; border-radius: 999px; background: rgba(39,39,42,.08); color: var(--muted); font-weight:900; }
.progress-dot.done { background: rgba(35,196,131,.18); color: #0b7950; }
.progress-dot.active { background: var(--coral); color:white; }

.match-board { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.match-card { min-height: 132px; padding: 16px; border-radius: 22px; border: 1px solid var(--stroke); background: rgba(255,255,255,.78); text-align: left; color: var(--text); box-shadow: var(--shadow-soft); }
.match-card.selected { border-color: rgba(255,107,95,.6); box-shadow: 0 0 0 5px rgba(255,107,95,.12); }
.match-card.done { opacity: .35; pointer-events: none; transform: scale(.98); }
.card-kind { display:inline-block; color: var(--coral-dark); background: rgba(255,107,95,.12); padding: 5px 9px; border-radius: 999px; margin-bottom: 10px; font-size: 12px; font-weight: 900; }
.quiz-row { display:flex; align-items:flex-start; gap: 12px; font-weight: 800; cursor: pointer; }
.quiz-row input { width: 22px; min-width:22px; height: 22px; accent-color: var(--coral); box-shadow: none; }

.arrow-stage { min-height: 260px; border-radius: 28px; margin-top: 20px; background: linear-gradient(180deg, #fff0e9, #ffe2dc); position: relative; overflow: hidden; border: 1px solid rgba(255,107,95,.16); }
.monster { position:absolute; right: 15%; bottom: 34px; width: 138px; height: 160px; background: #3f3340; border-radius: 64px 64px 36px 36px; box-shadow: 0 22px 40px rgba(63,51,64,.24); }
.monster::before, .monster::after { content:''; position:absolute; top: 34px; width: 18px; height:18px; border-radius:50%; background: var(--yellow); }
.monster::before { left: 35px; }
.monster::after { right: 35px; }
.flying-arrow { position:absolute; left: 18%; top: 42%; font-size: 80px; color: var(--coral-dark); animation: fly 1.2s ease both; }
.arrow-result { position:absolute; left: 30px; top: 28px; max-width: 390px; z-index: 2; }
@keyframes fly { from { transform: translateX(-160px) rotate(8deg); opacity:0; } to { transform: translateX(330px) rotate(8deg); opacity:1; } }

.trainer-layout { display:grid; grid-template-columns: 330px 1fr; gap: 18px; align-items:start; }
.side { position: sticky; top: 96px; max-height: calc(100vh - 112px); overflow: auto; }
.nav-station { width:100%; display:grid; grid-template-columns: auto 1fr auto; align-items:center; gap: 10px; border: 1px solid var(--stroke); border-radius: 16px; padding: 12px; background: rgba(255,255,255,.7); color: var(--text); text-align:left; }
.nav-station.active { background: var(--coral-soft); border-color: rgba(255,107,95,.38); }
.segmented { display:grid; grid-template-columns:1fr 1fr 1fr; gap:6px; padding:6px; border-radius:18px; background: rgba(39,39,42,.06); margin-bottom:18px; }
.segmented button { border:0; border-radius:14px; padding:10px; background: transparent; color: var(--muted); font-weight:900; }
.segmented button.active { background:white; color: var(--coral-dark); box-shadow: var(--shadow-soft); }
.trainer-tools { display:grid; gap:8px; margin-top:18px; padding-top:18px; border-top: 1px solid var(--stroke); }
.review-row { align-items: stretch; }
.trainer-hint { background: rgba(255,209,102,.2); }
.team-row { display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.results-table { width:100%; border-collapse: separate; border-spacing:0 10px; }
.results-table th { text-align:left; color: var(--muted); font-size: 13px; padding: 0 12px; }
.results-table td { padding: 16px 12px; background: rgba(255,255,255,.72); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.results-table td:first-child { border-left:1px solid var(--stroke); border-radius: 16px 0 0 16px; }
.results-table td:last-child { border-right:1px solid var(--stroke); border-radius: 0 16px 16px 0; }
.results-table tr.winner td { background: rgba(255,209,102,.28); }

.editor-panel .editor-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.span-2 { grid-column: span 2; }
.editor-panel textarea { min-height: 92px; font-family: var(--font); }
pre { white-space: pre-wrap; background: rgba(39,39,42,.06); padding: 12px; border-radius: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color:white; padding: 13px 18px; border-radius: 999px; box-shadow: var(--shadow); z-index: 999; font-weight: 900; }
.toast.hidden { display:none; }



.kicker.mini { margin-bottom: 8px; padding: 6px 10px; font-size: 12px; }
.quest-scene {
  min-height: 500px;
  height: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,255,255,.82), transparent 24%),
    linear-gradient(135deg, #FFE2E9 0%, #FFFFFF 45%, #F7F7F8 100%);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.92);
}
.scene-glow { position:absolute; border-radius:50%; filter: blur(12px); opacity:.8; }
.scene-glow.one { width:260px; height:260px; left:-80px; top:-50px; background: rgba(245,140,170,.35); }
.scene-glow.two { width:300px; height:300px; right:-120px; bottom:-90px; background: rgba(220,221,225,.55); }
.quest-title-card, .floating-map-card {
  position:absolute;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  border-radius: 26px;
}
.quest-title-card { left: 28px; top: 28px; width: min(390px, calc(100% - 56px)); padding: 22px; }
.quest-title-card h3 { font-size: 30px; line-height: .98; margin-bottom: 8px; }
.quest-title-card p { color: var(--muted); margin-bottom: 0; }
.floating-map-card { left: 42px; right: 42px; bottom: 34px; height: 110px; }
.map-line { position:absolute; left: 60px; right:60px; top:52px; height:8px; border-radius:999px; background: linear-gradient(90deg, var(--coral), #FFD166, var(--soft-grey)); }
.map-point { position:absolute; top:32px; width:46px; height:46px; display:grid; place-items:center; border-radius:18px; background:white; color:var(--ink); border:1px solid var(--stroke); font-weight:950; box-shadow:var(--shadow-soft); }
.map-point.p1{left:8%}.map-point.p2{left:28%}.map-point.p3{left:48%}.map-point.p4{left:68%}.map-point.p5{left:88%}
.character { position:absolute; width: 190px; z-index: 2; }
.character svg { width:100%; height:auto; overflow:visible; }
.character .shadow { fill: rgba(39,37,31,.14); }
.character.knight { left: 10%; bottom: 110px; transform: rotate(-2deg); }
.character.wizard { right: 8%; bottom: 105px; transform: rotate(2deg); }
.castle-minimal { position:absolute; left:50%; bottom: 112px; transform:translateX(-50%); display:flex; align-items:flex-end; gap:12px; opacity:.85; }
.castle-minimal span { display:block; width:52px; border-radius:18px 18px 8px 8px; background: rgba(255,255,255,.78); border:1px solid rgba(255,255,255,.9); box-shadow:var(--shadow-soft); }
.castle-minimal span:nth-child(1){height:92px}.castle-minimal span:nth-child(2){height:145px}.castle-minimal span:nth-child(3){height:110px}
.activity-card {
  width: 100%; text-align: left; border: 1px solid var(--stroke); background: rgba(255,255,255,.68);
  border-radius: 22px; padding: 16px; color: var(--text); box-shadow: var(--shadow-soft);
}
.activity-card.active { border-color: rgba(245,140,170,.6); box-shadow: 0 0 0 5px rgba(245,140,170,.13), var(--shadow-soft); }
.activity-screen { font-weight: 950; font-size: 18px; margin: 10px 0 4px; color: var(--ink); }
.observer-preview { position: sticky; top: 96px; }
.team-screen-frame { margin-top: 14px; border: 1px solid var(--stroke); border-radius: 26px; padding: 16px; background: rgba(255,255,255,.58); min-height: 300px; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.mini-topbar { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius: 999px; background: white; border:1px solid var(--stroke); font-weight:900; color:var(--muted); margin-bottom:16px; }
.objection-card.mini { padding: 22px; border-radius: 22px; }
.objection-card.mini .objection-text { font-size: clamp(24px, 3vw, 38px); }
.mini-board { display:grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; }
.mini-board span { height:64px; display:grid; place-items:center; border-radius: 18px; background: var(--light-pink); color:var(--coral-dark); font-weight:950; }
.mini-race { position:relative; height:110px; border-radius:24px; background: linear-gradient(90deg, var(--light-pink), white); border:1px solid var(--stroke); overflow:hidden; }
.mini-race::before { content:''; position:absolute; left:20px; right:76px; top:54px; border-top: 6px dotted var(--soft-grey); }
.horse { position:absolute; left:24px; top:24px; font-size:54px; color:var(--coral-dark); }
.finish { position:absolute; right:18px; top:38px; font-weight:950; }
.mini-stage { min-height: 150px; }
.mini-stage .monster { transform: scale(.62); right: 4%; bottom: -6px; }
.mini-stage .flying-arrow { font-size:48px; left:10%; top:35%; }
.activity-log-card { margin-top: 14px; border: 1px solid var(--stroke); border-radius: 20px; padding: 16px; background: rgba(255,255,255,.72); }
.activity-log-card p { margin: 8px 0; font-weight:900; }
.recent-events { margin-top: 12px; }
.small-event { display:flex; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:14px; background: rgba(255,255,255,.58); border:1px solid var(--stroke); font-size:13px; }

@media (max-width: 1000px) {
  .hero, .grid-2, .trainer-layout, .observer-grid { grid-template-columns: 1fr; }
  .grid-3, .station-map, .match-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side, .observer-preview { position: static; max-height: none; }
  .character { width:150px; }
  .quest-title-card { width:auto; right:28px; }
  .topbar { align-items:flex-start; border-radius: 26px; }
}
@media (max-width: 640px) {
  .app-shell { width: min(100vw - 20px, 1360px); padding-top: 12px; }
  .topbar, .team-row { flex-direction: column; align-items:flex-start; }
  .segmented { grid-template-columns:1fr; }
  .character.knight { left:2%; } .character.wizard { right:0; }
  .grid-3, .station-map, .match-board, .editor-panel .editor-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  h1 { font-size: 48px; }
}

.timer-tools .quick-timers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.compact-label { gap: 6px; }
.timer-input { max-width: 160px; }
.editor-section {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid var(--stroke);
}
.station-editor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.station-edit-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--stroke);
}
@media (max-width: 900px) {
  .station-editor-list { grid-template-columns: 1fr; }
  .timer-tools .quick-timers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v5: стартовый экран без технических карточек, мягкий glassmorphism в коралловой стилистике */
.soft-note {
  margin-top: 30px;
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
  padding: 18px 20px;
  border: 1px solid rgba(245, 140, 170, .22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,.76), rgba(255,226,233,.48));
  box-shadow: 0 18px 46px rgba(231, 101, 143, .12);
  backdrop-filter: blur(18px);
}
.soft-note b { color: var(--ink); font-size: 18px; }
.soft-note span { color: var(--muted); line-height: 1.45; }

.brand-scene {
  min-height: 500px;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.86);
  background:
    radial-gradient(circle at 22% 16%, rgba(245, 140, 170, .32), transparent 25%),
    radial-gradient(circle at 78% 14%, rgba(255, 226, 233, .9), transparent 24%),
    radial-gradient(circle at 58% 84%, rgba(220, 221, 225, .56), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,247,250,.6));
}
.brand-scene::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.56);
  background:
    linear-gradient(120deg, transparent 0 28%, rgba(255,255,255,.62) 38%, transparent 48% 100%);
  filter: blur(.2px);
  opacity: .8;
}
.brand-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .9;
}
.orb-one { width: 190px; height: 190px; left: -40px; bottom: 36px; background: rgba(245,140,170,.34); }
.orb-two { width: 150px; height: 150px; right: 30px; top: 40px; background: rgba(255,226,233,.92); }
.orb-three { width: 210px; height: 210px; right: 78px; bottom: -70px; background: rgba(255,255,255,.9); }

.glass-route-card, .glass-main-card, .floating-chip {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(255,255,255,.58);
  box-shadow: 0 22px 52px rgba(39,37,31,.10);
  backdrop-filter: blur(20px);
}
.glass-route-card {
  left: 34px;
  right: 34px;
  top: 34px;
  padding: 18px;
  border-radius: 24px;
}
.route-label {
  color: var(--coral-dark);
  font-weight: 950;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.route-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  position: relative;
}
.route-line::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--coral), rgba(245,140,170,.25));
  transform: translateY(-50%);
  border-radius: 999px;
}
.route-line span {
  width: 34px;
  height: 34px;
  z-index: 1;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--coral), #FFB0C5);
  box-shadow: 0 12px 22px rgba(245,140,170,.24);
}
.route-names {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}
.glass-main-card {
  left: 44px;
  bottom: 42px;
  width: 270px;
  padding: 22px;
  border-radius: 28px;
}
.glass-main-card h3 { margin-bottom: 8px; }
.glass-main-card p { margin: 0; color: var(--muted); line-height: 1.4; }
.scene-badge {
  display: inline-flex;
  padding: 7px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  color: var(--coral-dark);
  background: rgba(245,140,170,.15);
  font-weight: 950;
  font-size: 13px;
}
.friendly-courier {
  position: absolute;
  z-index: 3;
  right: 76px;
  bottom: 54px;
  width: 210px;
  height: 260px;
}
.courier-head {
  position: absolute;
  left: 58px;
  top: 8px;
  width: 94px;
  height: 94px;
  border-radius: 36px;
  background: #FFE2E9;
  box-shadow: inset 0 -8px 0 rgba(245,140,170,.12), 0 18px 32px rgba(39,37,31,.08);
}
.courier-head::before, .courier-head::after {
  content: '';
  position: absolute;
  top: 42px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.courier-head::before { left: 28px; }
.courier-head::after { right: 28px; }
.courier-head span {
  position: absolute;
  left: 34px;
  bottom: 22px;
  width: 28px;
  height: 12px;
  border-bottom: 5px solid var(--warm-grey);
  border-radius: 0 0 20px 20px;
}
.courier-body {
  position: absolute;
  left: 46px;
  top: 100px;
  width: 118px;
  height: 104px;
  border-radius: 36px 36px 26px 26px;
  background: linear-gradient(135deg, var(--coral), #FFB0C5);
  box-shadow: 0 24px 40px rgba(245,140,170,.28);
}
.courier-body::before, .courier-body::after {
  content: '';
  position: absolute;
  top: 22px;
  width: 46px;
  height: 14px;
  border-radius: 999px;
  background: #FFE2E9;
}
.courier-body::before { left: -32px; transform: rotate(-28deg); }
.courier-body::after { right: -32px; transform: rotate(28deg); }
.courier-bag {
  position: absolute;
  right: 4px;
  top: 118px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: var(--coral-dark);
  font-weight: 950;
  font-size: 30px;
  border-radius: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(245,140,170,.2);
  box-shadow: 0 16px 32px rgba(39,37,31,.1);
}
.courier-leg {
  position: absolute;
  top: 196px;
  width: 28px;
  height: 58px;
  border-radius: 999px;
  background: var(--warm-grey);
}
.courier-leg.left { left: 70px; transform: rotate(8deg); }
.courier-leg.right { right: 70px; transform: rotate(-8deg); }
.floating-chip {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
}
.chip-one { left: 70px; top: 182px; }
.chip-two { right: 50px; top: 198px; }
.chip-three { right: 210px; bottom: 38px; }

/* Добрый визуал Возражуна в финале, без хоррор-эффекта */
.monster {
  background: linear-gradient(180deg, #807A76, #5F5A56);
  border: 1px solid rgba(255,255,255,.24);
}
.monster::before, .monster::after { background: #FFE2E9; }

@media (max-width: 1000px) {
  .friendly-courier { right: 22px; transform: scale(.86); transform-origin: bottom right; }
  .glass-main-card { width: 240px; }
}
@media (max-width: 640px) {
  .brand-scene { min-height: 460px; }
  .glass-route-card { left: 18px; right: 18px; top: 18px; }
  .glass-main-card { left: 18px; bottom: 20px; width: calc(100% - 36px); }
  .friendly-courier { opacity: .28; right: -24px; }
  .floating-chip { display: none; }
}

/* v7 participant registration: чистый коралловый glassmorphism по референсу */
:root {
  --coral: #FF647C;
  --coral-dark: #E95470;
  --light-pink: #FFE8ED;
  --peach: #FFF2F5;
  --bg: #FFF7F8;
  --ink: #24231F;
  --muted: #817A78;
  --stroke: rgba(36, 35, 31, .10);
  --shadow: 0 28px 80px rgba(196, 79, 108, .13);
  --shadow-soft: 0 16px 42px rgba(36, 35, 31, .075);
}

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 232, 237, .96), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(255, 100, 124, .18), transparent 26%),
    radial-gradient(circle at 86% 88%, rgba(255, 100, 124, .12), transparent 28%),
    linear-gradient(135deg, #FFF8F9, #FFFFFF 52%, #FFF3F6);
}

.topbar {
  padding: 14px 18px;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, .72);
  border-color: rgba(255,255,255,.76);
  box-shadow: 0 18px 54px rgba(191, 92, 119, .12);
}
.logo { letter-spacing: -.045em; font-size: 21px; }
.logo-mark { background: linear-gradient(135deg, #FF647C, #FF9A72); border-radius: 17px; }
.kicker-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.registration-layout {
  display: grid;
  grid-template-columns: minmax(460px, .94fr) minmax(520px, 1.06fr);
  gap: 22px;
  align-items: stretch;
}
.registration-card,
.registration-side {
  min-height: 635px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.66));
  border: 1px solid rgba(255,255,255,.78);
  backdrop-filter: blur(22px);
}
.registration-card {
  padding: clamp(28px, 3.2vw, 44px);
}
.registration-card::before,
.registration-side::before {
  content: '';
  position: absolute;
  inset: -35% -25% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 100, 124, .14), transparent 68%);
  pointer-events: none;
}
.registration-card h2 {
  font-size: clamp(42px, 4.7vw, 66px);
  max-width: 760px;
  margin-bottom: 18px;
}
.compact-lead {
  font-size: clamp(18px, 1.45vw, 22px);
  max-width: 670px;
  line-height: 1.48;
  margin-bottom: 26px;
}
.participant-form {
  position: relative;
  z-index: 2;
  max-width: 650px;
  gap: 16px;
}
.participant-form .label {
  font-size: 15px;
  letter-spacing: -.01em;
}
.participant-form input,
.participant-form textarea {
  border-radius: 19px;
  border-color: rgba(36,35,31,.12);
  background: rgba(255,255,255,.9);
  padding: 15px 16px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 8px 26px rgba(36,35,31,.04);
}
.participant-form textarea { min-height: 112px; }
.participant-form input::placeholder,
.participant-form textarea::placeholder { color: rgba(129,122,120,.72); font-weight: 700; }
.register-btn {
  margin-top: 10px;
  min-height: 58px;
  font-size: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FF647C, #FF8068);
  box-shadow: 0 18px 40px rgba(255, 100, 124, .28);
}
.color-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.color-dot {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 16px;
  border: 5px solid rgba(255,255,255,.95);
  background: var(--dot);
  box-shadow: 0 10px 28px rgba(36,35,31,.12);
  font-weight: 950;
  font-size: 18px;
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}
.color-dot:not(:disabled):hover { transform: translateY(-2px); }
.color-dot.active {
  outline: 3px solid rgba(255, 100, 124, .36);
  box-shadow: 0 0 0 6px rgba(255, 100, 124, .10), 0 12px 32px rgba(36,35,31,.13);
}
.color-dot.taken {
  opacity: .34;
  filter: grayscale(.18);
  cursor: not-allowed;
  color: rgba(36,35,31,.75);
  position: relative;
}
.color-dot.taken::after {
  content: '';
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(36,35,31,.5);
  transform: rotate(-34deg);
}
.color-help { margin-top: 6px; }

.registration-side { padding: clamp(22px, 3vw, 34px); }
.participant-panel {
  position: relative;
  height: 100%;
  min-height: 568px;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 15%, rgba(255,232,237,.86), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(255,100,124,.12), transparent 26%),
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,248,249,.52));
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.route-card {
  position: relative;
  z-index: 2;
  padding: 24px 22px 28px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.route-card h3 { margin-bottom: 26px; font-size: 24px; }
.route-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.route-track::before {
  content: '';
  position: absolute;
  left: 7%;
  right: 7%;
  top: 31px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255,100,124,.46), rgba(255,100,124,.2));
  border-radius: 999px;
}
.route-point {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  min-width: 0;
}
.route-circle {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 2px solid rgba(255, 100, 124, .18);
  box-shadow: 0 12px 26px rgba(255, 100, 124, .14);
}
.route-circle svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-point span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
}
.route-landscape {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 82px;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(ellipse at 14% 105%, rgba(255, 100, 124, .18), transparent 52%),
    radial-gradient(ellipse at 86% 106%, rgba(255, 100, 124, .16), transparent 50%);
}
.route-landscape::before {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 23px;
  height: 28px;
  border-top: 3px dashed rgba(255,100,124,.24);
  border-radius: 50%;
}
.participant-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.step-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: var(--shadow-soft);
}
.step-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,100,124,.08);
  border: 1px solid rgba(255,100,124,.12);
  color: var(--coral);
  font-size: 30px;
  font-weight: 950;
}
.step-card b {
  display: block;
  line-height: 1.2;
  font-size: 17px;
  letter-spacing: -.02em;
}
.step-card b span { color: var(--coral); font-size: 26px; }
.step-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.45; font-size: 14px; }
.route-note {
  position: absolute;
  left: 26px;
  right: 210px;
  bottom: 28px;
  z-index: 3;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,100,124,.16);
  color: var(--muted);
  font-weight: 760;
}
.mascot-img {
  position: absolute;
  z-index: 4;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(36,35,31,.10));
}
.mascot-form {
  width: 168px;
  right: 32px;
  bottom: 94px;
}
.mascot-chill {
  width: 170px;
  right: 22px;
  bottom: 12px;
  transform: rotate(-5deg);
}

@media (max-width: 1180px) {
  .registration-layout { grid-template-columns: 1fr; }
  .registration-card, .registration-side { min-height: auto; }
  .participant-panel { min-height: 560px; }
}
@media (max-width: 760px) {
  .registration-card h2 { font-size: 42px; }
  .participant-steps { grid-template-columns: 1fr; }
  .route-track { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .route-track::before { display: none; }
  .route-note { position: relative; left: auto; right: auto; bottom: auto; margin-top: 20px; }
  .mascot-form { display: none; }
  .mascot-chill { width: 120px; opacity: .55; }
}


/* v8 fixes: шрифты, сетка маршрута, персонажи, состояния форм */
html, body, button, input, textarea, select {
  font-family: var(--font);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*, *::before, *::after { min-width: 0; }
.logo > div:last-child { min-width: 0; }
.topbar-right { min-width: 0; }
.topbar .small-text { display: none; }
.timer.expired { background: var(--red); color: #fff; }
.registration-layout { grid-template-columns: minmax(520px, .9fr) minmax(620px, 1.1fr); }
.registration-card { overflow: hidden; }
.participant-form { max-width: 100%; padding-right: 0; }
.mascot-form { display: none; }
.registration-card::after {
  content: '';
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,100,124,.12), transparent 70%);
  pointer-events: none;
}
.form-status { min-height: 18px; font-weight: 760; color: var(--muted); }
button:disabled, .btn:disabled, .color-dot:disabled {
  cursor: not-allowed;
}
.route-card { padding: 24px 24px 30px; }
.route-card h3 { margin-bottom: 22px; }
.route-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(74px, 1fr));
  gap: 10px;
  align-items: start;
}
.route-track::before {
  left: 8%;
  right: 8%;
  top: 30px;
  z-index: 0;
}
.route-point { z-index: 1; gap: 10px; }
.route-circle {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}
.route-circle svg { width: 25px; height: 25px; }
.route-point span {
  display: block;
  width: 100%;
  max-width: 92px;
  min-height: 46px;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  hyphens: auto;
}
.participant-steps { margin-top: 24px; }
.step-card { min-height: 188px; padding: 20px; overflow: hidden; }
.step-card b { font-size: 16px; }
.step-card p { font-size: 13px; }
.route-note { right: 180px; }
.mascot-chill {
  width: 138px;
  right: 28px;
  bottom: 18px;
  opacity: .9;
}
.input, input, textarea, select { font-weight: 650; }
.label { line-height: 1.25; }
.locked-hint b { color: var(--ink); }

@media (max-width: 1280px) {
  .registration-layout { grid-template-columns: 1fr; }
  .route-track { grid-template-columns: repeat(6, minmax(70px, 1fr)); }
}
@media (max-width: 860px) {
  .route-track { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .route-track::before { display: none; }
  .route-point span { max-width: 120px; }
  .mascot-chill { display: none; }
  .route-note { right: 26px; }
}

/* v9: UX fixes for trainer panel, matching game, final objection and argument review */
.trainer-layout { grid-template-columns: 370px 1fr; }
.segmented { grid-template-columns: 1fr; }
.segmented button {
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.nav-station { grid-template-columns: auto minmax(0, 1fr); }
.nav-station .small-text { grid-column: 2; }
.side { scrollbar-gutter: stable; }
.match-helper {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,100,124,.08);
  border: 1px solid rgba(255,100,124,.14);
  color: var(--muted);
}
.match-helper b { color: var(--ink); }
.match-board.match-board-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.match-column {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.52);
  border: 1px solid var(--stroke);
}
.match-column h3 { margin: 0 0 4px; font-size: 20px; }
.match-board-split .match-card { min-height: 104px; }
.match-card.done { display: none; }
.argument-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.argument-fields .btn,
.argument-fields .locked-hint { grid-column: 1 / -1; }
.argument-label { gap: 6px; }
.benefit-review-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  margin: 12px 0;
}
.benefit-review-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 800;
}
.benefit-review-list input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  accent-color: var(--coral);
  box-shadow: none;
}
.final-objection-box {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,100,124,.12), rgba(255,255,255,.72));
  border: 1px solid rgba(255,100,124,.18);
}
.final-objection-box span { color: var(--muted); font-weight: 850; }
.final-objection-box b { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.05; color: var(--ink); }
.final-tools select { font-size: 14px; }
@media (max-width: 1000px) {
  .trainer-layout { grid-template-columns: 1fr; }
  .match-board.match-board-split, .argument-fields { grid-template-columns: 1fr; }
}

/* v10 refinements */
.side .segmented { grid-template-columns: 1fr; }
.side .segmented button { text-align: left; padding: 12px 14px; white-space: normal; line-height: 1.15; }
.final-assignment-list { display: grid; gap: 10px; }
.final-assignment-row { display: grid; grid-template-columns: minmax(120px, .85fr) minmax(0, 1.4fr); gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.64); border: 1px solid var(--stroke); }
.final-assignment-row select { min-width: 0; }
.score-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.scoring-editor-section { margin-top: 18px; }
.objection-card.mini .objection-text { font-size: 24px; line-height: 1.05; letter-spacing: -.03em; }
@media (max-width: 860px) {
  .final-assignment-row, .score-editor-grid { grid-template-columns: 1fr; }
}

/* v11 music controls */
.music-tools {
  gap: 12px;
  background: linear-gradient(135deg, rgba(255,100,124,.10), rgba(255,255,255,.72));
}
.music-current {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.66);
  border: 1px solid var(--stroke);
}
.music-current b {
  display: block;
  font-size: 16px;
  line-height: 1.1;
}
.music-seek {
  width: 100%;
  height: 34px;
  padding: 0;
  accent-color: var(--coral);
  box-shadow: none;
  background: transparent;
}
.music-time {
  margin-top: -8px;
  text-align: right;
}
.music-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.music-buttons + .music-buttons {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}
.music-buttons .btn {
  width: 100%;
  min-height: 38px;
  padding-inline: 10px;
  white-space: normal;
}
@media (max-width: 860px) {
  .music-buttons, .music-buttons + .music-buttons { grid-template-columns: 1fr; }
}

.speed-bonus-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  margin: 16px 0 20px;
  border: 1px solid rgba(255, 100, 124, .22);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,244,247,.72));
  box-shadow: 0 18px 48px rgba(255, 100, 124, .12);
}
.speed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.speed-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-pill.winner {
  background: #fff1b8;
  border-color: rgba(240, 180, 40, .45);
  color: #3b2a00;
  font-weight: 800;
}
.review-objection {
  margin: 8px 0 14px;
}
@media (max-width: 980px) {
  .speed-bonus-card {
    grid-template-columns: 1fr;
  }
  .speed-actions {
    justify-content: flex-start;
  }
}

.round-closed-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 160, 172, .28), transparent 42%),
    rgba(255, 248, 249, .64);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}
.round-closed-card {
  width: min(560px, 92vw);
  padding: clamp(26px, 4vw, 44px);
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,242,245,.88));
  border: 1px solid rgba(255, 107, 95, .22);
  box-shadow: 0 34px 90px rgba(241, 83, 103, .22);
}
.round-closed-card h2 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: .96;
}
.round-closed-card p {
  max-width: 440px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 18px;
}
.round-closed-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: white;
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  box-shadow: 0 18px 42px rgba(255, 107, 95, .32);
}

.audio-unlock {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 16px 14px 18px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,241,245,.9));
  border: 1px solid rgba(255, 107, 95, .22);
  box-shadow: 0 22px 70px rgba(241, 83, 103, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.audio-unlock div {
  display: grid;
  gap: 3px;
}
.audio-unlock b {
  font-size: 15px;
}
.audio-unlock span {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 640px) {
  .audio-unlock {
    left: 16px;
    right: 16px;
    bottom: 16px;
    align-items: stretch;
    flex-direction: column;
  }
}

.profile-switcher {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
  padding: 14px;
  border-radius: 24px;
  background: rgba(255, 246, 248, .72);
  border: 1px solid rgba(255, 107, 95, .18);
}

.profile-select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(39, 37, 31, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  outline: none;
}
.profile-select:focus {
  border-color: rgba(255, 107, 95, .48);
  box-shadow: 0 0 0 4px rgba(255, 107, 95, .14);
}

.profile-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.profile-current span {
  color: var(--muted);
  font-size: 12px;
}
.profile-list {
  display: grid;
  gap: 8px;
}
.profile-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(39, 37, 31, .08);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
  color: var(--text);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.profile-pill.active {
  color: #fff;
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  box-shadow: 0 12px 30px rgba(255, 107, 95, .24);
}
.artifacts-layout {
  align-items: start;
}
.participant-artifact {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(39,37,31,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(39,37,31,.05);
}
.participant-artifact span:first-child {
  display: grid;
  gap: 4px;
}
.participant-artifact.active,
.artifact-card.active {
  border-color: rgba(255, 100, 124, .55);
  box-shadow: 0 0 0 4px rgba(255, 100, 124, .16), 0 18px 42px rgba(255, 100, 124, .14);
}
.participant-artifact.done {
  background: rgba(255, 242, 246, .9);
}
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-height: 540px;
  overflow: auto;
  padding-right: 4px;
}
.artifact-card {
  min-height: 180px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 100, 124, .18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,245,247,.76));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(39,37,31,.06);
}
.artifact-card.taken {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.25);
}
.artifact-emoji {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 100, 124, .12);
  font-size: 30px;
}
.artifact-emoji.small {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-size: 22px;
  flex: 0 0 auto;
}
.choose-note,
.taken-note {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.taken-note {
  color: var(--coral);
  font-weight: 800;
}
.artifact-choice-box,
.artifact-form {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(39,37,31,.08);
}
.artifact-claims-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 28px;
}
.artifact-claim-row {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(39,37,31,.08);
}
.artifact-claim-row p {
  margin: 6px 0 0;
  color: var(--muted);
}
@media (max-width: 920px) {
  .artifact-grid { max-height: none; }
}

/* v19: личный вход участника для выбора артефакта */
.participant-login-layout { align-items: start; }
.team-login-list { max-height: 620px; overflow: auto; padding-right: 4px; }
.team-login-card { display: grid; gap: 14px; }
.color-mini {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255,255,255,.9), 0 8px 18px rgba(39,37,31,.12);
  flex: 0 0 auto;
}
.team-member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
.team-member-choice {
  border: 1px solid rgba(39,37,31,.08);
  background: rgba(255,255,255,.82);
  border-radius: 18px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(39,37,31,.05);
}
.team-member-choice:hover {
  border-color: rgba(255, 100, 124, .42);
  transform: translateY(-1px);
}
.team-member-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.team-member-choice.done {
  background: rgba(255,242,246,.88);
}
.participant-floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
}
.success-box {
  border-color: rgba(86, 190, 128, .28);
  background: rgba(245,255,248,.86);
}
@media (max-width: 720px) {
  .participant-floating-actions { right: 14px; bottom: 14px; }
  .team-member-grid { grid-template-columns: 1fr; }
}


/* Cinematic legend screens */
.station-launch-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
.station-launch-row.active {
  padding: 4px;
  border-radius: 24px;
  background: rgba(245, 140, 170, .10);
}
.station-launch-row .nav-station {
  width: 100%;
}
.legend-cinema-screen {
  min-height: calc(100vh - 130px);
  display: grid;
  align-items: center;
}
.legend-cinema {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 18%, rgba(245,140,170,.24), transparent 32%),
    radial-gradient(circle at 84% 22%, rgba(255,209,102,.20), transparent 30%),
    rgba(255,255,255,.78);
}
.cinema-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
}
.cinema-bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  animation: floatCinema 9s ease-in-out infinite alternate;
}
.cinema-bg span:nth-child(1) { width: 220px; height: 220px; background: rgba(245,140,170,.35); left: 8%; top: 8%; }
.cinema-bg span:nth-child(2) { width: 180px; height: 180px; background: rgba(255,209,102,.32); right: 12%; top: 20%; animation-delay: 1.5s; }
.cinema-bg span:nth-child(3) { width: 260px; height: 260px; background: rgba(162,139,255,.18); right: 26%; bottom: 4%; animation-delay: 2.5s; }
@keyframes floatCinema {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(22px,-18px,0) scale(1.08); }
}
.legend-cinema > *:not(.cinema-bg) { position: relative; z-index: 1; }
.legend-cinema h2 {
  max-width: 920px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .92;
  margin: 10px 0 28px;
}
.cinema-frame-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.cinema-frame {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(39,37,31,.08);
  box-shadow: var(--shadow-soft);
  animation: frameIn .6s ease both;
  animation-delay: calc(var(--delay) * .12s);
}
.frame-number {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--coral);
  color: white;
  font-weight: 800;
}
.cinema-frame p {
  margin: 0;
  font-size: clamp(18px, 1.7vw, 26px);
  line-height: 1.35;
  color: var(--text);
}
@keyframes frameIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.cinema-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.editor-subtitle {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255,226,233,.46);
  border: 1px solid rgba(245,140,170,.18);
}

.topbar-link {
  border: 1px solid rgba(255, 92, 119, .28);
  background: rgba(255, 255, 255, .74);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 92, 119, .10);
}
.topbar-link:hover { transform: translateY(-1px); }
.return-team-btn { width: 100%; margin: 10px 0 16px; }

/* Story video immersion */
.legend-video-card {
  padding: clamp(22px, 3vw, 44px);
}
.story-video {
  position: relative;
  min-height: clamp(420px, 52vw, 620px);
  margin: 16px 0 22px;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.76), transparent 26%),
    linear-gradient(135deg, #FFE7EE 0%, #FFF8F8 42%, #FFE3D7 100%);
  box-shadow: 0 28px 80px rgba(245, 140, 170, .24);
  isolation: isolate;
}
.story-video::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.32) 48%, rgba(255,255,255,.72));
  z-index: 1;
  pointer-events: none;
}
.story-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,209,102,.52) 0 8%, transparent 9%),
    radial-gradient(circle at 16% 30%, rgba(162,139,255,.14), transparent 22%),
    linear-gradient(180deg, rgba(255,244,247,.9), rgba(255,255,255,.2));
  animation: skyBreath 9s ease-in-out infinite alternate;
}
@keyframes skyBreath { from { transform: scale(1); filter: saturate(1); } to { transform: scale(1.03); filter: saturate(1.12); } }
.story-landscape, .story-characters, .story-caption-stack { position: absolute; inset: 0; }
.hill {
  position: absolute;
  bottom: -80px;
  width: 62%;
  height: 230px;
  border-radius: 50% 50% 0 0;
  background: rgba(97,199,128,.18);
  filter: blur(.2px);
}
.hill-one { left: -8%; }
.hill-two { right: -12%; bottom: -100px; background: rgba(245,140,170,.18); }
.castle-main, .castle-tower {
  position: absolute;
  bottom: 118px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(39,37,31,.08);
  box-shadow: 0 18px 48px rgba(39,37,31,.08);
  display: none;
}
.castle-main { left: 11%; width: 190px; height: 106px; border-radius: 28px 28px 18px 18px; }
.castle-main::before {
  content: '';
  position: absolute;
  left: 46px;
  top: -52px;
  width: 96px;
  height: 72px;
  background: linear-gradient(135deg, var(--coral), #FFB0C5);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.castle-tower { bottom: 116px; width: 58px; height: 154px; border-radius: 22px 22px 12px 12px; }
.tower-one { left: 8%; }
.tower-two { left: 24%; height: 136px; }
.forest-tree {
  position: absolute;
  bottom: 98px;
  width: 0;
  height: 0;
  border-left: 72px solid transparent;
  border-right: 72px solid transparent;
  border-bottom: 190px solid rgba(97,199,128,.24);
  display: none;
}
.forest-tree::after {
  content: '';
  position: absolute;
  left: -12px;
  top: 158px;
  width: 24px;
  height: 70px;
  border-radius: 999px;
  background: rgba(128,122,118,.32);
}
.tree-one { left: 8%; }
.tree-two { right: 12%; transform: scale(.82); }
.mine-arch {
  position: absolute;
  display: none;
  left: 7%;
  bottom: 100px;
  width: 250px;
  height: 210px;
  border-radius: 130px 130px 18px 18px;
  background: linear-gradient(135deg, rgba(39,37,31,.82), rgba(128,122,118,.54));
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.14), 0 28px 70px rgba(39,37,31,.22);
}
.road-line {
  position: absolute;
  display: none;
  left: 6%;
  right: 6%;
  bottom: 102px;
  height: 130px;
  border-radius: 999px;
  border-bottom: 28px solid rgba(255,154,114,.34);
  transform: perspective(360px) rotateX(50deg);
}
.story-knight, .story-wizard {
  position: absolute;
  z-index: 4;
  width: 128px;
  height: 190px;
  bottom: 92px;
}
.story-knight { left: 46%; animation: knightStep 4.8s ease-in-out infinite; }
.knight-two { left: 56%; transform: scale(.9); animation-delay: .8s; }
@keyframes knightStep { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.story-knight .helmet {
  position: absolute;
  top: 4px;
  left: 35px;
  width: 62px;
  height: 58px;
  border-radius: 24px 24px 18px 18px;
  background: linear-gradient(135deg, #fff, #dfe0e4);
  box-shadow: inset 0 -8px 0 rgba(128,122,118,.12);
}
.story-knight .helmet::before, .story-knight .helmet::after {
  content: '';
  position: absolute;
  top: 26px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}
.story-knight .helmet::before { left: 18px; }
.story-knight .helmet::after { right: 18px; }
.story-knight .body {
  position: absolute;
  left: 26px;
  top: 70px;
  width: 78px;
  height: 86px;
  border-radius: 28px 28px 20px 20px;
  background: linear-gradient(135deg, #fff, #e6e6ea);
  border: 1px solid rgba(39,37,31,.06);
}
.story-knight .body::before { content: ''; position: absolute; inset: 14px 28px; border-radius: 999px; background: var(--coral); }
.story-knight .sword {
  position: absolute;
  right: 5px;
  top: 66px;
  width: 9px;
  height: 116px;
  border-radius: 999px;
  background: linear-gradient(#fff, #aab0bb);
  transform: rotate(14deg);
}
.story-knight .shield {
  position: absolute;
  left: 0;
  top: 92px;
  width: 45px;
  height: 55px;
  border-radius: 50% 50% 45% 45%;
  background: linear-gradient(135deg, var(--coral), #FFB0C5);
  box-shadow: 0 10px 24px rgba(245,140,170,.24);
}
.story-wizard {
  right: 13%;
  display: none;
  animation: wizardFloat 3.8s ease-in-out infinite;
}
@keyframes wizardFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.story-wizard .hat {
  position: absolute;
  left: 30px;
  top: -8px;
  width: 74px;
  height: 84px;
  background: #292722;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.story-wizard .face {
  position: absolute;
  left: 35px;
  top: 50px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #FFE2E9;
}
.story-wizard .face::before, .story-wizard .face::after {
  content: '';
  position: absolute;
  top: 27px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #292722;
}
.story-wizard .face::before { left: 18px; }
.story-wizard .face::after { right: 18px; }
.story-wizard .robe {
  position: absolute;
  left: 18px;
  top: 104px;
  width: 98px;
  height: 92px;
  border-radius: 32px 32px 16px 16px;
  background: linear-gradient(135deg, #292722, #685766);
}
.story-wizard .staff {
  position: absolute;
  right: 0;
  top: 72px;
  width: 8px;
  height: 128px;
  border-radius: 999px;
  background: #292722;
  transform: rotate(-14deg);
}
.story-wizard .staff::before {
  content: '✦';
  position: absolute;
  top: -36px;
  left: -20px;
  color: #FFD166;
  font-size: 46px;
  text-shadow: 0 0 22px rgba(255,209,102,.9);
}
.story-arrow {
  position: absolute;
  display: none;
  z-index: 5;
  left: 34%;
  top: 48%;
  width: 180px;
  height: 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 28px rgba(255,255,255,.9);
}
.story-arrow::before { content: ''; position: absolute; right: -24px; top: -12px; border-left: 28px solid #fff; border-top: 17px solid transparent; border-bottom: 17px solid transparent; }
.arrow-one { animation: arrowStrike 2.4s ease-in-out infinite; }
.arrow-two { top: 56%; animation: arrowStrike 2.4s ease-in-out .6s infinite; }
@keyframes arrowStrike { 0% { transform: translateX(-230px); opacity: 0; } 25%,70% { opacity: 1; } 100% { transform: translateX(460px); opacity: 0; } }
.story-artifacts {
  position: absolute;
  display: none;
  z-index: 5;
  left: 50%;
  bottom: 150px;
  transform: translateX(-50%);
  gap: 22px;
}
.story-artifacts span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  font-size: 44px;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 50px rgba(39,37,31,.12);
  animation: artifactGlow 2.6s ease-in-out infinite alternate;
}
.story-artifacts span:nth-child(2) { animation-delay: .3s; }
.story-artifacts span:nth-child(3) { animation-delay: .6s; }
.story-artifacts span:nth-child(4) { animation-delay: .9s; }
@keyframes artifactGlow { from { transform: translateY(0) scale(1); } to { transform: translateY(-16px) scale(1.05); } }
.victory-burst { position:absolute; inset:0; display:none; z-index:3; pointer-events:none; }
.victory-burst span { position:absolute; width:10px; height:10px; border-radius:50%; background:#FFD166; box-shadow:0 0 28px #FFD166; animation: burstFly 2.2s ease-in-out infinite; }
.victory-burst span:nth-child(1){left:20%;top:24%;}.victory-burst span:nth-child(2){left:70%;top:20%;animation-delay:.4s}.victory-burst span:nth-child(3){left:36%;top:65%;animation-delay:.8s}.victory-burst span:nth-child(4){left:84%;top:58%;animation-delay:1.2s}
@keyframes burstFly { from { transform: scale(.5); opacity:.2; } 50% { opacity:1; } to { transform: scale(2.4); opacity:0; } }
.story-caption-stack {
  z-index: 7;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: clamp(20px, 4vw, 42px);
}
.story-caption {
  max-width: 860px;
  padding: 18px 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 18px 44px rgba(39,37,31,.08);
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.32;
  font-weight: 850;
  animation: captionReveal 9s ease-in-out infinite both;
}
.caption-2 { animation-delay: 2.5s; }
.caption-3 { animation-delay: 5s; }
@keyframes captionReveal { 0%,12% { opacity:0; transform:translateY(18px); } 20%,74% { opacity:1; transform:translateY(0); } 88%,100% { opacity:.15; transform:translateY(-8px); } }
.scene-kingdom .castle-main, .scene-kingdom .castle-tower { display:block; }
.scene-forest .forest-tree { display:block; }
.scene-field .castle-main, .scene-field .castle-tower { display:block; opacity:.55; }
.scene-field .road-line { display:block; }
.scene-mine .mine-arch { display:block; }
.scene-road .road-line { display:block; }
.scene-battle .story-wizard, .scene-victory .story-wizard { display:block; }
.scene-battle .story-arrow, .scene-victory .story-arrow { display:block; }
.scene-artifacts .story-artifacts, .scene-victory .story-artifacts { display:flex; }
.scene-victory .victory-burst { display:block; }
.scene-victory .story-wizard { animation: wizardDefeat 4.8s ease-in-out infinite; opacity:.55; }
@keyframes wizardDefeat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(16px) rotate(-7deg); opacity:.25; } }
.victory-card .story-video {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,209,102,.38), transparent 28%),
    linear-gradient(135deg, #FFF7D6 0%, #FFE7EE 48%, #F8FBFF 100%);
}
.victory-pill { background: rgba(255,209,102,.36); color: #7A5C00; }
.victory-launch { background: rgba(255,209,102,.12); }

@media (max-width: 900px) {
  .story-video { min-height: 560px; }
  .story-wizard { right: 3%; transform: scale(.78); }
  .story-knight { left: 34%; }
  .knight-two { left: 48%; }
  .story-caption { font-size: 17px; }
}

/* v28: cinematic fairytale polish, no technical notes */
.story-actions-clean { justify-content: center; margin-top: 12px; }
.legend-video-card .small-text:empty { display: none; }
.story-video {
  background:
    radial-gradient(circle at 82% 12%, rgba(255,209,102,.60) 0 7%, transparent 8%),
    radial-gradient(circle at 20% 24%, rgba(255,255,255,.66), transparent 24%),
    linear-gradient(180deg, #fff7fb 0%, #ffe9ef 38%, #ffe0d1 100%);
}
.story-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.38) 100%);
}
.story-video .story-caption {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
}
.story-caption-stack {
  align-content: end;
  z-index: 8;
}
.scene-kingdom .story-video,
.story-video.scene-kingdom {
  background:
    radial-gradient(circle at 80% 12%, rgba(255,209,102,.65) 0 7%, transparent 8%),
    linear-gradient(180deg, #fff8fc 0%, #ffe8ef 38%, #dff4e8 100%);
}
.scene-kingdom .castle-main,
.scene-kingdom .castle-tower { opacity: .96; }
.scene-kingdom .story-wizard { display:block; opacity: .72; right: 8%; filter: drop-shadow(0 18px 30px rgba(39,37,31,.18)); }
.scene-kingdom .story-wizard .staff::before { content:'⚡'; color:#7e66ff; text-shadow:0 0 26px rgba(126,102,255,.72); }
.scene-kingdom .story-video::before,
.story-video.scene-kingdom::before {
  background:
    linear-gradient(90deg, transparent 0 52%, rgba(39,37,31,.18) 52% 100%),
    radial-gradient(circle at 84% 25%, rgba(39,37,31,.22), transparent 34%);
}
.scene-forest .story-video,
.story-video.scene-forest {
  background:
    radial-gradient(circle at 78% 16%, rgba(255,209,102,.28), transparent 12%),
    linear-gradient(180deg, #f5fff8 0%, #e9fff0 34%, #d7f1dc 100%);
}
.scene-field .story-video,
.story-video.scene-field {
  background:
    radial-gradient(circle at 80% 16%, rgba(255,209,102,.54), transparent 12%),
    linear-gradient(180deg, #fff8f9 0%, #fff0e9 40%, #ffe0e7 100%);
}
.scene-mine .story-video,
.story-video.scene-mine {
  background:
    radial-gradient(circle at 80% 22%, rgba(255,209,102,.20), transparent 14%),
    linear-gradient(180deg, #45423f 0%, #2d2b28 42%, #181614 100%);
}
.scene-mine .story-caption { color: #292722; }
.scene-mine .story-sky { opacity: .24; }
.scene-road .story-video,
.story-video.scene-road {
  background:
    radial-gradient(circle at 82% 10%, rgba(255,209,102,.62) 0 6%, transparent 7%),
    linear-gradient(180deg, #fff9ef 0%, #ffe7d7 40%, #ffd7c2 100%);
}
.scene-battle .story-video,
.story-video.scene-battle {
  background:
    radial-gradient(circle at 50% 40%, rgba(255,92,119,.18), transparent 28%),
    linear-gradient(180deg, #3b3438 0%, #211f22 54%, #141315 100%);
}
.scene-battle .story-caption { color: #292722; }
.scene-victory .story-video,
.story-video.scene-victory {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,209,102,.42), transparent 30%),
    linear-gradient(135deg, #fff8d8 0%, #ffe6ef 48%, #effff7 100%);
}
.participant-watch-head { min-height: auto; }
.registration-card #openParticipantLogin { margin-top: 8px; }

/* v29: richer story scenes and stable trainer sidebar */
.trainer-layout .side { scroll-behavior: auto; }

.story-video {
  min-height: clamp(480px, 58vw, 680px);
}
.story-video .story-sun {
  position: absolute;
  right: 9%;
  top: 8%;
  width: 136px;
  height: 136px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE89A 0 34%, #FFD166 35% 62%, rgba(255,209,102,0) 63%);
  filter: drop-shadow(0 18px 36px rgba(255,209,102,.45));
  z-index: 2;
  animation: sunFloat 8s ease-in-out infinite alternate;
}
@keyframes sunFloat { from { transform: translateY(0) scale(1); } to { transform: translateY(8px) scale(1.04); } }
.story-cloud {
  position: absolute;
  width: 150px;
  height: 50px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  box-shadow: 30px -10px 0 6px rgba(255,255,255,.62), 68px 2px 0 2px rgba(255,255,255,.52);
  z-index: 2;
  filter: blur(.2px);
  animation: cloudDrift 18s linear infinite;
}
.cloud-one { left: -180px; top: 18%; }
.cloud-two { left: -260px; top: 28%; transform: scale(.72); animation-delay: 8s; }
@keyframes cloudDrift { to { left: 110%; } }
.story-dark-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(38,31,45,.45), transparent 32%),
    linear-gradient(90deg, rgba(25,23,28,.0) 0%, rgba(25,23,28,.62) 100%);
  opacity: 0;
  z-index: 3;
  pointer-events: none;
}
.curse-bolt {
  position: absolute;
  display: none;
  top: 7%;
  right: 20%;
  width: 10px;
  height: 230px;
  z-index: 7;
  background: linear-gradient(#fff, #8d73ff, transparent);
  clip-path: polygon(45% 0, 70% 35%, 52% 35%, 76% 70%, 32% 100%, 48% 62%, 30% 62%, 44% 0);
  filter: drop-shadow(0 0 24px rgba(141,115,255,.9));
  animation: boltFlash 3.8s ease-in-out infinite;
}
.bolt-two { right: 32%; top: 16%; transform: scale(.74) rotate(-12deg); animation-delay: 1.2s; }
@keyframes boltFlash { 0%,64%,100% { opacity:0; } 68%,73% { opacity:1; } 76% { opacity:.25; } }

/* Kingdom intro: first light, then the curse comes */
.story-video.scene-kingdom {
  background:
    radial-gradient(circle at 78% 13%, rgba(255,229,143,.68) 0 8%, transparent 9%),
    linear-gradient(180deg, #fff9fc 0%, #ffeef3 34%, #e3f7e9 78%, #d6f1df 100%);
}
.story-video.scene-kingdom .story-dark-veil { animation: introCurse 11s ease-in-out infinite; }
.story-video.scene-kingdom .curse-bolt { display: block; }
.story-video.scene-kingdom .story-wizard { display:block; opacity:0; animation: wizardIntro 11s ease-in-out infinite; }
.story-video.scene-kingdom .story-knight { animation: knightEntrance 11s ease-in-out infinite; }
.story-video.scene-kingdom .knight-two { animation: knightEntrance 11s ease-in-out .35s infinite; }
@keyframes introCurse { 0%,36% { opacity:0; } 52%,86% { opacity:.9; } 100% { opacity:.28; } }
@keyframes wizardIntro { 0%,34% { opacity:0; transform: translateX(140px) translateY(8px); } 50%,86% { opacity:.95; transform: translateX(0) translateY(-8px); } 100% { opacity:.6; } }
@keyframes knightEntrance { 0%,36% { transform: translateX(-90px); opacity:.2; } 58%,100% { transform: translateX(0); opacity:1; } }

/* Общие персонажи */
.story-courier,
.story-recruiter,
.story-elf,
.story-candidate,
.story-rider {
  position: absolute;
  z-index: 6;
  display: none;
}
.story-courier {
  right: 18%;
  bottom: 106px;
  width: 132px;
  height: 180px;
  animation: angryBounce 3.2s ease-in-out infinite;
}
.courier-head {
  position:absolute; left:32px; top:0; width:76px; height:76px; border-radius:50%;
  background: #FFE2E9;
  box-shadow: inset 0 -8px rgba(39,37,31,.06);
}
.courier-head::before,
.courier-head::after {
  content:''; position:absolute; top:31px; width:17px; height:5px; border-radius:999px; background:#292722;
}
.courier-head::before { left:18px; transform: rotate(18deg); }
.courier-head::after { right:18px; transform: rotate(-18deg); }
.courier-body { position:absolute; left:26px; top:78px; width:84px; height:84px; border-radius:28px; background:linear-gradient(135deg,#ff5c77,#ff9a72); }
.courier-bag { position:absolute; left:0; top:88px; width:42px; height:54px; border-radius:14px; background:#fff; box-shadow:0 18px 34px rgba(39,37,31,.12); }
@keyframes angryBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.story-recruiter { left: 18%; bottom: 112px; width: 136px; height: 180px; }
.recruiter-head { position:absolute; left:34px; top:0; width:70px; height:70px; border-radius:50%; background:#FFE2E9; }
.recruiter-head::before,
.recruiter-head::after { content:''; position:absolute; top:30px; width:8px; height:8px; border-radius:50%; background:#292722; }
.recruiter-head::before{left:20px}.recruiter-head::after{right:20px}
.recruiter-body { position:absolute; left:24px; top:76px; width:90px; height:88px; border-radius:28px; background:linear-gradient(135deg,#fff,#f2f3f5); border:1px solid rgba(39,37,31,.07); }
.speech-bubble { position:absolute; left:98px; top:20px; width:126px; height:64px; border-radius:24px; background:rgba(255,255,255,.9); box-shadow:0 20px 42px rgba(39,37,31,.12); }
.speech-bubble::before { content:'?'; position:absolute; inset:0; display:grid; place-items:center; color:#ff5c77; font-size:36px; font-weight:900; }

.story-elf { right: 16%; bottom: 112px; width: 140px; height: 180px; }
.elf-head { position:absolute; left:36px; top:0; width:72px; height:72px; border-radius:50%; background:#FFE2E9; }
.elf-head::before, .elf-head::after { content:''; position:absolute; top:14px; width:28px; height:18px; background:#FFE2E9; clip-path:polygon(0 50%,100% 0,100% 100%); }
.elf-head::before { left:-18px; transform:rotate(12deg); } .elf-head::after { right:-18px; transform:scaleX(-1) rotate(12deg); }
.elf-body { position:absolute; left:28px; top:78px; width:88px; height:86px; border-radius:28px; background:linear-gradient(135deg,#61c780,#dff4e8); }
.elf-key { position:absolute; right:-6px; top:86px; font-size:58px; filter:drop-shadow(0 18px 22px rgba(255,209,102,.45)); animation:keyGlow 2.2s ease-in-out infinite alternate; }
@keyframes keyGlow { to { transform:rotate(8deg) scale(1.07); } }

.story-candidate { right: 18%; bottom: 104px; width: 150px; height: 190px; }
.candidate-head { position:absolute; left:38px; top:0; width:76px; height:76px; border-radius:50%; background:#FFE2E9; }
.candidate-head::before { content:'!'; position:absolute; inset:0; display:grid; place-items:center; color:#292722; font-size:44px; font-weight:900; }
.candidate-body { position:absolute; left:28px; top:80px; width:94px; height:92px; border-radius:28px; background:linear-gradient(135deg,#a5c8e6,#f1f7ff); }
.echo { position:absolute; left:98px; top:20px; width:86px; height:40px; border-radius:999px; border:2px solid rgba(255,255,255,.72); animation:echoPulse 2.4s ease-in-out infinite; }
.echo-two { top:64px; animation-delay:.7s; }
@keyframes echoPulse { from { transform:scale(.75); opacity:0;} 45%{opacity:1;} to { transform:scale(1.2); opacity:0;} }

.story-rider { left: 22%; bottom: 112px; width: 230px; height: 140px; animation:riderMove 4.6s ease-in-out infinite alternate; }
.horse { position:absolute; left:0; bottom:0; width:170px; height:76px; border-radius:42px; background:#fff; box-shadow:0 22px 40px rgba(39,37,31,.12); }
.horse::before { content:''; position:absolute; right:-32px; top:-26px; width:58px; height:66px; border-radius:28px; background:#fff; }
.horse::after { content:''; position:absolute; left:28px; bottom:-34px; width:18px; height:42px; border-radius:999px; background:#fff; box-shadow:76px 0 #fff; }
.rider { position:absolute; left:68px; bottom:62px; width:48px; height:78px; border-radius:22px; background:linear-gradient(135deg,#ff5c77,#ff9a72); }
.rider::before { content:''; position:absolute; left:5px; top:-42px; width:42px; height:42px; border-radius:50%; background:#FFE2E9; }
@keyframes riderMove { from{transform:translateX(-10px)} to{transform:translateX(32px)} }

.story-video.scene-forest .story-courier,
.story-video.scene-forest .story-recruiter,
.story-video.scene-forest .forest-tree { display:block; }
.story-video.scene-forest .story-knight { left: 42%; bottom: 88px; }
.story-video.scene-field .story-elf,
.story-video.scene-field .story-recruiter,
.story-video.scene-field .field-path { display:block; }
.story-video.scene-field .field-path { position:absolute; left:10%; right:10%; bottom:120px; height:94px; border-radius:999px; background:rgba(255,255,255,.42); transform:perspective(300px) rotateX(56deg); }
.story-video.scene-mine .story-candidate,
.story-video.scene-mine .mine-arch { display:block; }
.story-video.scene-road .story-rider,
.story-video.scene-road .road-line { display:block; }
.story-video.scene-battle .story-wizard,
.story-video.scene-battle .story-arrow { display:block; }
.story-video.scene-artifacts .story-artifacts,
.story-video.scene-victory .story-artifacts { display:flex; }
.story-video.scene-victory .victory-burst,
.story-video.scene-victory .story-arrow,
.story-video.scene-victory .story-wizard { display:block; }

/* Кадры текста теперь спокойные: не прыгают и не мигают */
.story-caption-stack {
  align-content: end;
  gap: 12px;
  padding-bottom: clamp(24px, 4vw, 54px);
}
.story-caption {
  animation: captionSoftAppear .7s ease both !important;
  transform: none !important;
  opacity: 1 !important;
  max-width: 920px;
}
.caption-2 { animation-delay: .15s !important; }
.caption-3 { animation-delay: .3s !important; }
@keyframes captionSoftAppear { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.story-video.scene-mine .story-caption,
.story-video.scene-battle .story-caption {
  background: rgba(255,255,255,.9);
  color: #292722;
}

/* Текст ведущего для тренера во время легенды */
.trainer-legend-script {
  border-color: rgba(255, 92, 119, .28);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,245,248,.92));
}
.trainer-script-head {
  align-items: flex-start;
  gap: 12px;
}
.trainer-script-head h2 {
  margin: 0;
}
.trainer-script-lead {
  margin: 8px 0 14px;
}
.trainer-script-box {
  display: grid;
  gap: 10px;
}
.script-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(41,39,34,.08);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 14px 30px rgba(255,92,119,.08);
}
.script-step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--coral), #ff9a72);
  color: #fff;
  font-weight: 900;
}
.script-step p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 750;
}
.trainer-next-step {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,209,102,.24);
  color: var(--text);
}
.trainer-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
@media (max-width: 760px) {
  .script-step { grid-template-columns: 1fr; }
  .script-step p { font-size: 16px; }
}


.team-roster-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(245, 92, 122, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(33, 26, 24, 0.06);
}
.roster-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.roster-person {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 26, 24, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}
.roster-person.captain {
  border-color: rgba(245, 92, 122, 0.24);
  background: rgba(255, 245, 248, 0.82);
}
.roster-name {
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}
.mini-pill.done {
  background: rgba(83, 195, 117, 0.14);
  color: #237642;
  border-color: rgba(83, 195, 117, 0.22);
}

/* v33: удобный пульт запуска для тренера */
.trainer-layout {
  grid-template-columns: minmax(390px, 430px) minmax(0, 1fr);
  gap: 22px;
}
.trainer-layout .side {
  padding: 22px;
}
.trainer-launch-panel {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.trainer-launch-head {
  display: grid;
  gap: 6px;
  margin-bottom: 2px;
}
.trainer-launch-head h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -.04em;
}
.trainer-launch-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}
.station-control-list {
  display: grid;
  gap: 8px;
}
.station-control-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(36, 36, 38, .09);
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 14px 34px rgba(39,39,42,.05);
}
.station-control-card.active {
  border-color: rgba(255, 92, 119, .32);
  background: linear-gradient(135deg, rgba(255, 242, 246, .95), rgba(255,255,255,.78));
  box-shadow: 0 16px 38px rgba(255, 92, 119, .10);
}
.station-control-main {
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px 8px;
  color: var(--text);
  min-width: 0;
}
.station-control-main .badge {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  min-width: 34px;
  display: inline-grid;
  place-items: center;
  font-size: 15px;
}
.station-control-title {
  font-weight: 950;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
.station-control-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
}
.station-control-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 92px;
  align-self: center;
}
.station-control-actions.one-action {
  width: 98px;
}
.btn.tiny {
  min-height: 36px;
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.station-control-card .btn.secondary {
  background: rgba(255,255,255,.74);
}
.station-control-card .btn:not(.secondary) {
  background: linear-gradient(135deg, var(--coral), var(--coral-2));
  color: white;
  border: 0;
}
.station-launch-row { display: none; }
@media (max-width: 1280px) {
  .trainer-layout { grid-template-columns: 1fr; }
  .trainer-layout .side { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .station-control-card { grid-template-columns: 1fr; }
  .station-control-actions,
  .station-control-actions.one-action {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-control-actions.one-action { grid-template-columns: 1fr; }
}

/* v34: понятная ссылка для участников команды */
.participant-entry-head .lead,
.participant-artifact-head .lead { max-width: 920px; }
.participant-entry-actions { margin-top: 14px; gap: 10px; }
.team-login-card.focused {
  border-color: rgba(255, 100, 124, .28);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,246,249,.9));
}
.team-login-title { justify-content: flex-start; }
.participant-helper-card .submission-card { background: rgba(255,255,255,.75); }
.team-share-box {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(255, 100, 124, .22);
  border-radius: 22px;
  background: rgba(255, 246, 249, .78);
}
.share-link-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(39,37,31,.12);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.share-link-input:focus {
  outline: none;
  border-color: rgba(255,100,124,.42);
  box-shadow: 0 0 0 4px rgba(255,100,124,.10);
}
.participant-artifact-head .participant-entry-actions .btn { white-space: normal; }
@media (max-width: 720px) {
  .team-share-box .inline { align-items: stretch; }
  .team-share-box .btn { width: 100%; }
}

/* v35: общий вход участников и подсказки капитану */
.team-member-choice.occupied,
.team-member-choice:disabled {
  cursor: not-allowed;
  opacity: .58;
  background: rgba(245, 242, 241, .72);
  transform: none;
}
.team-member-choice.occupied:hover,
.team-member-choice:disabled:hover {
  border-color: rgba(39,37,31,.08);
  transform: none;
}
.trainer-participant-link-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,100,124,.20);
  background: rgba(255, 246, 249, .72);
}
.trainer-participant-link-box .share-link-input {
  font-size: 12px;
  padding: 10px 12px;
}
.answer-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
}
.answer-list li { margin: 6px 0; }
.participant-sent-answer {
  background: rgba(255, 246, 249, .66);
  border-color: rgba(255, 100, 124, .18);
}
.participant-sent-answer p { margin: 8px 0; }
.participant-floating-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* v36: личный вход участника без лишних инструкций, выбор ФИО фиксируется на игру */
.participant-login-layout.single {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
}
.participant-login-layout.single .team-login-list {
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 8px;
}
.participant-entry-head .participant-entry-actions,
.participant-helper-card {
  display: none !important;
}

/* v36: в пульте тренера кнопка запуска должна быть читаемой, без пустых белых плашек */
.station-control-actions {
  width: 116px;
}
.station-control-card .btn:not(.secondary) {
  background: linear-gradient(135deg, var(--coral), var(--coral-2)) !important;
  color: #fff !important;
  border: 0 !important;
  box-shadow: 0 12px 24px rgba(255, 100, 124, .20);
}
.station-control-card .btn.secondary {
  color: var(--text) !important;
  border-color: rgba(39, 37, 31, .10);
}

/* v38: финальный разбор, общий полёт стрел и артефакты для общего экрана */
.final-showcase-head {
  overflow: hidden;
  position: relative;
}
.final-showcase-head.launched {
  background: linear-gradient(135deg, rgba(255, 100, 124, .10), rgba(255, 198, 107, .18), rgba(255,255,255,.72));
}
.final-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.final-review-card {
  display: grid;
  gap: 12px;
  align-content: start;
}
.final-review-card.pending { border-color: rgba(255, 198, 107, .38); }
.final-review-card.approved { border-color: rgba(68, 210, 95, .28); }
.final-review-card.rejected { border-color: rgba(255, 100, 124, .36); }
.final-answer-text {
  color: var(--text);
  line-height: 1.45;
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(39,37,31,.06);
}
.trainer-comment {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 246, 210, .76);
  border: 1px solid rgba(255, 198, 107, .32);
  color: var(--text);
}
.collective-arrow-stage {
  position: relative;
  min-height: 280px;
  margin-top: 22px;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.9), transparent 28%),
    radial-gradient(circle at 72% 38%, rgba(255,100,124,.24), transparent 34%),
    linear-gradient(135deg, rgba(255,235,230,.74), rgba(255,255,255,.50));
  border: 1px solid rgba(255,100,124,.20);
}
.collective-monster {
  position: absolute;
  right: 11%;
  bottom: 36px;
  width: 170px;
  height: 196px;
  border-radius: 76px 76px 48px 48px;
  background: linear-gradient(145deg, #5e5a56, #34312e);
  box-shadow: 0 28px 50px rgba(39,37,31,.22);
}
.collective-monster::before,
.collective-monster::after {
  content: '';
  position: absolute;
  top: 56px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffd9e5;
}
.collective-monster::before { left: 45px; }
.collective-monster::after { right: 45px; }
.collective-monster span::before,
.collective-monster span::after {
  content: '➶';
  position: absolute;
  color: var(--coral);
  font-size: 38px;
  text-shadow: 0 10px 22px rgba(255,100,124,.34);
}
.collective-monster span::before { left: 12px; top: 86px; transform: rotate(-18deg); }
.collective-monster span::after { right: 20px; top: 118px; transform: rotate(24deg); }
.collective-arrows i {
  position: absolute;
  left: calc(8% + var(--i) * 4%);
  top: calc(38% + (var(--i) % 4) * 16px);
  font-style: normal;
  color: var(--coral);
  font-size: 34px;
  animation: collectiveArrowFly 1.1s ease-out both;
  animation-delay: calc(var(--i) * .08s);
}
@keyframes collectiveArrowFly {
  from { transform: translateX(-60px) translateY(42px) rotate(-8deg); opacity: 0; }
  70% { opacity: 1; }
  to { transform: translateX(54vw) translateY(-18px) rotate(-2deg); opacity: 1; }
}
.collective-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  max-width: 540px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(39,37,31,.08);
  font-weight: 800;
}
.trainer-final-showcase-panel,
.trainer-artifact-dashboard {
  margin-bottom: 18px;
}
.trainer-final-showcase-panel .inline.wrap,
.trainer-artifact-dashboard .inline.wrap {
  gap: 8px;
}
.artifact-public-list {
  margin-top: 18px;
}
.artifact-public-list .artifact-claims-list,
.trainer-artifact-dashboard .artifact-claims-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 6px;
}
.artifact-claim-row p {
  margin: 6px 0 0;
  line-height: 1.35;
  color: var(--text);
}
.trainer-participant-link-box .small-text {
  margin: 0;
}
@media (max-width: 760px) {
  .collective-arrow-stage { min-height: 230px; }
  .collective-monster { width: 120px; height: 150px; right: 7%; }
  .collective-caption { left: 16px; right: 16px; max-width: none; }
}

/* v41: пульт запуска без пустых/непонятных кнопок */
.station-control-card {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 10px !important;
}
.station-control-main {
  width: 100%;
  border-radius: 18px;
  padding: 10px 8px !important;
}
.station-control-main:hover {
  background: rgba(255,255,255,.55);
}
.station-control-actions,
.station-control-actions.one-action {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
.station-control-actions.one-action {
  grid-template-columns: 1fr !important;
}
.station-control-actions .btn,
.station-control-card .btn,
.station-control-card .btn.secondary,
.station-control-card .btn:not(.secondary) {
  min-height: 40px !important;
  width: 100% !important;
  padding: 10px 12px !important;
  border-radius: 15px !important;
  font-size: 12.5px !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  text-align: center !important;
  color: var(--text) !important;
  opacity: 1;
}
.station-control-card .btn.secondary {
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(39, 37, 31, .12) !important;
  box-shadow: none !important;
}
.station-control-card .btn.launch,
.station-control-card .btn:not(.secondary) {
  background: linear-gradient(135deg, rgba(255,100,124,.18), rgba(255,141,101,.22)) !important;
  border: 1px solid rgba(255,100,124,.35) !important;
  box-shadow: 0 12px 22px rgba(255,100,124,.10) !important;
  color: #2b2a28 !important;
}
.station-control-card .btn:disabled {
  opacity: .55 !important;
  color: rgba(43,42,40,.55) !important;
  background: rgba(255,255,255,.62) !important;
  border-color: rgba(39,37,31,.08) !important;
}
