/* 聞く・見る：宇宙の音・ゴールデンレコード・ペイル・ブルー・ドット */

/* ─── プレーヤー ─── */
.deck { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; padding: 22px; align-items: start; }
@media (max-width: 860px) { .deck { grid-template-columns: 1fr; padding: 14px; } }
.deck-vis { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--sh); }
.deck-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.62) saturate(1.1); transition: filter 0.6s, transform 8s linear; }
.deck.playing .deck-img { filter: brightness(0.5) saturate(1.25); transform: scale(1.08); }
.deck.mars .deck-img { filter: brightness(0.45) sepia(0.6) hue-rotate(-20deg) saturate(1.6); }
.deck-cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.deck-play { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #fff1c8, var(--gold) 45%, var(--gold2)); color: #2a1a05; font-size: 30px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 8px rgba(255, 210, 122, 0.18), 0 0 60px rgba(255, 190, 90, 0.55); transition: transform 0.2s, opacity 0.3s; }
.deck-play:hover { transform: scale(1.07); }
.deck-play .i-pause { display: none; font-size: 24px; letter-spacing: -2px; }
.deck.playing .deck-play { opacity: 0.35; width: 70px; height: 70px; margin: -35px 0 0 -35px; }
.deck.playing .deck-play:hover { opacity: 1; }
.deck.playing .deck-play .i-play { display: none; }
.deck.playing .deck-play .i-pause { display: block; }
.deck-cr { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0; font-size: 14.5px; color: var(--gold); text-shadow: 0 1px 6px #000; text-align: center; }
.deck-title { font-size: clamp(22px, 3vw, 30px); margin: 6px 0 2px; line-height: 1.35; word-break: auto-phrase; }
.deck-en { color: var(--cyan); margin: 0 0 6px; font-weight: 700; }
.deck-where { margin: 0 0 12px; font-size: 15.5px; }
.deck-text p { margin: 0 0 10px; }
.tr-box { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: rgba(99, 230, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(99, 230, 255, 0.25); }
.tr-box p { margin: 6px 0; display: grid; gap: 2px; }
.tr-box b { font-size: 13.5px; color: var(--cyan); }
.tr-box span { font-weight: 700; }
.tr-box small { color: var(--tx2); }
.deck-bar { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.deck-bar .x { font-size: 13.5px; color: var(--tx2); min-width: 38px; }
.deck-seek { flex: 1; accent-color: var(--gold); }
.deck-ctl { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.mars-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255, 107, 107, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 107, 107, 0.35); cursor: pointer; }
.mars-sw input { accent-color: #ff7b5a; }
.deck-credit { margin-top: 12px; }

/* ─── 5種類の音 ─── */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kind-card { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kind-emo { font-size: 30px; }
.kind-card > b { font-size: 16.5px; line-height: 1.4; }
.kind-card > small { color: var(--cyan); font-size: 13px; }
.kind-card .tri { font-size: 15px; color: var(--tx2); margin: 6px 0 0; }

/* ─── 音の一覧 ─── */
.snd-group { margin-top: 26px; }
.snd-group h3 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.snd-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.snd-item { display: flex; gap: 12px; width: 100%; text-align: left; padding: 8px; border: 0; border-radius: 14px; background: var(--panel); box-shadow: var(--glow); color: var(--tx); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.snd-item:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line2), 0 14px 40px rgba(60, 110, 255, 0.25); }
.snd-item.on { box-shadow: 0 0 0 2px var(--gold), 0 14px 40px rgba(255, 190, 90, 0.25); }
.si-pic { position: relative; flex: 0 0 104px; height: 78px; border-radius: 10px; overflow: hidden; background: #000; }
.si-pic img { width: 100%; height: 100%; object-fit: cover; }
.si-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 20px; background: rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.2s; }
.snd-item:hover .si-play, .snd-item.on .si-play { opacity: 1; }
.si-bd { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.si-bd b { font-size: 16.5px; line-height: 1.4; }
.si-bd small { color: var(--cyan); font-size: 13px; }
.si-meta { font-size: 13.5px; color: var(--mut); display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── 音当てクイズ ─── */
.snd-quiz { position: relative; padding: 26px; text-align: center; overflow: hidden; }
.sq-owl { position: absolute; right: 14px; top: 10px; width: 96px; height: auto; }
@media (max-width: 640px) { .sq-owl { width: 70px; } }
.sq-stage { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sq-n { color: var(--gold); margin: 0; }
.sq-wave { display: flex; gap: 5px; height: 40px; align-items: center; }
.sq-wave i { width: 6px; height: 100%; border-radius: 3px; background: linear-gradient(var(--cyan), var(--vio)); animation: sqw 0.9s ease-in-out infinite; }
.sq-wave i:nth-child(2n) { animation-delay: -0.3s; } .sq-wave i:nth-child(3n) { animation-delay: -0.6s; }
@keyframes sqw { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
.sq-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 820px; }
@media (max-width: 700px) { .sq-opts { grid-template-columns: 1fr; } }
.sq-opt { display: flex; flex-direction: column; text-align: left; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--panel2); color: var(--tx); cursor: pointer; box-shadow: var(--glow); transition: transform 0.15s; }
@media (max-width: 700px) { .sq-opt { flex-direction: row; } .sq-opt img { width: 96px !important; height: 72px !important; } }
.sq-opt:hover:not(:disabled) { transform: translateY(-3px); }
.sq-opt img { width: 100%; height: 110px; object-fit: cover; }
.sq-opt span { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.sq-opt b { font-size: 16px; line-height: 1.4; }
.sq-opt small { font-size: 13px; color: var(--mut); }
.sq-opt.ok { box-shadow: 0 0 0 3px var(--green), 0 0 30px rgba(93, 255, 176, 0.35); }
.sq-opt.ng { box-shadow: 0 0 0 3px var(--red); opacity: 0.75; }
.sq-res { padding: 14px 18px; border-radius: 14px; max-width: 640px; }
.sq-res.ok { background: rgba(93, 255, 176, 0.1); }
.sq-res.ng { background: rgba(255, 107, 107, 0.1); }
.sq-res b { font-size: 20px; }
.sq-end img { display: block; margin: 0 auto; }
.sq-score { font-size: 54px; color: var(--gold); margin: 4px 0; }
.sq-end .share-row { justify-content: center; }

.mars-air { padding: 24px; background: linear-gradient(135deg, rgba(255, 107, 70, 0.14), rgba(14, 22, 48, 0.7)); }
.credits { padding: 18px 20px; }
.credits summary { cursor: pointer; }
.tbl-wrap { overflow-x: auto; margin-top: 12px; }
.credits .tbl td { font-size: 14px; vertical-align: top; }

/* ─── ゴールデンレコード ─── */
.gr-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; text-align: center; }
@media (max-width: 760px) { .gr-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gr-fact { padding: 14px 8px; border-radius: var(--r); background: linear-gradient(160deg, rgba(255, 210, 122, 0.14), rgba(14, 22, 48, 0.6)); box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.25); display: flex; flex-direction: column; gap: 2px; }
.gr-fact b { font-size: clamp(30px, 4.4vw, 46px); color: var(--gold); line-height: 1.1; text-shadow: 0 0 26px rgba(255, 200, 100, 0.45); }
.gr-fact b small { font-size: 0.42em; margin-left: 3px; }
.gr-fact span { font-weight: 700; font-size: 15px; }
.gr-fact > small { font-size: 12.5px; color: var(--mut); }
.gr-photos .ph.top img { object-position: top; }
.gr-item { padding: 18px; }
.gr-ic { font-size: 34px; }
.gr-item h3 { margin: 6px 0 8px; font-size: 18px; display: flex; flex-direction: column; }
.gr-item h3 small { font-size: 13px; color: var(--cyan); }
.gr-item .tri { font-size: 15.5px; }
.gr-sounds { padding: 18px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
button.chip { cursor: pointer; border: 0; font: inherit; font-size: 15.5px; }
.chip.gold { background: var(--gold); color: #2a1a05; }
.v1-live { padding: 24px; text-align: center; }
.v1-km { margin: 8px 0 0; }
.v1-km b { font-size: clamp(30px, 6vw, 62px); color: var(--gold); text-shadow: 0 0 30px rgba(255, 200, 100, 0.45); font-variant-numeric: tabular-nums; }
.v1-km small { margin-left: 6px; color: var(--tx2); font-weight: 700; }
.v1-sub { margin: 4px 0 14px; }
.v1-bar { position: relative; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); max-width: 720px; margin: 0 auto 26px; }
.v1-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--cyan), var(--gold)); box-shadow: 0 0 20px rgba(255, 210, 122, 0.5); }
.v1-bar i { position: absolute; top: 18px; left: 0; font-size: 13.5px; font-style: normal; color: var(--tx2); }
.v1-bar i.r { left: auto; right: 0; color: var(--gold); }
.gr-maker { padding: 24px; }
.gm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin-top: 14px; align-items: start; }
@media (max-width: 820px) { .gm-grid { grid-template-columns: 1fr; } }
.gm-form .field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 12px; font-weight: 700; font-size: 15.5px; }
.gm-out canvas { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--sh); background: #03050d; }

/* ─── ペイル・ブルー・ドット ─── */
.pbd-game { padding: 22px; text-align: center; }
.pbd-wrap { position: relative; max-width: 720px; margin: 14px auto; border-radius: 14px; overflow: hidden; cursor: crosshair; box-shadow: var(--sh); }
.pbd-wrap img { display: block; width: 100%; height: auto; }
.pbd-ring { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 0 4px rgba(255, 210, 122, 0.25), 0 0 30px rgba(255, 210, 122, 0.7); pointer-events: none; }
.pbd-ring.show::after { content: 'わたしたちの地球'; position: absolute; left: 50%; top: 70px; transform: translateX(-50%); white-space: nowrap; font-size: 14.5px; font-weight: 900; color: #2a1a05; background: var(--gold); padding: 3px 10px; border-radius: 999px; }
.pbd-miss { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid rgba(255, 120, 120, 0.9); pointer-events: none; }
.pbd-miss.pop { animation: pbdm 0.6s ease-out forwards; }
@keyframes pbdm { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.pbd-msg { min-height: 3em; font-size: 17px; }
.pbd-game .flex { justify-content: center; }
.pbd-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .pbd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pbd-stats .stat { padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pbd-stats b { font-size: clamp(30px, 4.4vw, 44px); color: var(--cyan); line-height: 1.1; }
.pbd-stats b small { font-size: 0.42em; margin-left: 2px; }
.pbd-stats span { font-size: 14.5px; color: var(--tx2); }
.pbd-scale { padding: 24px; }
.ps-rows { display: grid; gap: 10px; margin: 14px 0; }
.ps-rows > div { display: grid; grid-template-columns: 34px 170px 1fr; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
@media (max-width: 560px) { .ps-rows > div { grid-template-columns: 28px 1fr; } .ps-rows > div > span:last-child { grid-column: 2; font-size: 14.5px; color: var(--tx2); } }
.ps-dot { justify-self: center; border-radius: 50%; display: block; }
.ps-dot.e { width: 6px; height: 6px; background: #6fb8ff; box-shadow: 0 0 10px #6fb8ff; }
.ps-dot.m { width: 3px; height: 3px; background: #ddd; }
.ps-dot.s { width: 26px; height: 26px; background: radial-gradient(#fff6c8, #ffb648); box-shadow: 0 0 18px #ffb648; }
.ps-dot.v { width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ps-dot.v.now { background: var(--green); }
