/* VELA: game discovery and editorial detail surfaces. */
:root{--ease-out:cubic-bezier(.22,1,.36,1)}
body{font-variant-numeric:tabular-nums}
.section-title h2{font-size:22px;font-weight:600;letter-spacing:-.7px}
.page-heading h1{font-weight:800;letter-spacing:-1.6px}
.page-heading>p{max-width:660px;line-height:1.7}
.nav-group>a{position:relative;transition:background .18s,color .18s,transform .18s}
.nav-group>a[aria-current=page]:before{content:"";position:absolute;left:-12px;width:3px;height:18px;background:var(--accent);border-radius:0 4px 4px 0}
.game-name{font-weight:600;letter-spacing:-.2px}
.game-provider{display:block;font-size:10px;color:#858c98;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.game-presence{font-size:10px;margin-top:5px}
.game-art img{transition:transform .5s var(--ease-out),filter .35s}
.game-card:hover .game-art img{transform:scale(1.055)}
.game-hover{transition:opacity .22s,background .22s}
.game-hover>span:first-child{width:42px;height:42px;border-radius:50%;background:#ffffffed;color:#17191e}
.game-hover>span:last-child{font-weight:600;font-size:12px}
.favorite-button{transition:background .2s,color .2s,transform .2s}
.favorite-button:active{transform:scale(.88)}
.favorite-button[aria-pressed=true] svg,.passport-favorite[aria-pressed=true] svg{fill:currentColor}
.active-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 16px}
.active-filters:empty{display:none}
.active-filters button{display:flex;align-items:center;gap:8px;font-size:11px;background:#ff6b4312;border:1px solid #ff6b4324;border-radius:6px;color:#ffac92;padding:6px 9px;max-width:100%;overflow-wrap:anywhere}
.active-filters svg{width:13px;height:13px}
.active-filters .clear-all{background:none;border-color:transparent;color:var(--muted)}
.active-filters button:hover{background:#ff6b4325}
.recent-strip{margin:28px 0 34px}
.recent-strip .section-title h2{font-size:18px}
.recent-rail{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(200px,1fr);gap:9px;overflow-x:auto;padding:2px 0 5px;scroll-snap-type:x proximity}
.compact-game{display:flex;align-items:center;gap:12px;text-align:left;background:#1b1e24;border:1px solid #ffffff06;border-radius:10px;padding:10px;min-width:0;transition:background .2s,border-color .2s;scroll-snap-align:start}
.compact-game:hover{background:#252931;border-color:#ffffff16}
.compact-game>img{width:44px;height:60px;border-radius:5px;object-fit:cover;flex:none}
.compact-game>span{display:block;min-width:0;flex:1}
.compact-game strong{display:block;font-size:12px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.compact-game small{display:block;font-size:10px;color:#9198a4;margin-top:4px}
.compact-game>svg{width:15px;height:15px;color:#68727f}
.recent-actions{display:flex;justify-content:space-between;align-items:center;padding:0 0 22px;color:var(--muted);font-size:12px}
.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.collection-card{--collection-color:#6d3266;display:block;background:#1b1e24;border:1px solid #ffffff09;border-radius:12px;overflow:hidden;transition:transform .35s var(--ease-out),border-color .3s}
.collection-card:hover{transform:translateY(-4px);border-color:#ffffff23}
.collection-gold,.collection-amber{--collection-color:#745128}.collection-violet{--collection-color:#432d6f}.collection-teal{--collection-color:#1b5956}.collection-blue{--collection-color:#2a4769}.collection-red{--collection-color:#722d3b}.collection-purple{--collection-color:#4b326e}
.collection-art{position:relative;height:190px;overflow:hidden;background:radial-gradient(ellipse at 50% 110%,var(--collection-color),#17191f 100%)}
.collection-art:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#1b1e24,transparent 26%);pointer-events:none}
.collection-art>.cover-stack{position:absolute;inset:20px 15px -24px;width:auto;height:auto;display:flex;align-items:flex-start;justify-content:center;gap:0;transform:none}
.collection-art .cover-stack img{position:relative;width:103px;height:140px;object-fit:cover;border-radius:7px;box-shadow:0 10px 30px #0008;transition:transform .6s var(--ease-out);flex:none;transform:translateY(29px) rotate(-13deg);margin-right:-10px}
.collection-art .cover-stack img:nth-child(2){z-index:2;width:116px;height:158px;transform:translateY(5px);margin-left:-10px;margin-right:-10px}
.collection-art .cover-stack img:nth-child(3){transform:translateY(29px) rotate(13deg);margin-left:-10px}
.collection-card:hover .cover-stack img:first-child{transform:translate(-5px,18px) rotate(-17deg)}
.collection-card:hover .cover-stack img:nth-child(2){transform:translateY(-4px)}
.collection-card:hover .cover-stack img:nth-child(3){transform:translate(5px,18px) rotate(17deg)}
.collection-art>span{position:absolute;top:13px;right:13px;background:#16171bc9;border:1px solid #ffffff12;border-radius:5px;padding:3px 7px;z-index:3;font-size:10px;color:#e1e2e8}
.collection-copy{padding:15px 22px 22px}
.collection-copy>span{font-size:10px;color:#9ba2ae;font-weight:500}
.collection-copy h2{font-size:25px;margin:7px 0 9px;font-weight:600;letter-spacing:-.8px}
.collection-copy p{font-size:12px;color:#969eac;line-height:1.65;min-height:40px;max-width:300px}
.collection-copy b{font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#e9ebf0}
.collection-copy b svg{width:17px;height:17px;color:#ff9474}
.format-guide{display:grid;grid-template-columns:1fr 1.35fr;gap:60px;margin-top:50px;padding:35px 0;border-top:1px solid var(--line)}
.format-guide h2{font-weight:600;font-size:30px;line-height:1.15;margin:12px 0}
.format-guide>div>p{font-size:12px;color:var(--muted);max-width:280px;line-height:1.7}
.format-guide details{border-bottom:1px solid #ffffff10;padding:17px 0}
.format-guide summary{display:flex;align-items:center;justify-content:space-between;font-weight:600;cursor:pointer;list-style:none}
.format-guide summary::-webkit-details-marker{display:none}
.format-guide summary svg{width:17px;height:17px;color:#9ca4af;transition:transform .2s}
.format-guide details[open] summary svg{transform:rotate(45deg)}
.format-guide details p{font-size:13px;line-height:1.7;color:#9aa3b0;padding:14px 24px 0 0}
/* A compact cover, legible facts and a contextual colour borrowed from the artwork. */
.detail-dialog{background:#191d23;border-radius:16px;max-height:92dvh;overflow:hidden;overscroll-behavior:contain}
#dialog-content{max-height:calc(92dvh - 2px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.detail-dialog::backdrop{background:#05070bc9;backdrop-filter:blur(9px)}
.detail-dialog[open]{animation:sheet-enter .32s var(--ease-out)}
.detail-dialog.game-detail{width:min(820px,calc(100% - 40px))}
.dialog-close{width:34px;height:34px;top:14px;right:14px;border:1px solid #ffffff14;border-radius:50%;background:#171b22d9;transition:background .18s,transform .18s}
.dialog-close svg{width:18px;height:18px}
.dialog-close:hover{background:#383b43;transform:rotate(90deg)}
#dialog-title:focus{outline:none}
.passport-header{position:relative;isolation:isolate;display:flex;align-items:center;gap:28px;padding:30px 60px 27px 30px;min-height:236px;overflow:hidden;background:#25252e}
.passport-atmosphere{position:absolute;z-index:-2;inset:-60%;width:220%;height:220%;object-fit:cover;max-width:none;filter:blur(60px) saturate(.65);opacity:.3;pointer-events:none}
.passport-header:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#191b2330,#191d2370),linear-gradient(0deg,#191d23,transparent 70%)}
.passport-cover{width:126px;position:relative;flex:none;align-self:flex-start}
.passport-cover>img{width:100%;height:auto;aspect-ratio:220/300;object-fit:cover;border-radius:9px;box-shadow:0 12px 35px #0007}
.passport-cover>span{position:absolute;left:9px;right:9px;bottom:-9px;border:1px solid #ffffff1f;border-radius:5px;background:#1b1d25ec;text-align:center;padding:4px 3px;font-size:10px;font-weight:600}
.passport-summary{min-width:0}
.passport-studio,.back-to-search{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#b5bac4;font-weight:500;margin:0 0 13px;padding:0}
.passport-studio svg,.back-to-search svg{width:13px;height:13px}
.passport-summary h2{font-size:clamp(25px,3vw,38px);font-weight:800;letter-spacing:-1.15px;line-height:1.1;max-width:500px;text-wrap:balance}
.passport-tags{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 16px}
.passport-tags span{font-size:10px;color:#b4b5c1;padding:3px 7px;background:#ffffff08;border:1px solid #ffffff0c;border-radius:4px}
.passport-tags .tag-new{color:#7ae6af;background:#42d99a12;border-color:#42d99a15}
.passport-favorite{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:500;color:#d7d9df;padding:0;min-height:28px;transition:color .2s}
.passport-favorite svg{width:15px;height:15px}
.passport-favorite[aria-pressed=true]{color:#ff987a}
.passport-content{padding:0 30px 20px}
.game-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0 0 25px;border:1px solid #ffffff0c;border-radius:8px;background:#ffffff02;overflow:hidden}
.game-facts>div{padding:13px 16px;min-width:0;border-right:1px solid #ffffff09}
.game-facts>div:last-child{border:0}
.game-facts dt{font-size:10px;color:#858e9d;margin-bottom:5px}
.game-facts dd{margin:0;font-size:14px;font-weight:600;color:#e8eaf0;line-height:1.4;overflow-wrap:anywhere}
.game-description h3,.similar-heading h3{font-size:17px;font-weight:600;letter-spacing:-.3px}
.game-description p{font-size:13px;line-height:1.8;color:#abb2bf;margin-top:10px;max-width:720px}
.game-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px 0 25px}
.game-features>div{display:flex;align-items:flex-start;gap:9px;min-width:0}
.game-features>div>span{color:#e6977c;font-size:10px;border:1px solid #e6977c28;border-radius:4px;min-width:24px;padding:3px 0;text-align:center;line-height:1.4}
.game-features h4{font-size:11px;font-weight:600;margin:1px 0 6px;line-height:1.4}
.game-features p{font-size:11px;color:#929cad;line-height:1.7;margin:0}
.passport-provider{display:flex;align-items:center;gap:11px;border-top:1px solid #ffffff0a;border-bottom:1px solid #ffffff0a;padding:15px 0;margin-bottom:24px}
.game-description+.passport-provider{margin-top:22px}
.studio-monogram{width:34px;height:34px;display:grid;place-items:center;border:1px solid #ffffff13;border-radius:8px;background:#272b33;color:#b8c0ce;font-weight:800;font-size:12px;letter-spacing:-.5px}
.passport-provider>div{flex:1}
.passport-provider strong{display:block;font-size:11px;font-weight:600}
.passport-provider small{display:block;color:#808b9c;font-size:10px;margin-top:3px}
.passport-provider .text-link{font-size:11px}
.passport-provider svg{width:15px;height:15px}
.similar-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.similar-heading>a{font-size:10px;color:#9ba4b2;display:flex;align-items:center;gap:3px}
.similar-heading svg{width:13px;height:13px}
.similar-games{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.similar-games>button{padding:0;text-align:left;min-width:0}
.similar-games>button>span{display:block;overflow:hidden;border-radius:7px;background:#222630}
.similar-games img{width:100%;aspect-ratio:220/300;object-fit:cover;transition:transform .4s var(--ease-out)}
.similar-games button:hover img{transform:scale(1.06)}
.similar-games strong{font-size:10px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:7px}
.similar-games small{display:block;color:#717e90;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.game-source{margin-top:22px;color:#778394;font-size:10px}
.game-source summary{cursor:pointer;display:inline-flex;gap:6px;align-items:center;list-style:none}
.game-source summary::-webkit-details-marker{display:none}
.game-source svg{width:13px;height:13px}
.game-source p{font-size:10px;line-height:1.8;margin-top:10px;max-width:600px}
.game-source a{color:#bcc2ce;text-decoration:underline;text-underline-offset:3px}
.passport-footer{position:sticky;bottom:0;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 30px;background:#20242bf5;backdrop-filter:blur(12px);border-top:1px solid #ffffff0b}
.passport-footer>div{display:flex;align-items:center;gap:10px;color:#9ca4b2}
.passport-footer>div>svg{width:16px;height:16px;color:#697487}
.passport-footer p{font-size:11px;line-height:1.5}
.passport-footer small{display:block;font-size:10px;color:#6f7a8c}
.passport-footer .button{min-width:164px;height:42px;min-height:42px;font-size:12px}
.passport-footer .button svg{width:15px;height:15px}
.dialog-body>p,.dialog-body ul{font-size:13px;line-height:1.8}
.dialog-body .dialog-footnote{font-size:10px}
/* Search stays on the current page, then opens the same game passport. */
.detail-dialog.search-dialog{width:min(690px,calc(100% - 30px));background:#191d23}
.quick-search-header{padding:27px 25px 0}
.quick-search-header h2{font-size:25px;letter-spacing:-.8px;font-weight:600;padding-right:30px}
.quick-search-header>p{font-size:11px;color:#788596;margin-top:6px}
.quick-search-field{display:flex;align-items:center;gap:11px;background:#242932;border:1px solid #ffffff0d;border-radius:9px;padding:0 14px;margin-top:21px;transition:border-color .2s,box-shadow .2s}
.quick-search-field:focus-within{border-color:#ff927b70;box-shadow:0 0 0 3px #ff927b09}
.quick-search-field>svg{width:19px;height:19px;color:#929dab}
.quick-search-field input{width:100%;height:51px;border:0;background:none;outline:none;color:#f0f1f4;font-size:14px;min-width:0}
.quick-search-field input:focus-visible{outline:none}
.quick-search-field input::placeholder{color:#697789}
.quick-search-field kbd{font-size:9px;color:#737f90;font-family:inherit;border:1px solid #ffffff15;border-radius:4px;padding:2px 4px}
#quick-results{padding:0 25px 18px}
.quick-result-head{display:flex;justify-content:space-between;gap:10px;padding:18px 0 12px;font-size:11px;color:#adb6c3}
.quick-result-head>span+span{font-size:10px;color:#68778b}
.quick-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quick-results-grid .compact-game{background:#20242b}
.quick-results-grid .compact-game:hover{background:#2a303a}
.quick-results-grid .compact-game>img{width:39px;height:53px}
.quick-all{display:flex;justify-content:space-between;align-items:center;padding:15px 2px 0;margin-top:17px;border-top:1px solid #ffffff0d;font-size:12px;font-weight:500;color:#ff9f83}
.quick-all svg{width:17px;height:17px}
.quick-empty{text-align:center;padding:35px 15px;color:#717e91}
.quick-empty>svg{width:30px;height:30px;margin-bottom:15px}
.quick-empty h3{color:#c8ced8;font-size:17px;font-weight:500;margin-bottom:8px}
.quick-empty p{font-size:12px}
@keyframes sheet-enter{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:1600px){.collection-art{height:215px}.collection-art>.cover-stack{top:30px}.collection-art .cover-stack img{width:116px;height:158px}.collection-art .cover-stack img:nth-child(2){width:130px;height:177px}}
@media(max-width:1100px){.collection-grid{gap:12px}.collection-art{height:160px}.collection-art .cover-stack img{width:85px;height:116px}.collection-art .cover-stack img:nth-child(2){width:100px;height:136px}.collection-copy{padding:14px 16px 18px}.collection-copy h2{font-size:23px}.collection-copy p{min-height:60px;font-size:11px}.format-guide{gap:30px}}
@media(max-width:760px){
  .header-search{display:flex;width:32px;height:32px;padding:0;align-items:center;justify-content:center}
  .header-search>span:not(:first-child),.header-search>kbd{display:none}
  .header-search>span:first-child{display:flex}
  .section-title h2{font-size:19px}.game-provider{font-size:9px}.game-presence{font-size:9px}
  .collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.collection-strip>.collection-grid{display:flex;overflow:auto;scroll-snap-type:x proximity;padding:3px 0 8px}.collection-strip .collection-card{min-width:240px;width:240px;scroll-snap-align:start}
  .collection-art{height:155px}.collection-art>.cover-stack{inset:20px 0 -25px}.collection-art .cover-stack img{width:65px;height:89px;transform:translateY(30px) rotate(-13deg)}.collection-art .cover-stack img:nth-child(2){width:89px;height:121px}.collection-art .cover-stack img:nth-child(3){transform:translateY(30px) rotate(13deg)}
  .collection-copy{padding:10px 12px 16px}.collection-copy>span{font-size:9px}.collection-copy h2{font-size:22px;margin-top:7px}.collection-copy p{font-size:10px;min-height:66px}.collection-copy b{font-size:10px;gap:5px;margin-top:12px}
  .format-guide{grid-template-columns:1fr;gap:13px;margin-top:34px;padding-top:26px}.format-guide h2{font-size:28px}.format-guide>div>p{max-width:100%}.format-guide details p{font-size:12px}
  .recent-rail{grid-auto-columns:205px}.recent-strip{margin:23px 0 27px}.recent-strip .section-title h2{font-size:17px}.recent-strip .section-head{gap:8px}.recent-strip .section-head .text-link{font-size:10px}.recent-actions{font-size:11px;gap:10px}
  .detail-dialog.game-detail{width:calc(100% - 20px);max-height:94dvh;border-radius:14px}
  .game-detail #dialog-content{max-height:calc(94dvh - 2px)}
  .passport-header{gap:18px;padding:27px 42px 27px 20px;min-height:194px}
  .passport-cover{width:94px}.passport-summary h2{font-size:27px;letter-spacing:-.8px}.passport-studio,.back-to-search{font-size:10px;margin-bottom:11px}.passport-tags{gap:4px;margin:10px 0}.passport-tags span{font-size:9px;padding:2px 5px}.passport-favorite{font-size:10px}.passport-favorite svg{width:14px;height:14px}
  .passport-content{padding:0 19px 18px}.game-facts{margin-bottom:21px}.game-facts>div{padding:11px 9px}.game-facts dt{font-size:9px}.game-facts dd{font-size:12px}
  .game-description h3,.similar-heading h3{font-size:16px}.game-description p{font-size:12px;line-height:1.8}
  .game-features{grid-template-columns:1fr;gap:15px;padding:20px 0}.game-features>div{gap:10px}.game-features h4{font-size:12px;margin-bottom:3px}.game-features p{font-size:11px;line-height:1.6}
  .passport-provider{gap:9px}.passport-provider strong{font-size:11px}.passport-provider .text-link{font-size:10px}.passport-provider .text-link svg{width:12px;height:12px}
  .similar-games{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:83px;gap:9px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px}.similar-games>button{scroll-snap-align:start}.similar-heading>a{font-size:9px}.similar-games strong{font-size:10px}.similar-games small{font-size:8px}
  .game-source{margin-top:16px;font-size:9px}.passport-footer{padding:12px 18px;gap:10px}.passport-footer>div>svg{display:none}.passport-footer p{font-size:10px}.passport-footer small{font-size:9px;max-width:170px}.passport-footer .button{min-width:105px;font-size:11px}
  .quick-search-header{padding:24px 18px 0}.quick-search-header h2{font-size:23px}.quick-search-field{margin-top:18px;padding:0 11px}.quick-search-field input{font-size:13px;height:48px}.quick-search-field kbd{display:none}#quick-results{padding:0 18px 18px}.quick-results-grid{grid-template-columns:1fr;gap:6px}.quick-results-grid .compact-game{padding:7px 9px}.quick-results-grid .compact-game>img{width:31px;height:42px}.quick-result-head>span+span{display:none}.quick-result-head{padding:15px 0 10px}.quick-all{padding-top:13px;margin-top:12px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.collection-card:hover,.collection-card:hover .cover-stack img,.game-card:hover .game-art img,.dialog-close:hover{transform:none}}
