:root{color-scheme:dark;--bg:#0d131b;--panel:#1b2633;--stroke:#334252;--text:#f6f7fa;--muted:#aeb7c4;--yellow:#ffca08}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.shell{width:min(1440px,calc(100% - 88px));margin:auto}.topbar{height:82px;background:#0d131bed;border-bottom:1px solid #2d3641;position:relative;z-index:2}.nav{display:flex;align-items:center;justify-content:space-between;height:100%;gap:20px}.brand{display:flex;align-items:center;gap:14px;line-height:1.08;font-size:22px;letter-spacing:-.7px}.brand-icon{font-size:43px;color:#fff;line-height:1}.brand strong,.brand b{display:block}.brand b{color:var(--yellow)}nav{height:100%;display:flex;gap:20px;align-items:center}nav a{height:100%;display:flex;align-items:center;gap:8px;padding:0 14px;font-weight:700;border-bottom:3px solid transparent}nav a.active{border-bottom-color:var(--yellow);color:var(--yellow)}nav a.active span{color:white}.hero{position:relative;min-height:430px;background:#211a13 url('assets/boardgame-shelf.webp') center 55%/cover no-repeat;display:grid;place-items:center;text-align:center;isolation:isolate}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#090e15a6,#090e1585 50%,#090e15a6),linear-gradient(0deg,#0d131b6b,transparent 35%);z-index:-1}.hero-content{padding:38px 0 48px}.eyebrow{display:flex;justify-content:center;align-items:center;gap:16px;font-size:26px;color:var(--yellow)}.eyebrow-line{height:3px;width:80px;background:var(--yellow)}.overline{font-size:13px;letter-spacing:6px;font-weight:800;margin:18px 0 8px}.hero h1{font-size:clamp(35px,5.2vw,72px);line-height:1.1;letter-spacing:-2.5px;margin:12px 0 15px}.hero h1 em{font-style:normal;color:var(--yellow)}.hero-desc{font-size:clamp(14px,1.4vw,19px);margin:0 auto 27px;max-width:850px;text-shadow:0 1px 6px #000}.hero-stats{display:flex;justify-content:center;gap:22px;flex-wrap:wrap}.stat{display:flex;align-items:center;gap:15px;min-width:160px;text-align:left;background:#0c141de8;border:1px solid #4c5661;border-radius:12px;padding:13px 19px;box-shadow:0 5px 15px #0005}.stat-icon{font-size:29px;color:var(--yellow)}.stat small{display:block;color:#d0d4db;font-size:13px}.stat strong{display:block;color:var(--yellow);font-size:25px;line-height:1.1}.collection{padding:30px 0 75px}.filters{display:grid;grid-template-columns:minmax(200px,1.65fr) minmax(150px,.85fr) minmax(160px,1.05fr) auto auto;gap:14px;align-items:center;padding-bottom:29px;border-bottom:1px solid #35404c}.search-field,.select-field{height:55px;display:flex;align-items:center;gap:12px;background:linear-gradient(#202c3a,#1a2430);border:1px solid #3b4b5d;border-radius:9px;padding:0 16px;min-width:0}.search-field span,.select-field span{font-size:25px;color:#e0e4ea}.search-field input,.select-field select{width:100%;min-width:0;background:transparent;color:#f4f6f9;border:0;outline:0}.search-field input::placeholder{color:#b9c2ce}.select-field select{cursor:pointer}.select-field option{background:#1b2633}.search-field:focus-within,.select-field:focus-within{border-color:var(--yellow)}.secondary-btn,#refresh{background:#161f2a;border:1px solid #344251;color:#f2f4f7;border-radius:9px;padding:14px 17px;white-space:nowrap}.secondary-btn{height:55px}.secondary-btn:hover,#refresh:hover{border-color:var(--yellow)}.view-toggle{display:flex;background:#1c2835;border:1px solid #354251;border-radius:9px;overflow:hidden}.view-toggle button{width:48px;height:53px;border:0;background:transparent;color:#bfc9d3;font-size:24px}.view-toggle button.selected{background:#3c3418;color:var(--yellow);box-shadow:inset 0 0 0 1px #846a16;border-radius:8px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0 22px}.section-heading h2{font-size:30px;letter-spacing:-.8px;margin:0;display:flex;align-items:center;gap:13px}.section-heading h2:before{content:"";width:6px;height:34px;background:var(--yellow);border-radius:2px}.section-actions{display:flex;align-items:center;gap:18px;color:#bdc7d2}.section-actions #refresh{padding:9px 12px}.status{color:#b8c4d0;margin:0 0 18px}.status:empty{display:none}.game-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px}.game-card{min-width:0;display:flex;flex-direction:column;background:#17212c;border:1px solid #35414d;border-radius:12px;overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s}.game-card:hover{transform:translateY(-5px);border-color:#c9a62e;box-shadow:0 14px 30px #0006}.cover{aspect-ratio:4/4.5;background:#263241;display:grid;place-items:center;overflow:hidden}.cover img{height:100%;width:100%;object-fit:cover}.placeholder{font-size:65px;color:#ffca08}.game-info{padding:15px;display:flex;flex-direction:column;gap:7px;flex:1}.game-info h3{font-size:16px;line-height:1.35;margin:0}.meta{font-size:13px;color:#b9c4d0}.publisher{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.game-link{margin-top:auto;padding-top:8px;color:var(--yellow);font-size:13px;font-weight:700}.game-grid.list-view{display:flex;flex-direction:column;gap:10px}.list-view .game-card{flex-direction:row;min-height:110px}.list-view .cover{width:95px;min-width:95px;aspect-ratio:1}.list-view .game-info{justify-content:center}.about{border-top:1px solid #35404c;padding:30px 0 50px;color:#bfc8d2}.about h2{color:#fff}.about p{max-width:680px;line-height:1.7}.about a{color:var(--yellow);font-weight:700}footer{border-top:1px solid #2c3946;background:#0a1016}.footer-content{display:flex;justify-content:space-between;gap:20px;padding:24px 0;color:#a9b4bf;font-size:13px}footer a{color:var(--yellow)}@media(max-width:1100px){.filters{grid-template-columns:2fr 1fr 1fr}.view-toggle{justify-self:end}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.shell{width:min(100% - 32px,600px)}.topbar{height:72px}.brand{font-size:15px;gap:7px}.brand-icon{font-size:30px}nav{gap:2px}nav a{padding:0 8px;font-size:18px}nav a span{display:none}.hero{min-height:420px;background-position:center}.hero-content{padding:45px 0}.hero h1{letter-spacing:-1.5px}.overline{font-size:10px;letter-spacing:3px}.hero-desc{max-width:370px}.hero-stats{gap:8px}.stat{min-width:0;flex:1;padding:10px;gap:8px}.stat-icon{font-size:20px}.stat small{font-size:10px}.stat strong{font-size:19px}.filters{grid-template-columns:1fr 1fr;gap:10px}.search-field{grid-column:1/-1}.select-field{padding:0 10px}.select-field span{font-size:18px}.secondary-btn{height:50px}.view-toggle{justify-self:end}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.section-heading h2{font-size:23px}.section-actions{gap:8px;font-size:12px}.section-actions #refresh{font-size:12px}.footer-content{flex-direction:column;gap:8px}.cover{aspect-ratio:4/4.7}}@media(max-width:380px){.hero-stats{flex-wrap:wrap}.stat{flex-basis:28%}.stat-icon{display:none}.game-info{padding:10px}.section-actions #refresh{padding:8px}.filters{grid-template-columns:1fr 1fr}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Olivier edition: filters, accessible preview and meeple details */
.filters{grid-template-columns:minmax(190px,1.8fr) repeat(4,minmax(125px,1fr)) auto auto;gap:10px}
.game-card{position:relative;overflow:visible}.game-card .cover{border-radius:11px 11px 0 0}.game-card .game-info{border-radius:0 0 11px 11px}.game-extras{font-size:12px}.game-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:10px}.details-btn{border:1px solid #665a2a;background:#2d2a1d;color:#ffca08;border-radius:7px;padding:7px 9px;font-size:12px;font-weight:700}.details-btn:hover,.details-btn:focus-visible{border-color:#ffca08}.game-link{margin:0;padding:0}.hover-preview{display:none;position:absolute;left:50%;bottom:calc(100% + 12px);transform:translateX(-50%);width:min(340px,90vw);background:#111b26;border:1px solid #b18d28;border-radius:13px;padding:14px;box-shadow:0 22px 50px #000c;z-index:20;pointer-events:none;grid-template-columns:105px 1fr;gap:13px;text-align:left}.hover-preview img{width:105px;max-height:150px;object-fit:contain;border-radius:6px;background:#25303a}.hover-preview strong{display:block;font-size:15px;line-height:1.3;margin-bottom:9px}.hover-preview p{font-size:12px;line-height:1.35;margin:5px 0;color:#e4e8ee}.hover-preview p span{color:#ffca08}.game-card:hover .hover-preview,.game-card:focus-within .hover-preview{display:grid}.game-grid .game-card:nth-child(-n+2) .hover-preview{bottom:auto;top:calc(100% + 10px)}.game-grid.list-view .hover-preview{left:220px;bottom:calc(100% + 8px);transform:none}.game-dialog[hidden]{display:none}.game-dialog{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:16px}.dialog-backdrop{position:absolute;inset:0;background:#000c;backdrop-filter:blur(4px)}.dialog-panel{position:relative;background:#172331;border:1px solid #b18d28;border-radius:16px;max-width:680px;width:100%;max-height:90vh;overflow:auto;padding:25px;display:grid;grid-template-columns:minmax(140px,42%) 1fr;gap:22px;box-shadow:0 30px 80px #000c}.dialog-panel>img{width:100%;max-height:400px;object-fit:contain;border-radius:10px;background:#25303a}.dialog-details h2{margin:20px 0;font-size:25px}.dialog-details dl{display:grid;grid-template-columns:110px 1fr;gap:12px;font-size:14px}.dialog-details dt{color:#ffca08}.dialog-details dd{margin:0}.dialog-details a{display:inline-block;margin-top:20px;color:#ffca08;font-weight:700}.dialog-close{position:absolute;right:10px;top:8px;background:transparent;color:#fff;border:0;font-size:32px}.dialog-open{overflow:hidden}
@media(max-width:1300px){.filters{grid-template-columns:repeat(4,minmax(0,1fr))}.search-field{grid-column:span 2}.view-toggle{justify-self:end}}
@media(max-width:760px){.filters{grid-template-columns:repeat(2,minmax(0,1fr))}.search-field{grid-column:1/-1}.hover-preview{display:none!important}.dialog-panel{grid-template-columns:1fr;padding:16px;gap:10px}.dialog-panel>img{max-height:230px}.dialog-details h2{margin:6px 0 14px;font-size:22px}.dialog-details dl{margin:10px 0}.game-extras{font-size:11px}.game-actions{flex-wrap:wrap}.details-btn{font-size:11px}}
@media(hover:none){.hover-preview{display:none!important}}

/* Center the hover preview over the game card instead of above it. */
@media (hover:hover) and (min-width:761px){
  .game-card .hover-preview,
  .game-grid .game-card:nth-child(-n+2) .hover-preview,
  .game-grid.list-view .hover-preview{
    position:absolute;
    top:50%;
    bottom:auto;
    left:50%;
    transform:translate(-50%,-50%);
    width:min(340px,calc(100vw - 36px));
    z-index:30;
  }
  .game-card:hover,.game-card:focus-within{z-index:25}
}

/* Thumbnail-only hover: preview is anchored to the image, not the metadata. */
.cover-frame{position:relative;isolation:isolate;min-width:0}
.cover-frame .cover{width:100%;display:grid}
.game-card .hover-preview,.game-grid .game-card:nth-child(-n+2) .hover-preview,.game-grid.list-view .hover-preview{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:min(340px,calc(100vw - 36px));max-width:none;z-index:50}
@media (hover:hover) and (min-width:761px){
  .game-card:hover .hover-preview,.game-card:focus-within .hover-preview{display:none}
  .game-card .cover-frame:hover .hover-preview,.game-card .cover-frame:focus-within .hover-preview{display:grid}
  .game-card:has(.cover-frame:hover),.game-card:has(.cover-frame:focus-within){z-index:60}
}
@media (min-width:761px){.game-grid.list-view .cover-frame{width:95px;min-width:95px}.game-grid.list-view .cover-frame .cover{width:100%;height:100%;aspect-ratio:1}}
@media(max-width:760px){.game-grid.list-view .cover-frame{width:95px;min-width:95px}}
