.starter_summary_wrap {
    padding-top: 8px;
}
.starter_summary {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(246, 200, 96, 0.32);
    border-radius: 14px;
    background: linear-gradient(125deg, rgba(246, 200, 96, 0.1), rgba(183, 156, 255, 0.07) 65%, rgba(246, 200, 96, 0.03));
    color: var(--parchment);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px rgba(255, 233, 176, 0.08), 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.starter_summary::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 233, 176, 0.1) 50%, transparent 70%);
    animation: starter_summary_sheen 6s ease-in-out infinite;
}
.starter_summary_head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.starter_summary_star {
    font-size: 24px;
    line-height: 1;
    color: #f6c860;
    text-shadow: 0 0 14px rgba(246, 200, 96, 0.5);
    animation: starter_star_float 3s ease-in-out infinite;
}
.starter_summary_title {
    color: #ffe9b0;
    font-size: 12px;
    letter-spacing: 1.4px;
}
.starter_summary_arrow {
    margin-left: auto;
    font-size: 25px;
    color: #f6c860;
    transition: transform 0.18s ease;
}
.starter_summary_state {
    display: block;
    margin: 2px 0 10px 32px;
    font-size: 11px;
    color: rgba(243, 233, 210, 0.55);
}
.starter_summary_groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
    gap: 6px;
}
.starter_summary_group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    padding: 6px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 8, 18, 0.22);
}
.starter_summary_number {
    font-size: 9px;
    color: rgba(246, 200, 96, 0.7);
}
.starter_summary_icon {
    font-size: 16px;
    line-height: 20px;
    color: rgba(243, 233, 210, 0.25);
}
.starter_summary_icon.filled {
    color: var(--c);
    text-shadow: 0 0 9px var(--c);
}
.starter_summary_warning {
    position: absolute;
    right: 2px;
    top: -7px;
    font-size: 11px;
    color: #d8b878;
}
.starter_summary:hover,
.starter_summary:focus-visible {
    transform: translateY(-2px);
    border-color: #f6c860;
    box-shadow: 0 6px 22px rgba(246, 200, 96, 0.12), inset 0 1px rgba(255, 233, 176, 0.15);
}
.starter_summary:is(:hover, :focus-visible) .starter_summary_arrow {
    transform: translateX(3px);
}
.starter_summary:active {
    transform: scale(0.98);
}
.starter_setup_scroll {
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 370px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 5px 14px;
    text-align: left;
}
.starter_hint {
    color: rgba(243, 233, 210, 0.62);
    font-size: 11px;
    line-height: 1.45;
}
.starter_fallback {
    margin-top: 12px;
}
.starter_group {
    padding: 12px;
    border: 1px solid rgba(246, 200, 96, 0.17);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(246, 200, 96, 0.04), rgba(183, 156, 255, 0.04));
}
.starter_group + .starter_group {
    margin-top: 12px;
}
.starter_group h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 500;
    color: var(--parchment);
}
.starter_screen_number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(246, 200, 96, 0.3);
    border-radius: 50%;
    background: rgba(246, 200, 96, 0.06);
    color: #f6c860;
    font-size: 11px;
}
.starter_count {
    margin-left: auto;
    color: rgba(243, 233, 210, 0.42);
    font-size: 10px;
}
.starter_slot + .starter_slot {
    margin-top: 5px;
}
.starter_slot_row {
    display: flex;
    gap: 4px;
}
.starter_choice,
.starter_clear,
.starter_option_select {
    font: inherit;
    color: var(--parchment);
    cursor: pointer;
    min-height: 44px;
}
.starter_choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    text-align: left;
    font-size: 12px;
    border: 1px dashed rgba(243, 233, 210, 0.17);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(243, 233, 210, 0.5);
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.starter_choice.assigned {
    color: var(--parchment);
    border-style: solid;
    border-color: var(--c);
    background: rgba(255, 255, 255, 0.04);
}
.starter_icon {
    flex: 0 0 24px;
    text-align: center;
    font-size: 19px;
    color: var(--c, #f6c860);
}
.starter_name {
    overflow-wrap: anywhere;
    min-width: 0;
}
.starter_edit {
    margin-left: auto;
    font-size: 20px;
    color: rgba(243, 233, 210, 0.4);
}
.starter_clear {
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    color: rgba(243, 233, 210, 0.5);
    font-size: 20px;
}
.starter_choice:hover,
.starter_clear:hover {
    background: rgba(255, 255, 255, 0.085);
}
.starter_choice:hover {
    transform: translateX(3px);
    box-shadow: -3px 0 12px rgba(246, 200, 96, 0.08);
}
.starter_choice:active,
.starter_clear:active {
    transform: scale(0.96);
}
.starter_warning {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin: 6px 2px 8px;
    font-size: 10.5px;
    line-height: 1.4;
    color: #d8b878;
}
.starter_warning:empty {
    display: none;
}
#clear_starters_btn:disabled {
    opacity: 0.4;
    cursor: default;
}
#starter_picker_screen {
    gap: 0;
}
#starter_picker_screen .screen_title,
#custom_starters_screen .screen_title {
    font-size: 23px;
    flex-shrink: 0;
}
#starter_picker_screen .screen_sub,
#custom_starters_screen .screen_sub {
    margin-bottom: 13px;
    flex-shrink: 0;
}
.starter_search_label,
#starter_search,
.starter_picker_hint,
.starter_picker_list {
    width: 100%;
    max-width: 370px;
}
.starter_picker_hint {
    text-align: left;
    font-size: 11px;
    color: rgba(243, 233, 210, 0.55);
    margin-top: 10px;
}
.starter_search_label {
    text-align: left;
    color: rgba(243, 233, 210, 0.6);
    font-size: 11px;
    margin-bottom: 6px;
}
#starter_search {
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(246, 200, 96, 0.3);
    border-radius: 10px;
    background: rgba(10, 8, 18, 0.55);
    color: var(--parchment);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
#starter_search:focus {
    border-color: #f6c860;
    box-shadow: 0 0 18px rgba(246, 200, 96, 0.13);
}
.starter_picker_list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 8px;
    padding: 5px 5px 14px;
    text-align: left;
}
.starter_option {
    position: relative;
    margin-bottom: 8px;
}
.starter_option .starter_reference {
    opacity: 1;
    min-height: 60px;
    padding: 12px 10px;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.starter_reference .phead {
    min-height: 34px;
    padding-right: 48px;
}
.starter_reference .phead .pico {
    transition: transform 0.22s cubic-bezier(0.2, 1.8, 0.5, 1);
}
.starter_reference:is(:hover, :focus-visible, .open) .pico {
    transform: scale(1.18) rotate(-6deg);
}
.starter_reference.open .pdetail {
    max-height: 600px;
}
.starter_option.unavailable .starter_reference .phead,
.starter_option.unavailable .starter_reference .pdetail {
    opacity: 0.55;
}
.starter_option_select {
    display: grid;
    place-items: center;
    padding: 0;
    line-height: 1;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(246, 200, 96, 0.3);
    border-radius: 9px;
    background: linear-gradient(155deg, rgba(246, 200, 96, 0.15), rgba(246, 200, 96, 0.04));
    color: #f6c860;
    font-size: 23px;
    box-shadow: inset 0 1px rgba(255, 233, 176, 0.1), 0 2px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.starter_action_icon {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.starter_option_select:hover:not(:disabled),
.starter_option_select:focus-visible {
    transform: translateY(-2px) scale(1.06);
    border-color: #f6c860;
    box-shadow: 0 0 16px rgba(246, 200, 96, 0.25);
}
.starter_option_select:active:not(:disabled) {
    transform: translateY(1px) scale(0.9);
}
.starter_option_select:disabled {
    opacity: 0.45;
    cursor: default;
}
.starter_reference > .starter_unavailable_reason,
.starter_reference > .starter_warning {
    margin: 9px -10px -12px;
    padding: 9px 10px;
    border-top: 1px solid rgba(246, 200, 96, 0.14);
    border-radius: 0 0 8px 5px;
    background: rgba(246, 200, 96, 0.045);
    font-size: 11px;
    line-height: 1.4;
}
.starter_reference > .starter_unavailable_reason {
    color: rgba(243, 233, 210, 0.65);
    background: rgba(255, 255, 255, 0.025);
    border-top-color: rgba(255, 255, 255, 0.1);
}
#starter_picker_screen .custom_footer,
#custom_starters_screen .custom_footer {
    flex-shrink: 0;
    margin-top: 12px;
}
.starter_choice:focus-visible,
.starter_clear:focus-visible,
.starter_option_select:focus-visible,
.starter_reference:focus-visible,
.starter_summary:focus-visible,
#starter_search:focus-visible {
    outline: 2px solid #f6c860;
    outline-offset: -3px;
}
.starter_badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 4px;
    border: 1px solid rgba(246, 200, 96, 0.4);
    border-radius: 4px;
    color: #f6c860;
    font-size: 8px;
    letter-spacing: 0.6px;
    line-height: 1.2;
}
@keyframes starter_selection {
    0% {
        transform: scale(0.88);
        box-shadow: 0 0 24px var(--c, #f6c860), inset 0 0 20px rgba(255, 233, 176, 0.2);
    }
    45% {
        transform: scale(1.035);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 transparent;
    }
}
.starter_selected {
    animation: starter_selection 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.starter_spark {
    position: absolute;
    left: 50%;
    top: 50%;
    pointer-events: none;
    z-index: 3;
    color: #ffe9b0;
    font-size: 12px;
    line-height: 1;
    text-shadow: 0 0 7px var(--c, #f6c860);
    animation: starter_spark_burst 0.6s ease-out forwards;
}
.starter_committing .starter_reference {
    border-color: #f6c860;
    box-shadow: 0 0 20px rgba(246, 200, 96, 0.3), inset 0 0 24px rgba(246, 200, 96, 0.12);
}
.starter_committing .starter_option_select {
    background: #f6c860;
    color: var(--ink);
    animation: starter_stamp 0.26s ease-out;
}
.starter_enter {
    animation: starter_screen_enter 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.starter_return {
    animation: starter_screen_return 0.26s ease-out;
}
.starter_picker_arriving .starter_option {
    animation: starter_card_enter 0.32s var(--arrival_delay, 0ms) cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.starter_cleared {
    animation: starter_clear_pop 0.26s ease-out;
}
@keyframes starter_summary_sheen {
    0%, 65% { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
}
@keyframes starter_star_float {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-3px) rotate(8deg); }
}
@keyframes starter_spark_burst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    15% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-50% + var(--spark_x)), calc(-50% + var(--spark_y))) scale(0.2) rotate(80deg); }
}
@keyframes starter_stamp {
    0% { transform: scale(0.75) rotate(-15deg); }
    65% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1); }
}
@keyframes starter_screen_enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes starter_screen_return {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
@keyframes starter_card_enter {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes starter_clear_pop {
    0% { opacity: 0.5; transform: scale(0.97); }
    100% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .starter_summary::after,
    .starter_summary_star,
    .starter_selected,
    .starter_enter,
    .starter_return,
    .starter_picker_arriving .starter_option,
    .starter_cleared,
    .starter_committing .starter_option_select {
        animation: none;
    }
    .starter_spark {
        display: none;
    }
    .starter_summary,
    .starter_summary_arrow,
    .starter_reference .pico,
    .starter_choice,
    .starter_clear,
    .starter_option_select {
        transform: none !important;
    }
}
