.victory-intro {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; color: #fff6e4; background: #070f1b;
}
.victory-intro::backdrop { background: #070f1b; }
html:has(.victory-intro[open]) { overflow: hidden; }
.intro-stage {
  isolation: isolate; position: relative; min-height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  overflow: hidden; padding: clamp(14px,3vw,42px); padding-top: max(14px,env(safe-area-inset-top));
  background: radial-gradient(ellipse at 40% 58%,#4b351e 0,transparent 51%),radial-gradient(ellipse at 78% 80%,#172e49,transparent 66%),#070f1b;
}
.intro-effects,.intro-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.intro-frame { inset: 9px; height: auto; width: auto; border: 1px solid #e8bd6d4a; z-index: 0; }
.intro-controls { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; z-index: 1; }
.intro-controls button {
  border: 1px solid #ecc7848c; border-radius: 30px; min-height: 44px; padding: 8px 15px; font: inherit; font-size: .81rem;
  color: #fff2ce; background: #081321; cursor: pointer;
}
.intro-controls button[aria-pressed=true] { color: #101521; background: #efce85; }
.intro-body {
  align-self: center; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 680px);
  align-items: center; gap: clamp(20px,5vw,82px); width: min(100%,1100px); margin: auto; padding: 24px 0;
}
.intro-portrait,.home-victory-portrait {
  position: relative; margin: 0; border: 1px solid #eec982; padding: 5px; border-radius: 48% 48% 12px 12px / 30% 30% 12px 12px;
  background: linear-gradient(125deg,#e6b55e25,#081322); box-shadow: 0 0 45px #efae5659,0 18px 64px #01040ab3;
}
.intro-portrait img,.home-victory-portrait img { width: 100%; height: auto; display: block; border-radius: inherit; }
.intro-portrait figcaption,.home-victory-portrait figcaption {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 100%;
  background: linear-gradient(110deg,#a76b2f,#fff0ad 55%,#ddac54); color: #21180f; border-radius: 30px;
  padding: 6px 16px; font-size: .68rem; letter-spacing: .19em; font-weight: 900; text-align: center;
}
.intro-copy { text-align: center; min-width: 0; text-shadow: 0 2px 16px #050b14, 0 4px 34px #050b14; }
.intro-kicker,.intro-role,.intro-tally,.intro-footer { text-transform: uppercase; font-weight: 800; letter-spacing: .16em; }
.intro-kicker { color: #f9d999; font-size: clamp(.65rem,1.35vw,1.05rem); margin: 0 0 .55rem; }
.intro-title,.intro-thanks h2,.home-victory h1,.home-thanks h2 { font-family: Georgia,serif; letter-spacing: -.06em; line-height: .95; margin: 0; }
.intro-title { font-size: clamp(2.65rem,7.25vw,7.6rem); font-weight: 700; text-shadow: 0 1px 32px #ffbd6055,0 6px 28px #040811; }
.intro-title em,.intro-thanks h2 em,.home-victory h1 em {
  color: #efc778; background: linear-gradient(175deg,#fff6d0 10%,#f5d088 46%,#c98b40 75%,#ffe2a2);
  background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none;
}
.intro-line { display: flex; align-items: center; gap: 12px; color: #f0c779; width: min(74%,430px); margin: .8rem auto; }
.intro-line::before,.intro-line::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg,transparent,#f0c779); }
.intro-line::after { transform: scaleX(-1); }
.intro-name { font-size: clamp(1.25rem,3vw,3rem); margin: 0; font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
.intro-role { font-size: clamp(.66rem,1.33vw,1rem); margin: .6rem 0 .3rem; }
.intro-office { font-size: clamp(.75rem,1.4vw,1rem); margin: 0; color: #f4e2c4; }
.intro-tally { color: #ffe09a; font-size: clamp(.61rem,1.1vw,.95rem); margin: 1rem 0 0; }
.intro-footer { text-align: center; color: #efcb87; font-size: .62rem; margin: 0; }
.intro-footer span { padding: 0 .5em; }
.intro-thanks { max-width: 520px; margin: auto; }
.intro-thanks h2 { font-size: clamp(2.15rem,5.75vw,5.65rem); }
.intro-thanks > p:not(.intro-kicker) { margin: .6rem auto; max-width: 44ch; line-height: 1.45; }
.intro-thanks .button { margin-top: .35rem; text-shadow: none; }
.intro-signoff { color: #efcb87; font-size: .85rem; }
.intro-trophy {
  position: absolute; top: 50%; left: 50%; width: clamp(120px,23vw,250px); opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 28px #eab159); transform: translate(-50%,-50%);
}
.victory-intro.show-effects .intro-trophy { animation: trophy-reveal 1.4s .05s both; }
.victory-intro.show-effects .intro-portrait { animation: intro-reveal 1.1s .35s both; }
.victory-intro.show-effects .intro-announcement > * { animation: intro-reveal .85s both; }
.victory-intro.show-effects .intro-announcement > :nth-child(2) { animation-delay: .12s; }
.victory-intro.show-effects .intro-announcement > :nth-child(n+3) { animation-delay: .3s; }
.victory-intro.show-effects .intro-thanks { animation: intro-reveal .7s both; }
@keyframes trophy-reveal {
  0% { opacity: 0; transform: translate(-50%,-38%) scale(.65); }
  28%,48% { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-110%) scale(.6); }
}
@keyframes intro-reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.home-victory { position: relative; isolation: isolate; overflow: hidden; color: #fff4dd; background: radial-gradient(ellipse at 80% 42%,#4d3924,transparent 51%),linear-gradient(125deg,#091521,#142e45); }
.home-victory-layout { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: clamp(28px,7vw,104px); padding-block: clamp(38px,6vw,90px); }
.home-victory-portrait { max-width: 360px; width: 100%; justify-self: center; }
.elected-seal { width: max-content; color: #f8d79a; border: 1px solid #cfa460; border-radius: 50px; padding: 7px 14px; font-size: .75rem; font-weight: 900; letter-spacing: .18em; margin: 0 0 1.25rem; }
.home-victory h1 { color: #fff5e5; font-size: clamp(3rem,8.6vw,8.6rem); }
.home-victory-name { font-weight: 800; font-size: clamp(1.3rem,2.4vw,2rem); margin: 1rem 0 .25rem; }
.home-victory-name small { color: #f2ce8b; font-size: .48em; letter-spacing: .1em; white-space: nowrap; }
.home-victory-office,.home-victory-tagline { margin: .3rem 0; }
.home-victory-tagline { font-family: Georgia,serif; font-style: italic; color: #f0cf95; }
.home-victory .hero-actions { margin-top: 1.2rem; }
.home-victory button.button-outline { background: #101e2d; color: #fff4dd; border-color: #d3b17a; }
.home-victory button.button-outline:hover { background: #293e51; }
.home-victory button[hidden] { display: none; }
.home-stardust {
  z-index: -1; position: absolute; inset: -30px 0; opacity: .46; pointer-events: none;
  background: radial-gradient(circle at 11% 34%,#f5c474 0 1px,transparent 2px),radial-gradient(circle at 39% 73%,#ffe0a4 0 1px,transparent 2px),radial-gradient(circle at 78% 21%,#f8d485 0 1px,transparent 2px);
  background-size: 173px 143px,237px 189px,197px 111px;
}
.home-victory.is-visible .home-stardust { animation: victory-drift 18s ease-in-out infinite alternate; }
@keyframes victory-drift { to { transform: translateY(-22px); opacity: .67; } }
.victory-banner { color: #251809; background: linear-gradient(105deg,#d5a350,#fff0c5,#d9ab5a); }
.victory-banner .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding-block: 13px; }
.victory-banner p { margin: 0; font-weight: 800; }
.victory-banner strong { font-size: 1.65em; font-family: Georgia,serif; }
.victory-banner span { margin-left: .8rem; font-weight: 600; }
.victory-banner a { text-decoration: underline; text-underline-offset: .23em; }
.home-thanks { color: #152433; background: #fcf5e8; padding-block: clamp(48px,7vw,108px); scroll-margin-top: 76px; }
.home-thanks-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(16px,6vw,84px); }
.home-thanks h2 { font-size: clamp(2.9rem,6vw,5.5rem); }
.home-thanks h2 em { color: #855624; }
.home-signoff b { font: italic bold 1.5rem Georgia,serif; }
@media (max-width: 700px) {
  .intro-body { grid-template-columns: minmax(0,1fr); gap: 15px; padding: 13px 3px; }
  .intro-portrait { width: clamp(82px,29vw,160px); justify-self: center; }
  .intro-portrait figcaption { font-size: .52rem; padding: 4px 8px; bottom: 6px; }
  .intro-title { font-size: clamp(2.15rem,11vw,4.4rem); }
  .intro-thanks > p:not(.intro-kicker) { font-size: .86rem; }
  .home-victory-layout,.home-thanks-grid { grid-template-columns: 1fr; }
  .home-victory-portrait { width: min(55vw,280px); }
  .victory-banner span { display: block; margin-left: 0; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .intro-portrait { width: 58%; justify-self: center; }
  .intro-title,.intro-thanks h2 { font-size: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .victory-intro *, .home-victory * { animation: none !important; transition: none !important; }
}
