/* PRINCEMAIR — Dark Prince fantasy theme. Keeps original components accessible. */
:root{
  --bg:#0c0712;
  --card:#160f20;
  --line:#594368;
  --fg:#f7f0ff;
  --muted:#c0b2cb;
  --dim:#81768d;
  --amethyst:#ab85c8;
  --rose:#bc7895;
  --leaf:#709c87;
}
html{background:#0c0712}
body{
  background:
    radial-gradient(ellipse 65% 29% at 50% 8%,#4424528c 0%,#24122999 37%,transparent 88%),
    radial-gradient(ellipse 58% 19% at 15% 78%,#2c143755 0%,transparent 100%),
    radial-gradient(ellipse 45% 24% at 90% 63%,#17332736 0%,transparent 85%),
    #0c0712;
  font-family:'Segoe UI',Arial,sans-serif;
}
body:before{
  background:radial-gradient(ellipse at 50% 4%,#905eb021 0%,transparent 45%),radial-gradient(ellipse at 85% 68%,#59764c16,transparent 42%);
  opacity:1;
}
.grain{opacity:.13}
.realm-stars{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:0;opacity:.85}
.realm-stars span{position:absolute;color:#dab6ee;opacity:.35;font-size:16px;filter:drop-shadow(0 0 9px #b677e6);animation:twinkle 4s ease-in-out infinite alternate}
.realm-stars span:nth-child(1){top:9%;left:10%;font-size:13px}
.realm-stars span:nth-child(2){top:19%;right:14%;animation-delay:1s}
.realm-stars span:nth-child(3){top:44%;left:5%;font-size:11px;animation-delay:2s}
.realm-stars span:nth-child(4){top:61%;right:9%;font-size:18px;animation-delay:.6s}
.realm-stars span:nth-child(5){top:81%;left:16%;font-size:12px;animation-delay:1.8s}
.realm-stars span:nth-child(6){top:90%;right:13%;font-size:10px;animation-delay:2.3s}
@keyframes twinkle{from{opacity:.15;transform:scale(.75)}to{opacity:.77;transform:scale(1.16)}}
.frame{max-width:600px}
.hero{padding-top:13px}
.tag{color:#d1bddc;letter-spacing:2px;font-size:10px;text-shadow:0 0 17px #8247a744}
.led{background:#d8aaff;box-shadow:0 0 14px #ae68d4;width:5px;height:5px}
.moon-crest{display:flex;align-items:center;justify-content:center;gap:13px;color:#c2a4d9;font-family:Georgia,serif;margin-top:24px;font-size:24px;line-height:1}
.moon-crest i{height:1px;width:38px;background:linear-gradient(90deg,transparent,#b17ec0,transparent)}
.moon-crest span:nth-of-type(2){font-size:17px}
.crown-wrap{
  position:relative;
  width:148px;height:148px;
  margin-top:23px;margin-bottom:13px;
  border:1px solid #b18bc87c;
  background:radial-gradient(circle at 50% 35%,#6a46746e,#29152f91 50%,#0d0914 79%);
  box-shadow:0 0 0 9px #7d4d8e0d,0 0 0 17px #7d4d8e08,0 0 53px #8b52bb4b,inset 0 0 35px #c488d42c,0 22px 54px #000b;
}
.crown-wrap:before,.crown-wrap:after{content:'✦';color:#b88ac9b3;position:absolute;top:61px;font-size:13px}
.crown-wrap:before{left:-25px}.crown-wrap:after{right:-25px}
.crown{color:#f5e6fc;filter:drop-shadow(0 0 12px #be85e1a6);width:96px;height:96px}
h1{
  margin-top:19px;
  font-family:'Palatino Linotype','Book Antiqua',Georgia,serif;
  font-size:clamp(35px,9vw,53px);
  font-weight:700;
  letter-spacing:-1.8px;
  text-shadow:0 4px 24px #d696ff46;
  color:#fff5ff;
}
h1 span:not(.period){font-weight:400;color:#d7b8e8}
h1 .period{color:#b689d3}
.subtitle{color:#d9c3e6;letter-spacing:2.3px;font-size:10px}
.subtitle span{color:#d6a8e0}
.intro{color:#d0c2d8;line-height:1.8;font-family:Georgia,serif;font-size:15px}
.realm-line{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;
  margin:22px 0 2px;padding:10px 14px;
  font-size:15px;color:#d7ccdd;
  border-top:1px solid #9269a34a;
  border-bottom:1px solid #9269a34a;
}
.realm-line span{letter-spacing:1.1px;font-size:9px;font-weight:700}
.realm-line em{color:#b58ab9;font-style:normal;font-size:10px}
.signature{color:#e3c7ed;letter-spacing:2.5px;font-size:10px;margin-top:24px}
.signature span{color:#c99fdc}
.music{
  border:1px solid #956fa17a;
  background:linear-gradient(125deg,#38233fdb,#1d1524ea 62%,#15101cea);
  box-shadow:0 12px 44px #0007,0 0 25px #8d46b02b;
  border-radius:18px;
  position:relative;
}
.music:before{
  content:'';
  pointer-events:none;
  position:absolute;inset:0;
  border-radius:inherit;
  background:linear-gradient(105deg,#ce8ee417,transparent 40%);
}
.music-disc{background:repeating-radial-gradient(circle at center,#26192c 0 2px,#685073 3px 3.5px);border:1px solid #b58fc8;color:#e9d6f5}
.music-disc span{background:#180f20}
.music-copy .tiny{color:#cdacd6;letter-spacing:1px}
.music-copy strong{color:#fff3ff}
.music-copy small{color:#c0abcb}
.play-btn{background:#f3ddff;color:#24132e;box-shadow:0 0 18px #d892eb43}
.mini-btn{color:#efddf5}
.section-line{border-bottom:1px solid #92679f80}
.section-line h2{color:#edd4f7;letter-spacing:2px}
.section-line span{color:#aa8eb4}
.link-list{gap:12px}
.link-card{
  position:relative;
  background:linear-gradient(105deg,#24192ee6,#17111ee9 65%,#1b1424e9);
  border:1px solid #775a86a1;
  border-radius:14px;
  box-shadow:inset 0 1px #d4aad512,0 8px 24px #08050e65;
  min-height:81px;
  transition:background .2s,border-color .2s,box-shadow .2s,transform .2s;
}
.link-card:before{
  content:'';
  position:absolute;left:0;top:15px;bottom:15px;
  width:2px;
  background:linear-gradient(180deg,transparent,#c99bd3aa,transparent);
  border-radius:4px;
}
.link-card:hover,.link-card:focus-visible{
  background:linear-gradient(110deg,#3a2746,#23182e);
  border-color:#d7a5e1;
  box-shadow:0 0 25px #905cb147,0 8px 25px #0005;
}
.link-ico{background:#3c2948;border:1px solid #8e6d9c8e;font-size:21px;border-radius:12px}
.link-label strong{font-size:14px;letter-spacing:.4px}
.link-label small{color:#c7b4d0}
.link-arrow{color:#d8b2e6}
.link-card.featured{
  color:#24132f;
  background:linear-gradient(110deg,#f6e7ff,#dec7ec 72%,#d1abeb);
  border-color:#f0d7ff;
  box-shadow:0 0 30px #be74df40,0 7px 25px #0009;
}
.link-card.featured .link-ico{background:#d7bde6;border-color:#ac87bd}
.link-card.featured .link-label small,.link-card.featured .link-arrow{color:#5e436a}
.link-card.featured:hover{background:linear-gradient(100deg,#fff5ff,#efd9fa)}
.link-note{color:#a791af}
.closer-label{color:#d4a9de}
.closer>p:nth-child(2){color:#e8d4ec;text-shadow:0 0 14px #a56ac052;font-size:21px}
.separating-star{color:#d29ee5}
footer{border-top:1px solid #7656828c;color:#aa96b3}
.bottom-controls{
  background:#24182ce8;
  border:1px solid #9570a9;
  box-shadow:0 3px 26px #a45bc92c,0 10px 40px #000b;
}
.bottom-controls button{background:#694a79;color:#fff0ff}
.bottom-controls button:hover{background:#8b619d}
.toast{background:#f4e3fb;color:#291c2f}
@media(max-width:410px){
 .frame{padding-left:17px;padding-right:17px}
 .tag{font-size:8px;letter-spacing:1.6px}
 .moon-crest{margin-top:20px}
 .crown-wrap{width:137px;height:137px}
 .realm-line{gap:5px;padding:9px 4px}
 .realm-line span{font-size:8px}
 .music-copy .tiny{font-size:7.3px}
 .link-card{padding:12px}
}
@media(prefers-reduced-motion:reduce){.realm-stars span{animation:none}}
