/* Wishes on Typing Racer Classic (legacy/js/classicWishes.js; owner, 2026-12-03): the pill by the title and its
   wishing-well window. Calm (html.trgCalm) and reduced motion: no floats, no coin toss, no twinkle. */
#classicWishes{display:inline-flex; align-items:center; gap:6px; background:#ffb329; border:2px solid #844d0b; border-radius:30px; padding:4px 18px;
	color:#5a3306; font:700 15px/1.2 'Lato', sans-serif; white-space:nowrap; cursor:pointer; position:relative;}
#classicWishes:hover{background:#ffc24f;}
#classicWishes:focus-visible{outline:3px solid #fff; outline-offset:2px; box-shadow:0 0 0 6px #844d0b;}
/* the drawn icons (classicWishes.js icon(): a wish, a shooting star, the well; owner 2026-12-03, no emoji) */
.cwIco{display:inline-block; width:1.25em; height:1.25em; vertical-align:-.28em; flex:none; overflow:visible;}
#classicWishes .cwStar{display:inline-flex;}
#classicWishes .cwStar .cwIco{width:22px; height:22px; vertical-align:0;}
#classicWishes .cwN{font-size:18px; font-weight:900;}
#classicWishes .cwGo{margin-left:6px; background:#5a3306; color:#ffe08a; border-radius:20px; padding:2px 9px; font-size:12px; text-transform:uppercase; letter-spacing:.04em;}
#classicWishes.cwReady{animation:cwGlow 1.8s ease-in-out infinite;}
@keyframes cwGlow{0%,100%{box-shadow:0 0 0 0 rgba(255,214,74,.0);} 50%{box-shadow:0 0 14px 4px rgba(255,214,74,.85);}}
.cwFloat{position:absolute; right:10px; top:-4px; font:900 20px 'Lato', sans-serif; color:#ffd24a; text-shadow:0 1px 0 #844d0b, 0 0 8px rgba(0,0,0,.4);
	pointer-events:none; animation:cwFloat 1.6s ease-out forwards;}
@keyframes cwFloat{0%{opacity:0; transform:translateY(8px) scale(.8);} 15%{opacity:1; transform:translateY(0) scale(1.1);} 100%{opacity:0; transform:translateY(-38px) scale(1);}}

/* --- the window --- */
.cwShade{position:fixed; inset:0; z-index:100000; background:rgba(10,14,20,.6); display:flex; align-items:center; justify-content:center; padding:16px;}
:where(.cwShade, .cwShade *){margin:0; box-sizing:border-box;}
.cwBox{position:relative; width:100%; max-width:420px; max-height:calc(100vh - 32px); overflow:auto; background:#fffdf6; color:#2b2416; border-radius:18px;
	border:3px solid #ffb329; box-shadow:0 18px 50px rgba(0,0,0,.45); padding:22px 24px 20px; text-align:center; font-family:'Lato', sans-serif;}
.cwBox h2{font-family:'Fugaz One', 'Lato', sans-serif; font-weight:400; font-size:26px; color:#385f05; margin-bottom:6px;}
.cwBox p, .cwBox li{color:#3d3424; font-size:16px; line-height:1.45;}
.cwBox .cwLead{margin-bottom:10px;}
.cwBox .cwSmall{font-size:13px; color:#7a6a4c; margin-top:8px;}
.cwX{position:absolute; top:8px; right:10px; width:34px; height:34px; border:0; border-radius:50%; background:transparent; color:#7a6a4c; font-size:26px; line-height:1; cursor:pointer;}
.cwX:hover, .cwX:focus-visible{background:#f3ead2; color:#2b2416;}
.cwHow{list-style:none; padding:0; text-align:left; display:inline-flex; flex-direction:column; gap:6px; margin:4px 0 12px;}
.cwHow li{position:relative; padding-left:34px; min-height:26px;}
.cwHow .cwIco{position:absolute; left:0; top:50%; width:24px; height:24px; margin-top:-12px;}
.cwBox h2 .cwIco{width:30px; height:30px; vertical-align:-5px;}
.cwToss .cwIco{width:22px; height:22px; vertical-align:-5px; margin-right:2px;}
.cwFloat .cwIco{width:22px; height:22px; vertical-align:-4px; filter:drop-shadow(0 1px 1px rgba(0,0,0,.35));}
.cwBar{height:12px; border-radius:8px; background:#f0e4c4; overflow:hidden; margin:4px 0 0;}
.cwBar span{display:block; height:100%; background:linear-gradient(90deg, #ffd24a, #ffb329); border-radius:8px;}
.cwBtns{display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-top:14px;}
.cwBtns button{border:0; border-radius:999px; padding:10px 20px; font:700 16px 'Lato', sans-serif; cursor:pointer;}
.cwToss{background:#385f05; color:#aeff50;}
.cwToss small{font-weight:400; opacity:.85;}
.cwToss:disabled{opacity:.6; cursor:default;}
.cwDone{background:#ece3cc; color:#3d3424;}
.cwBtns button:hover:not(:disabled), .cwBtns button:focus-visible{filter:brightness(1.1);}
.cwBtns button:focus-visible{outline:3px solid #ffb329; outline-offset:2px;}
.cwFortune{font-family:'Fugaz One', 'Lato', sans-serif; font-size:19px !important; color:#5a3306 !important; background:#fff3cf; border:2px dashed #ffb329; border-radius:12px; padding:12px 14px; margin-top:4px;}

/* --- the well, the coin toss and the sparkle --- */
.cwWell{display:block; width:220px; max-width:100%; height:auto; margin:4px auto 8px; overflow:visible;}
.cwWell .cwCoinX, .cwWell .cwSparks, .cwWell .cwRipple{opacity:0;}
.cwWell .cwCoinX{transform:translate(18px, 150px);}
.cwTossing .cwCoinX{opacity:1; animation:cwCoinX 1.1s linear forwards;}
.cwTossing .cwCoinY{animation:cwCoinY 1.1s cubic-bezier(.3,.6,.6,1) forwards;}
@keyframes cwCoinX{0%{transform:translate(18px, 150px);} 100%{transform:translate(110px, 150px);}}
@keyframes cwCoinY{0%{transform:translateY(0) rotate(0);} 55%{transform:translateY(-82px) rotate(300deg);} 100%{transform:translateY(-37px) rotate(560deg) scale(.6);}}
.cwTossing .cwCoinX{animation-name:cwCoinX, cwCoinGone; animation-duration:1.1s, .15s; animation-delay:0s, 1.05s; animation-fill-mode:forwards;}
@keyframes cwCoinGone{to{opacity:0;}}
.cwTossing .cwRipple{transform-box:fill-box; transform-origin:center; animation:cwRipple .9s ease-out 1.05s forwards;}
.cwTossing .cwRipple2{animation-delay:1.25s;}
@keyframes cwRipple{0%{opacity:.9; transform:scale(.4);} 100%{opacity:0; transform:scale(3);}}
.cwGranted .cwSparks{opacity:1;}
.cwGranted .cwSparks path{transform-box:fill-box; transform-origin:center; animation:cwTwinkle 1.4s ease-in-out infinite;}
.cwGranted .cwSparks path:nth-child(2){animation-delay:.35s;}
.cwGranted .cwSparks path:nth-child(3){animation-delay:.7s;}
@keyframes cwTwinkle{0%,100%{transform:scale(.6); opacity:.5;} 50%{transform:scale(1.25); opacity:1;}}

html.trgCalm #classicWishes.cwReady, html.trgCalm .cwGranted .cwSparks path{animation:none;}
@media (prefers-reduced-motion: reduce){
	#classicWishes.cwReady, .cwGranted .cwSparks path{animation:none;}
}

@media (max-width:600px){
	#classicWishes{padding:3px 12px; font-size:13px;}
	#classicWishes .cwGo{display:none;}
}
