/* One neutral image-search view, shared by every game and host page. */
.vip-panel { color: #17384c; background: #fffdf7; font: 500 15px/1.45 system-ui, sans-serif; border: 1px solid #c8d8dd; border-radius: 18px; padding: 16px; width: 100%; min-width: 0; box-shadow: 0 3px 14px #163e5310; container-type: inline-size; }
.vip-panel, .vip-panel * { box-sizing: border-box; }
.vip-panel [hidden] { display: none !important; }
.vip-panel button, .vip-panel input, .vip-panel select { font: inherit; border: 1px solid #bbccd3; border-radius: 9px; }
.vip-panel button { color: #17384c; background: #fff; cursor: pointer; padding: 8px 12px; min-height: 44px; }
.vip-panel button:disabled { opacity: .6; cursor: wait; }
.vip-panel button:focus-visible, .vip-panel input:focus-visible, .vip-panel a:focus-visible, .vip-panel select:focus-visible { outline: 3px solid #eab34e; outline-offset: 2px; }
.vip-heading { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.vip-panel .vip-heading h2 { font: 750 21px/1.25 system-ui, sans-serif; margin: 0; color: #17384c; overflow-wrap: anywhere; }
.vip-panel .vip-cancel { font-size: 12px; padding: 4px 8px; }
.vip-panel .vip-search-help { margin: 5px 0 12px; font-size: 13px; color: #587080; }
.vip-gallery { height: auto; min-height: clamp(245px, 34vh, 340px); display: grid; overflow: visible; overscroll-behavior: auto; border: 1px solid #dce5e8; background: #f1f6f6; border-radius: 12px; padding: 10px; }
.vip-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #587080; text-align: center; padding: 20px 10px; }
.vip-empty strong { font-size: 16px; color: #36596c; }
.vip-empty > span:last-child { font-size: 13px; }
.vip-empty-icon { display: grid; place-items: center; width: 70px; height: 60px; background: #e0edef; border: 1px solid #bed6db; border-radius: 12px; font-size: 42px; color: #588897; transform: rotate(-5deg); }
.vip-panel .vip-status { min-height: 1.45em; margin: 7px 0 5px; font-size: 12px; color: #587080; }
.vip-status[data-error='true'] { color: #a33825; }
.vip-panel .vip-section h3 { margin: 0 0 7px; font: 700 13px/1.4 system-ui, sans-serif; color: #36596c; }
.vip-section + .vip-section { margin-top: 14px; }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 10px; }
.vip-card { min-width: 0; position: relative; }
.vip-categories { margin: 14px 0; border: 1px solid #c6d9df; border-radius: 12px; background: #edf6f8; padding: 10px 12px; }
.vip-categories summary { cursor: pointer; font-weight: 750; color: #17384c; min-height: 24px; }
.vip-panel .vip-category-help { font-size: 12px; margin: 8px 0; color: #456071; }
.vip-category-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.vip-panel .vip-category { padding: 7px 11px; font-size: 13px; min-height: 40px; background: #fff; }
.vip-panel .vip-category[aria-pressed='true'] { background: #087b98; border-color: #087b98; color: #fff; }
.vip-category-tools { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid #c6d9df; border-radius: 12px; background: #f1f6f6; }
.vip-category-action { display:grid; grid-template-columns:minmax(200px,1fr) 1fr; gap:5px 16px; align-items:center; border-top:1px solid #c6d9df; margin-top:12px; padding-top:12px; }
.vip-panel .vip-play-category { grid-row:span 2; min-height:56px; padding:14px 20px; border-radius:12px; background:#087b98; border-color:#087b98; color:#fff; font-size:17px; font-weight:750; line-height:1.3; }
.vip-panel .vip-play-category:disabled { background:#e2ebee; color:#587080; border-color:#bbccd3; opacity:1; }
.vip-panel .vip-category-plan { margin:0; font-size:14px; font-weight:700; }
.vip-panel .vip-category-play-help { margin:0; font-size:12px; color:#587080; }
.vip-panel .vip-tile { position:relative; }
.vip-add-hint { position:absolute; right:6px; bottom:6px; padding:3px 8px; border-radius:6px; background:#fffef3ed; color:#17384c; font-size:11px; font-weight:750; pointer-events:none; }
.vip-panel .vip-tile.vip-added { opacity:1; border-color:#087b98; cursor:default; }
.vip-added .vip-add-hint { background:#087b98; color:#fff; }
@container (max-width:500px) { .vip-category-action { grid-template-columns:minmax(0,1fr); gap:8px; } .vip-panel .vip-play-category { grid-row:auto; width:100%; font-size:16px; } }
.vip-levels { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.vip-levels-label { font-size: 12px; font-weight: 750; color: #36596c; margin-right: 2px; }
.vip-panel .vip-level { padding: 6px 10px; min-height: 38px; font-size: 12px; background: #fff; }
.vip-panel .vip-level[aria-pressed='true'] { background: #087b98; border-color: #087b98; color: #fff; }
.vip-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid #c6d9df; }
.vip-selection-count { margin-right: auto; color: #36596c; font-size: 12px; font-weight: 750; }
.vip-panel .vip-selection button { padding: 7px 10px; min-height: 40px; font-size: 12px; }
.vip-panel .vip-selection .vip-play-selected { background: #087b98; border-color: #087b98; color: #fff; font-weight: 750; }
.vip-panel .vip-selection .vip-play-selected:disabled { background: #f4f7f7; border-color: #bbccd3; color: #587080; opacity: 1; }
.vip-panel .vip-selection button:disabled { opacity: .55; }
.vip-panel .vip-selection .vip-play-selected:disabled { opacity: .7; }
.vip-level-badge { position: absolute; top: 7px; left: 7px; z-index: 2; padding: 2px 7px; border-radius: 999px; background: #17384ce6; color: #fff; font: 750 10px/1.6 system-ui, sans-serif; pointer-events: none; }
.vip-panel .vip-tile.vip-selectable::after { content: '✓'; position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #087b98; color: #fff; font: 800 15px/1 system-ui, sans-serif; opacity: 0; transform: scale(.75); transition: opacity .12s, transform .12s; pointer-events: none; }
.vip-panel .vip-tile.vip-selectable { position: relative; }
.vip-panel .vip-tile.vip-picked { border-color: #087b98; box-shadow: 0 0 0 2px #087b98; background: #e6f4f7; }
.vip-panel .vip-tile.vip-picked::after { opacity: 1; transform: scale(1); }
.vip-picture-word { display: block; text-align: center; color: #17384c; font-size: 14px; font-weight: 700; padding-top: 4px; overflow-wrap: anywhere; }
.vip-panel .vip-tile { display: block; padding: 4px; background: white; width: 100%; height: 130px; border: 2px solid #d0dfe3; }
.vip-tile img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.vip-panel .vip-tile:hover, .vip-panel .vip-selected { border-color: #087b98; box-shadow: 0 0 0 1px #087b98; }
.vip-source { display: block; color: #08758e; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-panel .vip-more { display: block; margin: 12px auto 0; color: #08758e; font-size: 13px; }
.vip-form { margin: 0; }
.vip-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 8px; }
.vip-label-row { flex-wrap: wrap; }
.vip-filters { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.vip-provider-note { font: 500 12px/1.5 system-ui, sans-serif; margin: 8px 0; color: inherit; }
.vocabulary-credits { color: var(--ink-soft, #456071); font: 500 12px/1.5 system-ui, sans-serif; margin-top: 16px; min-width: 0; }
.vocabulary-credits[hidden] { display: none; }
.vocabulary-credit-sources { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vocabulary-credits a { color: var(--primary-strong, #086086); }
.vocabulary-credits summary { cursor: pointer; margin-top: 6px; }
.vocabulary-credits ul { padding-left: 20px; }
.vocabulary-credits li { overflow-wrap: anywhere; margin: 8px 0; }
.vocabulary-credits p { margin: 4px 0; }
.player-toolbar .vocabulary-credits { flex: 1; margin: 0 auto 0 0; }
.player-toolbar .vocabulary-credits details[open] { max-height: 35vh; overflow: auto; }
.vip-search-label { font-size: 18px; font-weight: 750; }
.vip-panel .vip-label-row select { min-width: 0; max-width: 145px; min-height: 44px; padding: 6px 8px; font-size: 13px; color: #36596c; background: #fffdf7; }
.vip-input-wrap { position: relative; }
.vip-panel .vip-input-wrap input { width: 100%; min-width: 0; height: 60px; padding: 12px 12px 12px 46px; border: 2px solid #087b98; background: white; color: #17384c; font-size: 20px; font-weight: 550; appearance: none; }
.vip-search-icon { position: absolute; left: 15px; top: 7px; font-size: 30px; color: #087b98; pointer-events: none; }
.vip-panel .vip-input-help { margin: 6px 0 0; font-size: 12px; color: #587080; }
.vip-suggestions { display: flex; flex-wrap: wrap; overflow: visible; overscroll-behavior: auto; gap: 6px; margin-top: 8px; padding: 3px; }
.vip-suggestions:empty { display: none; }
.vip-panel .vip-suggestion { flex: none; padding: 5px 12px; color: #08758e; background: #e8f3f5; border-color: #aacfd8; font-size: 14px; font-weight: 700; }
.vip-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid #dce5e8; padding-top: 9px; margin-top: 12px; }
.vip-panel .vip-upload { font-size: 12px; padding: 6px 10px; background: #f4f7f7; }
.vip-footer > a { color: #08758e; font-size: 11px; margin-left: auto; }
.vip-provider-credits { display:flex; flex-wrap:wrap; gap:4px 12px; margin-left:auto; }
.vip-provider-credits a { color:var(--primary-strong,#08758e); font-size:11px; }
/* Optional batch intake uses the same compact footer style in both games. */
.vip-panel .dropzone.vocabulary-bulk-upload { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 10px; border: 1px dashed #a8c2cd; border-radius: 9px; background: #f4f7f7; margin: 0; text-align: left; color: #17384c; }
.vip-panel .vocabulary-bulk-upload .dz-title { font: 600 12px/1.4 system-ui, sans-serif; color: #17384c; margin: 0; text-shadow: none; }
.vip-panel .vocabulary-bulk-upload .dz-icon, .vip-panel .vocabulary-bulk-upload .dz-sub, .vip-panel .vocabulary-bulk-upload .dz-note, .vip-panel .vocabulary-bulk-upload .dz-hint { display: none; }
.vip-panel .vocabulary-bulk-upload .dz-progress { margin: 0; font-size: 11px; color: #17384c; }
.vip-panel .vocabulary-bulk-upload.dragging, .vip-panel .vocabulary-bulk-upload.dragover { background: #d6eef4; border-color: #087b98; }
.vocabulary-image-actions { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.vocabulary-image-actions button { font: 600 12px/1.4 system-ui, sans-serif; min-height: 44px; background: #087b98; color: white; border: 1px solid #087b98; border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.vocabulary-image-actions button:last-child { background: transparent; color: inherit; border-color: #aab9c5; }
@container (max-width: 400px) { .vip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vip-panel .vip-tile { height: 105px; } .vip-footer > a { margin-left: 0; } .vip-search-label { font-size: 17px; } }
@media (max-width: 520px) { .vip-panel { padding: 12px; border-radius: 14px; } .vip-gallery { min-height: 240px; } .vip-panel .vip-heading h2 { font-size: 19px; } .vip-panel .vip-search-help { font-size: 12px; } }
/* The host window fits the original setup. Only the main page scrolls. */
body[data-page-scroll] { overscroll-behavior: auto; }
body[data-page-scroll] .setup-main, body[data-page-scroll] .setup-scroll { min-height: 0; overflow: visible; }
