/* Shared interaction polish for the atlas, catalogue and administration. */
:root{--focus:#344dd9}
html{scroll-padding-top:var(--header)}
.atlas-dossier .dossier-chapter{scroll-margin-top:24px}
a,button,input,select,summary{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.header-search{transition:background .2s,box-shadow .2s;border:1px solid transparent}
.header-search:focus-within{background:var(--surface);border-color:#a7b2ec;box-shadow:0 0 0 3px #344dd911}
.header-search input{min-width:0}
.header-search input::-webkit-search-cancel-button{appearance:none}
.header-search:has(.search-clear:not([hidden])) kbd{display:none}
.search-clear{display:grid;place-items:center;flex:none;width:26px;height:26px;color:var(--muted);border-radius:4px}
.search-clear:hover{background:#344dd90e;color:var(--ink)}
.search-clear .lucide-icon{width:15px;height:15px}
.route-progress{position:fixed;z-index:230;top:var(--header);left:0;right:0;pointer-events:none;height:3px;overflow:visible;background:#344dd910}
.route-progress:before{content:'';position:absolute;inset:0;width:35%;background:var(--accent);animation:request-progress 1.5s ease-in-out infinite}
.route-progress span{position:absolute;right:24px;top:10px;padding:7px 11px;background:var(--ink);color:var(--surface);font-size:11px;border-radius:5px;box-shadow:0 5px 18px #171b2320}
@keyframes request-progress{from{transform:translateX(-110%)}to{transform:translateX(390%)}}
#main.is-pending>.page-in{opacity:.55;pointer-events:none;transition:opacity .15s}
#main.is-pending[data-update=true]>.page-in{opacity:1;pointer-events:auto}
.page-in.is-update{animation:none}
.loading-preview{padding:20px 0 70px;max-width:100%;min-height:60vh}
.loading-title,.loading-line,.loading-cards span,.loading-cards i{display:block;background:linear-gradient(100deg,#e3e4de 30%,#efeee7 48%,#e3e4de 66%);background-size:220% 100%;animation:atlas-skeleton 1.8s ease-in-out infinite;border-radius:5px}
.loading-title{height:44px;width:min(320px,65%);margin-bottom:18px}
.loading-line{height:14px;width:min(500px,80%);margin-bottom:40px}
.loading-cards{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:24px}
.loading-cards span{aspect-ratio:3/4}
.loading-cards i{height:13px;margin-top:18px;width:75%}
@keyframes atlas-skeleton{to{background-position:-220% 0}}
.catalog-tools{padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:27px}
.facet-feedback{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px;font-size:10px;line-height:1.7;color:var(--muted)}
.facet-feedback button{color:var(--accent);text-decoration:underline;text-underline-offset:3px;min-height:30px;flex:none}
.active-filters{margin-top:-9px;margin-bottom:26px}
.game-card>a:focus-visible{border-radius:7px;outline-offset:7px}
.card-content h3{transition:color .18s}
.game-card>a:hover h3,.game-card>a:focus-visible h3{color:var(--accent)}
.poster img.is-unavailable{display:none}
.poster .no-cover{position:absolute;inset:0}
.card-bottom{font-variant-numeric:tabular-nums}
.catalog-empty{max-width:520px;margin:50px auto 70px;padding:35px 25px;text-align:center;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.state-symbol{display:grid;place-items:center;width:49px;height:49px;border:1px solid #ccd3ef;border-radius:50%;background:#e9ecfa;color:var(--accent);margin:0 auto 20px}
.state-symbol .lucide-icon{width:21px;height:21px}
.catalog-empty h2{font-size:22px;letter-spacing:-.025em;margin-bottom:12px}
.catalog-empty p,.network-error p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 22px}
.state-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.button{transition:background .18s,color .18s,border-color .18s;min-height:41px}
.button.secondary:hover{border-color:#7e8bce;background:#e9ecfa;color:var(--accent)}
.pagination{align-items:center}
.page-buttons{flex-wrap:wrap;justify-content:end}
.page-buttons .page-step{display:flex;align-items:center;gap:6px;padding:0 11px;border:1px solid var(--line);font-size:11px}
.page-step .lucide-icon{width:15px;height:15px}
.page-buttons button:disabled{opacity:.35;background:none;cursor:default}
.page-buttons .page-jump{display:flex;align-items:center;gap:5px;margin-left:6px;font-size:10px}
.page-jump input{width:59px;min-height:35px;padding:6px 7px;border:1px solid var(--line);background:var(--surface);border-radius:4px;color:var(--ink);font-size:11px;appearance:textfield}
.page-jump input::-webkit-inner-spin-button{appearance:none}
.page-jump button{border-color:var(--line);font-size:10px;padding:0 8px}
.entity-browser-toolbar{flex-direction:row;align-items:center;max-width:690px;flex-wrap:wrap}
.entity-browser-toolbar .search-field{display:flex;align-items:center;flex:1;gap:10px;border:1px solid var(--line);background:var(--surface);border-radius:5px;padding:0 13px;min-width:0}
.entity-browser-toolbar .search-field:focus-within{border-color:#8b98e8;box-shadow:0 0 0 3px #344dd90c}
.entity-browser-toolbar .search-field .lucide-icon{width:17px;height:17px;color:var(--muted)}
.entity-browser-toolbar input{border:0;background:none;padding:12px 0;max-width:none;outline:none;width:100%}
.entity-browser-toolbar .button{flex:none}
.profile-tile{transition:background .18s;position:relative}
.profile-tile h2{overflow-wrap:anywhere;transition:color .18s;margin-top:7px}
.profile-tile:hover h2{color:var(--accent)}
.profile-tile .profile-tile-arrow{position:absolute;right:15px;top:19px;color:#8c98c3;opacity:0;transition:opacity .18s,transform .18s;transform:translate(-3px,3px)}
.profile-tile:hover .profile-tile-arrow,.profile-tile:focus-visible .profile-tile-arrow{opacity:1;transform:none}
.profile-tile-image .lucide-icon{width:23px;height:23px;color:#939eaa}
.directory-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}
.account-content{max-width:480px;background:var(--surface);border:1px solid var(--line);border-radius:9px;padding:28px 32px;box-shadow:0 12px 30px #171b2305}
.account-content .admin-editor{margin:0;gap:18px}
.account-content label{margin:0;font-size:13px;color:var(--muted)}
.account-content input{min-height:44px;border-color:var(--line);background:var(--paper);color:var(--ink)}
.account-content .button{margin:4px 0 0;width:100%}
.account-content .sync-warning{font-size:12px;margin:0;background:#fff2ef;border-radius:4px;padding:10px 12px}
.sync-controls{gap:10px}
.sync-update-settings,.sync-status-card{border-color:var(--line);background:var(--surface)}
.sync-status-card h2{font-size:21px}
.sync-status-head{gap:12px;flex-wrap:wrap}
.sync-stats>div{background:var(--surface);border-color:var(--line)}
.sync-stats strong{font-variant-numeric:tabular-nums}
.sync-job-table td small{font-size:11px}
.admin-table th{background:#e9e9e1;color:var(--ink)}
.admin-table td,.admin-table th{border-color:var(--line)}
.table-scroll{border:1px solid var(--line);border-radius:7px}
@media(max-width:1000px){.loading-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pagination{align-items:start;flex-direction:column}}
@media(max-width:780px){.route-progress span{right:20px;font-size:10px}.loading-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.catalog-tools{padding-bottom:20px;margin-bottom:23px}.facet-choice{min-height:44px}.facet-expand{min-height:40px}.facet-choice>.facet-check{width:15px;height:15px}.page-buttons{align-self:start;justify-content:start;gap:6px}.page-buttons button,.page-jump input{min-height:39px}.pagination{gap:15px}.page-jump{width:100%;margin:6px 0 0!important}.entity-browser-toolbar{gap:9px}.entity-browser-toolbar .button{padding:10px 13px;font-size:12px}.profile-tile{padding:23px 16px}.account-content{padding:24px 22px}.sync-controls .button{flex:1 1 140px;font-size:12px}.sync-status-head h2{font-size:20px}.sync-check-time{width:100%;margin:0}.directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.loading-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.page-step-label{display:none}.page-buttons .page-step{padding:0 10px}.page-buttons button{min-width:35px}.catalog-empty{padding:30px 20px;margin-top:25px}.directory-card h3{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.route-progress:before{animation:none;width:100%}.loading-title,.loading-line,.loading-cards span,.loading-cards i{animation:none}}
