#dlgStreak {
  box-sizing:border-box; width:min(915px,calc(100vw - 10px),max(560px,calc((100dvh - 10px)*1.356)));
  max-width:calc(100vw - 8px); max-height:calc(100dvh - 8px); margin:auto; padding:0;
  border:0; border-radius:0; box-shadow:none; background:transparent;
  color:#fff9fc; font-family:Georgia,"Times New Roman",serif;
  container-type:inline-size; overflow:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:#a675bc #120c2c;
}
body.cosmos dialog#dlgStreak {background:transparent!important}
#dlgStreak[open] {margin:auto}
#dlgStreak::backdrop {background:rgb(8 4 25 / .68);backdrop-filter:blur(3px)}
#dlgStreak .streakStage {
  position:relative; isolation:isolate; width:100%; aspect-ratio:914/674;
  color:#fff5ff; text-shadow:0 1px 3px #10051f; text-align:center;
}
#dlgStreak .streakStage::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:url(streak-frame.webp) center / 100% 100% no-repeat;
}
#dlgStreak h2,#dlgStreak p,#dlgStreak ol {margin:0}
#dlgStreak h2 {
  position:absolute; inset:17.2% 20% auto; padding:0; font:bold italic 7.4cqw/1 Georgia,serif;
  letter-spacing:-.03em; color:#ffdd88; width:auto;
  background:linear-gradient(#fff8d5 12%,#ffd980 49%,#ffb642 65%,#ffe191 90%);
  background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 1px 0 #9e4b19) drop-shadow(0 0 .45cqw #b65b24);
  text-shadow:none;
}
#dlgStreak .streakClose {
  position:absolute; top:17.4%; right:4.7%; min-height:0; min-width:0; padding:.63cqw 1.65cqw;
  display:flex; align-items:center; justify-content:center; gap:1cqw;
  border:2px solid #ffc95d; border-radius:3em; font:bold 2cqw/1.05 Georgia,serif;
  color:#fff6e3; background:linear-gradient(#5965a3 0%,#151333 24%,#10091c 60%,#392353 82%,#93512a);
  box-shadow:inset 0 0 0 1px #fff4ad,0 0 0 1px #a54216,0 0 .8cqw #e3702499!important;
  --button-depth:none; --button-bevel:none; cursor:pointer; text-shadow:0 1px 2px #190c27;
}
#dlgStreak .streakClose::before {content:"×";font:bold 1.55em/.8 Georgia,serif;color:#ffca66}
#dlgStreak .streakClose:hover {filter:brightness(1.15)}
#dlgStreak .streakClose:focus-visible {outline:2px solid #fff;outline-offset:3px}
#dlgStreak .streakIntro {
  position:absolute; inset:28.4% 10.4% auto; font:600 2.18cqw/1.23 Georgia,serif;
  color:#fcf1ff; text-wrap:pretty;
}
#dlgStreak .streakCurrent,#dlgStreak .streakRecord {
  position:absolute; display:flex; justify-content:center; align-items:center; box-sizing:border-box;
  width:max-content; max-width:87%; left:50%; transform:translateX(-50%);
  border:2px solid #f6ba57; color:#fff2c6; border-radius:6em;
  background:linear-gradient(180deg,#49357b,#120d34 36%,#110b28 65%,#312264 87%,#5f2e54);
  box-shadow:inset 0 0 .55cqw #ffc868b0,0 1px 0 #81381b,0 0 .65cqw #d17444;
}
#dlgStreak .streakCurrent {top:39.6%;height:7.6%;gap:3.1cqw;padding:0 7.5cqw 0 4cqw;font:bold 2.45cqw/1.1 Georgia,serif}
#dlgStreak .streakCurrent::before,#dlgStreak .streakCurrent::after,#dlgStreak .streakRecord::before,#dlgStreak .streakRecord::after {
  content:"✦"; position:absolute; top:50%;transform:translateY(-50%);
  color:#ffe291; text-shadow:0 0 .75cqw #ffb02e;font-size:1.55em;
}
#dlgStreak .streakCurrent::before,#dlgStreak .streakRecord::before {left:-.52em}
#dlgStreak .streakCurrent::after,#dlgStreak .streakRecord::after {right:-.52em}
#dlgStreak .streakCurrent strong {
  display:grid;place-items:center;position:relative; white-space:nowrap; min-width:8.7cqw;height:8.7cqw;
  border:2px solid #7ddfff; border-radius:50%;padding:0 .2cqw; box-sizing:border-box;
  box-shadow:inset .2cqw 0 .8cqw #3482ff,inset -.22cqw -.15cqw 1cqw #9710fe,0 0 1cqw #3da2ff;
  color:#ffdb78;font:bold italic 5.75cqw/1 Georgia,serif;text-shadow:0 2px 2px #8e3b15;
  background:radial-gradient(ellipse at 38% 30%,#27215a,#08051c 55%,#281176 88%);
}
#dlgStreak .streakCurrent strong::after {
  content:""; position:absolute; inset:30% -32%;border-radius:50%;
  border:1px solid transparent; border-bottom:2px solid #ffc570; border-right:2px solid #d480ff;
  box-shadow:0 2px .4cqw #9556e1; transform:rotate(-25deg);pointer-events:none;
}
#dlgStreak .streakCards {
  position:absolute; inset:50% 5.3% 15.1%; display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1.3%; list-style:none; padding:0;
}
#dlgStreak .streakPrize {
  position:relative; min-width:0; display:block; padding:0; overflow:hidden;
  background:url(streak-pending.webp) center/100% 100% no-repeat;
}
#dlgStreak .streakPrize.earned {background-image:url(streak-earned.webp)}
#dlgStreak .streakTarget,#dlgStreak .streakUnit,#dlgStreak .streakValue {
  position:absolute;inset-inline:3%;display:block; text-align:center;line-height:1.05;
}
#dlgStreak .streakTarget {top:3.1%;font:bold 5.3cqw/1 Georgia,serif;color:#ffe09a;text-shadow:0 2px #8a431e,0 0 .5cqw #8a462c}
#dlgStreak .streakUnit {top:24.3%;font:bold 1.9cqw/1.06 Georgia,serif;color:#fff4fb}
#dlgStreak .prizeArt {position:absolute;inset:37% 15% auto;height:29%;display:flex;align-items:flex-end;justify-content:center}
#dlgStreak .prizeArt img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 .55cqw #eb97fd60)}
#dlgStreak .streakPrize.earned .prizeArt img {filter:drop-shadow(0 0 .5cqw #f9b34f70)}
#dlgStreak .coinPile img {position:absolute;inset:0 auto auto 22%;width:73%;height:92%}
#dlgStreak .coinPile img:first-child {left:4%;height:70%;top:26%;z-index:1}
#dlgStreak .streakValue {top:68.5%;font:bold 2.75cqw/1 Georgia,serif;color:#fff5ed;text-shadow:0 1px 3px #050419}
#dlgStreak .streakReceived {
  position:absolute;left:50%;transform:translateX(-50%);bottom:6.4%;min-width:69%;
  display:inline-flex;align-items:center;justify-content:center;gap:.45em;box-sizing:border-box;
  border:1px solid #aaff64; border-radius:2em;padding:.22em .55em;
  background:linear-gradient(#22a33f,#095129 60%,#0d752d);
  box-shadow:0 0 .6cqw #1aff5880,inset 0 1px 2px #b1ff62;
  color:#f4ffdf;font:bold 1.69cqw/1.05 Georgia,serif;
}
#dlgStreak .streakReceived i {font:900 1.25em/.8 system-ui;color:#b5ff40}
#dlgStreak .streakRecord {top:90.2%;height:6.5%;min-width:30%;padding:0 3cqw;font:bold italic 2.9cqw/1 Georgia,serif}
#dlgStreak .streakRecord span::before {content:"♛";position:absolute;left:50%;top:0;transform:translate(-50%,-78%);font:700 2.6cqw/1 Georgia,serif;color:#ffc448;text-shadow:0 0 .45cqw #ed8f1b}
@container(max-width:515px) {
  #dlgStreak .streakStage {aspect-ratio:auto;box-sizing:border-box;padding:13.6cqw 6.5% 5cqw;display:flex;flex-direction:column;align-items:center;gap:2.1cqw}
  #dlgStreak .streakStage::before {background:none;border-style:solid;border-color:transparent;border-width:13cqw 3cqw 8cqw;border-image:url(streak-frame.webp) 202 45 150 45 fill / 13cqw 3cqw 8cqw / 0 stretch}
  #dlgStreak .streakClose {top:12.4cqw;right:5.8%;min-height:32px;padding:0 .65em;gap:.3em;font-size:clamp(11px,3cqw,14px)}
  #dlgStreak h2 {position:static;align-self:stretch;text-align:left;padding-left:1cqw;font-size:7.25cqw;line-height:1.16}
  #dlgStreak .streakIntro {position:static;font-size:clamp(12.5px,3.55cqw,16px);line-height:1.18}
  #dlgStreak .streakCurrent,#dlgStreak .streakRecord {position:relative;left:auto;top:auto;transform:none;height:auto}
  #dlgStreak .streakCurrent {min-height:8.5cqw;padding:0 7cqw 0 4cqw;gap:2.5cqw;margin:1.5cqw auto 2cqw;font-size:4cqw}
  #dlgStreak .streakCurrent strong {height:10cqw;min-width:10cqw;margin:-1cqw 0;font-size:7cqw}
  #dlgStreak .streakCards {position:static;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:2cqw}
  #dlgStreak .streakPrize {aspect-ratio:1.04}
  #dlgStreak .streakTarget {font-size:8.8cqw}
  #dlgStreak .streakUnit {font-size:clamp(11px,3.55cqw,16px)}
  #dlgStreak .streakValue {font-size:5.1cqw}
  #dlgStreak .streakReceived {font-size:3.25cqw}
  #dlgStreak .streakRecord {margin-top:1.6cqw;padding:.45em 1em;font-size:4.6cqw}
  #dlgStreak .streakRecord span::before {font-size:4.2cqw}
}
