* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        Inter,
        "Noto Sans TC",
        "Microsoft JhengHei",
        sans-serif;
    background:
        radial-gradient(circle at top, #25345e 0%, #11182d 42%, #090d18 100%);
    color: #ffffff;
}

.container {
    width: min(1500px, calc(100% - 48px));
    margin: 0 auto;
    padding: 40px 0 80px;
}

.header {
    text-align: center;
    margin-bottom: 32px;
}

.header-label {
    color: #9da9c8;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

h1 {
    margin: 10px 0;
    font-size: clamp(32px, 4vw, 58px);
}

.subtitle {
    color: #aeb8d3;
    font-size: 18px;
}

.viewer-entry {
    display: inline-flex;
    margin-top: 16px;
    padding: 9px 14px;
    border: 1px solid rgba(118,186,255,.3);
    border-radius: 999px;
    background: rgba(118,186,255,.08);
    color: #9dccff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.viewer-entry:hover {
    background: rgba(118,186,255,.16);
}

.viewer-page .container {
    width: min(1500px, calc(100% - 32px));
    padding-top: 22px;
}

.viewer-toolbar {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.viewer-connection {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(10,16,31,.88);
    color: #ffc96c;
    font-size: 12px;
}

.viewer-connection.connected {
    color: #80e6ac;
}

.viewer-volume-control {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(118,186,255,.3);
    border-radius: 999px;
    background: rgba(10,16,31,.88);
    color: #9dccff;
    font-size: 12px;
    white-space: nowrap;
}

.viewer-volume-control input {
    width: 110px;
    height: 4px;
    padding: 0;
    border: 0;
    accent-color: #76baff;
    cursor: pointer;
}

.viewer-volume-control output {
    width: 34px;
    color: #dbe6ff;
    text-align: right;
}

.viewer-stage-shell .stage button,
.viewer-stage-shell .stage input,
.viewer-stage-shell .stage textarea,
.viewer-stage-shell .stage select {
    pointer-events: none;
}

.viewer-page #candidateSectionTitle,
.viewer-page #candidateArea,
.viewer-page .deployment-copy-panel,
.viewer-page .draw-controls,
.viewer-page .winner-stats,
.viewer-page .team-member-stats {
    display: none !important;
}

.layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.layout > aside {
    order: 2;
}

.card {
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    background: rgba(19, 27, 49, .86);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    overflow: hidden;
}

.card-header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.card-title {
    font-size: 19px;
    font-weight: 700;
}

.card-body {
    padding: 24px;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.rule-box {
    padding: 16px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    text-align: center;
}

.seat-number-input {
    width: 84px;
    margin: 0 auto;
    padding: 5px 8px;
    border-color: transparent;
    background: rgba(255,255,255,.055);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
}

.competitive .seat-number-input {
    color: #76baff;
}

.rotation .seat-number-input {
    color: #80e6ac;
}

.seat-number-input:focus {
    border-color: currentColor;
    box-shadow: 0 0 0 3px rgba(118,186,255,.1);
}

.seat-setting-hint {
    margin: -10px 0 18px;
    color: #8795b5;
    font-size: 13px;
    text-align: center;
}

.rule-number {
    font-size: 28px;
    font-weight: 800;
}

.rule-label {
    margin-top: 4px;
    color: #9ca8c5;
    font-size: 13px;
}

.core .rule-number {
    color: #ffc96c;
}

.competitive .rule-number {
    color: #76baff;
}

.rotation .rule-number {
    color: #80e6ac;
}

.setting-row {
    margin-bottom: 16px;
}

.scale-setting {
    padding: 16px;
    border: 1px solid rgba(125,108,255,.25);
    border-radius: 14px;
    background: rgba(125,108,255,.06);
}

.scale-preview {
    margin-top: 9px;
    color: #9da9c8;
    font-size: 13px;
}

label {
    display: block;
    color: #aeb8d3;
    font-size: 14px;
    margin-bottom: 7px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    outline: none;
    background: #0e1528;
    color: white;
    font-size: 15px;
}

textarea {
    min-height: 260px;
    resize: vertical;
    line-height: 1.8;
}

.hint {
    margin-top: 8px;
    color: #71809f;
    font-size: 12px;
    line-height: 1.6;
}

.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.member-library {
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid rgba(118,186,255,.2);
    border-radius: 14px;
    background: rgba(118,186,255,.05);
}

.member-library summary {
    cursor: pointer;
    color: #dbe6ff;
    font-weight: 700;
}

.member-editor-wrap {
    margin-top: 14px;
    overflow-x: auto;
}

.member-editor {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

.member-editor th,
.member-editor td {
    padding: 7px 5px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    text-align: left;
}

.member-editor th:nth-child(1),
.member-editor td:nth-child(1) {
    width: 112px;
    min-width: 112px;
    text-align: center;
}

.member-editor th:nth-child(2),
.member-editor td:nth-child(2) {
    width: 86px;
    min-width: 86px;
    text-align: center;
}

.member-editor th:nth-child(3),
.member-editor td:nth-child(3) {
    width: 76px;
    min-width: 76px;
    text-align: center;
}

.member-editor th {
    color: #8795b5;
    font-size: 12px;
    font-weight: 500;
}

.selection-count {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(118,186,255,.12);
    color: #9dccff;
    font-size: 11px;
    white-space: nowrap;
}

.member-selection-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 900px;
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.035);
    color: #9da9c8;
    font-size: 12px;
}

.toolbar-divider {
    width: 1px;
    height: 20px;
    margin: 0 6px;
    background: rgba(255,255,255,.12);
}

.selection-count.limit-reached {
    background: rgba(255,201,108,.14);
    color: #ffc96c;
}

.select-all-label {
    display: inline-flex;
    align-items: center;
    margin: 0;
    color: inherit;
    font-size: inherit;
    cursor: pointer;
    white-space: nowrap;
}

.select-all-label input {
    width: 16px;
    min-width: 16px;
    height: 16px;
    padding: 0;
    accent-color: #6f83ff;
    margin: 0;
}

.member-editor input:not([type="checkbox"]) {
    min-width: 76px;
    padding: 9px 10px;
}

.member-editor .member-name {
    min-width: 130px;
}

.member-editor .private-panel-input:not(.revealed) {
    color: #71809f;
    letter-spacing: 3px;
    cursor: pointer;
}

.member-editor .member-profession {
    min-width: 140px;
    padding: 9px 10px;
}

.member-editor .member-role {
    min-width: 110px;
    padding: 9px 10px;
}

.member-editor .member-registered,
.member-editor .member-core,
.member-editor .member-pvp {
    width: 18px;
    min-width: 18px;
    height: 18px;
    accent-color: #6f83ff;
}

.pvp-badge {
    display: inline-block;
    min-width: 32px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    color: #71809f;
    font-size: 11px;
    text-align: center;
}

.pvp-badge.active {
    background: rgba(255,201,108,.14);
    color: #ffc96c;
}

.member-editor .member-registered:disabled {
    cursor: not-allowed;
    opacity: .7;
    filter: saturate(.7);
}

.history-value {
    display: inline-block;
    min-width: 58px;
    padding: 9px 10px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: #cbd4ea;
    text-align: center;
}

.remove-member-button {
    padding: 9px 12px;
    background: rgba(255,100,120,.12);
    color: #ff9eaa;
}

.reset-history-button {
    padding: 14px 16px;
    border: 1px solid rgba(255,100,120,.25);
    background: rgba(255,100,120,.08);
    color: #ff9eaa;
}

.reset-history-button:hover {
    background: rgba(255,100,120,.14);
}

.add-member-button {
    width: 100%;
    margin-top: 14px;
    padding: 11px;
    border: 1px dashed rgba(118,186,255,.35);
    background: rgba(118,186,255,.07);
    color: #9dccff;
}

.generated-candidates {
    display: none;
}

.library-status {
    min-height: 20px;
    margin-top: 9px;
    color: #80e6ac;
    font-size: 12px;
}

button {
    padding: 14px 16px;
    border: 0;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

button:hover {
    transform: translateY(-1px);
}

button:disabled,
button:disabled:hover {
    transform: none;
    cursor: not-allowed;
    opacity: .55;
}

.draw-controls button:disabled,
.draw-controls button:disabled:hover {
    border: 1px solid rgba(255,255,255,.07);
    background: #252d40;
    color: #78839d;
    box-shadow: none;
}

.primary-button {
    background: linear-gradient(135deg, #5f8fff, #7d6cff);
    color: white;
}

.secondary-button {
    background: rgba(255,255,255,.07);
    color: #cbd4ea;
}

.stage {
    order: 1;
    min-height: 680px;
    position: relative;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #70e7a1;
    box-shadow: 0 0 14px #70e7a1;
}

.count {
    color: #8f9bb8;
}

.status-summary {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    text-align: right;
    flex-direction: column;
}

.draw-area {
    padding: 30px;
}

.draw-display {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    height: 180px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(95,143,255,.08), rgba(125,108,255,.05));
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.draw-display::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.04),
            transparent
        );
}

.draw-display::after {
    content: "";
    position: absolute;
    width: 330px;
    height: 110px;
    border-radius: 50%;
    background: rgba(95,143,255,.13);
    filter: blur(45px);
    opacity: .5;
    transition: opacity .3s, transform .3s, background .3s;
}

.draw-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    background-image:
        linear-gradient(rgba(118,186,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(118,186,255,.14) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(90deg, transparent, black 25%, black 75%, transparent);
}

.draw-scan {
    position: absolute;
    inset: 0 auto 0 -30%;
    width: 24%;
    z-index: 0;
    opacity: 0;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent);
}

.draw-phase,
.draw-caption {
    position: relative;
    z-index: 2;
    color: #71809f;
    font-size: 11px;
    letter-spacing: 2px;
}

.draw-phase {
    color: #9dccff;
    font-weight: 700;
}

.draw-display.drawing {
    border-color: rgba(118,186,255,.4);
    box-shadow: inset 0 0 40px rgba(95,143,255,.08), 0 0 28px rgba(95,143,255,.12);
}

.draw-display.drawing .draw-scan {
    opacity: 1;
    animation: draw-scan 1.05s linear infinite;
}

.draw-display.drawing::after {
    opacity: .9;
    transform: scale(1.18);
    animation: draw-glow 1s ease-in-out infinite alternate;
}

.draw-display.reveal {
    border-color: rgba(255,201,108,.65);
    box-shadow: inset 0 0 55px rgba(255,201,108,.1), 0 0 36px rgba(255,201,108,.18);
}

.draw-display.reveal::after {
    opacity: 1;
    transform: scale(1.3);
    background: rgba(255,201,108,.2);
}

#drawName {
    position: relative;
    z-index: 1;
    font-size: clamp(38px, 6vw, 74px);
    font-weight: 900;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 0 28px rgba(118,186,255,.3);
    transition: color .2s;
}

#drawName.rolling {
    animation: name-roll .16s ease-out;
}

#drawName.revealed {
    color: #fff4d6;
    animation: winner-reveal .7s cubic-bezier(.2,.8,.2,1);
    text-shadow: 0 0 12px rgba(255,201,108,.8), 0 0 44px rgba(255,201,108,.45);
}

.waiting {
    color: #56627f;
}

@keyframes draw-scan {
    from { transform: translateX(0) skewX(-18deg); }
    to { transform: translateX(650%) skewX(-18deg); }
}

@keyframes draw-glow {
    from { transform: scale(1); opacity: .5; }
    to { transform: scale(1.25); opacity: .95; }
}

@keyframes name-roll {
    from { opacity: .15; transform: translateY(-14px) scale(.96); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes winner-reveal {
    0% { opacity: 0; transform: scale(.72); filter: blur(8px); }
    55% { opacity: 1; transform: scale(1.13); filter: blur(0); }
    100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .draw-display *,
    #drawName {
        animation: none !important;
    }
}

.section-title {
    margin: 26px 0 14px;
    font-size: 16px;
    color: #abb6d1;
}

.winner-grid {
    display: grid;
    grid-template-columns: var(--winner-columns, 3fr 1fr 1fr);
    gap: 14px;
}

.winner-group {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(10,16,31,.42);
}

.winner-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
}

.winner-group-count {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #8795b5;
    font-size: 11px;
}

.winner-group-slots {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.winner-group.core .winner-group-slots {
    grid-template-columns: repeat(var(--core-slot-columns, 3), minmax(0, 1fr));
}

.winner-group.core .winner-group-header {
    color: #ffc96c;
}

.winner-group.competitive .winner-group-header {
    color: #76baff;
}

.winner-group.rotation .winner-group-header {
    color: #80e6ac;
}

.winner {
    height: 154px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.07);
    background: #10182d;
    overflow: hidden;
}

.winner-index {
    color: #66738f;
    font-size: 11px;
}

.winner-name {
    margin-top: 5px;
    min-height: 44px;
    display: -webkit-box;
    align-content: center;
    overflow: hidden;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.winner.empty .winner-name {
    color: #56627f;
    font-size: 14px;
    font-weight: 500;
}

.winner.empty .winner-type {
    margin-top: auto;
}

.winner-type {
    margin-top: 4px;
    font-size: 11px;
}

.winner-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 7px;
    color: #9da9c8;
    font-size: 11px;
}

.winner-stats,
.team-member-stats {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.private-panel-value {
    flex: 1;
    padding: 4px 6px;
    border-radius: 7px;
    border: 0;
    background: rgba(255,255,255,.055);
    color: #7886a5;
    font-size: 10px;
    white-space: nowrap;
    cursor: pointer;
}

.private-panel-value:hover {
    background: rgba(118,186,255,.12);
    color: #9dccff;
}

.private-panel-value.revealed {
    cursor: default;
}

.private-panel-value strong {
    color: #dce5f8;
    font-size: 11px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #aeb8d3;
    font-size: 10px;
    white-space: nowrap;
}

.role-assassin .role-badge,
.role-badge.role-assassin {
    background: rgba(188,130,255,.14);
    color: #cba3ff;
}

.role-damage .role-badge,
.role-badge.role-damage {
    background: rgba(255,108,125,.14);
    color: #ff9eaa;
}

.role-support .role-badge,
.role-badge.role-support {
    background: rgba(128,230,172,.14);
    color: #80e6ac;
}

.role-tank .role-badge,
.role-badge.role-tank {
    background: rgba(118,186,255,.14);
    color: #76baff;
}

.winner.core {
    border-color: rgba(255,201,108,.45);
}

.winner.core .winner-type {
    color: #ffc96c;
}

.winner.competitive {
    border-color: rgba(118,186,255,.45);
}

.winner.competitive .winner-type {
    color: #76baff;
}

.winner.rotation {
    border-color: rgba(128,230,172,.45);
}

.winner.rotation .winner-type {
    color: #80e6ac;
}

.additional-teams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 12px;
    color: #66738f;
}

.team-panel {
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 15px;
    background: rgba(10,16,31,.42);
}

.team-panel.reserve {
    border-style: dashed;
}

.team-panel.invalid {
    border-color: rgba(255,100,120,.5);
}

.team-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #d6def1;
    font-size: 14px;
    font-weight: 700;
}

.team-panel-count {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #9da9c8;
    font-size: 11px;
}

.team-panel.invalid .team-panel-count {
    background: rgba(255,100,120,.12);
    color: #ff9eaa;
}

.team-drop-zone {
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 7px;
    align-content: start;
    border-radius: 10px;
}

.team-drop-zone.drag-over {
    outline: 2px dashed rgba(118,186,255,.55);
    outline-offset: 4px;
}

.team-member-card {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: #10182d;
    color: #edf2ff;
    cursor: grab;
    font-size: 13px;
}

.team-member-card:active {
    cursor: grabbing;
}

.team-member-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.team-member-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-member-profession {
    margin-top: 4px;
    color: #7886a5;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-empty-message {
    grid-column: 1 / -1;
    padding: 20px 8px;
    color: #66738f;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 600px) {
    .additional-teams {
        grid-template-columns: 1fr;
    }

    .team-drop-zone {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.candidate-table {
    width: 100%;
    border-collapse: collapse;
}

.candidate-table th,
.candidate-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.candidate-table th {
    color: #7886a5;
    font-size: 12px;
    font-weight: 500;
}

.candidate-table td {
    font-size: 14px;
}

.weight-bar {
    width: 100%;
    height: 6px;
    margin-top: 5px;
    background: #202a43;
    border-radius: 10px;
    overflow: hidden;
}

.weight-progress {
    height: 100%;
    background: linear-gradient(90deg, #5d8aff, #8f73ff);
    border-radius: 10px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #aeb8d3;
    font-size: 11px;
}

.draw-controls {
    display: flex;
    gap: 10px;
    margin: -10px 0 26px;
}

.draw-controls button {
    flex: 1;
}

.deployment-copy-panel {
    margin: 20px 0 26px;
    padding: 16px;
    border: 1px solid rgba(118,186,255,.2);
    border-radius: 14px;
    background: rgba(118,186,255,.05);
}

.deployment-copy-areas {
    display: grid;
    gap: 14px;
}

.deployment-copy-item + .deployment-copy-item {
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.deployment-copy-title {
    margin-bottom: 7px;
    color: #9dccff;
    font-size: 13px;
    font-weight: 700;
}

.deployment-copy-placeholder {
    padding: 12px 14px;
    border-radius: 10px;
    background: #0e1528;
    color: #71809f;
    font-size: 14px;
}

.deployment-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.deployment-copy-row textarea {
    min-height: 70px;
    resize: vertical;
}

.deployment-copy-row button {
    min-width: 110px;
}

.copy-deployment-status {
    min-height: 18px;
    margin-top: 7px;
    color: #8befb5;
    font-size: 12px;
}

.result-message {
    display: none;
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(112,231,161,.08);
    border: 1px solid rgba(112,231,161,.25);
    color: #8befb5;
    text-align: center;
}

@media (max-width: 1050px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1500px);
    }

    .winner-grid {
        grid-template-columns: 1fr;
    }

    .deployment-copy-row {
        grid-template-columns: 1fr;
    }

    .winner-group-slots {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    }

    .winner-group.core .winner-group-slots {
        grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
    }

    .rule-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
