.wheel-container {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0.1875rem;
}

.main-content .container {
    max-width: 105rem;
}

.wheel-content-wrapper {
    display: grid;
    grid-template-columns: minmax(15rem, 18.75rem) minmax(32.5rem, 1fr) minmax(20rem, 28.75rem);
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    gap: 0.75rem;
    overflow: visible;
    position: relative;
    padding-right: 0;
    transform: none;
}

.wheel-left-panel {
    width: 100%;
    min-width: 15rem;
    max-width: 18.75rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 5;
    transform: translateY(0rem);
}

.faction-menu {
    width: 100%;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.375rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.hero-trial-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0.5rem;
    align-items: stretch;
}

.skill-state-panel {
    width: 100%;
    align-self: flex-start;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.375rem;
}

.skill-state-panel.visible {
    display: flex;
}

.skill-hero-panel {
    width: 100%;
    align-self: flex-start;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 0.5rem;
    display: grid;
    gap: 0.375rem;
    position: relative;
    z-index: 12;
}

.skill-hero-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.skill-hero-toggle-btn {
    width: 1.5rem;
    height: 1.5rem;
    border: 0.0625rem solid rgba(120, 193, 255, 0.45);
    border-radius: 0.375rem;
    background: rgba(90, 167, 255, 0.14);
    color: #d9eeff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.skill-hero-toggle-btn:hover {
    background: rgba(90, 167, 255, 0.24);
}

.skill-hero-title {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.skill-hero-content {
    display: grid;
    gap: 0.375rem;
}

.skill-hero-panel.collapsed .skill-hero-content {
    display: none;
}

.skill-hero-panel.collapsed .skill-hero-toggle-btn {
    transform: rotate(-90deg);
}

.skill-hero-select-wrap {
    position: relative;
}

.skill-hero-select-btn,
.skill-hero-option,
.skill-hero-clear-btn {
    width: 100%;
    border: 0.0625rem solid rgba(120, 193, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.skill-hero-select-btn {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    cursor: pointer;
    text-align: left;
}

.skill-hero-select-btn:hover,
.skill-hero-option:hover,
.skill-hero-clear-btn:hover {
    background: rgba(90, 167, 255, 0.14);
    border-color: rgba(120, 193, 255, 0.46);
}

.skill-hero-select-btn.is-open .skill-hero-select-caret {
    transform: rotate(180deg);
}

.skill-hero-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    overflow: hidden;
    border: 0.0625rem solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(82, 137, 255, 0.35), rgba(82, 204, 255, 0.12));
    box-shadow: inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.05);
    position: relative;
    flex-shrink: 0;
}

.skill-hero-avatar::before {
    content: "英";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 700;
    color: rgba(235, 245, 255, 0.88);
}

.skill-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.skill-hero-avatar:not(.is-empty)::before {
    display: none;
}

.skill-hero-avatar.is-empty img {
    display: none;
}

.skill-hero-select-copy {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.skill-hero-select-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e9f5ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-hero-select-meta {
    font-size: 0.6875rem;
    color: rgba(213, 232, 247, 0.72);
    min-height: 1.375rem;
    display: flex;
    align-items: center;
}

.skill-hero-select-meta.is-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-hero-select-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.skill-hero-select-skill-icon {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    object-fit: cover;
    display: block;
}

.skill-hero-select-skill-icon.is-missing {
    opacity: 0.3;
}

.skill-hero-select-caret {
    color: rgba(222, 238, 255, 0.82);
    transition: transform 0.2s ease;
}

.skill-hero-select-menu {
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    right: 0;
    padding: 0.5rem;
    border-radius: 0.625rem;
    border: 0.0625rem solid rgba(120, 193, 255, 0.3);
    background: rgba(6, 15, 27, 0.96);
    box-shadow: 0 0.75rem 1.875rem rgba(0, 0, 0, 0.42);
    z-index: 30;
    display: grid;
    gap: 0.5rem;
}

.skill-hero-select-menu[hidden] {
    display: none !important;
}

.skill-hero-clear-btn,
.skill-hero-option {
    padding: 0.5rem 0.625rem;
    cursor: pointer;
    text-align: left;
}

.skill-hero-clear-btn {
    font-size: 0.6875rem;
    color: rgba(223, 239, 255, 0.82);
}

.skill-hero-option-list {
    display: grid;
    gap: 0.375rem;
    max-height: 2rem;
    overflow-y: auto;
}

.skill-hero-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 0.625rem;
}

.skill-hero-option.is-selected {
    background: rgba(90, 167, 255, 0.22);
    border-color: rgba(120, 193, 255, 0.62);
    box-shadow: inset 0 0 0 0.0625rem rgba(170, 220, 255, 0.2);
}

.skill-hero-option-copy {
    min-width: 0;
    display: grid;
    gap: 0.125rem;
}

.skill-hero-option-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #eef7ff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skill-hero-option-meta {
    font-size: 0.6875rem;
    color: rgba(211, 229, 244, 0.68);
    line-height: 1.35;
}

.skill-hero-option-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.25rem;
    max-width: 9rem;
    padding-top: 0.0625rem;
}

.skill-hero-option-skill-icon {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    object-fit: cover;
    display: block;
    flex: 0 0 auto;
}

.skill-hero-option-skill-icon.is-missing {
    opacity: 0.3;
}

.skill-hero-option-icons-empty {
    font-size: 0.6875rem;
    color: rgba(211, 229, 244, 0.6);
    white-space: nowrap;
}

.skill-hero-option-empty {
    padding: 0.5rem 0.625rem;
    border: 0.0625rem dashed rgba(120, 193, 255, 0.28);
    border-radius: 0.5rem;
    color: rgba(213, 232, 247, 0.72);
    font-size: 0.6875rem;
    text-align: center;
}

.skill-state-title {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.skill-state-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.skill-state-toggle-btn {
    width: 1.5rem;
    height: 1.5rem;
    border: 0.0625rem solid rgba(120, 193, 255, 0.45);
    border-radius: 0.375rem;
    background: rgba(90, 167, 255, 0.14);
    color: #d9eeff;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.skill-state-toggle-btn:hover {
    background: rgba(90, 167, 255, 0.24);
}

.skill-state-content {
    display: grid;
    gap: 0.375rem;
}

.skill-state-panel.collapsed .skill-state-content {
    display: none;
}

.skill-state-panel.collapsed .skill-state-actions-row {
    display: none;
}

.skill-state-panel.collapsed .skill-state-toggle-btn {
    transform: rotate(-90deg);
}

.skill-state-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.375rem;
}

.skill-state-select-row {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.skill-state-select-row > .skill-state-delete-btn {
    grid-column: 1;
    position: relative;
    z-index: 2;
}

.skill-state-select-row > .skill-state-select {
    grid-column: 2;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.skill-state-delete-btn {
    width: 1.625rem;
    height: 1.625rem;
    border: 0.0625rem solid rgba(255, 153, 153, 0.5);
    border-radius: 0.5rem;
    background: rgba(255, 107, 107, 0.16);
    color: #ffe1e1;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.skill-state-delete-btn:hover {
    background: rgba(255, 107, 107, 0.28);
}

.skill-state-delete-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(120, 120, 120, 0.16);
    border-color: rgba(170, 170, 170, 0.35);
}

.skill-state-name-input {
    width: 100%;
    padding: 0.375rem 0.625rem;
    border: 0.0625rem solid rgba(100, 150, 200, 0.3);
    border-radius: 0.25rem;
    background: rgba(10, 15, 25, 0.25);
    color: #e0f0ff;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.skill-state-name-input:focus {
    outline: none;
    border-color: rgba(100, 180, 255, 0.6);
    background: rgba(15, 25, 40, 0.35);
    box-shadow: 0 0 0 0.125rem rgba(66, 153, 225, 0.25);
}

.skill-state-name-input::placeholder {
    color: rgba(180, 200, 220, 0.5);
}

.skill-state-actions-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.skill-state-save-btn {
    border: 0.0625rem solid rgba(120, 193, 255, 0.45);
    border-radius: 0.5rem;
    background: rgba(90, 167, 255, 0.16);
    color: #d9eeff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 0.3125rem 0.4375rem;
    cursor: pointer;
}

.skill-state-save-btn:hover {
    background: rgba(90, 167, 255, 0.24);
}

.skill-state-save-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(120, 120, 120, 0.16);
    border-color: rgba(170, 170, 170, 0.35);
    color: rgba(217, 238, 255, 0.55);
}

.skill-state-select {
    width: 100%;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
}

.skill-state-select option {
    color: #0f1a2b;
    background: #f2f7ff;
}

.skill-state-status {
    min-height: 1rem;
    color: rgba(221, 241, 255, 0.75);
    font-size: 0.6875rem;
    line-height: 1.4;
}


.faction-btn {
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 0.25rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faction-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
    display: block;
}

.faction-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: var(--bg-card);
}

.wheel-stage {
    width: 100%;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow: visible;
    margin-left: 0;
    transform: translate(0, 1.25rem);
}

.wheel-quick-actions {
    position: absolute;
    top: -0.875rem;
    left: 0.5rem;
    z-index: 8;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    align-items: flex-start;
    pointer-events: none;
}

.wheel-action-btn {
    width: 2.125rem;
    height: 2.125rem;
    padding: 0;
    border: 0.0625rem solid rgba(120, 193, 255, 0.34);
    border-radius: 0.5625rem;
    background: rgba(10, 20, 36, 0.86);
    color: #e9f4ff;
    cursor: pointer;
    box-shadow: 0 0.375rem 1.125rem rgba(8, 12, 28, 0.2);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wheel-action-icon {
    font-size: 1rem;
    line-height: 1;
    font-weight: 700;
}

.wheel-action-btn:hover:not(:disabled) {
    transform: translateY(-0.0625rem);
    border-color: rgba(167, 221, 255, 0.66);
    background: rgba(18, 35, 58, 0.94);
    color: #ffffff;
}

.wheel-action-btn:active:not(:disabled) {
    transform: translateY(0);
}

.wheel-action-btn:disabled {
    opacity: 0.48;
    cursor: default;
    box-shadow: none;
}

.fourth-skill-panel {
    position: static;
    z-index: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    background: rgba(11, 22, 40, 0.78);
    border: 0.0625rem solid rgba(120, 193, 255, 0.35);
    box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
}

.fourth-skill-hint-btn {
    position: absolute;
    top: 0.25rem;
    right: 0;
    transform: translateX(50%);
    width: 1.125rem;
    height: 1.125rem;
    border: 0.0625rem solid rgba(157, 211, 255, 0.62);
    border-radius: 50%;
    background: rgba(15, 34, 58, 0.78);
    color: #c9e9ff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fourth-skill-hint-btn:hover {
    background: rgba(61, 121, 184, 0.7);
    border-color: rgba(191, 227, 255, 0.88);
}

.fourth-skill-hint {
    display: none;
    position: absolute;
    top: 1.75rem;
    right: 0;
    width: 15.625rem;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.375rem 0.4375rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(153, 212, 255, 0.45);
    background: rgba(8, 18, 34, 0.92);
    color: #d7ebff;
    font-size: 0.6875rem;
    line-height: 1.35;
    z-index: 30;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
}

.fourth-skill-hint.visible {
    display: block;
}

.debug-popup-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #d7ebff;
    font-size: 0.75rem;
    line-height: 1.2;
    margin-right: 1.125rem;
    user-select: none;
}

.debug-popup-toggle input {
    margin: 0;
}

.fourth-skill-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.375rem;
    align-items: baseline;
    color: #eaf5ff;
    font-size: 0.75rem;
    line-height: 1.25;
}

.fourth-skill-row .slot-label {
    color: #91d4ff;
    font-weight: 700;
    white-space: nowrap;
}

.fourth-skill-row .slot-value {
    color: #f6d993;
    word-break: break-word;
}

.fourth-skill-row.is-empty .slot-value {
    color: rgba(234, 245, 255, 0.55);
}

.wheel-viewport {
    --wheel-size-scale: 1;
    /* 使用相对宽度，跟随中间列宽度变化，以便浏览器缩放时也能同步缩放 */
    width: 100%;
    height: auto;
    max-height: none;
    max-width: none;
    aspect-ratio: 1 / 1;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    position: relative;
    display: block;
    transform: scale(var(--wheel-size-scale));
    transform-origin: top center;
    transition: transform 0.12s ease;
}

.wheel-size-control {
    display: none;
    margin-top: 0.375rem;
    width: 100%;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    position: relative;
    z-index: 6;
}

.wheel-size-title {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.wheel-size-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

.wheel-size-row input[type="range"] {
    width: 100%;
}

.wheel-size-row span {
    color: var(--text-secondary);
    font-size: 0.75rem;
    min-width: 2.625rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.hero-class-probs {
    position: static;
    z-index: 1;
    width: 100%;
    min-width: 0;
    padding: 0.375rem 0.5rem;
    border-radius: 0.5rem;
    background: rgba(8, 18, 34, 0.72);
    border: 0.0625rem solid rgba(130, 194, 255, 0.4);
    box-shadow: 0 0.25rem 0.875rem rgba(0, 0, 0, 0.35);
    color: #e9f4ff;
    font-size: 0.75rem;
    line-height: 1.35;
    pointer-events: none;
}

.hero-class-probs .title {
    font-weight: 700;
    margin-bottom: 0.1875rem;
    color: #9dd3ff;
}

.hero-class-probs .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.125rem 0.5rem;
}

.hero-class-probs .attr-item {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.hero-class-probs .attr-label {
    color: #91d4ff;
    font-weight: 700;
}

.hero-class-probs .attr-value {
    color: #f6d993;
    font-variant-numeric: tabular-nums;
}

.wheel-content {
    position: absolute;
    left: 50%;
    top: 48%;
    display: inline-block;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.wheel-bg {
    display: block;
    max-width: none;
}

.wheel-skills {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wheel-skill {
    position: absolute;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 0.25rem;
    overflow: hidden;
}

.wheel-skill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wheel-skill:hover {
    transform: scale(1.2);
    box-shadow: 0 0 0.625rem rgba(74, 144, 226, 0.8);
    z-index: 10;
}

.wheel-skill.selected {
    background: rgba(255, 215, 64, 0.28);
    box-shadow: 0 0 0 0.125rem rgba(255, 215, 64, 0.9), 0 0 0.75rem rgba(255, 215, 64, 0.75);
    z-index: 11;
}

.wheel-skill.selected.trial-selected {
    background: rgba(255, 118, 160, 0.28);
    box-shadow: 0 0 0 0.125rem rgba(255, 118, 160, 0.95), 0 0 0.75rem rgba(255, 118, 160, 0.75);
    z-index: 12;
}

.wheel-skill.prereq-highlight,
.wheel-skill.prereq-highlight-selected {
    background: rgba(87, 225, 255, 0.24);
    box-shadow: 0 0 0 0.125rem rgba(87, 225, 255, 0.95), 0 0 0.75rem rgba(87, 225, 255, 0.75);
    transform: scale(1.1);
    z-index: 10;
}

.wheel-skill.prereq-highlight-hover {
    background: rgba(156, 132, 255, 0.24);
    box-shadow: 0 0 0 0.125rem rgba(156, 132, 255, 0.92), 0 0 0.75rem rgba(156, 132, 255, 0.72);
    transform: scale(1.1);
    z-index: 9;
}

.wheel-skill.missing-icon {
    background: rgba(255, 107, 107, 0.2);
    border: 0.0625rem solid rgba(255, 107, 107, 0.5);
}

.wheel-skill.missing-icon:hover {
    box-shadow: 0 0 0.625rem rgba(255, 107, 107, 0.8);
}

.wheel-right-panel {
    width: 100%;
    min-width: 2rem;
    max-width: 28.75rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: static;
    margin-left: -4rem;
    transform: none;
}


.skill-prob-list-panel {
    width: 100%;
    flex: 0 0 auto;
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 0.625rem;
    max-height: none;
    overflow: visible;
    position: relative;
}

.skill-prob-list-title {
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.skill-prob-list-title .title-main {
    flex-shrink: 0;
}

.skill-prob-list-title .title-racials {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.skill-prob-list-title .title-racial {
    color: #caa5ff;
    background: rgba(159, 105, 255, 0.16);
    border: 0.0625rem solid rgba(219, 184, 255, 0.45);
    border-radius: 62.4375rem;
    padding: 0.0625rem 0.4375rem;
    font-size: 0.6875rem;
    line-height: 1.2;
}

.skill-prob-list-title .title-racial.active {
    color: #f5ecff;
    background: rgba(186, 132, 255, 0.32);
    border-color: rgba(219, 184, 255, 0.75);
    box-shadow: inset 0 0 0 0.0625rem rgba(219, 184, 255, 0.45);
}

.skill-prob-list-title .title-racial-empty {
    color: var(--text-secondary);
    font-size: 0.6875rem;
}

.skill-prob-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.375rem;
}

.skill-prob-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0.3125rem 0.375rem;
    border-radius: 0.375rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.6875rem;
    line-height: 1.3;
    transition: background 0.2s ease, color 0.2s ease;
    overflow: visible;
}

.skill-prob-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.skill-prob-item .name {
    padding-right: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.management-hint-btn {
    position: absolute;
    top: 50%;
    right: -1.1875rem;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    border: 0.0625rem solid rgba(157, 211, 255, 0.62);
    border-radius: 50%;
    background: rgba(15, 34, 58, 0.78);
    color: #c9e9ff;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.15s ease, border-color 0.15s ease;
    z-index: 2;
}

.management-hint-btn:hover {
    background: rgba(61, 121, 184, 0.7);
    border-color: rgba(191, 227, 255, 0.88);
}

.management-hint {
    display: none;
    position: absolute;
    right: -0.625rem;
    bottom: calc(100% + 0.375rem);
    width: 14.375rem;
    max-width: calc(100vw - 2rem);
    margin: 0;
    padding: 0.375rem 0.4375rem;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(153, 212, 255, 0.45);
    background: rgba(8, 18, 34, 0.92);
    color: #d7ebff;
    font-size: 0.6875rem;
    line-height: 1.35;
    z-index: 40;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.45);
}

.management-hint.visible {
    display: block;
}

.skill-prob-item .prob {
    color: #f7c975;
    font-weight: 700;
}

.skill-prob-item.prob-15 {
    color: #74f0c5;
    background: rgba(92, 219, 169, 0.12);
}

.skill-prob-item.prob-15 .prob {
    color: #74f0c5;
}

.skill-prob-item.prob-2 {
    color: #ffb67a;
    background: rgba(255, 166, 90, 0.12);
}

.skill-prob-item.prob-2 .prob {
    color: #ffb67a;
}

.skill-prob-item.active {
    background: rgba(89, 194, 255, 0.22);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 0.0625rem rgba(120, 218, 255, 0.55);
}

.skill-prob-item.racial {
    background: rgba(159, 105, 255, 0.14);
    color: #e7d8ff;
}

.skill-prob-item.racial .prob {
    color: #caa5ff;
}

.skill-prob-item.racial.active {
    background: rgba(186, 132, 255, 0.28);
    color: #f5ecff;
    box-shadow: inset 0 0 0 0.0625rem rgba(219, 184, 255, 0.65);
}

.skill-prob-item.racial.active .prob {
    color: #f1d8ff;
}

.wheel-tuning {
    display: none !important;
}

.wheel-right-panel {
    width: 100%;
    min-width: 2rem;
    max-width: 28.75rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: static;
    margin-left: -4rem;
    transform: none;
}

@media (max-width: 93.75rem) {
    .wheel-content-wrapper {
        grid-template-columns: minmax(13.75rem, 17.5rem) minmax(28.75rem, 1fr) minmax(18.75rem, 26.25rem);
    }

    .wheel-left-panel {
        min-width: 13.75rem;
        max-width: 17.5rem;
    }

    .wheel-right-panel {
        min-width: 18.75rem;
        max-width: 26.25rem;
    }

    .wheel-quick-actions {
        top: -0.875rem;
        left: 0;
    }

    .wheel-action-btn {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 80rem) {
    .wheel-content-wrapper {
        grid-template-columns: minmax(12.5rem, 15.625rem) minmax(26.25rem, 1fr) minmax(17.5rem, 22.5rem);
    }

    .wheel-left-panel {
        min-width: 12.5rem;
        max-width: 15.625rem;
    }

    .wheel-right-panel {
        min-width: 17.5rem;
        max-width: 22.5rem;
    }

    .wheel-quick-actions {
        top: -0.625rem;
        left: -0.25rem;
    }

    .wheel-action-btn {
        width: 1.875rem;
        height: 1.875rem;
        border-radius: 0.5rem;
    }

    .wheel-action-icon {
        font-size: 0.875rem;
    }
}

.tune-item {
    background: var(--bg-card);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.625rem;
    padding: 0.5rem 0.625rem;
    color: var(--text-primary);
    font-size: 0.75rem;
    display: grid;
    gap: 0.375rem;
}

.tune-item input[type="range"] {
    width: 100%;
}

.tune-row {
    display: grid;
    grid-template-columns: 1fr 4.625rem;
    gap: 0.5rem;
    align-items: center;
}

.tune-row input[type="number"] {
    width: 100%;
    padding: 0.25rem 0.375rem;
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: monospace;
    font-size: 0.75rem;
}

.skill-info-panel {
    width: 100%;
    flex: 0 0 auto;
    align-self: flex-start;
    background: var(--bg-card);
    backdrop-filter: blur(0.625rem);
    -webkit-backdrop-filter: blur(0.625rem);
    border: 0.0625rem solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.skill-info-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    text-align: center;
}

.skill-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.0625rem solid var(--glass-border);
}

.skill-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.skill-info-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-info-title {
    flex: 1;
}

.skill-info-title h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.skill-info-title .skill-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.skill-info-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    transition: var(--transition);
}

.skill-info-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.skill-info-content {
    flex: 1;
    overflow-y: auto;
}

.skill-info-content pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.skill-info-content .main-skill {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--primary-color);
}

.wheel-tooltip {
    display: none;
}

@media (max-width: 48rem) {
    .wheel-content-wrapper {
        display: flex;
        flex-direction: column;
        position: static;
        padding-right: 0;
        transform: none;
    }

    .wheel-left-panel {
        width: 100%;
    }

    .wheel-size-control {
        margin-top: 0;
    }

    .faction-menu {
        margin-top: 0;
        width: 100%;
    }

    .wheel-right-panel {
        position: static;
        width: 100%;
        max-width: none;
        margin-left: 0;
        transform: none;
    }

    .hero-trial-wrapper {
        grid-template-columns: 1fr;
    }

    .wheel-stage {
        transform: none;
    }

    .fourth-skill-panel {
        min-width: 0;
        margin-bottom: 0.5rem;
    }

    .skill-prob-list-panel {
        width: 100%;
        flex: 0 0 auto;
        max-height: 11.25rem;
        overflow-y: auto;
    }

    .skill-prob-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wheel-viewport {
        width: 100%;
        max-height: none;
    }

    .hero-class-probs {
        position: static;
        width: 100%;
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        margin-bottom: 0.5rem;
    }

    .wheel-tuning {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .skill-info-panel {
        width: 100%;
        max-height: 13.75rem;
        min-height: 9.375rem;
    }
}
