/* DtForget — sleeves, paper, ink. The record shop edition. */
:root{color-scheme:light;--canvas:#f4efdf;--paper:#fffaf0;--surface:#eae2cf;--ink:#292820;--muted:#686253;--edge:#c9bfaa;--red:#bd3827;--sun:#bd3827;--cyan:#286151;--soft:#686253;--lime:#bd3827;--lavender:#286151}
*{box-sizing:border-box}html,body{height:auto;min-width:320px;overflow:auto;background:var(--canvas);color:var(--ink);font-family:'Trebuchet MS',Arial,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}img{display:block;max-width:100%}[hidden]{display:none!important}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--cyan);outline-offset:5px}
.stage{width:100%;height:auto;min-height:100dvh;padding:24px clamp(20px,5vw,80px) 30px;background:var(--canvas);overflow:hidden}.orb{display:none}.screen{width:100%;max-width:1440px;margin:auto;min-height:calc(100dvh - 54px);gap:26px}.screen.on{animation:none}.menu-header{min-height:65px;border-bottom:2px solid var(--ink);padding-bottom:20px}.brand{font-family:Georgia,serif;font-size:34px;font-weight:900;letter-spacing:-2px;color:var(--ink)}.brand span{color:var(--red)}.brand i{font-family:'Trebuchet MS',sans-serif;color:var(--muted);font-size:9px;letter-spacing:2px;margin-top:6px}.header-actions{gap:18px}.connection{color:var(--muted)}.connection::before{background:var(--cyan)}
.quiet,.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:46px;border:1px solid var(--ink);border-radius:4px;padding:11px 20px;font:700 14px 'Trebuchet MS',sans-serif;box-shadow:none;transition:background .16s,transform .16s;color:var(--ink);background:transparent}.quiet:hover{background:#e5dcc7;transform:none}.btn{background:var(--red);color:var(--paper);border-color:var(--red);min-height:51px;padding:14px 24px}.btn:hover:not(:disabled){background:#982e21}.btn:active:not(:disabled),.quiet:active{transform:translateY(2px)}#fullscreen{font-size:24px;width:46px;padding:5px}
.eyebrow,.label,.collection-label{font-family:'Trebuchet MS',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.6px;color:var(--muted);line-height:1.6}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin:12px 0 5px}.section-heading h1{font:900 clamp(52px,6.5vw,94px)/.95 Georgia,serif;letter-spacing:-5px;margin:18px 0 0}.section-heading h1 em{color:var(--red);font-weight:400}.section-heading p{max-width:335px;font-size:15px;line-height:1.8;margin-bottom:6px;color:var(--muted)}
.hero{position:relative;isolation:isolate;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;min-height:350px;background:#e8dfc8;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink);overflow:hidden}.hero-copy{grid-column:1;grid-row:1;min-width:0;padding:32px 42px;z-index:1}.hero-art{grid-column:2;grid-row:1;position:relative;width:100%;height:350px;object-fit:cover;z-index:0}.hero-shade{display:none}.hero-copy .eyebrow{color:var(--red)}#selected-title{font:900 clamp(46px,5.7vw,80px)/1 Georgia,serif;letter-spacing:-3px;margin:12px 0 16px;overflow-wrap:anywhere}.hero-copy p{font-size:16px;line-height:1.6;max-width:380px;color:var(--ink);margin:0 0 14px}.hero-meta{font-size:12px;color:var(--muted);margin-bottom:24px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap}.hero .quiet{border-color:transparent;text-decoration:underline;text-underline-offset:5px;padding-inline:8px}.hero-index{position:absolute;right:18px;bottom:15px;font:12px monospace;background:var(--paper);padding:6px 10px;border:1px solid var(--ink)}
.collection-label{display:flex;justify-content:space-between;margin-top:6px;color:var(--ink)}#library-count{color:var(--muted);font-size:10px}.styles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;padding:0 0 10px}.style-card{display:grid;grid-template-columns:105px minmax(0,1fr);align-items:center;position:relative;isolation:isolate;min-height:150px;height:auto;padding:12px;text-align:left;background:transparent;color:var(--ink);border:1px solid var(--edge);border-radius:2px;overflow:hidden;box-shadow:none;transition:background .18s,border-color .18s}.style-card::after{display:none}.style-card .art{position:relative;inset:auto;width:105px;height:120px;background:transparent;overflow:hidden}.art::before{display:none}.art img{width:100%;height:100%;object-fit:cover}.style-card .art img{object-position:center}.style-card .card-copy{position:static;padding:0 0 0 16px;min-width:0}.card-copy h2{font:700 25px/1.1 Georgia,serif;letter-spacing:-.8px;overflow-wrap:anywhere;margin:0 0 9px}.card-copy p{color:var(--muted);font-size:12px;line-height:1.5;max-width:100%;margin:0}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:13px;color:var(--muted);font-size:10px}.card-arrow{height:26px;min-width:26px;width:26px;background:transparent;color:var(--red);border:0;font-size:22px}.card-badge{display:none}.style-card.is-selected{background:#e6ddc6;border-color:var(--ink);box-shadow:inset 0 -3px var(--red)}.style-card:hover,.style-card:focus-visible{background:#ebe2cc;box-shadow:none;transform:none;border-color:var(--ink)}.style-card:hover .card-copy,.style-card:hover .card-arrow{transform:none}.menu-footer{margin-top:auto;padding-top:20px;border-top:1px solid var(--edge);color:var(--muted);font-size:11px;line-height:1.7}.menu-footer b{color:var(--red)}.step-line{color:var(--edge)}
h1{font-family:Georgia,serif;color:var(--ink)}h1 em{color:var(--red)}.top{min-height:55px;gap:18px}.detail-layout{grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);gap:60px;margin:20px 0}.detail-cover{height:380px;border-radius:2px;border:1px solid var(--edge);box-shadow:8px 8px 0 #d8ceb7}.detail-cover .art{position:absolute;inset:0;background:var(--surface)}.detail-copy h1{font:900 clamp(44px,5vw,72px)/1 Georgia,serif;letter-spacing:-3px;margin:15px 0}.detail-copy p,.editor-heading p{color:var(--muted);line-height:1.7}.detail-actions{margin-top:24px}.song-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;counter-reset:song}.song-tile{position:relative;padding:20px 20px 20px 45px;background:transparent;border:0;border-top:1px solid var(--edge);border-radius:0;counter-increment:song;font-size:15px}.song-tile::before{content:counter(song,decimal-leading-zero);position:absolute;left:6px;top:21px;color:var(--red);font:12px monospace}.song-tile small{color:var(--muted);line-height:1.5}.round-options{border:0;margin:26px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px}.round-options legend{font-size:13px;margin-bottom:12px}.round-options label{display:flex;flex-direction:row;align-items:center;min-height:46px;gap:8px;border:1px solid var(--edge);padding:10px;color:var(--ink);cursor:pointer}.round-options label:has(:checked){background:var(--surface);border-color:var(--ink)}.round-options input{width:16px;min-height:16px;accent-color:var(--red)}
.editor-heading h1{font:700 clamp(36px,4vw,54px)/1.1 Georgia,serif;letter-spacing:-2px;margin:12px 0}.editor-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:32px}#list-nav button{justify-content:flex-start}#list-nav button[aria-current=true]{background:var(--surface);border-color:var(--ink)}#list-form{min-width:0}.form-fields{grid-template-columns:repeat(2,minmax(0,1fr))}label{color:var(--ink);font-size:13px}input,select{color:var(--ink);background:var(--paper);border:1px solid var(--edge);border-radius:3px;min-height:48px;font:inherit}input::placeholder{color:var(--muted)}input[type=checkbox]{accent-color:var(--red)}.song-tools span,.song-option small{color:var(--muted)}#song-picker{background:var(--paper);border:1px solid var(--edge);border-radius:3px;max-height:370px}.song-option{color:var(--ink);border-bottom:1px solid var(--edge)}.song-option:has(input:checked),.song-option:focus-within{background:#e8eadb}.song-option:focus-within{outline-color:var(--cyan)}.song-option input{accent-color:var(--red)}.save-row p{color:var(--cyan)}.selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:15px}.selection-actions label{flex-direction:row;align-items:center;min-height:44px;margin-left:auto}.selection-actions input{width:18px;min-height:18px}.cover-editor{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:24px;padding:20px 0;border-block:1px solid var(--edge);margin-top:24px}.cover-editor>div{min-width:0}.cover-editor img{width:100%;height:190px;object-fit:cover}.cover-editor input{margin-bottom:12px;max-width:100%}.cover-editor p{font-size:13px;color:var(--muted);line-height:1.6}.hint{color:var(--muted)}.notice{background:var(--ink);color:var(--paper);border:0;border-radius:3px;max-width:calc(100vw - 32px);font-size:14px}.empty{color:var(--muted)}
.lobby{gap:50px}.lobby-join{flex:1;min-width:0}.lobby-bottom{display:flex;justify-content:space-between;align-items:center;gap:22px}.code{font:900 clamp(52px,8vw,112px)/1.3 Georgia,serif;color:var(--red);text-shadow:none;letter-spacing:.08em}.msg{color:var(--muted);font-size:18px;line-height:1.6}.players{min-width:0}.players:empty::after{color:var(--muted);border:1px dashed var(--edge);border-radius:3px}.player,.rank{background:var(--paper);color:var(--ink);border:1px solid var(--edge);border-radius:3px;animation:none}.avatar,.rank .pos{background:var(--surface);color:var(--red);font-family:Georgia,serif}.player b,.rank .nm{overflow-wrap:anywhere;min-width:0}.rank .pts{color:var(--cyan);font-family:'Trebuchet MS',sans-serif}.intro-content{flex:1;display:flex;flex-direction:column;justify-content:center;gap:24px}.disp{font-family:Georgia,serif;letter-spacing:-2px}.track{background:var(--surface);height:8px}.fill{background:var(--red)}#s-play{height:calc(100dvh - 54px);min-height:560px}.lyrics{display:block;overflow-y:auto;scrollbar-width:none;padding:20px 0}.lyrics .line{margin:0 0 28px}.line{font-family:Georgia,serif;color:#817b6c;font-size:clamp(26px,3vw,44px)}.line.active{color:var(--ink)}.w.sung{color:var(--red)}.w.gap,.w.hole{color:var(--cyan)}.bar{background:var(--surface);border:0;border-radius:3px;padding:18px 24px;font-size:17px}.count{font-family:'Trebuchet MS',sans-serif;color:var(--cyan)}.reveal-layout{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px}.answer{font-family:Georgia,serif;color:var(--red);overflow-wrap:anywhere}.reveal-ranking,#final{display:flex;flex-direction:column;gap:12px;width:100%}#s-over{justify-content:center;isolation:isolate}#celebration-art{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.3}#s-over>.disp{font-size:24px!important}#winner-title{font:700 clamp(40px,6vw,80px)/1.05 Georgia,serif;max-width:850px}#final{max-width:850px}.motion-cover{border-radius:2px}.motion-cover img{width:100%;height:100%;object-fit:cover}
@media(min-width:1600px){.hero,.hero-art{min-height:400px}.style-card{min-height:165px}}
@media(max-width:1100px){.styles{gap:12px}.style-card{grid-template-columns:75px minmax(0,1fr);padding:9px}.style-card .art{width:75px;height:110px}.card-copy p{display:none}.card-copy h2{font-size:23px}.hero-copy{padding:28px}.section-heading p{max-width:270px}.detail-layout{gap:30px}.cover-editor{grid-template-columns:1fr 150px}.menu-footer>span:last-child{display:none}}
@media(max-width:760px){.stage{padding:18px 20px 24px}.screen{gap:22px}.header-actions{gap:8px}.connection{display:none}.section-heading{align-items:flex-start;flex-direction:column;gap:12px}.section-heading h1{font-size:64px;letter-spacing:-3px}.section-heading p{max-width:none;font-size:14px;margin:0}.section-heading p br{display:none}.hero{grid-template-columns:1fr}.hero-art{grid-column:1;grid-row:1;height:230px;object-position:center 45%}.hero-copy{grid-row:2;padding:24px}.hero-index{top:15px;bottom:auto}#selected-title{font-size:56px}.hero-meta{margin-bottom:18px}.styles{grid-template-columns:1fr}.style-card{grid-template-columns:90px 1fr;min-height:125px}.style-card .art{width:90px;height:105px}.card-copy p{display:block}.card-copy h2{font-size:27px}.card-bottom{margin-top:10px}.detail-layout,.editor-layout{grid-template-columns:1fr;gap:24px}.detail-cover{height:280px}.song-preview{grid-template-columns:1fr}#list-nav{flex-direction:row;flex-wrap:wrap}.form-fields{grid-template-columns:1fr}.cover-editor{grid-template-columns:1fr}.cover-editor img{height:200px;grid-row:1}.lobby{align-items:stretch;flex-direction:column}.lobby-bottom{align-items:stretch;flex-direction:column}.reveal-layout{grid-template-columns:1fr}.bar{font-size:13px;padding:16px;gap:14px}.top .label{font-size:10px}.selection-actions label{margin-left:0}.song-tools{flex-wrap:wrap}.song-tools label{min-width:180px}.menu-footer{font-size:10px}#s-play{height:calc(100dvh - 42px)}.answer{font-size:48px}}
@media(max-width:400px){.brand{font-size:28px}.header-actions .quiet{padding:10px;font-size:12px}#fullscreen{display:none}.section-heading h1{font-size:55px}.eyebrow{font-size:9px}.collection-label{font-size:9px;gap:10px}#library-count{font-size:9px}.hero-copy{padding:22px 18px}.hero-actions{gap:6px}.hero-actions .btn{width:100%}.hero-actions .quiet{margin:auto}.code{font-size:48px}#qr{width:110px;height:110px}#join-url{font-size:11px!important}.lobby-join>div:last-child{gap:12px!important}.lobby-join .msg{font-size:14px!important}.step-line{padding:0 4px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.motion-cover{display:none}}
/* Keep the lyric viewport bounded so the answer counter stays on screen. */
#s-play{flex:none;min-height:0}
#s-play .lyrics{min-height:0;flex:1 1 0}
#s-play .top,#s-play .track,#s-play .bar{flex-shrink:0}
/* Compact headings leave room for the playlists, without promotional copy. */
.section-heading{margin:8px 0 0}
.section-heading h1{font-size:clamp(30px,3.8vw,52px);letter-spacing:-2px;line-height:1.1;margin:0}
.detail-copy .hint:empty{display:none}
.players:empty::after{content:'En attente des joueurs…'}
