/* Story screens (CORE, roadmap 1.5): the full-screen event screen, the «Задания» quest log, hero items.
   Full game screens, never pop-ups (owner's rule); everything fits 1280×720 without scrolling. */

.event-screen {
  display: grid; place-items: stretch; padding: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(60, 44, 28, 0.55), transparent 60%), linear-gradient(180deg, #120e0b, #070605);
  color: #ece6da;
}
.event-frame {
  display: grid; grid-template-columns: minmax(260px, 38%) 1fr; gap: 28px;
  width: 100%; height: 100%; padding: clamp(16px, 4vh, 40px) clamp(18px, 4vw, 56px); box-sizing: border-box; overflow: hidden;
}
.event-art {
  position: relative; border-radius: 10px; border: 2px solid rgba(226, 181, 111, 0.55);
  background: linear-gradient(160deg, #2c2218, #120d09); background-size: cover; background-position: center;
  display: grid; place-items: center; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.6); overflow: hidden;
}
.event-art::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(226, 181, 111, 0.25); border-radius: 6px; pointer-events: none; }
.event-art-glyph { font: 700 clamp(64px, 16vh, 150px) / 1 var(--font-title); color: rgba(240, 207, 122, 0.75); text-shadow: 0 0 30px rgba(240, 180, 80, 0.4); }
.event-art-note { position: absolute; bottom: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(236, 230, 218, 0.35); }
.event-art.kind-lair { background: linear-gradient(160deg, #3a1a12, #120807); }
.event-art.kind-gate { background: linear-gradient(160deg, #24122f, #08040c); }
.event-art.kind-temple { background: linear-gradient(160deg, #3a3a40, #14141a); }
.event-art.kind-questDone .event-art-glyph { color: rgba(150, 210, 120, 0.8); }
.event-art.kind-questFailed .event-art-glyph { color: rgba(220, 100, 80, 0.8); }
.event-art.has-img .event-art-glyph, .event-art.has-img .event-art-note { display: none; }
.event-body { display: flex; flex-direction: column; min-height: 0; }
.event-kicker { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #b5854b; margin-bottom: 6px; }
.event-title { font: 700 clamp(26px, 5vh, 42px) / 1.15 var(--font-title); color: #f0cf7a; margin: 0 0 16px; }
.event-text { flex: 1 1 auto; min-height: 0; overflow: hidden; font-family: var(--font-title); line-height: 1.5; color: #ece6da; }
.event-text p { margin: 0 0 0.8em; break-inside: avoid; }
.event-text.size-md { font-size: clamp(16px, 2.6vh, 20px); }
.event-text.size-sm { font-size: clamp(14px, 2.2vh, 17px); }
.event-text.size-xs { font-size: clamp(12px, 1.9vh, 15px); }
.event-text.cols { column-count: 2; column-gap: 28px; }
.event-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding-top: 12px; }
.event-next { min-width: 180px; }
@media (max-width: 760px) {
  .event-frame { grid-template-columns: 1fr; grid-template-rows: 28vh 1fr; gap: 14px; }
  .event-text.cols { column-count: 1; }
}

.quests-screen { display: grid; place-items: center; padding: 14px; }
.quests-box { width: min(96vw, 1100px); max-height: calc(100% - 8px); display: flex; flex-direction: column; padding: 14px 18px; box-sizing: border-box; overflow: hidden; }
.quests-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.quests-stats { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ui-text-dim, #a99b89); text-align: right; flex: 1; }
.quests-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; min-height: 0; overflow: hidden; }
.quest-card { border: 1px solid var(--ui-border, #4a3a2b); border-left: 4px solid var(--ui-accent, #e2b56f); border-radius: 6px; padding: 8px 12px; background: var(--ui-panel-2, rgba(0, 0, 0, 0.2)); }
.quest-card.status-ready { border-left-color: #e0b040; }
.quest-card.status-done { border-left-color: #6fa04a; opacity: 0.85; }
.quest-card.status-failed { border-left-color: #c0482f; opacity: 0.7; }
.quest-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.quest-name { font: 700 17px / 1.2 var(--font-title); margin: 0; color: var(--ui-heading, #f0cf7a); }
.quest-status { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ui-text-dim, #a99b89); white-space: nowrap; }
.quest-goal { font-weight: 600; font-size: 14px; margin: 4px 0 2px; }
.quest-giver { font-size: 12px; }
.quest-text { font-size: 13px; line-height: 1.4; margin: 4px 0 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* hero panel: items and favour (roadmap 1.3; effects in phase 2.1 / 2.4) */
.hero-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.hero-item { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 5px; border: 1px solid var(--ui-border, #4a3a2b); font-size: 13px; max-width: 100%; }
.item-icon { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; font: 700 13px / 1 var(--font-title); color: #fff; flex: none; background-size: cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.hero-favour { font-size: 13px; margin-top: 6px; color: var(--ui-text-dim, #a99b89); }
