/* Winter details belong to the two seasonal profiles and their reward dialogs. */
.battle-inspection.winter-masquerade-profile {
  --frost-rule: #aec4ca;
  --frost-ink: #244c54;
  color: #344f50;
  background: linear-gradient(150deg, #fbfcf7, #f9f6ea 65%, #f0f4f0);
  border: 1px solid #a9bcc0;
  box-shadow: inset 0 0 0 3px #fffdf4, inset 0 0 0 4px #d6d8bd, 0 8px 32px #18312840;
}
.winter-masquerade-profile > header {
  position: relative;
  isolation: isolate;
  background: linear-gradient(108deg, #fffdf4 10%, #f4f5eb 54%, #dceaf0);
  border-bottom: 1px solid var(--frost-rule);
}
.winter-masquerade-profile > header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 57px 0 auto;
  width: min(22%, 82px);
  background: url('art/ui/winter-decor-20261122/snowflake.webp') 62% center / 24px no-repeat,
              linear-gradient(90deg, transparent, #9caa99) left center / 36% 1px no-repeat,
              linear-gradient(90deg, #9caa99, transparent) right center / 19% 1px no-repeat;
  pointer-events: none;
}
.winter-masquerade-profile > header > div { min-width: 0; }
.winter-masquerade-profile > header h2 {
  color: var(--frost-ink);
  font: bold 21px/1.15 Georgia, serif;
  overflow-wrap: anywhere;
}
.winter-masquerade-profile > header small { color: #516568; }
.winter-masquerade-profile .inspection-place-tag {
  background: #f7faf5; border: 1px solid #c7d5cc; color: #476765;
}
.winter-masquerade-profile .inspection-figure {
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #9eb7c1;
  border-radius: 50% 50% 13px 13px / 15% 15% 13px 13px;
  background: linear-gradient(0deg, #e3f0efbb, transparent 28%, #dae9e842 78%, #deecf1aa),
              url('art/events/winter-2026/spruce-hollow.webp') 50% 55% / cover;
  box-shadow: inset 0 0 0 2px #edf5efaa;
}
.winter-masquerade-profile .inspection-figure::after {
  content: ""; pointer-events: none; position: absolute; inset: auto 0 0; height: 10%;
  background: url('art/ui/winter-decor-20261122/snowcap.webp') center bottom / 100% auto no-repeat;
}
.winter-masquerade-profile .inspection-side :is(.inspection-gear,.relic-front) {
  border-color: #bacbc8; border-radius: 9px;
  background: linear-gradient(158deg, #fffdf3, #f3f5ed);
}
.winter-masquerade-profile .inspection-loadout :is(.inspection-gear,.equipment-slot) :is(small,b,strong) { color: #455856; }
.winter-masquerade-profile :is(.inspection-facts,.inspection-attributes) > span,
.winter-masquerade-profile .inspection-vital,
.winter-masquerade-profile .inspection-stat-lines > div {
  border-color: #c7d4ce; color: #2e4e51;
  background: linear-gradient(140deg, #fffdf5, #eff4f0);
}
.winter-masquerade-profile :is(.inspection-facts,.inspection-attributes) b,
.winter-masquerade-profile .inspection-vital :is(b,em) { color: #2f5355; }
.winter-masquerade-profile :is(.inspection-facts,.inspection-attributes) small { color: #516561; }
.winter-masquerade-profile .battle-inspection-scroll > section > h3,
.winter-masquerade-profile .winter-sack-heading h3 {
  color: #2b5459; font: bold 16px/1.2 Georgia, serif;
}
.winter-masquerade-profile .battle-inspection-scroll > section > h3 {
  display: flex; align-items: center; gap: 8px; margin: 13px 0 8px;
}
.winter-masquerade-profile .battle-inspection-scroll > section > h3::after {
  content: ""; height: 10px; flex: 1;
  background: url('art/ui/winter-decor-20261122/snowflake.webp') right center / 10px no-repeat,
              linear-gradient(90deg, #c2aa7a, #b4c9cb) left center / calc(100% - 14px) 1px no-repeat;
}
.winter-masquerade-profile .inspection-resistances { border-color: #bdcdc8; }
.winter-masquerade-profile .inspection-resistances summary { color: #365b5e; }
.battle-inspection-scroll .winter-profile-secret {
  margin: 14px 0 4px; padding: 12px; border: 1px solid #b8cbc9; border-radius: 12px;
  background: #fbf9ee; color: #365553; text-align: start;
}
.battle-inspection-scroll .winter-profile-secret.is-sack {
  position: relative;
  background: linear-gradient(140deg, #e7f0ef, #fffcf2 54%, #f1f4ea);
  box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px #d7d1b8;
}
.hero-paperdoll .inspection-figure:has(.winter-self-profile) { position:relative; }
.winter-self-profile { position:absolute;bottom:3px;left:50%;transform:translateX(-50%);border:1px solid #af9770;border-radius:9px;background:#fff9e9;color:#375a55;padding:5px 9px;white-space:nowrap;cursor:pointer; }
.player-identity-badges .badge-winter-host { width:1.14em;height:1.14em;object-fit:contain;vertical-align:middle; }
.winter-profile-secret.is-trail {container-type:inline-size;}
.winter-profile-secret .winter-hearth-closed,.winter-profile-secret .winter-trail-kept {
  padding:12px 13px;border:1px solid #b8c8c2;border-radius:12px;
  background:linear-gradient(125deg,#f1f4ec,#fffbf0 80%);color:#3c5957;
}
.winter-hearth-closed header,.winter-trail-kept {display:flex;align-items:center;gap:10px;}
.winter-hearth-closed header img {width:34px;height:32px;object-fit:contain;flex:none;}
.winter-profile-secret .winter-hearth-closed h3,.winter-profile-secret .winter-trail-kept h3 {margin:0;color:#315852;font:bold 16px/1.2 Georgia,serif;}
.winter-profile-secret .winter-hearth-closed > p {margin:8px 0 12px;line-height:1.45;}
.winter-hearth-closed footer {display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px;border-top:1px solid #c8d2c3;padding-top:8px;}
.winter-hearth-closed footer span {color:#536a62;font-size:.8em;}
.winter-hearth-closed time {color:#294f50;font-size:.87em;font-weight:700;font-variant-numeric:tabular-nums;}
.winter-profile-secret details.winter-trail {padding:0;overflow:hidden;border:1px solid #b9c7b9;background:linear-gradient(140deg,#fbfaf0,#f4f1e3);box-shadow:inset 0 0 0 2px #fffaf1;}
.winter-profile-secret .winter-trail > summary {min-height:46px;padding:0 12px;gap:9px;background:linear-gradient(105deg,#e7eee3,#f9f7eb);color:#35574f;}
.winter-trail > summary > img {width:27px;height:30px;object-fit:contain;flex:none;}
.winter-profile-secret .winter-trail > summary:focus-visible {outline:2px solid #477b73;outline-offset:-4px;border-radius:10px;}
.winter-trail-page {padding:10px 12px 12px;}
.winter-profile-secret .winter-trail-page > p:first-child {margin:0 0 9px;color:#4d5d54;font:400 14px/1.48 Georgia,serif;}
.winter-profile-secret .winter-track-question {margin:0 0 9px;color:#36594f;font:bold 14px/1.3 Georgia,serif;}
.winter-track-choices {display:grid;gap:5px;}
.winter-track-choices button {display:flex;align-items:center;justify-content:space-between;min-height:37px;
  min-width:0;padding:6px 10px;border:1px solid #c3cbbb;border-radius:7px;background:#fffdf5;color:#36594f;font:600 14px/1.2 Georgia,serif;text-align:start;cursor:pointer;}
.winter-track-choices button::after {content:"";width:5px;height:5px;border:solid #829887;border-width:1px 1px 0 0;transform:rotate(45deg);margin-inline:5px 1px;}
.winter-track-choices button:is(:focus-visible,:hover) {border-color:#759887;background:#edf3e9;}
.winter-track-choices button:disabled {opacity:.62;cursor:default;}
.winter-profile-secret .winter-track-hint:not(:empty) {margin:9px 0 0;padding:7px 0 0;border-top:1px solid #c7d1c2;color:#3e625a;font-size:.86em;}
.winter-track-hint:empty {display:none;}
.winter-trail-kept img {width:38px;height:42px;object-fit:contain;}
.winter-profile-secret .winter-trail-kept p {margin:3px 0 0;}
@container (min-width:390px) { .winter-track-choices {grid-template-columns:repeat(3,minmax(0,1fr));} }
.winter-sack-heading { display: grid; grid-template-columns: clamp(40px,13vw,58px) minmax(0,1fr); align-items: center; gap: 9px; }
.winter-sack-heading img { width: min(100%,54px); height: 60px; justify-self: center; object-fit: contain; }
.winter-sack-heading h3 { margin: 0 0 5px; }
.winter-profile-secret p { margin: .5em 0 .65em; line-height: 1.42; font-size: .9em; color: inherit; }
.winter-sack-heading p { margin: 0; }
.winter-profile-secret .winter-secret-note:empty { display: none; }
.winter-profile-secret small { display: block; font-size: .79em; line-height: 1.4; color: #536660; }
.winter-sack-count {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; padding: 8px 0; border-block: 1px solid #c6d3cb; font-size: .9em;
}
.winter-sack-count b { color: #31595e; font-variant-numeric: tabular-nums; }
.winter-secret-steal,.winter-secret-choices button,.winter-hearth-row button {
  min-height: 42px; border: 1px solid #a89268; border-radius: 9px; font-weight: 700;
}
.winter-secret-steal {
  width: 100%; margin: 8px 0; color: #fff8e5; background: linear-gradient(#934c51,#79434a);
  box-shadow: inset 0 1px #c2867a;
}
.winter-secret-steal:focus-visible,.winter-secret-choices button:focus-visible { outline: 2px solid #347387; outline-offset: 2px; }
.winter-secret-steal:disabled { opacity: .65; }
.battle-inspection-scroll .winter-profile-secret:not(.is-sack) { background: transparent; border: 0; padding: 0; }
.winter-profile-secret > details {
  margin: 8px 0 0; padding: 4px 11px 6px; border: 1px solid #c2cbbd; border-radius: 12px;
  background: linear-gradient(130deg,#fffdf2,#f2f4ea);
  box-shadow: inset 0 0 0 2px #fffdf5;
}
.winter-profile-secret > .winter-riddle { border-color: #d4c5a5; background: linear-gradient(130deg,#fffaf0,#f6edda); }
.winter-profile-secret summary {
  cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 39px;
  color: #325954; font: bold 16px/1.25 Georgia,serif; list-style: none;
}
.winter-profile-secret summary::-webkit-details-marker { display: none; }
.winter-profile-secret summary::after {
  content: ""; width: 7px; height: 7px; margin: 0 4px 3px auto;
  border-right: 1.5px solid #688078; border-bottom: 1.5px solid #688078; transform: rotate(45deg);
}
.winter-profile-secret details[open] > summary::after { transform: rotate(225deg); margin-bottom: -2px; }
.winter-profile-secret > details[open] > summary { border-bottom: 1px solid #c8cebc; }
.winter-riddle > p { margin: 12px 1px; font: 15px/1.5 Georgia,serif; color: #584c38; }
.winter-secret-choices { display: flex; gap: 9px; margin: 10px 0 4px; }
.winter-secret-choices button,.winter-hearth-row button {
  background: linear-gradient(#fffdf1,#f0e6ce); color: #3d5b4e; border-color: #c1ad82;
  box-shadow: inset 0 0 0 2px #fff9e8,0 1px 0 #cfbf99; min-height: 39px;
}
.winter-secret-choices button { flex: 1; font: bold 16px Georgia,serif; }
.winter-secret-choices button:first-child,.winter-hearth-row button:not(:disabled) {
  background: linear-gradient(#4e8174,#36665a); border-color: #34675d; box-shadow: inset 0 0 0 1px #80a092; color: #fff9e7;
}
.winter-hearth-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px 10px;
  margin:8px 0;
  padding:9px 10px 10px;
  border:1px solid #d2cab2;
  border-radius:11px;
  background:#fffdf5;
}
.winter-hearth-row header {
  display:flex;align-items:center;gap:8px;grid-column:1/-1;
  padding:0 0 6px;border-bottom:1px solid #ded7c3;
}
.winter-hearth-row .winter-bottle-art { width:28px;height:33px;object-fit:contain;flex:none; }
.winter-hearth-row header strong { font:bold 15px/1.18 Georgia,serif;color:#355652; }
.winter-hearth-price { display:grid;gap:2px;justify-self:start;min-width:0;padding:4px 7px;border:1px solid #ded9c7;border-radius:6px;background:#f5f2e5;color:#4c6055;font-size:.78em;line-height:1.3; }
.winter-hearth-price span { display:flex;align-items:center;gap:4px;overflow-wrap:anywhere; }
.winter-hearth-price img { width:13px;height:14px;object-fit:contain; }
.winter-hearth-row button { min-height:36px;padding:0 11px;font-size:.87em; }
.winter-hearth-row button:disabled, .winter-secret-steal:disabled { background:#eeeadd;color:#706c60;border-color:#d2cdb8;box-shadow:none; }

.winter-spark-source p { margin-top:0; color:#4a615c; }

.winter-secret-reveal { position: fixed; inset: 0; z-index: 24000; display: grid; place-items: center; background: #233e47b5; padding: 16px; }
.winter-secret-reveal > section {
  isolation: isolate; position: relative; overflow: auto; max-height: 100%; width: min(340px,100%);
  box-sizing: border-box; padding: 18px; text-align: center; border-radius: 17px;
  background: linear-gradient(145deg,#fcfcf3,#f3f5e9); color: #365354; border: 1px solid #c3a778;
  box-shadow: inset 0 0 0 3px #fffcf3, inset 0 0 0 4px #d5d4b9, 0 12px 36px #17313777;
}
.winter-secret-reveal .winter-secret-prize { position: relative; width: 112px; height: 112px; object-fit: contain; animation: winter-secret-lift .65s ease-out both; }
.winter-secret-reveal h2 { font: 700 1.35rem/1.2 Georgia,serif; margin: 12px 0 7px; color: #294f54; }
.winter-secret-reveal p { line-height: 1.45; margin: 0 0 16px; }
.winter-secret-reveal button { width: 100%; min-height: 42px; }
.winter-prize-stage { position:relative; display:grid; place-items:center; }
.is-brew .winter-prize-stage { padding:8px 0 3px; background:radial-gradient(ellipse closest-side,#ede0b8,transparent 98%); }
.is-brew .winter-secret-prize { animation:winter-bottle-settle .8s cubic-bezier(.21,.7,.3,1) both; }
.winter-kettle-steam { position:absolute; top:0; width:35px; height:45px; border-left:3px solid #bccbc0; border-radius:60%; pointer-events:none; animation:winter-steam-rise 1s ease-out both; }
.winter-secret-reveal .winter-brew-expiry { border-block:1px solid #cbd1be; padding:8px 2px; font-size:.82em; color:#52655c; }
@keyframes winter-steam-rise { 0%{opacity:0;transform:translateY(15px) scale(.6)} 35%{opacity:.85} 100%{opacity:0;transform:translateY(-12px) scale(1.1)} }
@keyframes winter-bottle-settle { 0%{opacity:.25;transform:translateY(11px) rotate(-6deg)} 60%{opacity:1;transform:translateY(-2px) rotate(2deg)} 100%{opacity:1;transform:none} }
.winter-secret-mist {
  pointer-events: none; position: absolute; inset: -18%; z-index: 2;
  background: radial-gradient(ellipse at 38% 38%,#f6ffffeb 4%,#e1eff0cd 33%,#e1eff000 69%);
  animation: winter-secret-thaw .85s ease-out both;
}
.winter-secret-reveal.is-brew .winter-secret-mist { background: radial-gradient(ellipse at 50% 58%,#f9eac9ee,#c9ddcfaa 39%,transparent 67%); }
.winter-steal-stage {
  position:relative;isolation:isolate;overflow:hidden;height:clamp(132px,24dvh,184px);
  border:1px solid #b3c8c6;border-radius:12px;
  background:linear-gradient(110deg,#dce9ed65,#e9f2edc9 78%),url('art/events/winter-2026/spruce-hollow.webp') center 64%/cover;
}
.winter-steal-stage::before { content:"";position:absolute;inset:58% 6% 8%;background:radial-gradient(ellipse at 50% 90%,#8caeb842,transparent 72%); }
.winter-steal-stage::after {content:"";position:absolute;inset:auto 0 0;height:7%;pointer-events:none;background:url('art/ui/winter-decor-20261122/snowcap.webp') center bottom/100% auto no-repeat;}
.winter-steal-stage .winter-steal-sack,.winter-steal-stage .winter-steal-parcel,.winter-steal-stage .winter-secret-prize {position:absolute;object-fit:contain;pointer-events:none;}
.winter-steal-stage .winter-steal-sack {bottom:11%;left:6%;width:39%;height:69%;transform-origin:54% 94%;animation:winter-sack-tug 1.35s ease-in-out both;}
.winter-steal-stage .winter-steal-parcel {left:27%;bottom:29%;width:26%;height:39%;animation:winter-parcel-hop 1.36s cubic-bezier(.34,.15,.34,.94) both;}
.winter-steal-stage .winter-secret-prize {right:8%;bottom:13%;width:38%;height:68%;animation:winter-parcel-open .42s 1.04s ease-out both;}
@keyframes winter-sack-tug {
  0%{transform:none} 18%{transform:rotate(-4deg) scale(1.02,.97)} 34%{transform:rotate(3deg) scale(.98,1.025)} 62%,100%{transform:none}
}
@keyframes winter-parcel-hop {
  0%,13%{opacity:0;transform:translate(-22%,12%) scale(.38) rotate(-8deg)}
  24%{opacity:1} 54%{opacity:1;transform:translate(64%,-42%) scale(.93) rotate(7deg)}
  78%{opacity:1;transform:translate(114%,11%) scale(1) rotate(-2deg)}
  100%{opacity:0;transform:translate(114%,9%) scale(.92)}
}
@keyframes winter-parcel-open {from{opacity:0;transform:translateY(4px) scale(.92)}to{opacity:1;transform:none}}
@keyframes winter-secret-thaw { from { opacity: 1; transform: translateY(8%) scale(.85); } to { opacity: 0; transform: translateY(-15%) scale(1.3); } }
@keyframes winter-secret-lift { from { opacity: .35; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion:reduce) {
  .winter-secret-mist,.winter-steal-parcel,.winter-kettle-steam { display: none; }
  .winter-secret-reveal img { animation: none !important; }
}
