.collection-panel{padding:26px;min-width:0}.collection-header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.collection-header h2{margin:0;color:#192f52;font-size:25px;letter-spacing:-.02em}.collection-header p{margin:5px 0 0;color:#788397;line-height:1.5}.collection-actions{display:flex;gap:8px;flex-wrap:wrap}.collection-actions button,.collection-actions a,.collection-filter,.collection-modal button{font:600 12px Manrope,Arial,sans-serif;cursor:pointer}.collection-actions button,.collection-actions a{border:1px solid #e2ded5;border-radius:9px;padding:9px 12px;background:#fff;color:#214368;text-decoration:none}.collection-stats{display:flex;gap:24px;margin:23px 0 16px;flex-wrap:wrap}.collection-stat strong{display:block;color:#192f52;font-size:23px;line-height:1.1}.collection-stat span{font-size:11px;color:#7b8796}.collection-progress{height:6px;border-radius:9px;background:#eeeae4;overflow:hidden}.collection-progress i{display:block;height:100%;background:#c89b56;border-radius:inherit}.collection-controls{display:flex;justify-content:space-between;gap:12px;margin:18px 0;flex-wrap:wrap}.collection-filters{display:flex;gap:6px;flex-wrap:wrap}.collection-filter{border:1px solid #e7e3dc;background:#fff;color:#66758a;border-radius:99px;padding:7px 11px}.collection-filter[aria-pressed=true]{background:#214368;border-color:#214368;color:#fff}.collection-search{border:1px solid #e4e1db;border-radius:9px;padding:9px 11px;font:12px Manrope,Arial,sans-serif;min-width:170px}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:18px 13px}.collection-game{min-width:0;text-align:left;background:none;border:0;padding:0;color:#192f52;cursor:pointer;font:inherit}.collection-cover{aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:#e9e5de;position:relative;box-shadow:0 4px 12px #23385218}.collection-cover img{width:100%;height:100%;object-fit:cover;display:block}.collection-number{position:absolute;top:7px;left:7px;padding:3px 7px;border-radius:5px;background:#17283ed9;color:#fff;font-size:10px;font-weight:700}.collection-game h3{font-size:12px;line-height:1.35;margin:8px 0 4px}.collection-game small{color:#8490a0;font-size:10px}.collection-tags{display:flex;gap:3px;flex-wrap:wrap;margin-top:5px}.collection-tag{font-size:9px;color:#356c55;background:#eaf5ee;border-radius:4px;padding:3px 5px}.collection-message{padding:24px 0;color:#788397;font-size:13px}.collection-modal{border:0;border-radius:18px;padding:24px;width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;color:#192f52;box-shadow:0 20px 70px #15243d55}.collection-modal::backdrop{background:#14263d99}.collection-modal-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.collection-modal h3{font-size:20px;line-height:1.25;margin:0 0 5px}.collection-modal-meta{color:#8390a0;font-size:12px}.collection-modal-close{border:0;background:#f3f1ed;border-radius:50%;width:34px;height:34px;color:#324765}.collection-checks{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:20px 0}.collection-checks label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #ebe7df;border-radius:9px;font-size:12px}.collection-checks input{accent-color:#214368}.collection-field{display:grid;gap:6px;color:#52647a;font-size:12px;margin:13px 0}.collection-field select,.collection-field textarea{width:100%;box-sizing:border-box;border:1px solid #e1e1e0;border-radius:9px;padding:10px;color:#192f52;background:#fff;font:13px Manrope,Arial,sans-serif}.collection-field textarea{min-height:75px;resize:vertical}.collection-save{width:100%;border:0;border-radius:9px;padding:12px;background:#214368;color:#fff}.collection-error{min-height:16px;color:#b44640;font-size:12px}.collection-top-status{font-size:11px;color:#60738a;min-height:14px}.collection-game:focus-visible,.collection-filter:focus-visible,.collection-modal button:focus-visible{outline:3px solid #c99b50;outline-offset:3px}@media(max-width:650px){.sidebar.is-open{display:block;margin-bottom:12px}.collection-panel{padding:18px}.collection-header{display:block}.collection-actions{margin-top:14px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.collection-search{width:100%;box-sizing:border-box}.collection-checks{grid-template-columns:1fr 1fr}.collection-stats{gap:18px}}



.collection-milestones{margin-top:10px;color:#8a775e;font-size:11px;line-height:1.4}

.collection-game{display:flex;flex-direction:column;align-items:stretch;align-self:start;width:100%}.collection-cover{width:100%;flex:0 0 auto}.collection-share-link{display:flex;gap:8px;align-items:stretch;margin:16px 0 8px}.collection-share-link input{flex:1;min-width:0;border:1px solid #e2ded5;border-radius:9px;padding:10px;color:#354965;font:12px Manrope,Arial,sans-serif}.collection-share-link button,.collection-share-open,.collection-bingo-download{border:0;border-radius:9px;padding:10px 14px;background:#214368;color:#fff;text-decoration:none;font:600 12px Manrope,Arial,sans-serif;cursor:pointer}.collection-share-open{display:inline-block;margin-top:8px;background:#f2eee7;color:#214368}.collection-share-note{font:12px/1.5 Manrope,Arial,sans-serif;color:#778295}.collection-bingo-dialog{width:min(760px,calc(100vw - 32px))}.collection-bingo-preview{max-height:min(65vh,650px);overflow:auto;margin:16px 0;border:1px solid #e5e0d6;border-radius:10px;background:#fff}.collection-bingo-preview canvas{display:block;width:100%;height:auto}.collection-bingo-download{width:100%;padding:12px}.collection-bingo-download:disabled{opacity:.5;cursor:wait}.collection-bingo-status{min-height:18px;color:#6c7d8e;font-size:12px}@media(max-width:650px){.collection-share-link{flex-wrap:wrap}.collection-share-link input{width:100%;flex:auto}.collection-share-link button{width:100%}}

.collection-modal--game{width:min(760px,calc(100vw - 32px));box-sizing:border-box}.collection-game-detail{display:grid;grid-template-columns:minmax(150px,210px) minmax(0,1fr);gap:24px;margin-top:18px}.collection-detail-image{width:100%;aspect-ratio:3/4;object-fit:cover;display:block;border-radius:10px;background:#e9e5de}.collection-game-link{display:block;margin-top:10px;padding:11px 10px;border-radius:9px;background:#f3efe8;color:#214368;text-align:center;text-decoration:none;font:600 12px Manrope,Arial,sans-serif}.collection-detail-form .collection-checks{margin:0 0 16px}.collection-detail-form .collection-field:first-of-type{margin-top:0}@media(max-width:600px){.collection-game-detail{grid-template-columns:1fr;gap:16px}.collection-detail-side{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:14px}.collection-game-link{margin:0}.collection-detail-image{max-height:125px}}

.collection-modal--game{padding:0;overflow:auto}.collection-modal--game .collection-game-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:0;min-height:455px}.collection-modal--game .collection-detail-side{display:block;position:relative;min-height:455px;background:#e9e5de;overflow:hidden}.collection-modal--game .collection-detail-image{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:0}.collection-modal--game .collection-game-link{position:absolute;left:14px;right:14px;bottom:14px;margin:0;padding:11px 8px;background:rgba(255,255,255,.95);box-shadow:0 4px 18px rgba(15,31,50,.18)}.collection-modal--game .collection-detail-content{min-width:0;padding:24px}.collection-modal--game .collection-detail-form{margin-top:20px}@media(max-width:600px){.collection-modal--game .collection-game-detail{grid-template-columns:1fr;min-height:0}.collection-modal--game .collection-detail-side{display:block;min-height:0;height:260px}.collection-modal--game .collection-detail-content{padding:18px}.collection-modal--game .collection-game-link{left:14px;right:14px;bottom:12px}.collection-modal--game .collection-detail-form{margin-top:14px}}

.collection-modal--game .collection-detail-side{isolation:isolate;background:#192b3f;border-radius:18px 0 0 18px}.collection-modal--game .collection-detail-image{inset:-1px;width:calc(100% + 2px);height:calc(100% + 2px);object-fit:fill;z-index:1;background:transparent}.collection-modal--game .collection-game-link{z-index:2}@media(max-width:600px){.collection-modal--game .collection-detail-side{height:auto;aspect-ratio:3/4;border-radius:18px 18px 0 0}}



/* Прогресс и состояние игр на полке. */

.collection-progress{height:12px;border-radius:999px;background:#eeeae4}.collection-progress i{background:linear-gradient(90deg,#b7792b 0%,#e8b65f 100%);border-radius:inherit;transition:width .3s ease}.collection-game.is-missing .collection-cover img{filter:grayscale(1)}

@media(prefers-reduced-motion:reduce){.collection-progress i{transition:none}}



.fan-shelf-entry{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:16px 18px;margin:16px 0;background:#f5f3ee;border:1px solid #ddd7cd;border-radius:12px}.fan-shelf-entry strong{font-size:17px}.fan-shelf-entry span,.fan-shelf-dialog-head span{font-size:10px;letter-spacing:.1em;padding:4px 7px;border-radius:4px;color:#9a4b30;background:#ffe4d5}.fan-shelf-entry p{margin:6px 0 0;color:#666;font-size:13px}.fan-shelf-entry button{border:0;border-radius:8px;padding:11px 18px;background:#ff4a4a;color:white;font-weight:700;cursor:pointer;white-space:nowrap}.fan-shelf-dialog{border:0;border-radius:14px;width:min(1200px,96vw);height:min(850px,92vh);max-width:none;max-height:none;padding:0;overflow:hidden}.fan-shelf-dialog::backdrop{background:#1119}.fan-shelf-dialog-head{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;background:#fff}.fan-shelf-dialog-head button{border:0;background:#f2f2f2;border-radius:50%;width:36px;height:36px;font-size:24px;cursor:pointer}.fan-shelf-dialog iframe{width:100%;height:calc(100% - 56px);border:0}@media(max-width:600px){.fan-shelf-entry{align-items:flex-start;flex-direction:column}.fan-shelf-dialog{width:100vw;height:100dvh;border-radius:0}}



.fan-shelf-dialog{display:none;flex-direction:column}.fan-shelf-dialog[open]{display:flex}.fan-shelf-dialog iframe{flex:1;min-height:0;width:100%;height:auto}.fan-shelf-dialog-head{flex:none}.fan-shelf-feedback{flex:none;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 20px;background:#fff;border-top:1px solid #ebe8e3;color:#1d3557}.fan-shelf-feedback p{max-width:700px;margin:5px 0 0;font-size:12px;line-height:1.45;color:#697587}.fan-shelf-actions{display:flex;gap:8px;flex-wrap:wrap}.fan-shelf-actions button{border:1px solid #214368;border-radius:8px;background:#fff;color:#214368;padding:10px 13px;font-weight:700;cursor:pointer}.fan-shelf-actions button:last-child{background:#214368;color:#fff}@media(max-width:700px){.fan-shelf-feedback{align-items:flex-start;flex-direction:column;gap:9px;padding:10px 14px}.fan-shelf-feedback p{font-size:11px}}



.fan-shelf-entry[hidden]{display:none!important}



.fan-shelf-feedback-toggle{display:none}@media(max-width:700px){.fan-shelf-dialog-head{height:44px;padding:0 12px}.fan-shelf-feedback{gap:0;padding:6px 12px}.fan-shelf-feedback-toggle{display:block;border:0;background:transparent;color:#214368;font-weight:700;padding:5px 0;cursor:pointer}.fan-shelf-dialog:not(.feedback-expanded) .fan-shelf-feedback-text,.fan-shelf-dialog:not(.feedback-expanded) .fan-shelf-actions{display:none}.fan-shelf-dialog.feedback-expanded .fan-shelf-feedback-text{margin-bottom:8px}}



/* Шапка раздела коллекции */

.collection-header>div{width:100%;min-width:0}.collection-hero{box-sizing:border-box;min-height:190px;padding:30px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;border-radius:14px;overflow:hidden;background-color:#d6c4b6;background-image:linear-gradient(90deg,rgba(242,232,222,.92) 0%,rgba(242,232,222,.78) 35%,rgba(242,232,222,0) 70%),url("assets/collection-header-updated-20261124.webp");background-position:center;background-size:cover;background-repeat:no-repeat}.collection-header .collection-hero h2{color:#192f52}.collection-header .collection-hero p{max-width:48%;color:#354b63;font-size:13px}.collection-header .fan-shelf-entry{margin-top:16px}@media(max-width:650px){.collection-hero{min-height:150px;padding:20px;background-position:62% center}.collection-header .collection-hero p{max-width:62%}}



/* Баннер коллекции оформлен как на главной кабинета. */

.view-panel.collection-panel{padding:0;border:0;background:transparent;box-shadow:none;min-height:0}.collection-hero{height:264px;min-height:0;box-sizing:border-box;margin:0 0 16px;padding:27px 47px;display:flex;align-items:flex-start;justify-content:flex-start;border-radius:17px;color:#fff;background-image:linear-gradient(90deg,rgba(7,23,31,.82) 0%,rgba(7,23,31,.48) 42%,rgba(6,18,25,.12) 100%),url("assets/collection-header-updated-20261124.webp");background-position:center;background-size:cover}.collection-hero h2{font-size:33px;line-height:1.08;font-weight:800;letter-spacing:-.02em;color:#fff;margin:5px 0 14px}.collection-hero .hero-line{flex:none}.collection-hero p{color:#fff;font-size:14px;line-height:1.55;margin:0;max-width:55%}.collection-content{padding:24px 26px;min-width:0}.collection-content .fan-shelf-entry{margin:0 0 16px}@media(max-width:650px){.collection-hero{height:230px;padding:25px 24px;background-position:62% center}.collection-hero h2{font-size:28px}.collection-hero p{max-width:70%}.collection-content{padding:18px}}


/* Показатели коллекции в баннере. */
.collection-hero-stats{width:min(100%,480px);margin-top:auto}.collection-hero .collection-stats{margin:0 0 10px;gap:24px}.collection-hero .collection-stat strong{color:#fff;font-size:22px}.collection-hero .collection-stat span{color:#f2f4f6;font-size:11px}.collection-hero .collection-progress{height:6px;background:rgba(255,255,255,.36)}.collection-hero .collection-progress i{background:linear-gradient(90deg,#bb792f,#efbb5e)}@media(max-width:650px){.collection-hero{height:auto;min-height:235px}.collection-hero-stats{width:min(100%,380px);margin-top:20px}.collection-hero .collection-stats{gap:20px}.collection-hero .collection-stat strong{font-size:20px}}
