/* New raster instrument set. Keep the nebula's light, depth and interaction. */
@media(min-width:761px){
 #hw-etch-ring{display:block;width:min(105vmin,1300px);opacity:.10;animation:none;mix-blend-mode:screen;filter:saturate(.55);mask-image:radial-gradient(circle,transparent 0 22%,#0008 38%,#000 59%)}
 body.hw-chart #hw-etch-ring{opacity:.10}
 .hw-label .pill{background:rgba(4,12,19,.78);border-color:var(--tint-border);box-shadow:0 2px 9px #0009,inset 0 0 10px #101e2455;backdrop-filter:blur(5px)}
 .hw-label .jp{text-shadow:0 2px 4px #000,0 0 8px #000}
 .hw-label.listening .pill,.hw-label.front .pill{background:rgba(5,17,23,.83);border-color:var(--tint);box-shadow:0 0 16px var(--tint-border),0 2px 12px #000b}
 #hw-scrim-top::after,#hw-scrim-bottom::after{opacity:.12;background-size:480px 480px}
 #hw-title{top:8px}
 #hw-title h1,html[lang=en] #hw-title h1{box-sizing:border-box;width:390px;height:130px;padding:72px 50px 24px;line-height:34px;font-size:23px;letter-spacing:.36em;text-indent:.36em;filter:drop-shadow(0 3px 8px #0009)}
 html[lang=en] #hw-title h1{font-size:15px;letter-spacing:.13em;text-indent:.13em}
 #hw-title p{margin:-5px 0 0;font-size:9px;letter-spacing:.23em;color:#c9bc9bb3}
 #hw-verse{width:min(92vw,900px);bottom:33px}
 #hw-verse .plate{position:relative;box-sizing:border-box;min-height:145px;display:flex;flex-direction:column;justify-content:center;border:0;border-image:none;padding:21px 23%;background:url(assets/verse-astrolabe-v2.webp) center/100% 205% no-repeat;filter:drop-shadow(0 3px 12px #0009)}
 #hw-verse.show .plate{opacity:.94}
 #hw-verse .line{font-size:clamp(12px,1.15vw,17px);white-space:normal;overflow:visible;text-overflow:clip;line-height:1.7;letter-spacing:.10em;color:#eae1c9}
 #hw-verse .who{font-size:9px;letter-spacing:.22em;color:#c7bc9aaa}
 #hw-verse .cta{margin-top:9px;font-size:10px}
 #hw-verse:focus-visible{outline-offset:5px}
 @media(max-height:800px){
  #hw-title{top:4px;transform:translateX(-50%) scale(.85);transform-origin:center top}
  #hw-title p{margin-top:-5px}
  #hw-verse{bottom:30px}
  #hw-verse .plate{min-height:135px;padding:16px 22%;background-size:100% 205%}
 }
}
@media(prefers-reduced-motion:reduce){#hw-etch-ring{animation:none}}

/* Luminous jade and moonlit glass, scoped to the star-reading hub. */
@media(min-width:761px){
 #hw-scrim-top{background:linear-gradient(180deg,#071b2b99,#071b2b22 65%,transparent)}
 #hw-scrim-bottom{background:linear-gradient(0deg,#06172299,#06172222 65%,transparent)}
 #hw-etch-ring,body.hw-chart #hw-etch-ring{opacity:.13}
 .hw-label .pill{
  background:linear-gradient(155deg,#e9fffa38,#6eafb42b 35%,#132c3b80 80%);
  border:1px solid #bfe9dd66;border-top-color:#edfff9aa;
  box-shadow:inset 0 1px 0 #ffffff44,inset 0 -1px 0 #a1e9e91a,0 4px 14px #020d2066;
  backdrop-filter:blur(13px) saturate(145%) brightness(1.12);-webkit-backdrop-filter:blur(13px) saturate(145%) brightness(1.12);
 }
 .hw-label .jp{color:#f0fff5;text-shadow:0 1px 5px #00161e,0 0 9px #00212a;font-weight:500}
 .hw-label .en{color:#c9e7e4;opacity:.82;text-shadow:0 1px 4px #001722}
 .hw-label.listening .pill,.hw-label.front .pill{
  background:linear-gradient(145deg,#effff95c,#65d9c555 38%,#123b4e99);
  border-color:#c3ffe5;border-top-color:#fffdea;
  box-shadow:inset 0 1px 0 #fff9,inset 0 -1px 0 #91ffec55,0 0 19px #6cffe866,0 4px 16px #00152299;
 }
 .hw-label.listening .jp,.hw-label.front .jp{color:#ffffeb;text-shadow:0 0 11px #aeffe688,0 1px 4px #00232e}
 #hw-verse .plate{background:none;filter:none;isolation:isolate}
 #hw-verse.show .plate{opacity:1}
 #hw-verse .plate::before{
  content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:url(assets/verse-astrolabe-v2.webp) center/100% 205% no-repeat;
  mask-image:linear-gradient(90deg,#000 0 23%,transparent 24% 76%,#000 77%),linear-gradient(180deg,transparent 0 7%,#000 8% 15%,transparent 16% 84%,#000 85% 92%,transparent 93%);
 }
 #hw-verse .plate::after{
  content:'';position:absolute;left:16%;right:16%;top:12%;bottom:12%;z-index:0;pointer-events:none;border-radius:13px;
  background:linear-gradient(150deg,#d4fff22e,#7ac2ca26 30%,#1b516144 70%,#a5dce52e);
  border:1px solid #d0fff065;border-top-color:#edfff9a6;
  box-shadow:inset 0 1px 0 #ffffff59,inset 0 -1px 0 #c5fff233,0 8px 28px #00182355,0 0 26px #70e8d119;
  backdrop-filter:blur(21px) saturate(150%) brightness(1.4);-webkit-backdrop-filter:blur(21px) saturate(150%) brightness(1.4);
 }
 #hw-verse .line,#hw-verse .who{position:relative;z-index:2}
 #hw-verse .line{color:#f4fff1;text-shadow:0 1px 7px #00232b;font-weight:500}
 #hw-verse .who{color:#cbe9df}
 #hw-verse .cta{color:#d4ffe9;text-shadow:0 0 12px #72ffdd77}
 #hw-title h1{position:relative;isolation:isolate;color:#fffce1;text-shadow:0 0 18px #caffcd99,0 2px 5px #003629}
 #hw-title h1::before{content:'';position:absolute;left:15%;right:15%;top:54%;bottom:14%;z-index:-1;border-radius:11px;background:linear-gradient(140deg,#d6fff43d,#296a663b);backdrop-filter:blur(14px);box-shadow:inset 0 1px 0 #f6ffe84d,0 0 24px #c7ffe71c}
 #hw-title p{color:#c7e9dd}
 #hw-explore button,#hw-btn-chart,#hw-btn-mystar,body[data-mode=hub] #hubNav .hn-link,body[data-mode=hub] #hubNav #ft-lang-toggle{
  background:linear-gradient(145deg,#d8fff426,#4b899329 45%,#12324866);color:#defff1;border-color:#b9ead766;
  box-shadow:inset 0 1px 0 #f2fff733,0 4px 12px #00112055;backdrop-filter:blur(15px) saturate(140%);
 }
 #hw-explore button:hover,#hw-btn-chart:hover,#hw-btn-mystar:hover{background:linear-gradient(145deg,#e8ffe54d,#61c9b544,#143a5099);border-color:#e2ffe9;color:#fffde1}
}

@media(min-width:761px){
 .hw-label .pill{position:relative;overflow:hidden}
 .hw-label .pill::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(110deg,transparent 40%,#f6ffed99 49%,transparent 58%);background-size:260% 100%;background-position:160% 0;opacity:.35;mask-image:linear-gradient(180deg,#000 0 6%,transparent 24% 76%,#000 96%);animation:hw-glass-glint 15s ease-in-out infinite}
 .hw-label.listening .pill::after,.hw-label.front .pill::after{opacity:.85;animation-duration:9s}
 #hw-verse::after{content:'';position:absolute;left:24%;right:24%;top:11%;height:2px;pointer-events:none;background:linear-gradient(90deg,transparent 38%,#e6fff7cc 50%,transparent 62%);background-size:250% 100%;background-position:160% 0;filter:drop-shadow(0 0 4px #b2ffe7);animation:hw-glass-glint 18s ease-in-out infinite}
 @keyframes hw-glass-glint{0%,68%{background-position:160% 0}86%,100%{background-position:-100% 0}}
 body.hw-world-paused .hw-label .pill::after,body.hw-world-paused #hw-verse::after{animation-play-state:paused}
}
@media(prefers-reduced-motion:reduce){.hw-label .pill::after,#hw-verse::after{animation:none!important}}

/* Every formerly green panel is now live glass, including both instrument medallions. */
@media(min-width:761px){
 #hw-title h1,html[lang=en] #hw-title h1{background:none}
 #hw-title h1::before{
  inset:0;z-index:-2;border-radius:0;
  background:linear-gradient(135deg,#e8fff236,#8bd8d32d 40%,#3467812b 75%,#d7f4ff3b);
  mask:url(assets/title-glass-mask.svg) center/100% 100% no-repeat;
  backdrop-filter:blur(11px) saturate(150%) brightness(1.3);-webkit-backdrop-filter:blur(11px) saturate(150%) brightness(1.3);
  box-shadow:none;
 }
 #hw-title h1::after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url(assets/title-armillary-v4.webp) center/100% 100% no-repeat}
 #hw-verse .plate::before{background-image:url(assets/verse-astrolabe-v3.webp);mask-image:none}
 #hw-verse .plate::after{
  inset:0;left:0;right:0;top:0;bottom:0;border:0;border-radius:0;
  mask:url(assets/verse-glass-mask.svg) center/100% 205% no-repeat;
  background:linear-gradient(145deg,#e0fff033,#85d6d329 35%,#28576b2b 75%,#d4f2ff3b);
  backdrop-filter:blur(12px) saturate(150%) brightness(1.35);-webkit-backdrop-filter:blur(12px) saturate(150%) brightness(1.35);
  box-shadow:inset 0 1px 0 #effffb55,0 0 30px #80f4d41a;
 }
}
/* The gold and its moving reflections use the artwork's own coordinate system. */
@media(min-width:761px){
 #hw-verse::after{display:none}
 .hw-metal-sheen{position:absolute;inset:0;z-index:3;pointer-events:none;
  background:linear-gradient(105deg,transparent 42%,#fff6b955 47%,#fffef3 50%,#c7fff699 52%,transparent 58%);
  background-size:350% 100%;background-position:150% 0;opacity:.85;
  animation:hw-metal-travel 14s ease-in-out infinite}
 #hw-title .hw-metal-sheen{height:130px;mask:url(assets/title-rim-mask.svg) center/100% 100% no-repeat;animation-delay:-5s}
 #hw-verse .hw-metal-sheen{mask:url(assets/verse-rim-mask.svg) center/100% 205% no-repeat;animation-duration:17s}
 .hw-metal-glint{position:absolute;z-index:3;pointer-events:none;width:32px;height:32px;
  transform:translate(-50%,-50%);background:radial-gradient(ellipse,#ffffdf 0 2%,#f9eb9588 7%,transparent 45%);
  animation:hw-jewel-breathe 11s ease-in-out infinite;opacity:0}
 .hw-metal-glint::before,.hw-metal-glint::after{content:'';position:absolute;inset:0;
  background:linear-gradient(90deg,transparent 6%,#ffffdc 49% 51%,transparent 94%) center/100% 1px no-repeat,
  linear-gradient(0deg,transparent 6%,#ffffdc 49% 51%,transparent 94%) center/1px 100% no-repeat;
  filter:drop-shadow(0 0 3px #fce49f)}
 .hw-metal-glint::after{transform:rotate(45deg) scale(.5);opacity:.6}
 #hw-title .hw-metal-glint{left:50%;top:9px;animation-delay:-3s}
 #hw-verse .hw-metal-glint{left:8.3%;top:44.9%;animation-delay:-7s}
 #hw-verse .hw-metal-glint-end{left:91.7%;animation-delay:-1s;animation-duration:13s}
 @keyframes hw-metal-travel{0%,64%{background-position:150% 0;opacity:0}68%{opacity:.9}84%{opacity:.9}90%,100%{background-position:-80% 0;opacity:0}}
 @keyframes hw-jewel-breathe{0%,68%,100%{opacity:0;transform:translate(-50%,-50%) scale(.4)}77%{opacity:1;transform:translate(-50%,-50%) scale(1.15)}87%{opacity:.18;transform:translate(-50%,-50%) scale(.7)}}
 body.hw-world-paused .hw-metal-sheen,body.hw-world-paused .hw-metal-glint{animation-play-state:paused}
}
@media(max-width:760px){.hw-metal-sheen,.hw-metal-glint{display:none}}
@media(prefers-reduced-motion:reduce){.hw-metal-sheen,.hw-metal-glint{animation:none!important;opacity:0}}
