/* 強度排行頁（includes/guide_tier_page.php：guide_tier_fruits.php、guide_tier_swords.php）；淺色＋深色（body.dark-mode，改版 c1 也會加）。 */
.tier-page{max-width:1120px}
.tier-page .tp-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 10px;font-size:.86rem;color:#64748b}
.tier-page .tp-crumb a{color:#1d4ed8;text-decoration:none}
.tier-page .tp-crumb a:hover{text-decoration:underline}
.tier-page .tp-hero{margin:10px 0 14px;padding:clamp(18px,3vw,28px);border:1px solid rgba(96,165,250,.34);border-radius:22px;background:radial-gradient(circle at 92% 10%,rgba(245,184,46,.22),transparent 30%),linear-gradient(135deg,#f8fbff 0%,#e4f3ff 58%,#fff8df 100%);box-shadow:0 16px 34px rgba(15,23,42,.09)}
.tier-page .tp-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.tier-page .tp-kicker{display:inline-flex;padding:6px 12px;border-radius:999px;background:#102a56;color:#fff;font-size:.78rem;font-weight:900;letter-spacing:.04em}
.tier-page .tp-hero h1{margin:10px 0 8px;color:#172033;font-size:clamp(1.7rem,4vw,2.35rem);line-height:1.18}
.tier-page .tp-lead{margin:0;max-width:720px;color:#40516a;line-height:1.7}
.tier-page .tp-lead a{color:#1d4ed8}
.tier-page .tp-checked{flex:0 0 auto;min-width:150px;padding:11px 13px;border:1px solid rgba(37,99,235,.18);border-radius:14px;background:rgba(255,255,255,.86);box-shadow:0 4px 10px rgba(15,23,42,.06)}
.tier-page .tp-checked span,.tier-page .tp-checked strong{display:block}
.tier-page .tp-checked span{color:#64748b;font-size:.78rem}
.tier-page .tp-checked strong{margin:3px 0;color:#102a56;font-size:1.05rem}
.tier-page .tp-quick{margin-top:16px;padding:14px;border-radius:18px;background:rgba(255,255,255,.88);border:1px solid rgba(148,163,184,.3);box-shadow:inset 0 1px 0 #fff,0 6px 16px rgba(15,23,42,.06)}
.tier-page .tp-quick-title{display:block;margin-bottom:10px;color:#102a56;font-size:1rem}
.tier-page .tp-quick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.tier-page .tp-quick-col{min-width:0;padding:10px;border-radius:14px;background:linear-gradient(180deg,#fff,#f4f7fc);border:1px solid #dbe3f0}
.tier-page .tp-quick-cat{display:inline-flex;align-items:center;gap:4px;min-height:32px;margin-bottom:6px;padding:2px 10px;border-radius:999px;background:#fef3c7;color:#713f12;font-weight:900;font-size:.9rem;cursor:pointer}
.tier-page .tp-quick-cat:focus-visible{outline:3px solid #f59e0b;outline-offset:2px}
.tier-page .tp-quick ol{margin:0;padding:0;list-style:none;counter-reset:tpq}
.tier-page .tp-quick li{counter-increment:tpq}
.tier-page .tp-quick li a{display:flex;align-items:center;gap:8px;min-height:44px;padding:2px 4px;border-radius:10px;color:#172033;font-weight:800;text-decoration:none}
.tier-page .tp-quick li a::before{content:counter(tpq);flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:linear-gradient(180deg,#f59e0b,#d97706);color:#fff;font-size:.8rem;box-shadow:0 2px 0 #92400e}
.tier-page .tp-quick li a:hover{background:#eef4ff}
.tier-page .tp-quick img{width:40px;height:40px;object-fit:contain}
.tier-page .tp-ad-break{margin:0 0 14px}
.tier-page .tp-tabs{position:sticky;top:var(--bf-sticky-top,72px);z-index:30;display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px;padding:10px;border-radius:16px;background:rgba(248,251,255,.96);border:1px solid rgba(148,163,184,.3);box-shadow:0 10px 22px rgba(15,23,42,.08);backdrop-filter:blur(10px)}
.tier-page .tp-tabs[hidden]{display:none}
.tier-page .tp-tab{flex:1 1 150px;min-height:46px;padding:6px 14px;border:1px solid #cbd5e1;border-radius:14px;background:linear-gradient(180deg,#fff,#eef2f7);color:#1e293b;font-weight:900;font-size:.98rem;cursor:pointer;box-shadow:0 3px 0 #cbd5e1;transition:transform .12s,box-shadow .12s}
.tier-page .tp-tab:hover{transform:translateY(-1px)}
.tier-page .tp-tab[aria-selected="true"]{background:linear-gradient(180deg,#fcd34d,#f59e0b);border-color:#d97706;color:#3b2304;box-shadow:0 3px 0 #b45309}
.tier-page .tp-board{margin:0 0 24px}
.tier-page .tp-board[hidden]{display:none}
.tier-page .tp-board-title{margin:6px 0 4px;color:#172033;font-size:1.35rem}
.tier-page .tp-board-desc{margin:0 0 12px;color:#475569;line-height:1.7}
.tier-page .tp-row{display:grid;grid-template-columns:86px minmax(0,1fr);gap:12px;margin:0 0 12px;padding:12px;border-radius:18px;border:1px solid #dbe3f0;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.06)}
.tier-page .tp-tier{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:86px;border-radius:14px;color:#fff;text-align:center;box-shadow:inset 0 -4px 0 rgba(0,0,0,.18),0 4px 10px rgba(15,23,42,.15)}
.tier-page .tp-tier b{font-size:2.1rem;line-height:1;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.tier-page .tp-tier span{font-size:.78rem;font-weight:800;opacity:.95}
/* 白字對比要 ≥4.5（contrast_guard 會把不夠的改成深色字），所以漸層用深一點的色 */
.tier-page .tp-s .tp-tier{background:linear-gradient(160deg,#dc2626,#991b1b)}
.tier-page .tp-a .tp-tier{background:linear-gradient(160deg,#c2410c,#9a3412)}
.tier-page .tp-b .tp-tier{background:linear-gradient(160deg,#2563eb,#1e40af)}
.tier-page .tp-c .tp-tier{background:linear-gradient(160deg,#64748b,#475569)}
.tier-page .tp-s{background:linear-gradient(180deg,#fff7f5,#fff)}
.tier-page .tp-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:10px}
.tier-page .tp-card{display:flex;flex-direction:column;gap:6px;min-width:0;padding:10px 12px;border:1px solid #e2e8f0;border-radius:15px;background:linear-gradient(180deg,#fff,#f6f8fc);box-shadow:0 4px 10px rgba(15,23,42,.06);transition:transform .14s,box-shadow .14s}
.tier-page .tp-card:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(15,23,42,.12)}
.tier-page .tp-card-head{display:flex;align-items:center;gap:10px;min-height:56px;color:#172033;text-decoration:none}
.tier-page .tp-card-head img{flex:0 0 auto;width:56px;height:56px;object-fit:contain;border-radius:12px;background:radial-gradient(circle,#eef4ff,#dde7f6);box-shadow:inset 0 0 0 1px rgba(148,163,184,.35)}
.tier-page .tp-name{display:flex;flex-direction:column;min-width:0}
.tier-page .tp-name b{font-size:1.02rem;line-height:1.3}
.tier-page .tp-name small{color:#64748b;font-size:.8rem}
.tier-page .tp-card-head:hover b{color:#1d4ed8;text-decoration:underline}
.tier-page .tp-chips{display:flex;flex-wrap:wrap;gap:4px}
.tier-page .tp-chips span{padding:1px 8px;border-radius:999px;background:#eef2ff;border:1px solid #c7d2fe;color:#3730a3;font-size:.74rem;font-weight:800}
.tier-page .tp-why{margin:0;color:#334155;font-size:.9rem;line-height:1.65}
.tier-page .tp-more{margin:0;padding:6px 8px;border-radius:10px;background:#f0fdf4;border:1px solid #bbf7d0;color:#14532d;font-size:.84rem;line-height:1.55}
.tier-page .tp-note{margin:0;color:#92400e;font-size:.8rem;line-height:1.5}
.tier-page .tp-note b{font-weight:800}
.tier-page .tp-refs{display:inline;margin-left:2px}
.tier-page .tp-ref{display:inline-block;min-width:18px;margin:0 0 0 3px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#e0e7ff;color:#3730a3;font-size:.68rem;font-weight:900;line-height:18px;text-align:center;white-space:nowrap;text-decoration:none;vertical-align:1px}
.tier-page .tp-ref:hover{background:#c7d2fe}
.tier-page .tp-method{padding:14px 16px;border-radius:16px;background:#f8fafc;border:1px solid #e2e8f0;line-height:1.8;color:#334155}
.tier-page .tp-method p{margin:0 0 8px}.tier-page .tp-method p:last-child{margin:0}
.tier-page .tp-method a,.tier-page .tp-notes a,.tier-page .tp-source-note a{color:#1d4ed8}
.tier-page .tp-notes{margin:12px 0 0;padding-left:1.2em;line-height:1.8;color:#334155}
.tier-page .tp-sources{margin:0;padding-left:1.6em;line-height:1.75;color:#334155}
.tier-page .tp-sources li{margin:0 0 4px;scroll-margin-top:110px}
.tier-page .tp-sources li:target{background:#fef9c3;border-radius:8px}
.tier-page .tp-sources a{color:#1d4ed8;word-break:break-word}
.tier-page .tp-sources small{margin-left:6px;color:#64748b}
.tier-page .tp-src-type{display:inline-block;padding:0 7px;border-radius:6px;background:#f1f5f9;border:1px solid #e2e8f0;color:#475569;font-size:.74rem;font-weight:800}
.tier-page .tp-source-note{margin:8px 0 0;font-size:.86rem;color:#64748b;line-height:1.7}
@media(max-width:640px){
.tier-page .tp-hero-top{flex-direction:column;gap:10px}
.tier-page .tp-checked{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-width:0;width:100%;box-sizing:border-box}
.tier-page .tp-checked strong{margin:0}
.tier-page .tp-row{grid-template-columns:1fr;gap:8px;padding:10px}
.tier-page .tp-tier{flex-direction:row;justify-content:flex-start;gap:10px;min-height:0;padding:6px 12px}
.tier-page .tp-tier b{font-size:1.5rem}
.tier-page .tp-cards{grid-template-columns:1fr}
.tier-page .tp-tab{flex:1 1 30%;padding:6px 8px;font-size:.88rem}
}
body.dark-mode .tier-page .tp-crumb{color:#a9b6cc}
body.dark-mode .tier-page .tp-crumb a,body.dark-mode .tier-page .tp-lead a,body.dark-mode .tier-page .tp-method a,body.dark-mode .tier-page .tp-notes a,body.dark-mode .tier-page .tp-source-note a,body.dark-mode .tier-page .tp-sources a{color:#93c5fd}
body.dark-mode .tier-page .tp-hero{background:radial-gradient(circle at 92% 10%,rgba(245,184,46,.18),transparent 30%),linear-gradient(135deg,#132544 0%,#152c4f 58%,#2a2416 100%);border-color:#2f4a73;box-shadow:0 16px 34px rgba(0,0,0,.4)}
body.dark-mode .tier-page .tp-kicker{background:#f59e0b;color:#1f1300}
body.dark-mode .tier-page .tp-hero h1,body.dark-mode .tier-page .tp-board-title{color:#f8fafc}
body.dark-mode .tier-page .tp-lead,body.dark-mode .tier-page .tp-board-desc{color:#c9d5e8}
body.dark-mode .tier-page .tp-checked{background:rgba(15,27,48,.85);border-color:#33507a}
body.dark-mode .tier-page .tp-checked span{color:#a9b6cc}
body.dark-mode .tier-page .tp-checked strong,body.dark-mode .tier-page .tp-quick-title{color:#fcd34d}
body.dark-mode .tier-page .tp-quick{background:rgba(13,24,43,.85);border-color:#2f4466;box-shadow:0 6px 16px rgba(0,0,0,.3)}
body.dark-mode .tier-page .tp-quick-col{background:linear-gradient(180deg,#1b2a45,#15213a);border-color:#33445f}
body.dark-mode .tier-page .tp-quick-cat{background:#3b2a0b;color:#fde68a}
body.dark-mode .tier-page .tp-quick li a{color:#eef2ff}
body.dark-mode .tier-page .tp-quick li a:hover{background:#23365a}
body.dark-mode .tier-page .tp-quick img,body.dark-mode .tier-page .tp-card-head img{background:radial-gradient(circle,#2b3d60,#1a2742);box-shadow:inset 0 0 0 1px rgba(148,163,184,.25)}
body.dark-mode .tier-page .tp-tabs{background:rgba(12,22,40,.94);border-color:#2f4466;box-shadow:0 10px 22px rgba(0,0,0,.35)}
body.dark-mode .tier-page .tp-tab{background:linear-gradient(180deg,#1f2f4d,#172540);border-color:#3b4d6d;color:#e2e8f0;box-shadow:0 3px 0 #0b1426}
body.dark-mode .tier-page .tp-tab[aria-selected="true"]{background:linear-gradient(180deg,#fcd34d,#f59e0b);border-color:#d97706;color:#3b2304;box-shadow:0 3px 0 #7c2d12}
body.dark-mode .tier-page .tp-row{background:#121d33;border-color:#2c3d5c;box-shadow:0 8px 18px rgba(0,0,0,.3)}
body.dark-mode .tier-page .tp-s{background:linear-gradient(180deg,#2a1a1f,#121d33)}
body.dark-mode .tier-page .tp-card{background:linear-gradient(180deg,#1b2944,#16223a);border-color:#33445f;box-shadow:0 4px 10px rgba(0,0,0,.3)}
body.dark-mode .tier-page .tp-card:hover{box-shadow:0 10px 20px rgba(0,0,0,.45)}
body.dark-mode .tier-page .tp-card-head{color:#f1f5f9}
body.dark-mode .tier-page .tp-card-head:hover b{color:#93c5fd}
body.dark-mode .tier-page .tp-name small{color:#a9b6cc}
body.dark-mode .tier-page .tp-chips span{background:#24305a;border-color:#3f4f86;color:#c7d2fe}
body.dark-mode .tier-page .tp-why,body.dark-mode .tier-page .tp-method,body.dark-mode .tier-page .tp-notes,body.dark-mode .tier-page .tp-sources{color:#dbe4f3}
body.dark-mode .tier-page .tp-ref{background:#2d3a6b;color:#c7d2fe}
body.dark-mode .tier-page .tp-more{background:#12301f;border-color:#1f5a37;color:#bbf7d0}
body.dark-mode .tier-page .tp-note{color:#fcd34d}
body.dark-mode .tier-page .tp-ref:hover{background:#3b4a85}
body.dark-mode .tier-page .tp-method{background:#121d33;border-color:#2c3d5c}
body.dark-mode .tier-page .tp-sources li:target{background:#3b3412}
body.dark-mode .tier-page .tp-sources small,body.dark-mode .tier-page .tp-source-note{color:#a9b6cc}
body.dark-mode .tier-page .tp-src-type{background:#1e2a44;border-color:#33445f;color:#cbd5e1}
