/* explore-r1 / outer-r1（2026-11-19）— 選んだ天体の輪、「この先へ」、太陽系のずっと外側。軽量版・超リアル版の共通。
   ふだんは何も表示しない（hidden）。既存の見た目（濃紺のガラス・水色の文字）に合わせる。 */

/* ---- 選んだ天体の輪と名前 ---- */
.uy-beacon{position:absolute;left:0;top:0;width:0;height:0;pointer-events:none;z-index:4}
.uy-beacon[hidden]{display:none}
.uy-beacon-ring{position:absolute;left:-14px;top:-14px;width:28px;height:28px;border-radius:50%;
  border:1.5px solid rgba(196,226,255,.95);box-shadow:0 0 10px rgba(120,180,255,.75),inset 0 0 6px rgba(120,180,255,.45)}
.uy-beacon-ring::after{content:'';position:absolute;inset:-2px;border-radius:50%;border:1px solid rgba(170,210,255,.7);
  animation:uyBeaconPulse 2.4s ease-out infinite}
@keyframes uyBeaconPulse{0%{transform:scale(1);opacity:.85}100%{transform:scale(2.3);opacity:0}}
.uy-beacon-name{position:absolute;left:0;top:-42px;transform:translateX(-50%);white-space:nowrap;
  padding:3px 10px;border-radius:999px;background:rgba(8,14,30,.86);border:1px solid rgba(160,200,255,.6);
  color:#f2f7ff;font:600 13px/1.4 -apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  box-shadow:0 2px 10px rgba(0,0,0,.5)}

/* ---- 上の帯にまとめて置くいれもの ---- */
.uy-float{position:absolute;z-index:10;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;pointer-events:none}
.uy-float[hidden]{display:none}
.uy-float > *{pointer-events:auto}
body.uy-floating #hint{visibility:hidden}

/* ---- 「〇〇を中心に見ています」 ---- */
.uy-center-chip{position:relative;max-width:100%;box-sizing:border-box;display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:center;
  padding:5px 6px 5px 14px;border-radius:999px;background:rgba(8,12,24,.84);border:1px solid rgba(140,180,255,.42);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 4px 16px rgba(0,0,0,.45);
  color:#e7efff;font:13px/1.4 -apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;white-space:nowrap}
.uy-center-chip[hidden]{display:none}
.uy-center-chip b{color:#bcd8ff;font-weight:700}
.uy-cc-btn{min-height:32px;padding:4px 12px;border-radius:999px;font-size:12px;font-weight:600;
  background:rgba(90,130,210,.32);border:1px solid rgba(150,190,255,.5);color:#eef4ff;cursor:pointer}
.uy-cc-btn[hidden]{display:none}
.uy-cc-btn:hover{background:rgba(120,160,230,.5)}
.uy-center-chip.is-tight{border-radius:14px;padding:5px 8px;font-size:12px;white-space:normal;text-align:center}
body.uy-perf-lite .uy-center-chip{-webkit-backdrop-filter:none;backdrop-filter:none;background:rgba(8,12,24,.94)}

/* ---- 「この先へ」 ---- */
.uy-edge-wrap{position:relative;display:flex;flex-direction:column;align-items:center;max-width:100%}
.uy-edge-wrap[hidden]{display:none}
.uy-edge-pill{display:inline-flex;align-items:center;gap:8px;min-height:36px;padding:5px 14px 5px 12px;border-radius:999px;cursor:pointer;
  color:#fff4ea;background:linear-gradient(90deg,rgba(255,140,90,.30),rgba(130,150,255,.30));border:1px solid rgba(255,190,150,.6);
  box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 4px 18px rgba(0,0,0,.5),0 0 18px rgba(255,150,110,.25);
  font:13px/1.3 -apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;animation:uyEdgeIn .45s cubic-bezier(.2,.7,.3,1),uyPillGlow 3.2s ease-in-out .5s infinite}
.uy-edge-pill[hidden]{display:none}
.uy-edge-pill:hover{filter:brightness(1.18)}
.uy-ep-k{font-weight:700;letter-spacing:.08em}
.uy-ep-t{font-size:12px;color:#ffe2d2}
.uy-edge-pill i{font-style:normal;font-size:16px;line-height:1;color:#ffd2b8}
@keyframes uyPillGlow{0%,100%{box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 4px 18px rgba(0,0,0,.5),0 0 14px rgba(255,150,110,.18)}50%{box-shadow:0 0 0 1px rgba(255,255,255,.04) inset,0 4px 18px rgba(0,0,0,.5),0 0 26px rgba(255,160,120,.42)}}
.uy-edge{position:relative;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:14px 14px 12px;border-radius:14px;
  background:linear-gradient(160deg,rgba(18,26,52,.985),rgba(8,10,22,.985));border:1px solid rgba(150,180,255,.38);
  box-shadow:0 10px 30px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.03) inset;color:#e3ecff;
  font-family:-apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;animation:uyEdgeIn .45s cubic-bezier(.2,.7,.3,1)}
.uy-edge[hidden]{display:none}
@keyframes uyEdgeIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.uy-edge-x{position:absolute;top:6px;right:6px;width:32px;height:32px;padding:0;border-radius:50%;
  background:transparent;border:0;color:rgba(220,230,255,.6);font-size:18px;line-height:1;cursor:pointer}
.uy-edge-x:hover{color:#fff;background:rgba(120,160,220,.2)}
.uy-edge-kicker{margin:0 30px 4px 0;font-size:11px;font-weight:700;letter-spacing:.18em;color:#9fc3ff}
.uy-edge-lead{margin:0 0 10px;font-size:12.5px;line-height:1.6;color:#d6e2ff}
.uy-edge-go{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;box-sizing:border-box;margin:0 0 8px;
  padding:9px 12px;border-radius:10px;text-align:left;white-space:normal;cursor:pointer;text-decoration:none;
  background:linear-gradient(90deg,rgba(255,140,90,.26),rgba(140,150,255,.22));border:1px solid rgba(255,180,140,.45);color:#fff3ea}
.uy-edge-go[hidden]{display:none}
.uy-edge-go b{font-size:13px}
.uy-edge-go span{font-size:11px;color:#ffd9c4;opacity:.92}
.uy-edge-go:hover{filter:brightness(1.15)}
.uy-edge-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.uy-edge-list a{position:relative;display:block;padding:8px 30px 8px 12px;border-radius:10px;text-decoration:none;
  background:rgba(90,130,210,.16);border:1px solid rgba(130,170,240,.3);color:#eaf1ff}
.uy-edge-list a:hover{background:rgba(110,150,230,.32)}
.uy-edge-list b{display:block;font-size:13px}
.uy-edge-list span{display:block;font-size:11px;line-height:1.45;color:#b9cdf2}
.uy-edge-list i{position:absolute;right:11px;top:50%;transform:translateY(-50%);font-style:normal;color:#9fc3ff}
.uy-edge-foot{margin:8px 0 0;font-size:10.5px;line-height:1.5;color:rgba(200,215,255,.6)}
@media (max-width:640px) and (orientation:portrait){
  .uy-edge{padding:12px 12px 10px}
  .uy-edge-lead{font-size:12px;margin-bottom:8px}
  .uy-edge-list span{display:none}
  .uy-edge-list a{padding:7px 28px 7px 10px}
}
@media (max-width:420px){ .uy-ep-t{display:none} }
@media (max-height:500px) and (orientation:landscape){
  .uy-edge-lead,.uy-edge-foot,.uy-edge-list span,.uy-edge-go span{display:none}
  .uy-edge{padding:10px 10px 8px}
}
body.uy-perf-lite .uy-edge,body.uy-perf-lite .uy-edge-pill{animation:none}

/* ---- 小さな画面の「さらに外へ」の札（カイパーベルト表示のときだけ） ---- */
.uy-deep-pill{display:inline-flex;align-items:center;gap:8px;max-width:100%;min-height:40px;padding:5px 14px 5px 12px;border-radius:999px;cursor:pointer;
  color:#fff4ea;background:linear-gradient(90deg,rgba(255,140,90,.34),rgba(130,150,255,.32));border:1px solid rgba(255,190,150,.65);
  box-shadow:0 4px 16px rgba(0,0,0,.5),0 0 16px rgba(255,150,110,.25);font:13px/1.3 -apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;
  white-space:normal;text-align:left;animation:uyEdgeIn .45s cubic-bezier(.2,.7,.3,1)}
.uy-deep-pill[hidden]{display:none}
.uy-dp-k{font-weight:700;white-space:nowrap}
.uy-dp-t{font-size:11.5px;color:#ffe2d2}
.uy-deep-pill i{font-style:normal;font-size:16px;color:#ffd2b8}
@media (max-width:420px){ .uy-dp-t{display:none} }
body.uy-perf-lite .uy-deep-pill{animation:none}

/* ---- 太陽系のずっと外側（超リアル版だけ） ---- */
.deep-nav{margin-top:7px}
.deep-nav[hidden],.deep-row[hidden],#deepInfo[hidden]{display:none!important}
.deep-row{display:flex;gap:6px;align-items:stretch}
.deep-row-b{margin-top:6px}
#deepBtn{flex:1 1 auto;min-width:0;min-height:44px;padding:6px 8px;font-size:12.5px;line-height:1.35;white-space:normal;
  background:linear-gradient(90deg,rgba(255,140,90,.2),rgba(130,150,255,.18));border-color:rgba(255,170,130,.45)}
#deepBtn[aria-pressed="true"]{background:linear-gradient(90deg,rgba(255,140,90,.42),rgba(130,150,255,.36));border-color:rgba(255,200,170,.8);color:#fff}
#deepBtn .deep-lbl-short{display:none}
#deepHelp{flex:0 0 48px;min-width:48px;min-height:44px;padding:5px;font-size:12px;font-weight:600}
#p9Btn{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;min-height:44px;padding:6px 10px;font-size:12.5px;line-height:1.35;white-space:normal;text-align:left}
#p9Btn .p9-dot{flex:0 0 auto;width:14px;height:14px;border-radius:50%;
  background:radial-gradient(circle,rgba(220,232,255,.95) 0 28%,rgba(140,170,255,.55) 45%,rgba(120,150,255,0) 72%);border:1px dashed rgba(200,215,255,.8)}
#p9Btn[aria-pressed="true"]{background:rgba(120,150,255,.38);border-color:rgba(200,215,255,.85);color:#fff}
#deepInfo{margin-top:7px;padding:9px 11px;background:rgba(35,48,94,.62);border:1px solid rgba(160,170,240,.42);border-radius:9px;
  color:#e5ebff;font-size:12px;line-height:1.62;max-height:min(30vh,220px);overflow-y:auto;overscroll-behavior:contain}
#deepInfo p{margin:0 0 6px}
#deepInfo .deep-caution{color:#d8d5c9}
#deepInfo a{color:#c6d4ff;display:inline-block;padding:3px 0;margin-right:8px}
@media(max-width:900px){ #deepBtn .deep-lbl-long{display:none} #deepBtn .deep-lbl-short{display:inline} }
/* 小さな画面：「さらに外へ」はパネルに出さない（3Dの上の札で案内）。「ずっと外側」ではほかのモードの入口を隠して、パネルを伸ばさない */
@media (max-width:760px), (max-height:500px){
  .deep-row-a{display:none!important}
  .deep-row-b{margin-top:5px}
  body.is-deep-view #ui .lagrange-action, body.is-deep-view #ui .nea-action{display:none!important}
}
@media(max-width:640px) and (orientation:portrait){
  /* 横に2つ並べる決まり（カイパーベルト以外の表示）を、「ずっと外側」では使わない */
  body.is-deep-view #ui .kuiper-action{display:flex;width:auto;margin-left:0}
  #deepInfo{max-height:min(24vh,150px)}
  body.is-deep-help-open #scaleNote, body.is-deep-help-open #ui > .row, body.is-deep-help-open #viewOptions{display:none}
}
@media(max-height:500px) and (orientation:landscape){
  #deepBtn,#deepHelp{min-height:36px;font-size:11px}
  #p9Btn{min-height:36px;font-size:11px;padding:4px 6px}
  #p9Btn .p9-k{display:none}
  .deep-row-b{margin-top:4px}
  #deepInfo{font-size:11px;max-height:85px;padding:6px 8px}
  body.is-deep-help-open #scaleNote, body.is-deep-help-open #ui > .row, body.is-deep-help-open #viewOptions{display:none}
}

#deepLabels{position:absolute;inset:0;pointer-events:none;z-index:5}
#deepLabels[hidden],.deep-label[hidden]{display:none}
.deep-label{position:absolute;transform:translate(-50%,-50%);white-space:nowrap;text-align:center;
  font:600 12px/1.35 -apple-system,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;text-shadow:0 1px 4px #000,0 0 10px #000}
.deep-label small{display:block;font-size:10px;font-weight:450;opacity:.85}
.deep-label.dl-kin{color:#f0b89c}
.deep-label.dl-sedna{color:#ffb08a;font-size:13px}
.deep-label.dl-ring{color:rgba(190,206,232,.72);font-weight:500;font-size:11px}
.deep-label.dl-ld{color:#ffd98e}
.deep-label.dl-p9{color:#cdd9ff;padding:5px 10px;border-radius:10px;background:rgba(14,20,48,.66);border:1px dashed rgba(190,205,255,.6);white-space:normal;width:max-content;max-width:220px}
.deep-label.dl-p9s{padding:3px 9px;font-size:11.5px}
.deep-label.dl-eight{color:#bcd2f5;font-size:11px;font-weight:500}
@media (prefers-reduced-motion: reduce){ .uy-beacon-ring::after{animation:none;opacity:0} .uy-edge,.uy-edge-pill{animation:none} }
