.potential-page {
    width: min(1320px, calc(100% - 40px));
    margin: 120px auto 70px;
    color: #49372b;
}

.potential-hero {
    padding: 46px 28px 34px;
    border: 1px solid rgba(185, 128, 50, 0.35);
    border-radius: 24px;
    background:
        radial-gradient(ellipse at 50% 0, rgba(255, 236, 181, 0.8), transparent 58%),
        rgba(255, 252, 241, 0.94);
    box-shadow: 0 14px 40px rgba(89, 61, 31, 0.12);
    text-align: center;
}

.hero-kicker {
    color: #b87819;
    font: 700 0.78rem/1.5 'Orbitron', sans-serif;
    letter-spacing: 0.22em;
}

.potential-hero h1 {
    margin: 6px 0 8px;
    color: #573c20;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.06em;
    text-shadow: 0 2px 0 #fff;
}

.potential-hero > p {
    color: #796957;
    font-size: 1.04rem;
}

.tier-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 24px auto 0;
    color: #78552c;
}

.tier-legend span {
    color: #8c7c65;
    font-size: 0.9rem;
}

.tier-legend b {
    padding: 5px 12px;
    border: 1px solid rgba(159, 119, 62, 0.2);
    border-radius: 999px;
    background: #fffaf0;
    font-size: 0.9rem;
}

.tier-legend i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c6a66f;
}

.potential-tabs {
    position: sticky;
    top: 88px;
    left: auto;
    right: auto;
    z-index: 20;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
    padding: 10px;
    border: 1px solid rgba(177, 132, 71, 0.2);
    border-bottom-width: 1px;
    border-radius: 16px;
    background: rgba(255, 251, 240, 0.95);
    box-shadow: 0 8px 24px rgba(73, 55, 43, 0.1);
    backdrop-filter: blur(12px);
}

.potential-tabs a {
    padding: 9px 16px;
    border-radius: 10px;
    color: #6b5134;
    font-weight: 700;
    white-space: nowrap;
}

.potential-tabs a:hover,
.potential-tabs a:focus-visible {
    background: #f4e3c2;
    color: #75490f;
}

.potential-note {
    margin: 18px 6px 24px;
    color: #766b5b;
    font-size: 0.92rem;
}

.potential-category {
    scroll-margin-top: 170px;
    margin: 34px 0 46px;
}

.category-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid rgba(146, 104, 45, 0.32);
    border-bottom: 3px solid #d5a34d;
    border-radius: 14px;
    background: linear-gradient(110deg, rgba(255, 253, 246, 0.98), rgba(255, 243, 215, 0.97));
    box-shadow: 0 5px 16px rgba(58, 42, 24, 0.2), inset 0 1px 0 #fff;
}

.category-number {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8d98d, #dca642);
    color: #513710;
    font: 700 1.15rem 'Orbitron', sans-serif;
    box-shadow: inset 0 1px 0 #fff4d5, 0 3px 8px rgba(131, 87, 22, 0.17);
}

.category-heading h2 {
    margin: 0;
    color: #493016;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
    text-shadow: 0 1px 0 #fff;
}

.potential-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.potential-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(171, 130, 73, 0.26);
    border-radius: 16px;
    background: rgba(255, 253, 247, 0.96);
    box-shadow: 0 8px 22px rgba(71, 54, 35, 0.08);
}

.potential-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 16px;
    background: linear-gradient(110deg, #fff4d9, #f6e5c4);
    color: #61451f;
    font-size: 1rem;
    line-height: 1.45;
}

.potential-card h3 span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    background: #79551f;
    color: #fff4d6;
    font: 700 0.82rem 'Orbitron', sans-serif;
}

.table-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.potential-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.92rem;
}

.potential-table th,
.potential-table td {
    padding: 8px 9px;
    border: 1px solid #eadfc9;
    white-space: nowrap;
}

.potential-table thead th {
    position: sticky;
    top: 0;
    background: #f3ead7;
    color: #65543d;
    font-weight: 700;
}

.potential-table thead th:nth-child(2) {
    background: #ede3f5;
    color: #674185;
}

.potential-table thead th:nth-child(3) {
    background: #deebf6;
    color: #315d83;
}

.potential-table thead th:nth-child(4) {
    background: #e6efd9;
    color: #4b6a2d;
}

.potential-table thead th:nth-child(5) {
    background: #f8e2c6;
    color: #9a5718;
}

.potential-table tbody tr:nth-child(even) {
    background: #fcf8ef;
}

.potential-table tbody tr:hover {
    background: #fff0cf;
}

.potential-table td:first-child {
    color: #625541;
    font-weight: 700;
}

.potential-table td:not(:first-child) {
    color: #4c4539;
    font-variant-numeric: tabular-nums;
}

.potential-table td.is-unavailable {
    color: #a79e8e;
}

.parts-group {
    margin-top: 22px;
}

.parts-group > h3 {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-left: 4px solid #d59c3e;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 249, 232, 0.82);
    color: #654721;
    font-size: 1.08rem;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 760px) {
    .potential-page {
        width: min(100% - 24px, 620px);
        margin-top: 105px;
    }

    .potential-hero {
        padding: 32px 16px 25px;
        border-radius: 18px;
    }

    .potential-tabs {
        top: 78px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .potential-tabs a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .potential-grid,
    .parts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .potential-card h3 {
        font-size: 0.95rem;
    }

    .potential-table {
        min-width: 460px;
        font-size: 0.88rem;
    }
}
