.game-wizard { padding: clamp(16px, 3vw, 32px); scroll-margin-top: 104px; }
.game-wizard [hidden] { display: none !important; }
#admin-mcp [hidden] { display: none !important; }
#admin-mcp [data-mcp-key-box], #mcp-install-guide { margin-top: 14px; }
.game-wizard-header { display: flex; flex-wrap: wrap; gap: 12px; align-items: start; justify-content: space-between; }
.game-wizard-header h2 { font-size: clamp(25px, 4vw, 36px); margin: 3px 0; }
.game-wizard-header p { color: #5e4b70; margin: 3px 0; }
.game-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 24px 0; }
.game-progress button { width: 100%; min-height: 68px; display: flex; align-items: center; gap: 9px; padding: 10px; text-align: left; border: 1px solid #ddd2ec; border-radius: 12px; background: #f7f2fc; color: #49365d; font: inherit; font-size: 13px; cursor: pointer; }
.game-progress button span { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border-radius: 50%; background: #e8dcf7; font-weight: 800; }
.game-progress button[aria-current="step"] { background: #5429a0; color: white; border-color: #5429a0; }
.game-progress button[aria-current="step"] span { color: #5429a0; background: white; }
.game-progress button:disabled { cursor: default; opacity: .76; }
.game-wizard h3 { margin: 8px 0 16px; font-size: clamp(19px, 3vw, 24px); color: #35185b; }
.game-wizard fieldset { border: 0; min-width: 0; padding: 0; margin: 16px 0; }
.game-wizard legend { font-weight: 800; margin-bottom: 8px; }
.game-category-choices, .game-mode-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.game-category-choices { margin-bottom: 8px; }
.game-genre-toolbar { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 13px; }
.game-genre-toolbar input[type="search"] { flex: 1 1 120px; width: auto; min-width: 0; max-width: 240px; padding: 5px 9px; min-height: 32px; font-size: 13px; }
.game-genre-toolbar strong { flex-shrink: 0; color: #542c78; }
.game-genre-list { max-height: 112px; overflow: auto; padding: 5px; border: 1px solid #e3d8ed; border-radius: 10px; }
.game-genre-list .game-category-choices { margin: 0; gap: 5px; }
.game-genre-list .game-choice { min-height: 32px; border-width: 1px; border-radius: 8px; padding: 4px 8px; gap: 6px; font-size: 12px; }
.game-genre-list .game-choice input[type="checkbox"] { width: 14px; height: 14px; flex-basis: 14px; }
.game-choice { display: flex; align-items: center; gap: 10px; min-height: 45px; border: 2px solid #ded2ef; border-radius: 12px; padding: 7px 12px; background: #faf6ff; color: #3c2461; cursor: pointer; }
.game-choice input:is([type="radio"], [type="checkbox"]) { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #5728a1; }
.game-choice span { display: grid; gap: 4px; }
.game-choice:has(input:checked) { border-color: #5429a0; box-shadow: 0 0 0 1px #5429a0; background: #eee2ff; }
.game-mode-choices .game-choice { flex: 1 1 150px; align-items: start; min-height: 100px; padding: 15px; }
.game-mode-choices .game-choice input { margin-top: 4px; }
.game-mode-choices b { font-size: 20px; }
.game-choice-free { background: #eaf9ef; color: #174b31; border-color: #92c9a7; }
.game-choice-vip { background: #fff4d8; color: #624100; border-color: #d7ab49; }
.game-choice-both { background: #f1e7ff; border-color: #b28dde; }
.game-choice-free:has(input:checked) { background: #d9f4e3; border-color: #217548; box-shadow: 0 0 0 1px #217548; }
.game-choice-vip:has(input:checked) { background: #ffe9a9; border-color: #9e6900; box-shadow: 0 0 0 1px #9e6900; }
.game-cover, .game-review { display: grid; grid-template-columns: minmax(110px, 32%) minmax(0, 1fr); align-items: center; gap: 16px; padding: 14px; border-radius: 15px; background: #f8f2ff; margin: 18px 0; }
.game-cover-preview { display: grid; place-items: center; aspect-ratio: 16 / 10; border: 1px dashed #ac8bcb; border-radius: 10px; overflow: hidden; background: #ede1fc; color: #573978; font-size: 13px; }
.game-cover-preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-cover-fields { position: relative; }
.game-drop-zone { display: grid; justify-items: start; gap: 8px; padding: 12px; margin-bottom: 10px; border: 2px dashed #a784cf; border-radius: 12px; background: white; color: #4b286e; }
.game-drop-zone.is-dragging { border-color: #5429a0; background: #eee0ff; box-shadow: 0 0 0 2px #5429a0; }
.game-drop-zone #cover-status { margin: 0; }
.game-category-entry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.game-category-entry input { flex: 1 1 160px; min-width: 0; }
.game-category-add label, .game-import > label { display: block; margin-top: 10px; }
.game-category-add [data-category-status] { display: block; color: #573978; margin-top: 6px; }
.game-import textarea { width: 100%; min-height: 105px; margin-top: 6px; resize: vertical; }
.game-ai-template { padding: 10px 12px; margin-top: 10px; border-radius: 10px; background: #f1e8fc; }
.game-ai-template p { margin: 0 0 8px; }
.game-ai-template small { display: block; margin-top: 6px; color: #573978; }
.game-ai-template details { margin-bottom: 0; }
.game-import-item, .game-import-link { display: flex; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid #e3d8ed; }
.game-import-item input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.game-import-item span, .game-import-link label { overflow-wrap: anywhere; min-width: 0; }
.game-import-item span span, .game-import-item small { display: block; white-space: pre-wrap; }
.game-import-link { flex-wrap: wrap; justify-content: space-between; }
.game-import-link label { flex: 1 1 180px; }
.game-import-link select { width: auto; max-width: 100%; }
.game-import [data-game-apply] { margin-top: 8px; }
.game-file { position: absolute; width: 1px !important; height: 1px; padding: 0 !important; opacity: 0; }
.game-cover-fields:has(.game-file:focus-visible) .game-upload { outline: 3px solid #5429a0; outline-offset: 3px; }
.game-cover-fields:has(.game-file:disabled) .game-upload { opacity: .55; cursor: default; }
.game-cover-fields small { display: block; margin: 8px 0; color: #59436d; }
.game-extra { background: #faf7fd; border: 1px solid #e3d8ed; padding: 10px 13px; border-radius: 12px; margin: 10px 0; }
.game-extra summary { cursor: pointer; color: #542c78; font-weight: 800; }
.game-extra .form-grid { margin-top: 12px; }
.game-wizard .game-link-group { padding: 12px; border: 1px solid #9bc8ab; border-radius: 13px; background: #f1faf4; }
.game-wizard .game-link-vip { border-color: #d7b86e; background: #fff9eb; }
.game-link-group legend { padding: 0 7px; }
.game-wizard .game-link { background: white; margin: 0 0 10px; }
.game-link-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; }
.game-review h4 { font-size: 22px; margin: 0; overflow-wrap: anywhere; }
.game-review { grid-template-columns: minmax(90px, 190px) minmax(0, 1fr); }
.game-review p { margin: 4px 0; }
.game-wizard-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; }
.game-wizard-actions .btn { min-height: 47px; }
.game-wizard .game-next { margin-inline-start: auto; background: #5429a0; }
.game-wizard .game-publish { margin-inline-start: auto; background: #14653e; color: white; min-height: 52px; font-size: 17px; }
.game-wizard .game-publish:hover { background: #0c512f; }
.game-wizard .game-delete button { margin-top: 9px; }
@media (max-width: 620px) {
    .game-wizard, .game-progress { scroll-margin-top: 205px; }
    .game-progress { gap: 5px; }
    .game-progress button { flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 3px; text-align: center; line-height: 1.3; font-size: 11px; }
    .game-progress button span { flex: 0 0 auto; width: 24px; height: 24px; }
    .game-cover { grid-template-columns: minmax(0, 1fr); }
    .game-cover-preview { max-height: 200px; }
    .game-mode-choices .game-choice { flex-basis: 100%; min-height: 72px; }
    .game-wizard-actions .game-publish { flex: 1 1 auto; }
}
