/* プレミアム着せ替え v2：html.pl-premium の中だけに効く */
html.pl-premium{
  color-scheme:dark;
  --pm-gilt:#d8b46a; --pm-gilt-hi:#f4dea0; --pm-gilt-lo:#9c7a3c; --pm-ink:#1a1024; --pm-ivory:#f3e9d7;
  --gem1:#8e2440; --gem2:#c0405d; --gem-rgb:192,64,93;
  --bg:#1a1024; --bg2:rgba(255,255,255,.05); --bg3:rgba(255,255,255,.035); --bg4:rgba(36,22,52,.94);
  --tx:#f3e9d7; --tx2:rgba(243,233,215,.74); --tx3:rgba(243,233,215,.48);
  --border:rgba(244,222,160,.24); --border2:rgba(244,222,160,.16); --border3:rgba(255,255,255,.07);
  --shadow:0 6px 24px rgba(0,0,0,.35); --glass:rgba(36,22,52,.72); --glass-strong:rgba(28,17,40,.94);
  --accent:var(--gem2); --accent2:var(--pm-gilt); --accent3:rgba(var(--gem-rgb),.18); --glow:rgba(var(--gem-rgb),.4);
  --shadow2:0 10px 32px rgba(var(--gem-rgb),.35),0 0 0 1px rgba(244,222,160,.18);
  background:#1a1024;
}
html.pl-premium[data-gem="ruby"]{--gem1:#8e2440;--gem2:#c0405d;--gem-rgb:192,64,93;}
html.pl-premium[data-gem="ruby2"]{--gem1:#6e1a33;--gem2:#a8374f;--gem-rgb:168,55,79;}
html.pl-premium[data-gem="emerald"]{--gem1:#1d5e4a;--gem2:#39a07c;--gem-rgb:57,160,124;}
html.pl-premium[data-gem="sapphire"]{--gem1:#223d86;--gem2:#4a72d0;--gem-rgb:74,114,208;}
html.pl-premium[data-gem="amethyst"]{--gem1:#4f2f86;--gem2:#8a5fd4;--gem-rgb:138,95,212;}
html.pl-premium[data-gem="garnet"]{--gem1:#7d2451;--gem2:#c85a8c;--gem-rgb:200,90,140;}
html.pl-premium[data-gem="copper"]{--gem1:#6e3a1c;--gem2:#c07a44;--gem-rgb:192,122,68;}
html.pl-premium[data-gem="onyx"]{--gem1:#3a3046;--gem2:#7a6a8e;--gem-rgb:122,106,142;}
html.pl-premium[data-gem="jade"]{--gem1:#2a5a46;--gem2:#5fae8a;--gem-rgb:95,174,138;}
html.pl-premium[data-gem="topaz"]{--gem1:#6a4a18;--gem2:#c89a48;--gem-rgb:200,154,72;}
html.pl-premium[data-gem="obsidian"]{--gem1:#1f3348;--gem2:#4f7aa6;--gem-rgb:79,122,166;}

html.pl-premium body{
  color:var(--tx) !important;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='1200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.011 .028' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 .85  0 0 0 0 .7  0 0 0 0 .42  0 0 0 -2.6 1.2'/></filter><rect width='100%' height='100%' filter='url(%23f)' opacity='.22'/></svg>") top center/100% auto repeat-y,
    radial-gradient(110% 45% at 50% -6%,rgba(216,180,106,.16),transparent 60%),
    radial-gradient(90% 40% at 100% 28%,rgba(var(--gem-rgb),.2),transparent 70%),
    radial-gradient(70% 35% at 0% 80%,rgba(var(--gem-rgb),.1),transparent 70%),
    #1a1024 !important;
}
html.pl-premium .ambient-orbs{display:none !important;}

/* リボン */
#plPremRibbon{display:none;}
html.pl-premium #plPremRibbon{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:6px 4px 8px;font-size:.7rem;position:relative;z-index:2;}
html.pl-premium .plr-mark{display:inline-flex;align-items:center;gap:5px;color:var(--pm-gilt-hi);font-weight:700;}
html.pl-premium .plr-mark svg{width:14px;height:14px;}
html.pl-premium .plr-free{padding:2px 9px;border-radius:999px;background:rgba(var(--gem-rgb),.28);border:1px solid rgba(244,222,160,.3);color:var(--tx);}
html.pl-premium .plr-home{color:var(--tx2);text-decoration:none;border-bottom:1px solid rgba(244,222,160,.3);}

/* 見出しプレート */
html.pl-premium .pl-plate{
  position:relative;overflow:hidden;border-radius:18px !important;padding:16px !important;margin:0 0 14px !important;
  background:linear-gradient(155deg,rgba(var(--gem-rgb),.55),rgba(var(--gem-rgb),.12) 60%,rgba(10,6,16,.25)) !important;
  border:1px solid rgba(244,222,160,.3) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 12px 30px rgba(0,0,0,.3) !important;
}
html.pl-premium .pl-plate::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background:linear-gradient(135deg,rgba(255,255,255,.14) 0 18%,transparent 18%),linear-gradient(225deg,rgba(0,0,0,.25) 0 30%,transparent 30%);}
html.pl-premium .pl-plate > *{position:relative;}
html.pl-premium .pl-title,html.pl-premium .page-title{
  font-family:"Shippori Mincho","Hiragino Mincho ProN",serif !important;letter-spacing:.02em;font-weight:800 !important;
  background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt) 58%,var(--pm-gilt-lo)) !important;
  -webkit-background-clip:text !important;background-clip:text !important;-webkit-text-fill-color:transparent !important;color:transparent !important;
}
html.pl-premium .page-desc,html.pl-premium .logo-sub,html.pl-premium .pl-plate p{color:rgba(243,233,215,.82) !important;}
html.pl-premium .hdr-icon,html.pl-premium .syn-stat{color:var(--pm-gilt-hi) !important;}

/* ラベル */
html.pl-premium .section-label,html.pl-premium .p-label,html.pl-premium .result-section-label,
html.pl-premium .sync-title,html.pl-premium .result-label,html.pl-premium .result-title,html.pl-premium .rec-name{
  font-family:"Shippori Mincho","Hiragino Mincho ProN",serif !important;color:var(--pm-gilt-hi) !important;
}

/* カード類 */
html.pl-premium .cta-card,html.pl-premium .result-card,html.pl-premium .result-section,html.pl-premium .rec-card,
html.pl-premium .guide-box,html.pl-premium .sync-section,html.pl-premium .input-box,html.pl-premium .result-box,html.pl-premium .stats-bar,
html.pl-premium .selected-area,html.pl-premium .card-search-box,html.pl-premium .search-box,html.pl-premium .preset-bar,html.pl-premium .quick-guide,
html.pl-premium .syn-wrap .rec-card,html.pl-premium .tips,html.pl-premium .err-box,html.pl-premium .coll-status,html.pl-premium .step-section{
  background:rgba(255,255,255,.04) !important;border-color:rgba(244,222,160,.2) !important;box-shadow:0 10px 28px rgba(0,0,0,.28) !important;color:var(--tx);
}
html.pl-premium .result-card{border:1px solid rgba(244,222,160,.3) !important;}
html.pl-premium .result-header,html.pl-premium .rec-head{background:linear-gradient(90deg,rgba(var(--gem-rgb),.4),rgba(var(--gem-rgb),.06)) !important;border-bottom:1px solid rgba(244,222,160,.2) !important;}
html.pl-premium .result-text,html.pl-premium .rec-body{color:rgba(243,233,215,.92) !important;}

/* 選択肢・チップ */
html.pl-premium .purpose-btn,html.pl-premium .choice-btn,html.pl-premium .dir-btn,html.pl-premium .pay-btn,html.pl-premium .fbtn,
html.pl-premium .fchip,html.pl-premium .syn-chip,html.pl-premium .stat-chip,html.pl-premium .opt-tag,html.pl-premium .tag-xs,
html.pl-premium .tab,html.pl-premium .card-option{
  background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.18) !important;color:var(--tx) !important;
}
html.pl-premium .purpose-btn.active,html.pl-premium .choice-btn.active,html.pl-premium .choice-btn.on,html.pl-premium .choice-btn.sel,
html.pl-premium .dir-btn.active,html.pl-premium .pay-btn.active,html.pl-premium .card-option.on,html.pl-premium .syn-chip.on,
html.pl-premium .syn-chip.active,html.pl-premium .tab.active,html.pl-premium .opt.on{
  background:linear-gradient(155deg,rgba(var(--gem-rgb),.42),rgba(var(--gem-rgb),.12)) !important;
  border-color:var(--pm-gilt) !important;box-shadow:0 0 0 1px rgba(244,222,160,.22),0 8px 22px rgba(var(--gem-rgb),.3) !important;
}
html.pl-premium .fbtn.on,html.pl-premium .fchip.on{
  background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt)) !important;border-color:var(--pm-gilt) !important;color:var(--pm-ink) !important;font-weight:700;
}
html.pl-premium .sel-chip{background:rgba(var(--gem-rgb),.22) !important;border-color:rgba(244,222,160,.3) !important;color:var(--tx) !important;}
html.pl-premium .step-dot{background:rgba(255,255,255,.08) !important;color:var(--tx) !important;}
html.pl-premium .step-dot.active{background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt)) !important;color:var(--pm-ink) !important;}

/* 入力欄 */
html.pl-premium input:not([type=checkbox]):not([type=radio]):not([type=range]),html.pl-premium textarea,html.pl-premium select,
html.pl-premium .search-input,html.pl-premium .sync-input,html.pl-premium .followup-input,html.pl-premium .preset-select{
  background:rgba(10,6,16,.45) !important;color:var(--tx) !important;border-color:rgba(244,222,160,.22) !important;
}
html.pl-premium input::placeholder,html.pl-premium textarea::placeholder{color:rgba(243,233,215,.4) !important;}
html.pl-premium option{background:#241634;color:#f3e9d7;}

/* ボタン：実行＝宝石、じっくり＝金、サブ＝金の縁 */
html.pl-premium .pl-go{
  background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;color:#fff !important;
  border:1px solid rgba(244,222,160,.45) !important;box-shadow:0 8px 24px rgba(var(--gem-rgb),.35),inset 0 1px 0 rgba(255,255,255,.2) !important;
}
html.pl-premium .pl-deep{
  background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt) 55%,var(--pm-gilt-lo)) !important;color:var(--pm-ink) !important;
  border:1px solid rgba(255,240,200,.8) !important;box-shadow:0 8px 26px rgba(216,180,106,.35),inset 0 1px 0 rgba(255,255,255,.5) !important;
}
html.pl-premium .pl-deep *{color:var(--pm-ink) !important;}
html.pl-premium .pl-sub{background:rgba(10,6,16,.35) !important;color:var(--pm-gilt-hi) !important;border:1px solid rgba(244,222,160,.35) !important;box-shadow:none !important;}
html.pl-premium .followup-btn{background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt)) !important;color:var(--pm-ink) !important;}
html.pl-premium .danger{color:#ff9a9a !important;border-color:rgba(255,120,120,.35) !important;}
html.pl-premium .pl-unlimited{display:flex;align-items:center;justify-content:center;gap:6px;margin:8px 0 2px;font-size:.66rem;color:var(--tx3);}
html.pl-premium .pl-unlimited i{width:5px;height:5px;background:var(--pm-gilt);transform:rotate(45deg);display:inline-block;}

/* 進捗・ローディング */
html.pl-premium .ai-prog-outer,html.pl-premium .progress-track{background:rgba(244,222,160,.12) !important;}
html.pl-premium .ai-prog-bar,html.pl-premium .progress-track > *{background:linear-gradient(90deg,var(--gem2),var(--pm-gilt-hi)) !important;}
html.pl-premium .p-spin,html.pl-premium .spin{border-color:rgba(244,222,160,.2) !important;border-top-color:var(--pm-gilt-hi) !important;}

/* 下のタブバー・上のナビ */
html.pl-premium .p-tabbar{background:rgba(20,12,28,.88) !important;border-top:1px solid rgba(244,222,160,.22) !important;backdrop-filter:blur(14px);}
html.pl-premium .p-tab{color:rgba(243,233,215,.55) !important;}
html.pl-premium .p-tab.on,html.pl-premium .p-tab.active{color:var(--pm-gilt-hi) !important;}
html.pl-premium .p-nav,html.pl-premium .header{background:rgba(20,12,28,.7) !important;border-color:rgba(244,222,160,.16) !important;}
html.pl-premium .p-nav-back,html.pl-premium .back-link,html.pl-premium .back-btn{color:var(--pm-gilt-hi) !important;}
html.pl-premium .site-foot,html.pl-premium .foot-meta{color:var(--tx3) !important;}

/* 全鯖ランキング（king） */
html.pl-premium .tabs .tab{background:rgba(255,255,255,.05) !important;color:var(--tx) !important;border-color:rgba(244,222,160,.18) !important;}
html.pl-premium .tabs .tab.act{background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;color:#fff !important;border-color:rgba(244,222,160,.45) !important;}
html.pl-premium .board{background:rgba(255,255,255,.035) !important;border-color:rgba(244,222,160,.2) !important;box-shadow:0 10px 28px rgba(0,0,0,.3) !important;}
html.pl-premium .board .row{border-color:rgba(255,255,255,.06) !important;color:var(--tx) !important;}
html.pl-premium .board .row .rk{color:var(--tx3) !important;font-family:"Shippori Mincho",serif !important;}
html.pl-premium .board .row.r1 .rk{color:var(--pm-gilt-hi) !important;}
html.pl-premium .board .row .sv{background:rgba(var(--gem-rgb),.22) !important;color:var(--tx) !important;}
html.pl-premium .note,html.pl-premium .sub,html.pl-premium .loading{color:var(--tx3) !important;}
html.pl-premium .gate-card{background:rgba(26,16,36,.94) !important;border-color:rgba(244,222,160,.3) !important;color:var(--tx) !important;}
html.pl-premium .gbtn{background:linear-gradient(180deg,var(--pm-gilt-hi),var(--pm-gilt)) !important;color:var(--pm-ink) !important;}
html.pl-premium .kchips button{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.22) !important;color:var(--tx) !important;}
html.pl-premium .kchips button[data-act],html.pl-premium .kchips button[data-gact]{background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;color:#fff !important;border-color:rgba(244,222,160,.45) !important;}
html.pl-premium #powerQ{background:rgba(10,6,16,.45) !important;}

/* 直書き色の救済 */
html.pl-premium [style*="color:#333"],html.pl-premium [style*="color: #333"],html.pl-premium [style*="color:#333333"],html.pl-premium [style*="color: #333333"],html.pl-premium [style*="color:#555"],html.pl-premium [style*="color: #555"],html.pl-premium [style*="color:#1b1533"],html.pl-premium [style*="color: #1b1533"],html.pl-premium [style*="color:#1a1a2e"],html.pl-premium [style*="color: #1a1a2e"],html.pl-premium [style*="color:#2e2456"],html.pl-premium [style*="color: #2e2456"]{color:var(--tx) !important;}
html.pl-premium [style*="color:#868e96"],html.pl-premium [style*="color: #868e96"],html.pl-premium [style*="color:#6b6680"],html.pl-premium [style*="color: #6b6680"],html.pl-premium [style*="color:#9a9ab0"],html.pl-premium [style*="color: #9a9ab0"],html.pl-premium [style*="color:#9a95ac"],html.pl-premium [style*="color: #9a95ac"]{color:var(--tx3) !important;}
html.pl-premium [style*="color:#4a3aa8"],html.pl-premium [style*="color: #4a3aa8"],html.pl-premium [style*="color:#5b46c9"],html.pl-premium [style*="color: #5b46c9"],html.pl-premium [style*="color:#6a4fe0"],html.pl-premium [style*="color: #6a4fe0"],html.pl-premium [style*="color:#6d4aff"],html.pl-premium [style*="color: #6d4aff"],html.pl-premium [style*="color:#7c5cff"],html.pl-premium [style*="color: #7c5cff"],html.pl-premium [style*="color:#9b6dff"],html.pl-premium [style*="color: #9b6dff"]{color:var(--pm-gilt-hi) !important;}
html.pl-premium [style*="color:#c92a2a"],html.pl-premium [style*="color: #c92a2a"],html.pl-premium [style*="color:#b91c1c"],html.pl-premium [style*="color: #b91c1c"],html.pl-premium [style*="color:#c62828"],html.pl-premium [style*="color: #c62828"],html.pl-premium [style*="color:#c2185b"],html.pl-premium [style*="color: #c2185b"],html.pl-premium [style*="color:#c0356f"],html.pl-premium [style*="color: #c0356f"],html.pl-premium [style*="color:#be185d"],html.pl-premium [style*="color: #be185d"],html.pl-premium [style*="color:#ff5e8c"],html.pl-premium [style*="color: #ff5e8c"],html.pl-premium [style*="color:#f04a96"],html.pl-premium [style*="color: #f04a96"]{color:#ff9a9a !important;}
html.pl-premium [style*="color:#2f9e44"],html.pl-premium [style*="color: #2f9e44"],html.pl-premium [style*="color:#2e7d32"],html.pl-premium [style*="color: #2e7d32"],html.pl-premium [style*="color:#66bb6a"],html.pl-premium [style*="color: #66bb6a"]{color:#7ee2a8 !important;}
html.pl-premium [style*="color:#e67700"],html.pl-premium [style*="color: #e67700"],html.pl-premium [style*="color:#b8860b"],html.pl-premium [style*="color: #b8860b"]{color:#ffc27a !important;}
html.pl-premium [style*="color:#1d4ed8"],html.pl-premium [style*="color: #1d4ed8"],html.pl-premium [style*="color:#1d6fb8"],html.pl-premium [style*="color: #1d6fb8"],html.pl-premium [style*="color:#4ec3ff"],html.pl-premium [style*="color: #4ec3ff"]{color:#9cc2ff !important;}
html.pl-premium [style*="background:#fff"],html.pl-premium [style*="background-color:#fff"],html.pl-premium [style*="background: #fff"],html.pl-premium [style*="background-color: #fff"],html.pl-premium [style*="background:#ffffff"],html.pl-premium [style*="background-color:#ffffff"],html.pl-premium [style*="background: #ffffff"],html.pl-premium [style*="background-color: #ffffff"],html.pl-premium [style*="background:white"],html.pl-premium [style*="background-color:white"],html.pl-premium [style*="background: white"],html.pl-premium [style*="background-color: white"],html.pl-premium [style*="background:#f8f9fa"],html.pl-premium [style*="background-color:#f8f9fa"],html.pl-premium [style*="background: #f8f9fa"],html.pl-premium [style*="background-color: #f8f9fa"],html.pl-premium [style*="background:#e3def5"],html.pl-premium [style*="background-color:#e3def5"],html.pl-premium [style*="background: #e3def5"],html.pl-premium [style*="background-color: #e3def5"]{background:rgba(255,255,255,.05) !important;}
html.pl-premium [style*="background:#fff5f5"],html.pl-premium [style*="background-color:#fff5f5"],html.pl-premium [style*="background: #fff5f5"],html.pl-premium [style*="background-color: #fff5f5"],html.pl-premium [style*="background:#fce7f3"],html.pl-premium [style*="background-color:#fce7f3"],html.pl-premium [style*="background: #fce7f3"],html.pl-premium [style*="background-color: #fce7f3"],html.pl-premium [style*="background:#ffa8a8"],html.pl-premium [style*="background-color:#ffa8a8"],html.pl-premium [style*="background: #ffa8a8"],html.pl-premium [style*="background-color: #ffa8a8"]{background:rgba(255,120,120,.12) !important;}
html.pl-premium [style*="background:#ebfbee"],html.pl-premium [style*="background-color:#ebfbee"],html.pl-premium [style*="background: #ebfbee"],html.pl-premium [style*="background-color: #ebfbee"],html.pl-premium [style*="background:#e0f0e8"],html.pl-premium [style*="background-color:#e0f0e8"],html.pl-premium [style*="background: #e0f0e8"],html.pl-premium [style*="background-color: #e0f0e8"],html.pl-premium [style*="background:#8ce99a"],html.pl-premium [style*="background-color:#8ce99a"],html.pl-premium [style*="background: #8ce99a"],html.pl-premium [style*="background-color: #8ce99a"]{background:rgba(120,220,160,.12) !important;}
html.pl-premium [style*="background:#e7f5ff"],html.pl-premium [style*="background-color:#e7f5ff"],html.pl-premium [style*="background: #e7f5ff"],html.pl-premium [style*="background-color: #e7f5ff"],html.pl-premium [style*="background:#dbeafe"],html.pl-premium [style*="background-color:#dbeafe"],html.pl-premium [style*="background: #dbeafe"],html.pl-premium [style*="background-color: #dbeafe"]{background:rgba(120,170,255,.12) !important;}
html.pl-premium [style*="background:#fff3d6"],html.pl-premium [style*="background-color:#fff3d6"],html.pl-premium [style*="background: #fff3d6"],html.pl-premium [style*="background-color: #fff3d6"]{background:rgba(255,210,120,.12) !important;}
html.pl-premium [style*="background:#e8e0ff"],html.pl-premium [style*="background-color:#e8e0ff"],html.pl-premium [style*="background: #e8e0ff"],html.pl-premium [style*="background-color: #e8e0ff"]{background:rgba(160,130,255,.14) !important;}
html.pl-premium [style*="border:1px solid #ddd"],html.pl-premium [style*="border:1px solid #e3def5"]{border-color:rgba(244,222,160,.2) !important;}
html.pl-premium .pl-go[style*="color:#fff"],html.pl-premium .pl-go [style*="color:#fff"]{color:#fff !important;}

/* ===== 所持カード（collection） ===== */
html.pl-premium .coll-row{background:rgba(255,255,255,.045) !important;border-color:rgba(244,222,160,.16) !important;box-shadow:0 6px 18px rgba(0,0,0,.25) !important;}
html.pl-premium .coll-name{color:var(--tx) !important;}
html.pl-premium .coll-card{color:var(--tx3) !important;}
html.pl-premium .coll-img{background:#241634 !important;}
html.pl-premium .own-btn{background:rgba(10,6,16,.45) !important;border:1px solid rgba(244,222,160,.45) !important;color:var(--pm-gilt-hi) !important;font-weight:700 !important;}
html.pl-premium .own-btn.owned{background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;border-color:rgba(244,222,160,.55) !important;color:#fff !important;box-shadow:0 4px 14px rgba(var(--gem-rgb),.35) !important;}
html.pl-premium .awk-select{background:rgba(10,6,16,.45) !important;border-color:rgba(244,222,160,.25) !important;color:var(--tx) !important;}
html.pl-premium .stat-chip{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.2) !important;color:var(--tx) !important;}
html.pl-premium .stat-chip strong,html.pl-premium .guide-box strong{color:var(--pm-gilt-hi) !important;}
html.pl-premium .guide-box{background:rgba(var(--gem-rgb),.14) !important;border-color:rgba(244,222,160,.25) !important;color:var(--tx2) !important;}
html.pl-premium .sync-desc,html.pl-premium .sync-note{color:var(--tx2) !important;}
html.pl-premium .sync-note{background:rgba(10,6,16,.3) !important;}

/* ===== 麗華の野望（reika）：ガーネット＋金の2色に統一 ===== */
html.pl-premium .hdr-icon{background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;border:1px solid rgba(244,222,160,.45) !important;box-shadow:0 0 20px rgba(var(--gem-rgb),.4) !important;}
html.pl-premium .hdr p{color:rgba(243,233,215,.8) !important;}
html.pl-premium .card,html.pl-premium .card.sec,html.pl-premium .card.d,html.pl-premium .card.s,html.pl-premium .card.w{
  background:rgba(255,255,255,.04) !important;backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
  border:1px solid rgba(244,222,160,.18) !important;box-shadow:0 10px 26px rgba(0,0,0,.28) !important;color:var(--tx) !important;}
html.pl-premium .card::before{background:linear-gradient(90deg,transparent,rgba(244,222,160,.35),transparent) !important;}
html.pl-premium .card .card{background:rgba(10,6,16,.28) !important;box-shadow:none !important;}
html.pl-premium .card.d{border-color:rgba(var(--gem-rgb),.45) !important;background:rgba(var(--gem-rgb),.1) !important;}
html.pl-premium .card.w,html.pl-premium .card.s{border-color:rgba(244,222,160,.35) !important;background:rgba(216,180,106,.07) !important;}
html.pl-premium .lbl{font-family:inherit !important;letter-spacing:.06em !important;color:var(--pm-gilt) !important;text-transform:none !important;}
html.pl-premium .fld{background:transparent !important;}
html.pl-premium .fld span,html.pl-premium .ph{color:var(--tx2) !important;}
html.pl-premium .fld input,html.pl-premium .fld select,html.pl-premium .fld textarea{border-radius:10px !important;padding:8px 10px !important;border:1px solid rgba(244,222,160,.22) !important;}
html.pl-premium .req-badge{align-self:flex-start;width:auto !important;display:inline-block !important;background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;color:#fff !important;border:1px solid rgba(244,222,160,.35);}
html.pl-premium .opt-badge{align-self:flex-start;width:auto !important;display:inline-block !important;background:transparent !important;color:var(--pm-gilt-hi) !important;border:1px solid rgba(244,222,160,.4) !important;}
html.pl-premium .mbts > *{background:rgba(255,255,255,.05) !important;border:1px solid rgba(244,222,160,.2) !important;color:var(--tx) !important;box-shadow:none !important;}
html.pl-premium .mbts > .on,html.pl-premium .mbts > .active,html.pl-premium .mbts > .sel,html.pl-premium .mbts > .act,html.pl-premium .mbts > .selected{
  background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;border-color:rgba(244,222,160,.55) !important;color:#fff !important;box-shadow:0 6px 18px rgba(var(--gem-rgb),.35) !important;}
html.pl-premium .quick-guide{background:rgba(216,180,106,.08) !important;border-color:rgba(244,222,160,.3) !important;color:var(--tx2) !important;}
html.pl-premium .sc{background:rgba(10,6,16,.32) !important;border-color:rgba(244,222,160,.16) !important;}
html.pl-premium .sv{color:var(--tx) !important;}
html.pl-premium .ss,html.pl-premium .sd{color:var(--tx3) !important;}
/* 麗華ページの直書き色をガーネット＋金に寄せる */
html.pl-premium[data-gem="garnet"] [style*="color:#e67700"],html.pl-premium[data-gem="garnet"] [style*="color: #e67700"],
html.pl-premium[data-gem="garnet"] [style*="color:#2f9e44"],html.pl-premium[data-gem="garnet"] [style*="color: #2f9e44"]{color:var(--pm-gilt-hi) !important;}
html.pl-premium[data-gem="garnet"] [style*="color:#c92a2a"],html.pl-premium[data-gem="garnet"] [style*="color: #c92a2a"]{color:#ff9cc4 !important;}
html.pl-premium[data-gem="garnet"] [style*="border-left"]{border-left-color:var(--pm-gilt) !important;}
html.pl-premium[data-gem="garnet"] [style*="background:#fff5f5"],html.pl-premium[data-gem="garnet"] [style*="background:#ebfbee"],
html.pl-premium[data-gem="garnet"] [style*="background:#e7f5ff"],html.pl-premium[data-gem="garnet"] [style*="background:#f8f9fa"]{background:rgba(255,255,255,.04) !important;}
/* ===== 解説・メモ・ヒント系の枠（読みやすさの統一） ===== */
html.pl-premium .ai-comment,
html.pl-premium .gm-note,
html.pl-premium .sync-note,
html.pl-premium .syn-note,
html.pl-premium .pay-tip,
html.pl-premium .tips,
html.pl-premium .note,
html.pl-premium .tm-note,
html.pl-premium .ab-note,
html.pl-premium .ac-note,
html.pl-premium .ac-msg,
html.pl-premium .tip-box,
html.pl-premium .detail-summary,
html.pl-premium .empty-msg,
html.pl-premium .ocr-hint,
html.pl-premium .triangle-hint{
  background:rgba(12,8,20,.62) !important;
  border:1px solid rgba(216,180,106,.28) !important;
  color:rgba(243,233,215,.92) !important;
  box-shadow:0 8px 20px rgba(0,0,0,.25) !important;
}
html.pl-premium .ai-comment *,
html.pl-premium .gm-note *,
html.pl-premium .sync-note *,
html.pl-premium .syn-note *,
html.pl-premium .pay-tip *,
html.pl-premium .tips *,
html.pl-premium .note *,
html.pl-premium .tm-note *,
html.pl-premium .ab-note *,
html.pl-premium .ac-note *,
html.pl-premium .tip-box *,
html.pl-premium .detail-summary *{
  color:inherit;
}
html.pl-premium .ai-comment b,html.pl-premium .ai-comment strong,
html.pl-premium .gm-note b,html.pl-premium .tip-box b,html.pl-premium .tips b{
  color:#f4dea0 !important;
}
html.pl-premium .ai-comment::before{
  background:#1a1024 !important;
  border:1px solid rgba(216,180,106,.5) !important;
}
html.pl-premium .tip-icon{filter:none !important;}

/* 秘石AI：推奨秘石タイル（3枚とも同じ見た目） */
html.pl-premium .himei-item{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.18) !important;}
html.pl-premium .himei-name{color:var(--tx) !important;}
html.pl-premium .himei-count{color:var(--pm-gilt-hi) !important;}
html.pl-premium .himei-slot{color:var(--tx2) !important;}
/* 「絶対に避ける秘石」の警告もダーク配色に */
html.pl-premium .avoid-box{background:rgba(255,120,120,.12) !important;border-color:rgba(255,140,140,.35) !important;color:#ffb4b4 !important;}

/* ===== 2026-09-29 監査：ライト用の白背景が残っていた箇所 ===== */
/* 図鑑（cards）カード詳細モーダル */
html.pl-premium .modal{background:var(--glass-strong) !important;border:1px solid rgba(244,222,160,.28) !important;box-shadow:0 24px 70px rgba(0,0,0,.6) !important;color:var(--tx);}
html.pl-premium .modal-header{border-bottom-color:rgba(244,222,160,.16) !important;}
html.pl-premium .modal-skill{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.16) !important;}
html.pl-premium .modal-skill-cost{background:rgba(var(--gem-rgb),.22) !important;color:var(--pm-gilt-hi) !important;}
html.pl-premium .modal-power-row{border-top-color:rgba(244,222,160,.14) !important;}
html.pl-premium .modal-power-input,html.pl-premium .power-input{background:rgba(10,6,16,.45) !important;color:var(--tx) !important;border-color:rgba(244,222,160,.22) !important;}
html.pl-premium .modal-own-btn,html.pl-premium .own-toggle{background:rgba(255,255,255,.08) !important;color:var(--tx) !important;border-color:rgba(244,222,160,.22) !important;}
html.pl-premium .modal-own-btn.owned,html.pl-premium .own-toggle.owned{background:linear-gradient(155deg,var(--gem2),var(--gem1)) !important;color:#fff !important;border-color:rgba(244,222,160,.45) !important;}
html.pl-premium .modal-close{background:rgba(255,255,255,.1) !important;color:var(--tx) !important;}
html.pl-premium .modal-overlay{background:rgba(10,6,16,.55) !important;}
html.pl-premium #glBar{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.2) !important;}
html.pl-premium #glBar [style*="color:#4a3aa8"]{color:var(--pm-gilt-hi) !important;}
html.pl-premium #glBar [style*="color:#6b6885"],html.pl-premium .modal [style*="color:#9a97b0"]{color:var(--tx3) !important;}
html.pl-premium .modal a[style*="color:#7c5cff"]{color:var(--pm-gilt-hi) !important;}
/* アカウント */
html.pl-premium .ac-card{background:rgba(255,255,255,.05) !important;border-color:rgba(244,222,160,.22) !important;color:var(--tx);}
/* 麗華の野望：チェックボックスとタグ */
html.pl-premium .cbl{background:rgba(255,255,255,.06) !important;border-color:rgba(244,222,160,.18) !important;color:var(--tx) !important;}
html.pl-premium .btg.s1{background:rgba(255,255,255,.08) !important;color:var(--tx2) !important;border-color:rgba(244,222,160,.18) !important;}
/* ヘッダー内の「← ホーム」はリボンの「ホームへ」と重複するので出さない（ロゴに被る） */
html.pl-premium .pl-plate .back-link{display:none !important;}
