.result-dialog {
  width: min(600px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  border: 1px solid #f4cb7ba6;
  border-radius: 28px;
  color: #fff7ef;
  background: radial-gradient(ellipse at 50% 4%, #b8744947, transparent 57%), linear-gradient(145deg, #49305d, #241332 80%);
  box-shadow: 0 36px 100px #080311b3, 0 0 70px #e8b35824, inset 0 1px 0 #ffe1a355;
  scrollbar-width: thin;
  scrollbar-color: #be9153 #2a1739;
}
.result-dialog::backdrop { background: #100a23c9; backdrop-filter: blur(10px); }
.result-dialog[open] { animation: result-reveal .65s cubic-bezier(.16,1,.3,1) both; }
.result-dialog::before { content: ''; position: absolute; inset: 9px; border: 1px solid #f9d69626; border-radius: 20px; pointer-events: none; z-index: -1; }
.result-close { position: absolute; top: 18px; right: 18px; z-index: 4; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #f1d7f32b; border-radius: 50%; background: #28182a80; color: #eedfed; cursor: pointer; }
.result-close svg { width: 18px; height: 18px; }
.result-close:hover { background: #663d60; border-color: #f2cd9280; }
.result-content { position: relative; z-index: 2; padding: 33px 40px 27px; text-align: center; }
.result-eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; padding-inline: 35px; color: #f6d49c; font-size: 11px; line-height: 1.7; letter-spacing: .14em; }
.result-eyebrow > span { width: 25px; height: 1px; background: linear-gradient(90deg, transparent, #f4ce86); }
.result-eyebrow > span:last-child { transform: rotate(180deg); }
.result-emblem { position: relative; display: grid; place-items: center; width: 102px; height: 102px; margin: 26px auto 19px; color: #ffe6a6; background: radial-gradient(circle at 36% 22%, #fedb895c, #d8a04c13 70%); border: 1px solid #f6d18b8c; border-radius: 50%; box-shadow: inset 0 0 22px #f7c46917, 0 0 44px #eabb562c; }
.result-emblem > svg { width: 49px; height: 49px; stroke-width: 1.3; filter: drop-shadow(0 2px 8px #f0c9706b); }
.result-emblem-halo { position: absolute; inset: -12px; border: 1px solid #ffd78624; border-radius: inherit; animation: result-halo 2.8s ease-out 2; pointer-events: none; }
.result-emblem > i { position: absolute; font-style: normal; font-size: 26px; right: -29px; top: 10px; color: #ffe2a2; animation: result-star 1.8s ease-in-out 3; }
.result-emblem > i:last-child { left: -34px; right: auto; top: auto; bottom: 2px; font-size: 19px; animation-delay: .3s; }
.result-victory-label { font-size: 10px; letter-spacing: .14em; color: #dcbbdb; line-height: 1.7; }
.result-content h2 { font-family: Dela, Arial, sans-serif; font-size: clamp(25px, 4.7vw, 34px); font-weight: 400; line-height: 1.4; letter-spacing: -.035em; margin-top: 7px; color: #fff8ed; }
.result-winner { font-family: Dela, Arial, sans-serif; font-size: clamp(23px, 4.5vw, 30px); line-height: 1.45; color: #ff80bb; text-shadow: 0 0 24px #ff33894d; margin: 3px auto 10px; max-width: 100%; overflow-wrap: anywhere; animation: result-name .8s .12s both; }
.result-description { max-width: 425px; margin: 0 auto; color: #d7c2e3; font-size: 14px; line-height: 1.8; }
.result-reward { margin-top: 22px; padding: 21px 22px 17px; border: 1px solid #edc47b50; border-radius: 17px; background: linear-gradient(115deg, #c9994715, #efc37908 48%, #bd82431a); box-shadow: inset 0 1px 0 #ffdda013; }
.result-jackpot { display: flex; flex-direction: column; align-items: center; }
.result-jackpot > span:first-child { color: #cfaf81; font-size: 10px; letter-spacing: .16em; }
.result-jackpot > strong { font-family: Dela, Arial, sans-serif; font-size: clamp(35px, 8vw, 59px); font-weight: 400; line-height: 1.35; letter-spacing: -.055em; background: linear-gradient(115deg, #c48d2b, #ffe5a0 30%, #fff5ca 48%, #eac36b 62%, #f9dea0); background-clip: text; -webkit-background-clip: text; color: transparent; filter: drop-shadow(0 3px 12px #e0a73d26); max-width: 100%; overflow-wrap: anywhere; }
.result-jackpot > span:last-child { font-size: 14px; color: #f3d6a0; }
.result-stake { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 15px; font-size: 12px; line-height: 1.8; color: #bfa6cd; border-top: 1px solid #e7c48e25; padding-top: 12px; margin-top: 15px; }
.result-stake b { font-weight: 400; color: #ebdcef; }
.result-date { margin-top: 17px; font-size: 11px; line-height: 1.8; color: #b89cc9; }
.result-date > span { display: inline-block; padding: 0 10px; color: #e6bc75; font-size: 10px; }
.result-content > .pink-button { width: 100%; justify-content: center; min-height: 52px; margin-top: 19px; padding: 15px 22px; font-size: 14px; }
.result-queue { color: #cdb2db; font-size: 12px; margin-top: 13px; line-height: 1.6; }
.result-dialog[data-kind="auction"] .result-emblem { width: 132px; height: 132px; margin-top: 25px; margin-bottom: 17px; border-radius: 24px; }
.result-dialog[data-kind="auction"] .result-emblem .item-art { filter: drop-shadow(0 6px 12px #12071d88); }
.result-dialog[data-kind="auction"] .result-reward { padding-top: 16px; }
.result-item-name { font-size: 16px; font-weight: 500; line-height: 1.7; color: #f8e5bb; overflow-wrap: anywhere; }
.result-stats { display: grid; grid-template-columns: 1fr 1.3fr; margin-top: 15px; padding-top: 15px; border-top: 1px solid #e7c48e25; gap: 12px; }
.result-stats > div + div { border-left: 1px solid #e7c48e25; padding-left: 12px; }
.result-stats span { display: block; color: #c1a6cd; font-size: 12px; line-height: 1.8; }
.result-stats strong { display: block; color: #f8d689; font-family: Dela, Arial, sans-serif; font-weight: 400; font-size: clamp(21px, 5vw, 28px); line-height: 1.6; overflow-wrap: anywhere; }
.result-stats small { font-family: Unbounded, Arial, sans-serif; font-size: 11px; font-weight: 300; color: #d6b988; }
.result-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit; z-index: 3; }
.result-confetti i { position: absolute; top: -16px; left: var(--x); width: 5px; height: 11px; border-radius: 1px; background: #f8d683; opacity: 0; animation: result-confetti 3.6s var(--delay) ease-out both; }
.result-confetti i:nth-child(3n) { background: #ff83bb; height: 6px; }
.result-confetti i:nth-child(3n+1) { background: #fff3c3; width: 3px; }
.result-details-button { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: 0; color: #f3cc8a; font: inherit; font-size: 11px; line-height: 1.8; text-decoration: underline; text-decoration-color: #f3cc8a55; text-underline-offset: 4px; cursor: pointer; padding: 4px 0; margin-top: 5px; }
.result-details-button:hover { color: #ffe9b5; text-decoration-color: currentColor; }
@media (max-height: 780px) and (min-width: 601px) {
  .result-content { padding-top: 26px; padding-bottom: 22px; }
  .result-emblem { width: 86px; height: 86px; margin-top: 20px; margin-bottom: 14px; }
  .result-dialog[data-kind="auction"] .result-emblem { width: 110px; height: 110px; margin-top: 20px; margin-bottom: 12px; }
  .result-dialog[data-kind="auction"] .result-emblem .item-art { transform: scale(.85); }
  .result-reward { margin-top: 17px; padding-top: 15px; padding-bottom: 14px; }
  .result-stats { margin-top: 10px; padding-top: 10px; }
  .result-date { margin-top: 12px; }
  .result-content > .pink-button { margin-top: 14px; }
  .result-queue { margin-top: 8px; }
}
@keyframes result-reveal { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes result-name { from { opacity: 0; transform: translateY(9px); filter: blur(5px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes result-halo { 0% { transform: scale(.98); opacity: .8; } 100% { transform: scale(1.17); opacity: 0; } }
@keyframes result-star { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes result-confetti { 0% { opacity: 0; transform: translate3d(0,-15px,0) rotate(var(--angle)); } 10% { opacity: .9; } 85% { opacity: .8; } 100% { opacity: 0; transform: translate3d(var(--drift),700px,0) rotate(calc(var(--angle) + 300deg)); } }
@media (max-width: 600px) {
  .result-dialog { width: calc(100vw - 24px); max-height: calc(100svh - 24px); border-radius: 22px; }
  .result-content { padding: 28px 21px 24px; }
  .result-close { top: 13px; right: 13px; width: 35px; height: 35px; }
  .result-eyebrow { font-size: 9px; padding-inline: 30px; gap: 7px; letter-spacing: .08em; }
  .result-eyebrow > span { width: 15px; }
  .result-emblem { margin-top: 22px; width: 85px; height: 85px; margin-bottom: 16px; }
  .result-emblem > svg { width: 42px; height: 42px; }
  .result-description { font-size: 12px; }
  .result-reward { margin-top: 18px; padding: 17px 14px 14px; }
  .result-stake { font-size: 11px; }
  .result-date { font-size: 10px; }
  .result-dialog[data-kind="auction"] .result-emblem { width: 118px; height: 118px; margin-top: 24px; }
  .result-dialog[data-kind="auction"] .result-emblem .item-art { transform: scale(.85); }
  .result-item-name { font-size: 14px; }
  .result-stats span { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .result-dialog[open], .result-winner, .result-emblem-halo, .result-emblem > i { animation: none; }
  .result-confetti { display: none; }
  .result-dialog::backdrop { backdrop-filter: none; }
}
