/* ===== スペック情報 ===== */
.pl-info{flex:none;width:52px;height:48px;border-radius:10px;border:1px solid var(--line2);background:var(--bg2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.pl-info:active{background:var(--bg3)}
.pl-info-ico{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;font-family:Georgia,serif;font-style:italic;font-weight:700;font-size:12px;color:#1a1405;background:var(--gold)}
.pl-info-lb{font-size:9px;color:var(--fg2);font-weight:700}
.pl-ctrl .pl-speed{width:88px}
.spec-wrap{position:absolute;inset:0;z-index:72;background:rgba(0,0,0,.6);display:flex;align-items:flex-end;animation:pe .2s ease both}
.spec-sheet{position:relative;width:100%;max-height:88%;overflow-y:auto;scrollbar-width:none;padding:22px 16px 20px;border-radius:20px 20px 0 0;background:var(--bg2);border-top:1px solid var(--line2);animation:specUp .32s cubic-bezier(.2,.8,.2,1) both}
.spec-sheet::-webkit-scrollbar{display:none}
@keyframes specUp{from{transform:translateY(100%)}to{transform:none}}
.spec-close{position:absolute;top:6px;right:6px}
.spec-head{display:flex;align-items:center;gap:10px;padding-right:36px}
.spec-head div{display:flex;flex-direction:column;min-width:0}
.spec-head b{font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.spec-head span:not(.pl-kind){font-size:11px;color:var(--fg3)}
.spec-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:14px 0 12px;padding:3px;border-radius:10px;background:var(--bg3)}
.spec-tabs button{height:34px;border-radius:8px;font-size:12px;font-weight:700;color:var(--fg3);text-align:center}
.spec-tabs button.on{background:var(--line2);color:var(--fg)}
.spec-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.spec-grid div{padding:9px 10px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}
.spec-grid dt{font-size:10px;color:var(--fg3);font-weight:700}
.spec-grid dd{font-size:14px;font-weight:900;margin-top:2px;line-height:1.35}
.spec-h{font-size:12px;font-weight:900;color:var(--fg2);margin:4px 0 -6px}
.spec-split{display:grid;gap:14px}
.spec-split .hitpie{margin-top:0}
.hp-legend i.sw-premium{background:linear-gradient(135deg,#ff4d6d,#f5ff5a,#4ab8ff,#c86bff)}
.hp-legend i.sw-gold{background:#e3bd5c}.hp-legend i.sw-red{background:#ec5a4f}.hp-legend i.sw-blue{background:#4c8ff0}.hp-legend i.sw-green{background:#3ce27a}
.spec-table{width:100%;border-collapse:collapse;font-size:12px;border-radius:10px;overflow:hidden}
.spec-table th{font-size:10px;color:var(--fg3);font-weight:700;text-align:left;padding:6px 8px;background:var(--bg3)}
.spec-table td{padding:8px;border-top:1px solid var(--line);font-family:var(--en);white-space:nowrap}
.spec-table td:first-child{font-size:10px;letter-spacing:.06em}
.spec-table tr.t-premium td:first-child{background:linear-gradient(90deg,#ff4d6d,#ffb84a,#4ab8ff,#c86bff);-webkit-background-clip:text;background-clip:text;color:transparent;font-weight:600}
.spec-table tr.t-gold td:first-child{color:#e3bd5c}.spec-table tr.t-red td:first-child{color:#ff7a6a}.spec-table tr.t-blue td:first-child{color:#7cc6ff}.spec-table tr.t-green td:first-child{color:#5fe38a}
.spec-flow{display:grid;gap:8px}
.spec-flow li{position:relative;display:flex;gap:12px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:var(--bg);border:1px solid var(--line)}
.sf-no{width:24px;height:24px;flex:none;border-radius:50%;display:grid;place-items:center;font-family:var(--en);font-size:12px;font-weight:600;color:#1a1405;background:var(--gold)}
.spec-flow div{display:flex;flex-direction:column;gap:2px}
.spec-flow b{font-size:13px}
.spec-flow small{font-size:11px;color:var(--fg2);line-height:1.6}
.sf-arrow{position:absolute;left:23px;bottom:-9px;width:8px;height:8px;border-right:1.5px solid var(--gold-d);border-bottom:1.5px solid var(--gold-d);transform:rotate(45deg);background:var(--bg2);z-index:1}
.spec-note{font-size:10px;color:var(--fg3);margin-top:12px}


/* Native modal keeps focus and Escape behavior; layout follows the shared bottom sheet. */
dialog.spec-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,600px);max-width:100%;max-height:88dvh;padding:22px 16px max(20px,env(safe-area-inset-bottom));border:1px solid var(--line2);color:var(--fg);overscroll-behavior:contain;box-sizing:border-box}
dialog.spec-sheet:not([open]){display:none}
.spec-sheet::backdrop{background:#0009;backdrop-filter:blur(3px)}
.spec-sheet .spec-close{position:absolute;top:6px;right:6px;min-height:44px;width:44px;height:44px;z-index:1}
.spec-sheet .sheet-grip{position:absolute;top:7px;left:50%;transform:translateX(-50%);width:36px;height:4px;border-radius:5px;background:var(--line2)}
.spec-head b{white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.spec-grid{margin:0}.spec-grid dd{margin-left:0;overflow-wrap:anywhere}.spec-flow{list-style:none;padding:0;margin:0}
.spec-tabs button{min-height:44px;padding:4px 2px;border:0;background:transparent;white-space:nowrap}
.spec-tabs button.on{background:var(--line2)}
.spec-split section{min-width:0}.spec-split .spec-h{margin:0 0 8px}.spec-split .hitpie{margin-bottom:8px}
.spec-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.spec-table{margin:0;min-width:280px}
.spec-sheet :focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.pl-info{padding:0;min-height:48px;color:var(--fg);cursor:pointer}.pl-auto{min-width:0}
@media(max-width:480px){.pl-ctrl{gap:5px;padding:12px 6px}.pl-ctrl .pl-speed{width:78px}.pl-ctrl .pl-speed select{padding:0 16px 0 8px;font-size:13px}.pl-auto{font-size:12px;gap:4px;padding:0 4px;white-space:nowrap}.pl-auto-dot{width:6px;height:6px;flex:none}.pl-one{padding:0 6px;font-size:11px;white-space:nowrap}.pl-info{width:46px}}
@media(max-width:360px){.pl-ctrl{gap:4px;padding:10px 4px}.pl-ctrl .pl-speed{width:72px}.pl-auto{font-size:11px}.pl-one{padding:0 4px;font-size:10px}.pl-info{width:44px}.spec-sheet .spec-head b{font-size:14px}.spec-grid dd{font-size:13px}}
@media(prefers-reduced-motion:reduce){dialog.spec-sheet{animation:none}}
