/* ============ Anatomy Atelier — static cPanel build ============ */
:root{
  --bg:#f6f1e8;
  --panel:#fbf8f1;
  --ink:#4a3f35;
  --ink-soft:#8a7b6c;
  --accent:#e0785f;
  --accent-deep:#c65f47;
  --rose:#f0b7a8;
  --gold:#c9a86a;
  --line:#e7ddcd;
  --shadow:0 6px 24px rgba(120,90,60,.10);
  --radius:18px;
  --serif:"Georgia","Times New Roman",serif;
  --sans:"Segoe UI",system-ui,-apple-system,sans-serif;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--sans);
  background:
    radial-gradient(1200px 600px at 80% -10%, #fdf9f0 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 110%, #f3e8d8 0%, transparent 55%),
    var(--bg);
  color:var(--ink);
  padding:22px 34px 40px;
  min-height:100vh;
}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}

/* ---------- top bar ---------- */
.topbar{display:flex;align-items:center;gap:26px;margin-bottom:22px;flex-wrap:wrap}
.brand{display:flex;align-items:baseline;gap:8px}
.brand-name{font-family:var(--serif);font-size:34px;font-style:italic;letter-spacing:.5px}
.brand-star{color:var(--accent);font-size:20px}
.brand-tag{font-size:13px;color:var(--accent-deep);font-style:italic;margin-left:10px;border-bottom:1px dotted var(--accent)}
.mainnav{display:flex;gap:8px;margin-left:18px}
.nav-btn{
  padding:9px 16px;border-radius:999px;font-size:14px;color:var(--ink-soft);
  transition:.2s;
}
.nav-btn:hover{background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.nav-btn.active{background:#fff;color:var(--ink);box-shadow:var(--shadow);border:1px solid var(--line)}
.searchbox{margin-left:auto}
.searchbox input{
  width:280px;padding:11px 18px;border-radius:999px;border:1px solid var(--line);
  background:#fff;font-size:14px;outline:none;color:var(--ink);
}
.searchbox input:focus{border-color:var(--rose)}
.avatar{
  width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--rose));
  color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;
  border:2px solid #fff;box-shadow:var(--shadow);
}

/* ---------- layout ---------- */
.layout{display:grid;grid-template-columns:250px 1fr 330px;gap:22px;align-items:stretch}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.panel-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px 8px}
.panel-head h3{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--ink-soft)}
.head-icon{color:var(--ink-soft)}

/* organ list */
.organ-list{list-style:none;padding:6px 10px;max-height:520px;overflow-y:auto}
.organ-list li{
  display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;cursor:pointer;
  transition:.18s;border:1px solid transparent;
}
.organ-list li:hover{background:#fff}
.organ-list li.active{background:#fff;border-color:var(--rose);box-shadow:var(--shadow)}
.organ-emoji{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,#fbe9e2,#f6d8cc);
  display:flex;align-items:center;justify-content:center;font-size:24px;flex-shrink:0}
.organ-meta b{display:block;font-size:15px}
.organ-meta span{font-size:12px;color:var(--ink-soft)}
.organ-list .heart-mark{margin-left:auto;color:var(--accent);opacity:0;transition:.2s}
.organ-list li.active .heart-mark{opacity:1}
.ghost-btn{
  display:inline-block;padding:10px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;
  font-size:13.5px;color:var(--ink);transition:.2s;width:calc(100% - 20px);margin:8px 10px 14px;text-align:center;
}
.ghost-btn:hover{border-color:var(--accent);color:var(--accent-deep)}

/* ---------- stage ---------- */
.stage-wrap{position:relative;display:flex}
#stage{
  position:relative;flex:1;min-height:620px;border-radius:var(--radius);overflow:hidden;
  background:radial-gradient(ellipse at 50% 38%,#fffdf8 0%,#f8f1e4 70%,#f1e6d4 100%);
  border:1px solid var(--line);box-shadow:var(--shadow);
}
#gl{width:100%;height:100%;display:block}
.toolbar{
  position:absolute;z-index:6;left:-14px;top:70px;display:flex;flex-direction:column;gap:4px;
  background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:8px 6px;box-shadow:var(--shadow);
}
.toolbar button{
  display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9.5px;color:var(--ink-soft);
  padding:7px 9px;border-radius:10px;transition:.15s;min-width:64px;
}
.toolbar button span{font-size:17px;color:var(--ink)}
.toolbar button:hover{background:#fff}
.toolbar button.on{background:#fdeee8;color:var(--accent-deep)}
.toolbar button.on span{color:var(--accent-deep)}
#hotspots{position:absolute;inset:0;pointer-events:none;z-index:4}
.hotspot{
  position:absolute;width:16px;height:16px;border-radius:50%;pointer-events:auto;cursor:pointer;
  transform:translate(-50%,-50%);border:2.5px solid #fff;box-shadow:0 0 0 3px rgba(255,255,255,.35),0 2px 6px rgba(0,0,0,.25);
  transition:transform .15s;
}
.hotspot:hover{transform:translate(-50%,-50%) scale(1.35)}
.tip{
  position:absolute;top:26px;right:30px;z-index:5;background:#fdf6d8;border:1px solid #e9d9a8;
  border-radius:4px 14px 14px 14px;padding:12px 16px;font-size:13px;color:#6b5c3e;
  box-shadow:var(--shadow);transform:rotate(1.5deg);max-width:170px;
}
.tip b{color:var(--accent-deep)}
.tip p{margin-top:4px;line-height:1.5}
.stage-caption{
  position:absolute;left:0;right:0;bottom:16px;display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--ink-soft);z-index:5;pointer-events:none;
}
.stage-caption .latin{font-family:var(--serif);font-style:italic;font-size:15px;text-transform:none;letter-spacing:.5px;color:var(--ink)}
.autorotate{
  position:absolute;right:22px;bottom:16px;z-index:6;display:flex;align-items:center;gap:8px;
  background:#fff;border:1px solid var(--line);padding:8px 14px;border-radius:999px;font-size:12.5px;
  color:var(--ink-soft);box-shadow:var(--shadow);cursor:pointer;
}
.autorotate input{display:none}
.autorotate i{width:34px;height:19px;border-radius:999px;background:#ddd3c2;position:relative;transition:.2s}
.autorotate i::after{content:"";position:absolute;width:15px;height:15px;border-radius:50%;background:#fff;top:2px;left:2px;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.autorotate input:checked+i{background:#7fb3d5}
.autorotate input:checked+i::after{left:17px}
.zoom-btns{position:absolute;left:22px;bottom:16px;z-index:6;display:none;gap:8px}
.zoom-btns.show{display:flex}
.zoom-btns button{
  width:40px;height:40px;border-radius:50%;background:#fff;border:1px solid var(--line);
  font-size:18px;box-shadow:var(--shadow);transition:.15s;
}
.zoom-btns button:hover{border-color:var(--accent);color:var(--accent-deep)}

/* ---------- info panel ---------- */
.info-panel{padding:20px 22px;overflow-y:auto;max-height:760px}
.info-tag{
  display:inline-block;background:linear-gradient(135deg,#fdeee8,#fbd9cd);color:var(--accent-deep);
  font-size:12px;letter-spacing:1.5px;text-transform:uppercase;padding:6px 14px;border-radius:999px;margin-bottom:12px;
}
.info-title-row{display:flex;justify-content:space-between;align-items:center}
.info-title-row h1{font-family:var(--serif);font-size:38px;font-weight:500}
.organ-thumb{
  width:66px;height:66px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fdeee8,#f2c4b2);
  display:flex;align-items:center;justify-content:center;font-size:32px;box-shadow:var(--shadow);
}
.subtitle{font-family:var(--serif);font-style:italic;color:var(--accent-deep);margin:4px 0 12px;font-size:16px}
.desc{font-size:14.5px;line-height:1.65;color:var(--ink-soft)}
.facts{margin-top:18px;border-top:1px solid var(--line);padding-top:14px}
.facts h4{font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--ink-soft);margin-bottom:10px}
.facts dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;font-size:13.5px}
.facts dt{color:var(--ink-soft);display:flex;gap:8px;align-items:center}
.facts dt::before{content:"◇";color:var(--gold);font-size:11px}
.facts dd{text-align:right;color:var(--ink)}
.note-box{margin-top:14px;border-radius:12px;padding:12px 14px;font-size:13px;line-height:1.55}
.note-box b{display:block;margin-bottom:4px;font-size:13px}
.note-box.med{background:#fdeee8;color:#7c4437}
.note-box.dyk{background:#f7ecd4;color:#6b5a34}
.cta{
  width:100%;margin-top:16px;padding:14px;border-radius:12px;color:#fff;font-size:15px;
  background:linear-gradient(135deg,var(--accent),var(--accent-deep));box-shadow:0 6px 16px rgba(224,120,95,.35);
  transition:.2s;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 10px 22px rgba(224,120,95,.45)}
.btn-row{display:flex;gap:10px;margin-top:10px}
.btn-row .ghost-btn{width:50%;margin:0}
.ghost-btn.wide{width:100%;margin:10px 0 0}

/* ---------- bottom cards ---------- */
.cards{display:grid;grid-template-columns:1.1fr repeat(5,1fr);gap:18px;margin-top:22px}
.quote-card{
  border-radius:var(--radius);background:linear-gradient(160deg,#faf3e6,#f3e4cf);
  border:1px solid var(--line);box-shadow:var(--shadow);padding:26px;position:relative;
  font-family:var(--serif);font-size:22px;line-height:1.45;
}
.quote-card .flower{position:absolute;top:16px;left:20px;color:var(--accent);font-size:22px}
.quote-card p{margin-top:34px}
.quote-card em{color:var(--accent-deep)}
.card{
  background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:var(--shadow);padding:16px 18px;display:flex;flex-direction:column;gap:6px;
}
.card h5{font-size:11px;letter-spacing:1.8px;text-transform:uppercase;color:var(--ink-soft)}
.card p{font-size:14.5px;font-weight:600}
.card .ghost-btn{margin:auto 0 0;width:100%}
.card-thumb{
  height:88px;border-radius:12px;margin:6px 0;overflow:hidden;position:relative;
  display:flex;align-items:center;justify-content:center;
}
.card-thumb.tissue{background:repeating-linear-gradient(115deg,#f2b8a6 0 6px,#e89c88 6px 12px,#f6cab9 12px 18px)}
.card-thumb.compare-thumb{background:linear-gradient(135deg,#fdf1ea,#f6dccf);font-size:30px;gap:14px}
.card-thumb.compare-thumb span:nth-child(2){font-size:14px;color:var(--ink-soft)}
.card-thumb.anim{background:radial-gradient(circle at 50% 60%,#f8d3c4,#f2b3a0)}
.card-thumb.system-thumb{background:linear-gradient(135deg,#fbf2e4,#f2e0c6);font-size:40px}
.play{
  width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.9);color:var(--accent-deep);
  font-size:18px;box-shadow:var(--shadow);transition:.15s;
}
.play:hover{transform:scale(1.1)}
.conditions{list-style:none;font-size:13px;color:var(--ink-soft);line-height:1.9;font-weight:400}
.conditions li::before{content:"▾ ";color:var(--rose)}

/* ---------- popups & toast ---------- */
.hotspot-popup{
  position:fixed;z-index:50;background:#fff;border:1px solid var(--rose);border-radius:14px;
  box-shadow:0 12px 30px rgba(120,80,50,.2);padding:14px 18px;max-width:260px;font-size:13.5px;line-height:1.55;
}
.hotspot-popup b{color:var(--accent-deep);display:block;margin-bottom:4px;font-size:14.5px}
.toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%);z-index:60;
  background:#4a3f35;color:#f6f1e8;padding:12px 26px;border-radius:999px;font-size:14px;
  box-shadow:0 10px 26px rgba(0,0,0,.3);transition:opacity .3s;
}
.hidden{opacity:0;pointer-events:none}

/* ---------- responsive ---------- */
@media (max-width:1280px){
  .layout{grid-template-columns:220px 1fr 300px}
  .cards{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:980px){
  body{padding:14px}
  .layout{grid-template-columns:1fr}
  .toolbar{left:8px;top:8px;flex-direction:row;flex-wrap:wrap}
  .toolbar button{min-width:52px}
  #stage{min-height:440px}
  .searchbox input{width:100%}
  .searchbox{width:100%}
  .info-panel{max-height:none}
  .cards{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .cards{grid-template-columns:1fr}
  .brand-name{font-size:26px}
  .tip{display:none}
}
