:root{
  --event-ink:#10243a;
  --event-blue:#1f6ca7;
  --event-red:#c83d36;
  --event-gold:#e4c84e;
  --event-paper:#fffaf0;
}

/* Compact cards for resolved/automatic events */
.event-card.season-event-result-card,
.season-event-result-card{
  position:relative;
  overflow:hidden;
  padding:18px 18px 16px;
  border-radius:24px;
  border:1px solid #e0d4b7;
  background:linear-gradient(180deg,#fffdf8,#f4ecd8);
  box-shadow:0 12px 28px rgba(16,36,58,.08);
}
.event-card.season-event-result-card::before,
.season-event-result-card::before{
  content:"";
  position:absolute;inset:0 auto 0 0;width:6px;
  background:linear-gradient(180deg,var(--event-accent,#e4c84e),rgba(255,255,255,.2));
}
.season-event-result-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}
.season-event-result-icon{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:rgba(16,36,58,.08);font-size:22px}
.season-event-result-overline{display:inline-flex;align-items:center;gap:7px;padding:5px 9px;border-radius:999px;background:rgba(16,36,58,.06);color:#6e604b;font-size:10px;font-weight:1000;letter-spacing:.12em;text-transform:uppercase}
.season-event-result-overline::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--event-accent,#e4c84e)}
.season-event-result-title{margin:8px 0 0;color:var(--event-ink);font-size:24px;line-height:1.02;text-transform:uppercase}
.season-event-result-copy{margin:8px 0 0;color:#564d41;font-size:14px;font-weight:800;line-height:1.5}
.season-event-result-box{margin-top:12px;padding:12px 14px;border-radius:16px;background:#fff;border:1px solid #e6dac2;color:var(--event-ink);font-size:14px;font-weight:900;line-height:1.45;box-shadow:0 6px 14px rgba(16,36,58,.04)}
.season-event-result-choice{display:inline-flex;align-items:center;gap:7px;margin-top:12px;padding:8px 10px;border-radius:999px;background:#10243a;color:#fff;font-size:11px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase}
.season-event-result-choice small{font-size:11px;color:#ffe891}
.season-event-result-note{margin-top:10px;font-size:11px;font-weight:900;color:#756652;text-transform:uppercase;letter-spacing:.07em}
.season-event-result--decision{--event-accent:#1f6ca7}
.season-event-result--auto{--event-accent:#42a75a}
.season-event-result--story{--event-accent:#8e72d7}
.season-event-result--week{--event-accent:#e4c84e}

/* Overlay event dialogue */
.season-event-dialog{
  background:
    radial-gradient(circle at top right, rgba(255,233,108,.12), transparent 34%),
    linear-gradient(180deg,rgba(255,255,255,.985),rgba(247,239,223,.96)) !important;
}
.season-event-head{position:relative;padding:8px 10px 0}
.season-event-kicker{background:#fff;color:#6c5d46;box-shadow:0 6px 16px rgba(16,36,58,.06)}
.season-event-choice-grid{margin-top:20px}
.season-event-choice-float{animation:none;height:100%}

.season-event-choice{
  --event-tone-start:#257bc8;
  --event-tone-mid:#155792;
  --event-tone-end:#0b2f58;
  min-height:250px;
  padding:20px 20px 18px;
  border-radius:26px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:linear-gradient(145deg,var(--event-tone-start),var(--event-tone-mid) 58%,var(--event-tone-end)) !important;
  box-shadow:0 22px 36px rgba(16,36,58,.18),inset 0 1px 0 rgba(255,255,255,.18),inset 0 -52px 76px rgba(0,0,0,.12) !important;
}
.season-event-choice.tone-blue{
  --event-tone-start:#257bc8;
  --event-tone-mid:#155792;
  --event-tone-end:#0b2f58;
  color:#fff;
}
.season-event-choice.tone-red{
  --event-tone-start:#e65357;
  --event-tone-mid:#bd343c;
  --event-tone-end:#791f32;
  color:#fff;
}
/* Livello 1: immagine tematica. Deve restare realmente visibile. */
.season-event-choice::before{
  content:"";
  position:absolute;
  inset:0;
  width:auto;
  height:auto;
  border-radius:inherit;
  background-image:var(--event-art,none);
  background-repeat:no-repeat;
  background-size:cover;
  background-position:center;
  opacity:.82;
  filter:saturate(.9) contrast(1.04) brightness(.92);
  transform:scale(1.025);
  transform-origin:center;
  z-index:0;
  pointer-events:none;
}
/* Livello 2: tinta blu/rossa trasparente e protezione della leggibilità. */
.season-event-choice::after{
  content:"";
  position:absolute;
  inset:0;
  left:0;
  right:0;
  bottom:0;
  width:auto;
  height:auto;
  border-radius:inherit;
  transform:none;
  opacity:1;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(90deg,rgba(5,18,33,.62) 0%,rgba(5,18,33,.34) 53%,rgba(5,18,33,.14) 100%),
    linear-gradient(180deg,color-mix(in srgb,var(--event-tone-start) 38%,transparent),color-mix(in srgb,var(--event-tone-end) 58%,transparent));
}
/* Fallback per browser senza color-mix. */
@supports not (color:color-mix(in srgb,red,blue)){
  .season-event-choice::after{background:linear-gradient(90deg,rgba(5,18,33,.62),rgba(5,18,33,.18)),linear-gradient(180deg,rgba(24,91,155,.28),rgba(10,35,67,.5))}
  .season-event-choice.tone-red::after{background:linear-gradient(90deg,rgba(35,8,14,.62),rgba(35,8,14,.18)),linear-gradient(180deg,rgba(203,55,62,.28),rgba(90,20,34,.52))}
}
.season-event-choice > *{position:relative;z-index:2}
.season-event-choice:hover::before,.season-event-choice:focus-visible::before{opacity:.9;transform:scale(1.055)}
.season-event-choice-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:18px;width:100%}
.season-event-option-label{margin:0}
.season-event-choice-theme{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26);font-size:10px;font-weight:1000;letter-spacing:.08em;text-transform:uppercase;backdrop-filter:blur(4px);color:#fff;white-space:nowrap}
.season-event-choice-theme::before{content:"✦";font-size:10px;color:#ffe588}
.season-event-choice b{font-size:clamp(21px,2.6vw,28px);max-width:20ch;text-shadow:0 3px 12px rgba(0,0,0,.38)}
.season-event-choice small{margin-top:10px;padding-top:0;font-size:13px;opacity:.98;text-shadow:0 2px 9px rgba(0,0,0,.42)}
.season-event-choice-cta{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;margin-top:16px;padding:8px 11px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);font-size:11px;font-weight:1000;letter-spacing:.09em;text-transform:uppercase}
.season-event-hint{margin-top:16px;padding:10px 12px;border-radius:14px;background:rgba(16,36,58,.05);font-size:11px;line-height:1.4}
.story-event-dialog .season-event-crest{background:linear-gradient(180deg,#593ca7,#8d69de)}
.error404-story-dialog .season-event-crest{background:linear-gradient(180deg,#262626,#5e5e5e)}
.story-event-dock .season-event-dock-pulse{background:linear-gradient(135deg,#8e72d7,#593ca7)}

@media (max-width:680px){
  .event-card.season-event-result-card,.season-event-result-card{padding:16px 14px 14px;border-radius:20px}
  .season-event-result-title{font-size:22px}
  .season-event-result-copy,.season-event-result-box{font-size:13px}
  .season-event-result-icon{width:40px;height:40px;font-size:20px}
  .season-event-choice-top{align-items:flex-start;flex-direction:column}
  .season-event-choice-theme{align-self:flex-start}
  .season-event-choice b{max-width:none}
}
