/* Both stories are in the initial document; tabs only change visibility. */
.addon-panel[hidden] { display:none; }
.addon-showcase { border-bottom:1px solid var(--line); }
.addon-tabs { display:flex; justify-content:center; gap:8px; padding:20px 24px; background:#100e0b; border-bottom:1px solid var(--line); }
.addon-tabs a { display:grid; gap:5px; min-width:180px; padding:15px 28px; border:1px solid #54442b; color:#ccb98e; text-align:center; text-decoration:none; font:600 19px/1.3 var(--font-display); }
.addon-tabs a span { font:10px/1.5 Arial,sans-serif; letter-spacing:.07em; color:#c4b697; }
.addon-tabs a:hover,.addon-tabs a[aria-selected="true"] { border-color:#d7b56c; color:#ffe4a4; background:linear-gradient(120deg,#392b16,#19160f); }
.addon-tabs a:focus-visible,.addon-panel:focus-visible { outline:2px solid #ffe4a3; outline-offset:-4px; }
.addon-panel-hero { display:flex; align-items:center; min-height:calc(100svh - 115px); padding:72px max(32px,calc((100% - 1120px)/2)); box-sizing:border-box; background:linear-gradient(90deg,rgba(7,15,10,.95),rgba(7,15,10,.85) 38%,rgba(7,15,10,.12) 82%),url('/assets/bgs/posts/elwynn-forest.webp') center/cover no-repeat; }
#chat-copy-plugin .addon-panel-hero { background-image:linear-gradient(90deg,rgba(11,14,20,.94),rgba(11,14,20,.82) 36%,rgba(11,14,20,.04) 75%),url('/assets/bgs/addon/chat-copy-workshop-v1.webp'); }
.addon-panel-copy { max-width:710px; padding:26px 0; text-shadow:0 2px 14px #000; }
.addon-product { display:flex; align-items:center; gap:18px; margin-bottom:30px; color:#edcf8b; font:400 25px/1.3 var(--font-display); }
.addon-product img { flex:none; border-radius:17px; box-shadow:0 8px 30px #0008; }
.addon-panel .workshop-section-heading { margin-bottom:28px; }
.addon-panel .workshop-section-heading h2 { font-size:clamp(38px,4.5vw,66px); }
.addon-panel .workshop-section-heading > p:not(.eyebrow) { color:#ecdfc6; }
.addon-actions { display:flex; flex-wrap:wrap; align-items:stretch; gap:12px; }
.addon-curse { display:inline-flex; justify-content:center; align-items:center; gap:16px; min-height:60px; padding:17px 24px; box-sizing:border-box; border:1px solid #c78858; background:#281a13e8; color:#ffe0bb; font:700 12px/1.5 Arial,sans-serif; letter-spacing:.07em; text-transform:uppercase; text-decoration:none; text-shadow:none; }
.addon-curse:hover { background:#42291c; border-color:#ffb375; }
.addon-panel .workshop-release { margin-top:18px; }
.addon-panel-details { width:min(1120px,calc(100% - 48px)); margin:auto; padding:48px 0 65px; }
.addon-panel-details h3 { margin:0 0 11px; color:#eace96; font:400 22px/1.25 var(--font-display); }
.addon-panel code { padding:2px 5px; background:#0005; color:#efd08b; font: .83em ui-monospace,Consolas,monospace; overflow-wrap:anywhere; }
#chat-copy-plugin .addon-panel-hero { position:relative; isolation:isolate; overflow:hidden; }
#chat-copy-plugin .addon-panel-copy { position:relative; z-index:1; }
.chat-workshop-effects { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.chat-workshop-effects::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 83% 30%,#ffa52c22,transparent 28%); animation:chat-lamplight 7s ease-in-out infinite alternate; animation-play-state:paused; }
.chat-workshop-effects::after { content:''; position:absolute; top:20%; right:12%; width:3px; height:3px; border-radius:50%; background:#ffe6ae; box-shadow:30px 110px #ffe0a577,-60px 80px #ffe0a588,90px -20px #ffe0a577,-115px -35px #ffe0a566,120px 160px #ffe0a588; animation:chat-dust 13s ease-in-out infinite alternate; animation-play-state:paused; }
.chat-workshop-paper { position:absolute; top:10%; right:9%; width:32px; height:23px; border:1px solid #caa25a; border-radius:2px; background:repeating-linear-gradient(180deg,transparent 0 4px,#dfc68b99 4px 5px,transparent 5px 7px) 5px 4px/22px 16px no-repeat,#252a27; opacity:0; box-shadow:2px 3px 5px #0006; animation:chat-paper 19s linear infinite; animation-play-state:paused; }
.chat-workshop-paper:nth-child(2) { right:20%; top:4%; animation-delay:-7s; animation-duration:24s; }
.chat-workshop-paper:nth-child(3) { right:4%; top:24%; animation-delay:-13s; animation-duration:21s; width:24px; }
.chat-workshop-paper:nth-child(4) { right:29%; top:12%; animation-delay:-17s; animation-duration:28s; width:20px; height:28px; }
.chat-workshop-paper:nth-child(5) { right:15%; top:0; animation-delay:-3s; animation-duration:26s; width:38px; height:15px; }
.workshop-in-view .chat-workshop-effects::before,.workshop-in-view .chat-workshop-effects::after,.workshop-in-view .chat-workshop-paper { animation-play-state:running; }
@keyframes chat-paper { 0% { opacity:0; transform:translate3d(0,0,0) rotate(-20deg); } 12%,75% { opacity:.7; } 45% { transform:translate3d(-35px,110px,0) rotate(18deg); } 100% { opacity:0; transform:translate3d(20px,300px,0) rotate(70deg); } }
@keyframes chat-dust { to { transform:translate3d(-20px,-32px,0); opacity:.25; } }
@keyframes chat-lamplight { to { opacity:.4; } }
@media(prefers-reduced-motion:reduce) { .chat-workshop-effects { display:none; } }
#gathering-plugin .addon-panel-hero { position:relative; isolation:isolate; overflow:hidden; background-image:linear-gradient(90deg,#07100bf2,#07100bcc 36%,#07100b0a 76%),url('/assets/bgs/addon/sparkle-o-matic-v1.webp'); }
#gathering-plugin .addon-panel-copy { position:relative; z-index:1; }
.sparkles-tagline { margin:0 0 20px; color:#f2d292; font-size:22px; font-style:italic; line-height:1.4; }
.sparkles-scene { position:absolute; pointer-events:none; overflow:hidden; }
.sparkles-emitter { position:absolute; width:0; height:0; }
.sparkles-herb { left:81.3%; top:79%; }
.sparkles-ore { left:92.4%; top:44%; transform:scale(.95); }
.sparkles-crystal { left:70.2%; top:40.5%; }
.sparkles-emitter::before { content:''; position:absolute; width:180px; height:130px; left:-90px; top:-65px; background:radial-gradient(ellipse,#fff0ac99 0,#ffd34b66 24%,#ffb52d22 48%,transparent 72%); animation:sparkles-glow 3.5s ease-in-out infinite alternate; animation-play-state:paused; }
/* Keep the halo outside the star's clip path so its glow remains visible. */
.sparkles-emitter span { position:absolute; left:var(--spark-x); width:24px; height:24px; border-radius:50%; background:radial-gradient(circle,#fff0aebb,#ffd45066 25%,transparent 70%); opacity:0; animation:sparkles-rise var(--spark-duration) var(--spark-delay) ease-out infinite; animation-play-state:paused; }
.sparkles-emitter span::after { content:''; position:absolute; inset:4px; background:#fff9d9; clip-path:polygon(50% 0,62% 37%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 37%); }
.sparkles-emitter span:nth-child(3n) { width:32px; height:32px; }
.sparkles-crystal::before { width:90px; height:90px; left:-45px; top:-45px; background:radial-gradient(circle,#baffee99,#70ffdd33 35%,transparent 70%); }
.sparkles-crystal span { width:20px; height:20px; background:radial-gradient(circle,#c8fff7bb,#70ffdd55 30%,transparent 70%); animation-name:sparkles-blink; }
.sparkles-crystal span::after { background:#dcfff8; }
.workshop-in-view .sparkles-emitter::before,.workshop-in-view .sparkles-emitter span { animation-play-state:running; }
@keyframes sparkles-rise { 0% { opacity:0; transform:translate3d(-8px,6px,0) scale(.55); } 18% { opacity:1; } 65% { opacity:1; } 100% { opacity:0; transform:translate3d(var(--spark-drift),-110px,0) scale(.4); } }
@keyframes sparkles-blink { 0%,100% { opacity:.1; transform:scale(.5); } 50% { opacity:1; transform:scale(1.3); } }
@keyframes sparkles-glow { to { opacity:.4; transform:scale(.85); } }
@media(prefers-reduced-motion:reduce) { .sparkles-scene { display:none; } }
@media(max-width:600px) {
  .addon-tabs { padding:14px 16px; gap:8px; }
  .addon-tabs a { flex:1; min-width:0; padding:13px 8px; font-size:17px; }
  .addon-tabs a span { font-size:9px; letter-spacing:0; }
  .addon-panel-hero { min-height:calc(100svh - 100px); padding:35px 24px; background-position:60% center; background-image:linear-gradient(90deg,#07100be8,#07100bbd),url('/assets/bgs/posts/elwynn-forest.webp'); }
  #chat-copy-plugin .addon-panel-hero { padding-top:230px; background-color:#11100e; background-image:linear-gradient(180deg,transparent 130px,#11100e 245px),url('/assets/bgs/addon/chat-copy-workshop-v1.webp'); background-size:100% 260px,auto 260px; background-position:top center,top right; }
  #chat-copy-plugin .addon-panel-copy { padding-top:0; }
  .chat-workshop-effects { bottom:auto; height:260px; }
  #gathering-plugin .addon-panel-hero { padding-top:275px; background-color:#0c140e; background-image:linear-gradient(180deg,transparent 190px,#0c140e 295px),url('/assets/bgs/addon/sparkle-o-matic-v1.webp'); background-size:100% 300px,auto 300px; background-position:top center,top right; }
  #gathering-plugin .addon-panel-copy { padding-top:0; }
  .sparkles-tagline { font-size:20px; }
  .addon-product { margin-bottom:26px; font-size:22px; }
  .addon-product img { width:64px; height:64px; }
  .addon-actions { flex-direction:column; }
  .addon-panel .workshop-install-link { font-size:14px; justify-content:flex-start; }
  .addon-panel-details { width:calc(100% - 32px); padding:30px 0 40px; }
}
