:root{--pq-bg:#f3f6fb;--pq-surface:#fff;--pq-surface-alt:#eaf1fa;--pq-text:#172c48;--pq-muted:#566781;--pq-border:#cad5e5;--pq-accent:#235db8}
:root[data-theme=dark]{--pq-bg:#101923;--pq-surface:#1c2938;--pq-surface-alt:#26374a;--pq-text:#f0f4fa;--pq-muted:#b0bfd2;--pq-border:#415872;--pq-accent:#89bdff;color-scheme:dark;background:var(--pq-bg);color:var(--pq-text)}
.pq-theme-picker{display:grid;gap:6px;text-align:left;font:650 14px/1.4 system-ui,sans-serif;color:var(--pq-text);padding:8px 0}
.pq-theme-picker select{display:block;width:100%;min-height:44px;border:1px solid var(--pq-border);border-radius:9px;padding:7px 9px;background:var(--pq-surface);color:var(--pq-text);font:inherit}
.pq-theme-picker select:focus-visible{outline:3px solid #c45114;outline-offset:2px}
html[data-theme=dark] body{background:var(--pq-bg)!important;color:var(--pq-text)!important}
html[data-theme=dark] :is(h1,h2,h3,h4,label,legend,summary,dt,dd,th,td){color:var(--pq-text)}
html[data-theme=dark] :is(p,small,.hint,.tagline,.eyebrow,.filename,.entity-caption,.party-mode-caption,.game-info,.played-counts,.analysis-index,.cps-notice,.cps-vote-confirmed){color:var(--pq-muted)!important}
html[data-theme=dark] :is(a,.textButton,.photo-links a,.analysis-index strong){color:var(--pq-accent)}
html[data-theme=dark] :is(.panel,.card,.entry,.party-top,.selected-collection,.detail-collection,.detail-cardbody,.picker-row,dialog,.import-dialog,.import-drop,.drop,.app-menu-panel,.duel-menu-panel,.cps-menu-panel,.invite-card,.timeline-zoom,.key-text,.collection-caption,.round-photo-loading,.game-management,.game-final,.final-card,.retention-card,.screen,.tv,.join,.ranking,.rows,.rank-row,.row-card){background:var(--pq-surface)!important;border-color:var(--pq-border)!important;color:var(--pq-text)!important}
html[data-theme=dark] :is(button,input,select,textarea,.outline,.choice,.mode,.tv-projection-choices a){background-color:var(--pq-surface)!important;border-color:var(--pq-border)!important;color:var(--pq-accent)!important}
html[data-theme=dark] :is(input,select,textarea){color:var(--pq-text)!important}
html[data-theme=dark] :is(.primary,.orange,.play,.save,.game-action){background:#1764bf!important;border-color:#418be7!important;color:#fff!important}
html[data-theme=dark] :is(.error,.unknown,.picker-error,[role=alert]){color:#ffb6ae!important}
html[data-theme=dark] :is(.mode:has(input:checked),.selection-card.selected,.picker-row:has(input:checked),.card.selected){background:var(--pq-surface-alt)!important;border-color:#70afff!important}
html[data-theme=dark] :is(#nav,.band,.party-list-band,.detail-actions,.tv-share-dialog,.cps-classification,.cps-classification li,.cps-round-player,.tv-rank-row,.guests,.guidance,.summary,.result-scores,.lower,.stage,.cps-invite-dialog){background:var(--pq-surface)!important;color:var(--pq-text)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] #nav button{background:transparent!important;color:var(--pq-muted)!important}html[data-theme=dark] #nav button[aria-current]{color:var(--pq-accent)!important}
html[data-theme=dark] .brand,html[data-theme=dark] .brand>span>span,html[data-theme=dark] .brand :is(strong,b),html[data-theme=dark] .pq-brand-title>span:last-child{color:#80b9ff!important}html[data-theme=dark] .brand>span,html[data-theme=dark] .brand :is(strong,b)>span,html[data-theme=dark] .pq-brand-title>span:first-child{color:#ff934a!important}
html[data-theme=dark] .pq-game-brand small{color:var(--pq-muted)!important}
html[data-theme=dark] :is(.mosaic.empty,.selected-collection-mosaic img,.photo .frame,.detail-frame,.capture-preview,.viewport,.analysis-metrics>div,.replay-new-note){background:var(--pq-surface-alt)!important;color:var(--pq-text)!important}
html[data-theme=dark] .analysis-chart text{fill:var(--pq-text)}html[data-theme=dark] .analysis-chart svg{fill:#78aff4}
html[data-theme=dark] .illustrated-duel{background:linear-gradient(155deg,#101d2b,#101923 75%)!important;color:var(--pq-text)!important;--ink:#f0f4fa;--line:#415872}
html[data-theme=dark] .illustrated-duel .duel-shell .illustrated-teams>[data-team-heading='0']{background:linear-gradient(#0a60bf,#073570)!important;border:1px solid #338ce8!important}
html[data-theme=dark] .illustrated-duel .duel-shell .illustrated-teams>[data-team-heading='1']{background:linear-gradient(#ad4b10,#763008)!important;border:1px solid #e77627!important}
html[data-theme=dark] .illustrated-duel :is(.illustrated-team-name h2,.illustrated-team-interval,.illustrated-team-score){color:white!important}
html[data-theme=dark] .illustrated-duel .illustrated-team-tools{background:#09274bd9!important;color:#e2eeff!important}html[data-theme=dark] .illustrated-duel [data-team-heading='1'] .illustrated-team-tools{background:#51220bd9!important;color:#ffe8d6!important}
html[data-theme=dark] .illustrated-duel .illustrated-your-team{background:#193e6c!important;color:#d5e7ff!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-contextual-action]{background:var(--pq-surface)!important;border-color:var(--pq-border)!important;color:var(--pq-text)!important}
html[data-theme=dark] .illustrated-duel .duel-shell :is(.next-in-action,.reveal-in-action,button:has([data-confirmation-source])){background:linear-gradient(#247ee1,#0a4fa5)!important;color:#fff!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-action-team] button:has([data-placement-source]){background:transparent!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-timeline-photo]{background:#22354b!important;border-color:#22354b!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-award-slot] [data-timeline-photo]{border-color:var(--award-color)!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-track-team]>div>div[data-photo-id]>span:first-child{background:var(--pq-surface-alt)!important;color:var(--pq-text)!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-award-slot]>[data-new-photo-year]{background:var(--award-color)!important;color:white!important}
html[data-theme=dark] .illustrated-duel .duel-shell :is([data-current-photo],.festive-result,.illustrated-result,.game-final){background:var(--pq-surface)!important;color:var(--pq-text)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] .illustrated-duel :is(.competition-team,.competition-scores>div){background:#102f51!important;color:#add2ff!important}html[data-theme=dark] .illustrated-duel :is(.competition-team,.competition-scores>div)[data-team='1']{background:#3c251b!important;color:#ffb47a!important}
html[data-theme=dark] .illustrated-duel :is(.winning-interval>strong,.winning-interval>span,.result-ended,.final-eyebrow,.final-congratulations){color:var(--pq-text)!important}html[data-theme=dark] .illustrated-duel .winning-interval>strong{background:var(--pq-surface-alt)!important}
html[data-theme=dark] :is(.cps-v2,.cps-scores-page,.game-secondary,.classic-duel,.tv .showcase,.tv footer){background:var(--pq-bg)!important;color:var(--pq-text)!important}
html[data-theme=dark] .cps-v2 :is([data-pq=actions],[data-pq=players],.cps-photo-result,.cps-result-year,.cps-result-year b,.cps-personal-total){background:var(--pq-surface)!important;border-color:var(--pq-border)!important;color:var(--pq-text)!important}
html[data-theme=dark] .cps-v2 [data-pq=player]{background:linear-gradient(#0a60bf,#073570)!important;color:white!important;border-color:#337ac8!important}
html[data-theme=dark] .cps-v2 :is([data-pq=player] strong,[data-pq=player] .cps-points){color:white!important}
html[data-theme=dark] .cps-v2 :is(.cps-confirm-placement,.cps-reveal,.cps-next){background:linear-gradient(#247ee1,#0a4fa5)!important;color:white!important}
html[data-theme=dark] .cps-v2 :is([data-pq=photo]>h2,.cps-interval-voters>span,.cps-interval-voters>span[data-correct=true]){background:var(--pq-surface-alt)!important;color:var(--pq-text)!important}
html[data-theme=dark] .cps-v2 :is(.cps-round-player[data-correct=true],.cps-classification li[data-me=true]){background:#163d31!important;color:#b5f0cf!important;border-color:#52b58a!important}
html[data-theme=dark] .screen :is(.team,.ranking,.rank-window,.summary,.time-section,.result-scores){background:var(--pq-surface)!important;color:var(--pq-text)!important;border-color:var(--pq-border)!important}
/* Photographs, QR codes, canvases and their pixel colors are never filtered. */
html[data-theme=dark] .party-histogram .hist-value-played{fill:#fff}html[data-theme=dark] .party-histogram .hist-value-unplayed{fill:#172c48}
/* Game styles contain historical scoped overrides; these palette rules win without changing geometry. */
html[data-theme=dark]{background:var(--pq-bg)!important}
html[data-theme=dark] #game-root .illustrated-duel .illustrated-board-cue h1{color:var(--pq-text)!important}
html[data-theme=dark] #game-root :is(.duel-header,.cps-brand,.game-standard-header){background:var(--pq-bg)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] #game-root :is(.duel-header,.cps-brand,.game-standard-header) summary{background:var(--pq-surface)!important;color:var(--pq-accent)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell :is([data-pq=timeline-panel],[data-pq=timeline],[data-pq=photo],[data-current-photo]){background-color:var(--pq-bg)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell [data-pq=photo]>h2{background:var(--pq-surface-alt)!important;color:var(--pq-text)!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell [data-pq=timeline]>div{background-color:var(--pq-bg)!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell :is(.cps-rank-group,[data-pq=player],.cps-rank-summary){background:linear-gradient(#0a60bf,#073570)!important;color:white!important;border-color:#337ac8!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell :is(.cps-rank-summary strong,.cps-rank-summary b,.cps-player-identity strong){color:white!important}
html[data-theme=dark] #game-root .cps-v2.pqSolo.shell [data-pq=actions]{background:var(--pq-surface)!important;color:var(--pq-text)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] body:has(.cps-v2 [data-pq=board])::after{background:var(--pq-bg)!important}
/* Legacy individual-game variables share names with the palette: override them at their own scope. */
html[data-theme=dark] #game-root .pqNew{--pq-bg:#101923;--pq-ink:#f0f4fa;--pq-muted:#b0bfd2;--pq-blue:#89bdff;--background:#101923;--foreground:#f0f4fa;--ink:#f0f4fa;color:var(--pq-text)!important}
html[data-theme=dark] #game-root .cps-v2 :is(.cps-placement-prompt,.cps-placement-prompt strong,.cps-choice-label){color:var(--pq-text)!important}
html[data-theme=dark] #game-root .cps-v2 :is(.cps-vote-progress,.cps-vote-count){background:var(--pq-surface-alt)!important;color:var(--pq-text)!important}
html[data-theme=dark] .screen .team.blue{background:linear-gradient(#0a60bf,#073570)!important;color:white!important;border-color:#338ce8!important}
html[data-theme=dark] .screen .team.copper{background:linear-gradient(#ad4b10,#763008)!important;color:white!important;border-color:#e77627!important}
html[data-theme=dark] body:has(.screen)::before,html[data-theme=dark] body:has(.screen)::after{background:var(--pq-bg)!important}
html[data-theme=dark] #game-root .cps-v2 .cps-vote-progress>span{color:var(--pq-text)!important}
html[data-theme=dark] #game-root .cps-v2 [data-current-photo]>img{background-color:var(--pq-bg)!important}
html[data-theme=dark] #game-root .cps-v2 [data-online=false]{color:#c0cbd8!important}
html[data-theme=dark] #game-root .cps-v2 .cps-vote-progress i{background:#235db8!important}
html[data-theme=dark] #game-root .cps-v2 .cps-photo-result :is(strong,b,h2){color:var(--pq-text)!important}
html[data-theme=dark] .screen::before{background:var(--pq-bg)!important}
html[data-theme=dark] .screen .player-row{background:var(--pq-surface-alt)!important;border-color:var(--pq-border)!important;color:var(--pq-text)!important}
html[data-theme=dark] .screen .player-row .name{color:var(--pq-text)!important}
html[data-theme=dark] .screen .player-row.voted .name{color:#9be1ba!important}
html[data-theme=dark] .screen .player-row .score{color:var(--pq-accent)!important}
html[data-theme=dark] .screen :is(.summary h2,.summary strong){color:#9be1ba!important}

html[data-theme=dark] .duel-header>.back,html[data-theme=dark] .header-return{color:#b5d7ff!important}
html[data-theme=dark] .illustrated-your-team{color:#fff!important;background:#234b78!important;border-color:#a8cfff!important}
html[data-theme=dark] .pq-brand-lines small,html[data-theme=dark] .pq-game-brand small{color:#d7e2f0!important}
html[data-theme=dark] [data-timeline-photo],html[data-theme=dark] [data-current-photo]{border-color:#829bb6!important}
html[data-theme=dark] :is(.brand,.pq-game-brand) img{filter:brightness(1.7) saturate(1.15)}
html[data-theme=dark] button:is(.card-open,.photo-open,.detail-photo-open){background:transparent!important;border-color:transparent!important}
html[data-theme=dark] #app:not([data-page=games]) .card .band{background:transparent!important}
html[data-theme=dark] .detail-collection #detail-band{background:linear-gradient(transparent,#172C48e8)!important}
html[data-theme=dark] :is(.app-header-menu>summary,.game-standard-header summary){background:var(--pq-surface)!important;color:var(--pq-accent)!important;border-color:var(--pq-border)!important}
html[data-theme=dark] .picker-card :is(strong,small){color:#fff!important}html[data-theme=dark] .picker-card{background:var(--pq-surface-alt)}
/* Player icons sit on a white disc so dark emoji stay visible on coloured cards. */
:is(.cps-avatar,.pq-avatar,.tv .avatar,.screen .avatar,.waiting-player>span:first-child){display:inline-grid!important;place-items:center;width:1.45em!important;height:1.45em;border-radius:50%;background:#fff!important;box-shadow:0 1px 3px #0005;line-height:1!important;flex:none;text-align:center}
/* Keep page headers below the iPhone status bar, where Safari blurs what scrolls under it. */
html{padding-top:env(safe-area-inset-top,0px)}html::before{content:'';position:fixed;top:0;left:0;right:0;height:env(safe-area-inset-top,0px);background:var(--pq-bg,#F3F6FB);z-index:2147483000;pointer-events:none}html:has(.cps-v2.pqSolo.shell [data-pq=board]){padding-top:0}
/* Year state shown at the year field: red « Année inconnue » above it when unknown, blue with "?" when to check. */
.year-missing{display:none}html .detail-year-edit[data-year-state=unknown] .year-missing{display:block;width:max-content;margin-bottom:3px;padding:2px 7px;border-radius:6px;background:#fff;color:#c32220;font:700 12px/1.3 system-ui,sans-serif}html .detail-year-edit[data-year-state=review] input{border-color:#1265cf!important;box-shadow:0 0 0 1px #1265cf}html .detail-year-edit[data-year-state=review] .detail-year-target{display:flex;align-items:center;gap:5px}html .detail-year-edit[data-year-state=review] .detail-year-target::after{content:'?';display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#1265cf;color:#fff;font:700 15px/1 system-ui,sans-serif}
html[data-theme=dark] .detail-year-edit[data-year-state=unknown] .year-missing{background:#1c2938;color:#ff8a80}html[data-theme=dark] .detail-year-edit[data-year-state=review] input{border-color:#89bdff!important;box-shadow:0 0 0 1px #89bdff}html[data-theme=dark] .detail-year-edit[data-year-state=review] .detail-year-target::after{background:#89bdff;color:#101923}
html[data-theme=dark] .party-histogram .hist-small-played{fill:#89bdff}html[data-theme=dark] .party-histogram .hist-small-unplayed{fill:#ffa463}
html[data-theme=dark] .cps-v2 .cps-me{color:#fff!important}
html[data-theme=dark] .new-party-banner{background:var(--pq-surface-alt);border-color:var(--pq-border);color:var(--pq-text)}html[data-theme=dark] .new-party-banner span{color:var(--pq-muted)}
html .detail-year-edit[data-year-state=unknown] .detail-year-target{flex-direction:column;align-items:flex-start;padding-top:0}html .detail-year-edit[data-year-state=unknown] .detail-year-target input:not([type=checkbox]):not([type=radio]){width:120px}
/* Timeline years a third larger, inside the same chip height; the newly placed photo's year in white on blue, as in the team duel. */
[data-track-team] [data-photo-id]>span:first-child{font-size:17px!important;line-height:20px!important}.classic-duel [data-track-team] [data-photo-id]>span:first-child{font-size:19px!important;line-height:22px!important}
:is(.cps-v2,.classic-duel) [data-award-slot]>[data-new-photo-year],html .cps-v2.pqSolo.shell [data-track-team]>div>div[data-award-slot][data-photo-id]>span[data-new-photo-year]{background:#186bd0!important;color:#fff!important;border-color:#186bd0!important}
/* Game boards: header 14px further below the iPhone status bar (Safari blurs that zone); the same 6px is taken back above the timeline. */
html:has(#game-root){padding-top:calc(env(safe-area-inset-top,0px) + 14px)}html:has(#game-root .illustrated-duel),html:has(#game-root .classic-duel){padding-top:0}.illustrated-duel{padding-top:calc(env(safe-area-inset-top,0px) + 19px)!important}#game-root>main.classic-duel{padding-top:calc(env(safe-area-inset-top,0px) + 14px)!important}html:has(#game-root .cps-v2.pqSolo.shell [data-pq=board]){padding-top:0}.cps-v2.pqSolo.shell:has([data-pq=board]){padding-top:calc(env(safe-area-inset-top,0px) + 14px)!important}
.cps-v2 [data-pq=timeline].solo_timeline{padding-top:12px!important}html body .illustrated-duel .duel-shell .illustrated-board-cue{padding-top:0!important}html body .illustrated-duel .duel-shell .board_board{row-gap:4px!important}html body .illustrated-duel .duel-shell .illustrated-teams{padding-top:0!important}.classic-duel>.duel-header,.duel-shell.classic-duel .duel-header{margin-bottom:0!important}.classic-duel .board_board{margin-top:5.5px!important}
/* Larger logo, filling the height of the ☰ button without making the header taller. */
#header>.brand{font-size:clamp(22px,7vw,30px)}#header>.brand img{width:40px;height:44px}.pq-game-brand .pq-brand-title{font-size:clamp(21px,6.4vw,25px)!important;line-height:1.1!important}
/* Team cards: tokens on the team colour, "2 jetons", and one step per turn towards the next token. */
html .illustrated-duel .illustrated-team-tools[data-token-layout=steps]{display:inline-grid!important;grid-template-columns:auto;justify-items:start;align-content:center;gap:5px!important;width:auto!important;min-width:0;background:transparent!important;color:#fff!important;padding:0!important;box-shadow:none!important}
html .illustrated-duel [data-token-layout=steps] [data-reserve]{gap:6px}html .illustrated-duel [data-token-layout=steps] [data-reserve] strong{color:#fff!important;font-size:16px;font-weight:900}html .illustrated-duel [data-token-layout=steps] [data-reserve] strong small{font-size:12px;font-weight:700;color:#fff}
html .illustrated-duel [data-token-layout=steps] .illustrated-perseverance{display:block;width:66%}.token-steps{display:flex;gap:3px;width:100%}.token-steps>i{flex:1;height:5px;border-radius:3px;background:#ffffff59;display:block}.token-steps>i[data-on=true]{background:#fff}
html .classic-duel [data-token-layout=steps]{display:inline-grid!important;grid-template-columns:auto;justify-items:start;align-content:center;gap:4px!important}html .classic-duel [data-token-layout=steps] [data-reserve]{display:inline-flex;align-items:center;gap:5px}html .classic-duel [data-token-layout=steps] [data-reserve] strong small{font-size:12px;font-weight:700}html .classic-duel [data-token-layout=steps] .token-steps{width:66%}
html .classic-duel [data-team-heading] .token-steps>i{background:#186bd033}html .classic-duel [data-team-heading] .token-steps>i[data-on=true]{background:#186bd0}html .classic-duel [data-team-heading='1'] .token-steps>i{background:#ce4d1033}html .classic-duel [data-team-heading='1'] .token-steps>i[data-on=true]{background:#ce4d10}
html[data-theme=dark] .action-bar{background:var(--pq-surface);border-color:var(--pq-border)}html[data-theme=dark] .editable-heading .title-input{background:var(--pq-surface)!important;border-color:var(--pq-border)!important}
html .illustrated-duel .duel-shell [data-track-team]>div>div[data-photo-id]>span:first-child,html .cps-v2.pqSolo.shell [data-track-team]>div>div[data-photo-id]>span:first-child{font-size:17px!important;line-height:1.1!important}
:is(.cps-v2,.classic-duel) [data-award-slot][data-award-settled=true]{overflow:visible!important}
/* Timeline years: centred in their chip. */
[data-track-team] [data-photo-id]>span:first-child{display:flex!important;align-items:center;justify-content:center;padding-top:0!important;padding-bottom:0!important;line-height:1!important;min-height:22px}
/* The pending contest token no longer has a place in the team card. */
html .illustrated-duel [data-token-layout=steps] .illustrated-pending-token{display:none!important}
/* Notices: a floating bubble above the bottom bar. */
#notice{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(80px + env(safe-area-inset-bottom,0px));width:max-content;max-width:calc(100% - 32px);margin:0;padding:10px 14px;border-radius:12px;background:#172C48;color:#fff;font-size:14px;line-height:1.35;box-shadow:0 6px 20px #172C4840;z-index:30;white-space:pre-line;pointer-events:none}#notice:empty{display:none}
html[data-theme=dark] #notice{background:#E5EEFC;color:#101923}
/* Menu: destructive action. */
.app-menu-panel .menu-danger{color:#B3261E!important;font-weight:700}
html[data-theme=dark] .app-menu-panel .menu-danger{color:#FF8A80!important}
/* Import: three explained choices. */
.import-choices{display:grid;gap:8px;margin-top:8px;text-align:left}.import-choice{display:grid;grid-template-columns:minmax(0,11em) 1fr;align-items:center;gap:10px}.import-choice>button{width:100%}.import-choice>span{font-size:13px;color:#566781;line-height:1.35}
html[data-theme=dark] .import-choice>span{color:var(--pq-muted)}
/* Party (blue) and collection (orange) tags above the name. */
.type-tag{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;margin:4px 0 6px;padding:3px 10px 3px 5px;border-radius:999px;font-weight:800;font-size:13px;line-height:1.2}.type-tag>img,.type-tag>svg{width:24px;height:24px;object-fit:contain;flex:none}
.type-tag.party{background:#E5EEFC;color:#235DB8;border:1px solid #BFD3F2}.type-tag.collection{background:#FCEDE4;color:#C45114;border:1px solid #F1C7AE}
.new-party-banner.collection{background:#FCEDE4!important;border-color:#F1C7AE!important}.new-party-banner.collection>svg{color:#C45114}
html[data-theme=dark] .type-tag.party{background:#1c2f4d;color:#9cc4ff;border-color:#35507a}html[data-theme=dark] .type-tag.collection{background:#45261a;color:#ffb38a;border-color:#7a4430}html[data-theme=dark] .new-party-banner.collection{background:#45261a!important;border-color:#7a4430!important}
@media(max-width:360px){html body .illustrated-duel .duel-shell .board_board{row-gap:2px!important}}
html[data-theme=dark] .illustrated-hit-layer>button[data-interval-hit]{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
/* Team duel: the photo being placed rests on the timeline in relief, its pin at the top; years stay above it. */
html .illustrated-duel [data-placement-miniature]{top:calc(50% + 4px);width:93px;height:71px;border:4px solid #fff;border-radius:8px;outline:3px solid var(--owner,#186bd0);outline-offset:-1px;box-shadow:0 14px 22px #172C4855,0 3px 6px #172C4830;transform:translateX(-50%) perspective(500px) rotateX(7deg) rotate(-3.5deg) translateY(-6px);z-index:1}
html .illustrated-duel [data-placement-target] [data-choice-kind]{position:relative;z-index:2}
html .illustrated-duel [data-track-team] [data-photo-id]>span:first-child{z-index:30!important}
html .illustrated-marker-flight>.illustrated-marker-miniature{top:calc(50% + 4px);width:93px;height:71px;border:4px solid #fff;border-radius:8px;outline:3px solid var(--owner,#186bd0);outline-offset:-1px;box-shadow:0 18px 26px #172C4866,0 3px 6px #172C4830;transform:translateX(-50%) perspective(500px) rotateX(7deg) rotate(-3.5deg) translateY(-6px);z-index:-1}html .illustrated-marker-flight{isolation:isolate}
/* The chosen pin and its photo sit at the top of the timeline, overlapping the top of the neighbouring photos. */
html .illustrated-duel [data-gap] :is([data-placement-target=true],[data-contest-target=true]){top:-3px!important}
/* Team duel: the photo hangs from the pin by a V-shaped cord (animated by game/illustrated/hanging.ts). */
html .pq-hanging{position:absolute;left:50%;top:50%;width:0;height:0;z-index:1;pointer-events:none}
html .pq-hanging-swing{position:absolute;left:-80px;top:0;width:160px;height:150px;transform-origin:80px 0;will-change:transform;pointer-events:none}
html .pq-hanging-cord{position:absolute;left:0;top:0;overflow:visible;pointer-events:none}html .pq-hanging-cord line{stroke:#5b6b80;stroke-width:1.6;stroke-linecap:round}html .pq-hanging-cord circle{fill:#fff;stroke:#5b6b80;stroke-width:1.5}
html .pq-hanging-swing>[data-placement-miniature]{position:absolute;left:34px;top:40px;width:93px;height:71px;object-fit:cover;border:4px solid #fff;border-radius:8px;outline:3px solid var(--owner,#186bd0);outline-offset:-1px;box-shadow:0 14px 22px #172C4855,0 3px 6px #172C4830;transform:translate(var(--pq-hang-x,0px),var(--pq-hang-y,0px)) perspective(500px) rotateX(7deg) rotate(-3.5deg);transform-origin:50% 0;z-index:auto;pointer-events:auto;touch-action:none;cursor:grab}
html .illustrated-marker-flight .pq-hanging-swing>[data-placement-miniature]{pointer-events:none}
html .illustrated-marker-flight:has(>[data-hanging]){translate:0 -40px}
html[data-theme=dark] .pq-hanging-cord line{stroke:#9fb0c6}html[data-theme=dark] .pq-hanging-cord circle{fill:#1c2938;stroke:#9fb0c6}
@media(prefers-reduced-motion:reduce){html .pq-hanging-swing>[data-placement-miniature]{pointer-events:none}}
html .illustrated-marker-flight[data-choice-kind=placement]{background:transparent!important;box-shadow:none!important;border:0!important;color:var(--owner,#186bd0)!important}
/* Reveal: a wrong interval keeps « ✗ Pas ici » under its pin; the winning interval's hanging photo has landed in the timeline. */
html .pq-hang-tag{position:absolute;left:39px;top:42px;width:82px;height:34px;display:grid;place-items:center;border-radius:8px;background:#fff;border:2px solid #c32220;color:#c32220;font:800 14px/1 system-ui,sans-serif;white-space:nowrap;box-shadow:0 6px 12px #172C4830;transform:rotate(-3.5deg);transform-origin:50% 0}
html [data-hanging][data-outcome=false]:not([data-awarding]) [data-placement-miniature]{visibility:hidden}
html [data-hanging][data-outcome=true]:not([data-awarding]) .pq-hanging-swing{visibility:hidden}
html .pq-reveal-flight{position:fixed;z-index:1000;border:4px solid #fff;border-radius:8px;background:#fff;box-shadow:0 14px 22px #172C4855;pointer-events:none;transform-origin:50% 50%}
html .pq-reveal-flight>img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px}
html .pq-travel-pin{position:absolute;left:50%;top:-14px;transform:translateX(-50%);display:flex;align-items:center;gap:4px;color:#8b9db5;white-space:nowrap}
html .pq-travel-pin svg{width:24px;height:28px;filter:drop-shadow(0 2px 2px #172C4840)}
html .pq-travel-pin b{background:#8b9db5;color:#fff;border-radius:999px;padding:2px 9px;font:800 13px/18px system-ui,sans-serif}
html[data-theme=dark] .pq-hang-tag{background:#1c2938;color:#ff8a80;border-color:#ff8a80}
/* Team duel: every marker (pin, token, dashed target) sits at the top, at the junction of the photos, at every step. */
html .illustrated-duel .duel-shell [data-gap]>button{top:-3px!important}
/* Once a marker is set, its dashed target is hidden (it reappeared under the markers during the reveal). */
html .illustrated-duel [data-gap] button:is([data-placement-target=true],[data-contest-target=true]):not([data-token-flying])>[data-placement-placeholder]{display:none!important}
/* The reveal copies of the markers stay at their height: the 40-point lift is only for a marker under the finger. */
html .pq-award-marker-overlay.illustrated-marker-flight:has(>[data-hanging]){translate:none}
/* Room after the last photo (and a little before the first), so a hanging photo is never cut by the edge of the screen. */
html .illustrated-duel .duel-shell [data-track-team]>div:first-child::after{content:'';flex:none;width:max(20px,calc(50vw - 90px));align-self:stretch}
html .illustrated-duel .duel-shell [data-track-team]>div:first-child::before{content:'';flex:none;width:36px;align-self:stretch}
/* Team duel, lot B. A chosen marker is hollow until it is confirmed, then solid: no check mark before the reveal. */
html .illustrated-duel [data-choice-kind=placement][data-choice-state=chosen] .illustrated-pin path{fill:#fff;stroke:var(--owner);stroke-width:3}
html .illustrated-duel [data-choice-kind=placement][data-choice-state=chosen] .illustrated-pin circle{fill:var(--owner)}
/* The winning marker has moved onto the revealed photo: it no longer shows at the junction. */
html .illustrated-duel [data-gap] button[data-moved-to-award=true]>*{visibility:hidden!important}
/* The revealed photo hangs from the winning marker, centred above it, until the next photo. */
html .illustrated-duel [data-award-slot][data-award-settled=true]{overflow:visible;position:relative;z-index:8}
html .illustrated-duel [data-award-slot]:has(>.pq-hung) [data-award-target]{visibility:hidden}
html .pq-hung{position:absolute;left:50%;top:-3px;width:44px;height:44px;margin-left:-22px;display:grid;place-items:center;z-index:6;pointer-events:none;--owner:#1f8a4c}
html .pq-hung>[data-choice-kind]{position:relative;z-index:2;background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html .pq-hung>[data-choice-kind=contest]{background:var(--owner)!important;color:#fff!important;border:2px solid #fff!important;border-radius:50%}
html .pq-hung-pin{width:40px;height:40px;display:grid;place-items:center;color:#1f8a4c}html .pq-hung-pin>svg{width:36px;height:36px;filter:drop-shadow(0 2px 2px #172C4840)}
html .pq-hung>.pq-hanging{z-index:1}
html .pq-hung .pq-hanging-swing>[data-placement-miniature]{top:14px;height:calc(var(--ill-thumb,120px) - 44px);width:93px;object-fit:cover;outline-color:var(--owner);pointer-events:auto}
html .pq-hung-bubble{position:absolute;left:34px;top:-3px;z-index:3;max-width:min(220px,55vw);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--owner);color:#fff;border:2px solid #fff;border-radius:999px;padding:1px 9px;font:800 13px/18px system-ui,sans-serif;box-shadow:0 2px 5px #172C4833}
html .pq-hung>[data-choice-kind=placement]{color:var(--owner)!important}html .pq-hung>[data-choice-kind=placement] .illustrated-pin{width:36px;height:36px;filter:drop-shadow(0 2px 2px #172C4840)}
/* WebKit counts a width, not a flex basis, in the length of the timeline: the spaces above use a width. The marker is drawn in front of its hanging photo. */
html .illustrated-duel [data-gap] button>[data-choice-kind]{z-index:2}
/* Demand 18: the revealed photo keeps only the room of its hanging photo. */
html .illustrated-duel [data-award-slot][data-award-settled=true]:has(>.pq-hung){width:var(--pq-hung-w,auto);min-width:0}
/* Demand 19: the photo settling into its place at the next photo; its coloured frame fades. */
html .pq-settle{position:fixed;z-index:1100;pointer-events:none;border:4px solid #fff;border-radius:8px;outline:3px solid var(--owner,#1f8a4c);outline-offset:-1px;background:#fff;box-shadow:0 8px 16px #172C4833;box-sizing:border-box;overflow:hidden;transform-origin:50% 50%}
html .pq-settle>img{display:block;width:100%;height:100%;object-fit:cover}
/* Demand 21: the green pin leading the photo when nobody was right. */
html .pq-green-lead{width:44px;height:44px;display:grid;place-items:center;pointer-events:none}
/* While the revealed photo settles, its coloured highlight is not shown (it would appear for an instant). */
html [data-award-slot][data-settling] .board_awarded:after{display:none}
html .illustrated-duel .duel-shell [data-award-slot][data-settling] [data-timeline-photo]::before{display:none!important}
/* Demand 23: no separate layer for the opening space (WebKit could briefly stop painting the next photo while it moves). */
html .illustrated-duel [data-award-slot]{will-change:auto}
/* Demand 26: larger text in the action zone (buttons unchanged). */
html .illustrated-duel .illustrated-context-question h1{font-size:18px!important;line-height:1.15!important}
@media(max-width:350px){html .illustrated-duel .illustrated-context-question h1{font-size:16px!important}}
/* Demand 27: once in place, the revealed photo hangs straight. */
html .pq-hung .pq-hanging-swing>[data-placement-miniature]{transform:translate(var(--pq-hang-x,0px),var(--pq-hang-y,0px))}
/* Demand 28: in a moving copy the cord stays behind its marker. */
html .illustrated-marker-flight{isolation:isolate}html .illustrated-marker-flight>.pq-hanging{z-index:-1}
/* Demand 30: the space after the revealed photo opens with it, not at once. */
html .illustrated-duel .duel-shell [data-award-slot]{margin-right:calc(10px * var(--award-open,1))!important}
/* Demand 32: balanced lines in the action zone (no word or sign left alone). */
html .illustrated-duel .illustrated-context-question h1,html .illustrated-duel .illustrated-message-line,html .illustrated-duel .illustrated-message-team{text-wrap:balance}
/* Demand 33: a cord visible on any background: dark line with a light halo. */
html .pq-hanging-cord{filter:drop-shadow(0 0 1px rgba(255,255,255,.95)) drop-shadow(0 0 .6px rgba(255,255,255,.9))}
html .pq-hanging-cord line{stroke:#2f3d52;stroke-width:2}html .pq-hanging-cord circle{fill:#fff;stroke:#2f3d52;stroke-width:1.6}
html[data-theme=dark] .pq-hanging-cord{filter:drop-shadow(0 0 1px rgba(0,0,0,.9)) drop-shadow(0 0 .6px rgba(0,0,0,.8))}
html[data-theme=dark] .pq-hanging-cord line{stroke:#d4deeb}html[data-theme=dark] .pq-hanging-cord circle{fill:#1c2938;stroke:#d4deeb}
/* Demand 35: the Confirm buttons show the confirmed marker itself. */
html .illustrated-duel .duel-shell [data-action-team] button [data-confirmation-source] [data-choice-kind=placement] .illustrated-pin{color:var(--owner)!important;filter:drop-shadow(0 1px 1px #0003)}
html .illustrated-duel .duel-shell [data-action-team] button [data-confirmation-source] [data-choice-kind=contest]{background:var(--owner)!important;color:#fff!important;border:2px solid #fff!important;border-radius:50%!important}
/* Demand 38: a marker being dragged still lets two fingers zoom the page; the hanging photo too. */
html .illustrated-duel [data-gap]>button[data-draggable=true]{touch-action:pinch-zoom!important}
html .pq-hanging-swing>[data-placement-miniature]{touch-action:pan-x pinch-zoom}
html [data-gap]>button:has(>[data-choice-state=chosen]) .pq-hanging-swing>[data-placement-miniature]{touch-action:pinch-zoom}
/* Demand 40: the photo of the round, large, with its year. */
html .illustrated-duel .illustrated-result-photo{position:relative;flex:1 1 0!important;min-height:120px;width:100%;margin:4px 0 0;display:flex;align-items:center;justify-content:center}
html .illustrated-duel .illustrated-result-photo>img{max-width:100%;max-height:100%;min-height:0;object-fit:contain;border:5px solid #fff;border-radius:10px;box-shadow:0 6px 16px #172C4833}
html .illustrated-duel .illustrated-result-photo>figcaption{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);background:var(--winner-color,#172c48);color:#fff;border:2px solid #fff;border-radius:10px;padding:2px 14px;font:900 28px/1.2 Nunito,sans-serif;box-shadow:0 3px 8px #172C4840}
/* Demand 41: right or wrong answer in the team cards after the reveal. */
html .illustrated-duel .illustrated-choice-mark{display:inline-grid;place-items:center;width:20px;height:20px;margin-right:5px;border-radius:50%;background:#fff;font:900 13px/1 system-ui,sans-serif;vertical-align:-2px}
html .illustrated-duel .illustrated-choice-mark[data-right=true]{color:#1f8a4c}html .illustrated-duel .illustrated-choice-mark[data-right=false]{color:#c32220}
/* Demand 43: lighter result panel; right/wrong marks aligned with the choice; the winning score grows once. */
html .illustrated-duel .illustrated-result-winner{margin:2px 0 0;flex:none!important;font:900 15px/1.25 Nunito,sans-serif;color:var(--winner-color,#566781);text-align:center;text-wrap:balance}
html .illustrated-duel .illustrated-team-interval{display:flex!important;align-items:center;justify-content:center;gap:4px}
html .illustrated-duel .illustrated-choice-mark{width:15px;height:15px;margin:0;font-size:10px;vertical-align:middle;flex:none}
html .illustrated-duel [data-round-winner=true] .illustrated-team-score b{display:inline-block;animation:pq-score-win .9s ease-out 1}
@keyframes pq-score-win{0%{transform:scale(1)}35%{transform:scale(1.35)}100%{transform:scale(1)}}
@media(prefers-reduced-motion:reduce){html .illustrated-duel [data-round-winner=true] .illustrated-team-score b{animation:none}}
/* Demand 42: landscape (iPhone and iPad), layout D. Slim header; full-width timeline; below it the photo on the left,
   the team cards above the action zone on the right. */
@media(orientation:landscape){
 html .illustrated-duel .duel-shell>.duel-header{min-height:34px!important}
 html .illustrated-duel .duel-header .brand{font-size:22px}
 html .illustrated-duel .duel-shell [data-duel-board]{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)!important;grid-template-rows:minmax(0,1fr) auto auto!important;height:calc(100svh - 58px)!important;min-height:0!important;gap:6px 10px!important;--ill-thumb:clamp(72px,calc(100svh - 290px),300px)}
 html .illustrated-duel .duel-shell [data-duel-board] section[data-team]{grid-column:1/-1!important;grid-row:1!important;min-height:0}
 html .illustrated-duel .duel-shell [data-duel-board]>section:has([data-current-photo]){grid-column:1!important;grid-row:2/4!important;width:100%!important;min-height:0;max-height:none}
 html .illustrated-duel .illustrated-teams{grid-column:2!important;grid-row:2!important;max-width:none!important;width:100%!important;height:64px!important;justify-self:stretch!important}
 html .illustrated-duel .illustrated-board-cue{grid-column:2!important;grid-row:3!important}
 html .illustrated-duel[data-show-other='true'] .duel-shell [data-duel-board]{grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto auto!important;--ill-thumb:clamp(60px,calc((100svh - 330px) / 2),200px)}
 html .illustrated-duel[data-show-other='true'] .duel-shell[data-focused-team='0'] section[data-team='1'],html .illustrated-duel[data-show-other='true'] .duel-shell[data-focused-team='1'] section[data-team='0']{grid-column:1/-1!important;grid-row:2!important}
 html .illustrated-duel[data-show-other='true'] .duel-shell [data-duel-board]>section:has([data-current-photo]){grid-row:3/5!important}
 html .illustrated-duel[data-show-other='true'] .illustrated-teams{grid-row:3!important}html .illustrated-duel[data-show-other='true'] .illustrated-board-cue{grid-row:4!important}
}
@media(orientation:landscape){
 /* The timeline fills its row: its photos take the row's height. */
 html .illustrated-duel .duel-shell [data-duel-board] section[data-team]{container-type:size}
 html .illustrated-duel .duel-shell [data-duel-board] section[data-team] [data-track-team]{--ill-thumb:clamp(56px,calc(100cqh - 66px),420px);--thumb-height:var(--ill-thumb)}
 /* Compact team cards. */
 html .illustrated-duel .illustrated-teams{height:auto!important;padding-top:6px}
 html .illustrated-duel .illustrated-team-inner{grid-template-rows:22px 22px auto!important;row-gap:1px}
 html .illustrated-duel .illustrated-team-name h2{font-size:13px!important}
 html .illustrated-duel .illustrated-team-interval{font-size:12px!important;padding:0!important}
}
@media(orientation:landscape) and (min-height:600px){
 html .illustrated-duel .duel-shell [data-duel-board]{grid-template-rows:minmax(0,1.25fr) auto minmax(0,1fr)!important}
 html .illustrated-duel .illustrated-board-cue{align-self:start}
}
/* iPhone on its side: every point of height goes to the timeline. */
@media(orientation:landscape) and (max-height:500px){
 html:has(#game-root){padding-top:calc(env(safe-area-inset-top,0px) + 4px)!important}
 html .illustrated-duel .pq-game-brand small{display:none}
 html .illustrated-duel .pq-game-brand img{height:24px!important;width:auto!important}
 html .illustrated-duel .duel-shell>.duel-header{min-height:30px!important;height:30px}
 html .illustrated-duel .duel-shell [data-duel-board]{height:calc(100svh - 66px)!important;gap:5px 10px!important}
 html .illustrated-duel .illustrated-teams [data-reserve]{gap:5px!important}
 html .illustrated-duel .illustrated-teams{padding-top:4px}
 html .illustrated-duel .illustrated-team-inner{grid-template-rows:18px 18px 16px!important}
 html .illustrated-duel .illustrated-team-tools{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;height:18px!important;min-height:0!important;gap:6px!important;overflow:hidden}
 html .illustrated-duel .illustrated-team-inner{height:auto!important}
 html .illustrated-duel .illustrated-teams{height:66px!important}
 html .illustrated-duel .duel-shell .illustrated-teams>[data-team-heading]{height:64px!important}
 html .illustrated-duel .illustrated-teams [data-reserve]>span{width:18px!important;min-width:18px!important;height:18px!important}html .illustrated-duel .illustrated-teams [data-reserve] [data-choice-kind]{width:17px!important;height:17px!important}html .illustrated-duel .illustrated-teams [data-reserve] [data-choice-kind]>svg{width:13px!important;height:13px!important}
 html .illustrated-duel .illustrated-team-score b{font-size:26px!important;line-height:1!important}
 html .illustrated-duel .illustrated-team-name h2{font-size:12px!important}
 html .illustrated-duel .illustrated-team-interval{font-size:11px!important}
 html .illustrated-duel .illustrated-board-cue>[data-contextual-action]{min-height:0!important;padding:6px 8px!important}
 html .illustrated-duel .illustrated-context-question h1{font-size:15px!important}
 html .illustrated-duel .duel-shell [data-contextual-action] button{min-height:36px!important;height:36px!important}
}
@media(orientation:landscape){
 /* The photo area takes the room the cards and the action zone leave, never more (it must not stretch their rows). */
 html .illustrated-duel .duel-shell [data-duel-board]>section:has([data-current-photo]){contain:size}
}
@media(orientation:landscape) and (min-height:501px){html .illustrated-duel .duel-shell .illustrated-teams>[data-team-heading]{height:96px!important}html .illustrated-duel .illustrated-teams{height:auto!important}}
/* Demand 47: a larger grip around a marker that can be dragged; its cord and hanging photo grab it too. */
html .illustrated-duel .duel-shell [data-gap]>button[data-draggable=true]{width:56px!important;height:56px!important;top:-9px!important}
html .illustrated-duel [data-gap]>button[data-draggable=true] .pq-hanging-cord{pointer-events:auto}
html .illustrated-duel [data-gap]>button:not([data-draggable=true]) .pq-hanging-swing>[data-placement-miniature]{pointer-events:none}
/* Demand 48: the spot a marker leaves shows its empty marker again while the marker travels. */
html .illustrated-duel [data-gap] button[data-dragging-from][data-dragging-from]>[data-placement-placeholder]{display:grid!important}
/* Demand 56: « Fond sombre » — on the team-duel board only, a night-blue page behind light framed elements. Elsewhere it
   looks like the light appearance. Text set directly on the page turns light. */
html[data-appearance=night]:has(.illustrated-duel),html[data-appearance=night] body:has(.illustrated-duel),html[data-appearance=night] .illustrated-duel{background:#0d1b33!important}
html[data-appearance=night] .illustrated-duel .duel-header .back,html[data-appearance=night] .illustrated-duel .see-marker{color:#cfe0ff!important}
html[data-appearance=night] .illustrated-duel .pq-game-brand small{color:#b8c7de!important}
html[data-appearance=night] .illustrated-duel .pq-brand-title>span:last-child{color:#7fb2ff!important}
html[data-appearance=night] .illustrated-duel [data-track-team]>div:first-child{border-bottom-color:#5a7396!important}
html[data-appearance=night] .illustrated-duel .pq-hanging-cord line{stroke:#2f3d52}
/* Demand 58: the result is laid out hidden while the photo travels, then appears at once with a quick fade. */
html .illustrated-duel .festive-result[data-preparing=true]{visibility:hidden!important}
html .illustrated-duel .festive-result[data-ready=true]{animation:pq-result-in .25s ease-out both}
@keyframes pq-result-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){html .illustrated-duel .festive-result[data-ready=true]{animation:none}}
/* Demands 59 and 60: in « Fond sombre » the large photo always sits on night blue (thin white frame kept); a photo being
   dragged leaves a dark veil behind it. */
html[data-appearance=night] .illustrated-duel [data-current-photo]{background:#0d1b33!important}
html[data-appearance=night] .illustrated-duel .duel-shell .festive-result{background:#0d1b33!important;border-color:#2a4166!important;box-shadow:none!important}
html[data-appearance=night] .illustrated-duel .illustrated-result-winner{color:#e2ebf7!important}
html[data-appearance=night] .illustrated-duel .illustrated-result-winner[data-winner='0']{color:#8fbaff!important}html[data-appearance=night] .illustrated-duel .illustrated-result-winner[data-winner='1']{color:#ffad7a!important}
html[data-appearance=night] .illustrated-duel :is(.round-photo-loading,.result-bonus small,.result-ended){color:#e2ebf7!important}
/* Demand 61: a slightly deeper orange for the Explorers' action zone, in every appearance. */
html .illustrated-duel .duel-shell [data-contextual-action][data-action-team='1']:not([data-neutral-action=true]){background:#fad6ba!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-contextual-action][data-action-team='1']:not([data-neutral-action=true]){background:color-mix(in srgb,var(--pq-surface) 78%,#ce4d10)!important}
/* Demand 62: progress phrases only show when a wait really lasts (about two seconds). */
html .illustrated-duel .pq-late-status,html .illustrated-duel .round-photo-loading{animation:pq-late-status .2s 2s both}
@keyframes pq-late-status{from{opacity:0}to{opacity:1}}
/* Demand 63: the ☰ button in « Fond sombre ». */
html[data-appearance=night] .illustrated-duel .duel-header summary{background:#1a2d4d!important;border-color:#3a5683!important;box-shadow:none!important;color:#e2ebf7!important}
html[data-appearance=night] .illustrated-duel .duel-header summary svg{color:#e2ebf7!important;stroke:currentColor}
/* Demand 64: a slightly deeper blue for the Travellers' action zone, in every appearance. */
html .illustrated-duel .duel-shell [data-contextual-action][data-action-team='0']:not([data-neutral-action=true]){background:#d3e5fb!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-contextual-action][data-action-team='0']:not([data-neutral-action=true]){background:color-mix(in srgb,var(--pq-surface) 78%,#186bd0)!important}
/* Demand 66: the shared (neutral) action zone is light grey. */
html .illustrated-duel .duel-shell [data-contextual-action][data-neutral-action=true]{background:#e3e8ef!important}
html[data-theme=dark] .illustrated-duel .duel-shell [data-contextual-action][data-neutral-action=true]{background:#273345!important}
/* Demand 65: the frame of the photo to place comes and goes with the photo (no empty frame while it loads); no thin outline
   around the result panel in « Fond sombre ». */
html .illustrated-duel [data-current-photo]{transition:background-color .25s,border-color .25s,box-shadow .25s,opacity .25s}
html .illustrated-duel [data-current-photo][data-photo-waiting=true]{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
html .illustrated-duel [data-current-photo][data-photo-waiting=true]>:not(.round-photo-loading){visibility:hidden}
html[data-appearance=night] .illustrated-duel .duel-shell .festive-result{border:0!important}
/* Demand 68: a timeline photo appears whole, with a short fade, over a calm placeholder. */
html .illustrated-duel [data-timeline-photo]>img{opacity:0;transition:opacity .3s}
html .illustrated-duel [data-timeline-photo][data-photo-loaded=true]>img{opacity:1}
html[data-appearance=night] .illustrated-duel [data-timeline-photo]:not([data-photo-loaded=true]){background:#22344f}
/* Demands 70 and 78: loading shows three small pulsing dots after two seconds, and takes no room before. */
html .illustrated-duel .pq-dots{display:flex;gap:6px;align-items:center;justify-content:center}
html .illustrated-duel .pq-dots>i{width:8px;height:8px;border-radius:50%;background:#8b9db5;animation:pq-dot 1.2s infinite ease-in-out}
html .illustrated-duel .pq-dots>i:nth-child(2){animation-delay:.2s}html .illustrated-duel .pq-dots>i:nth-child(3){animation-delay:.4s}
@keyframes pq-dot{0%,100%{opacity:.25}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){html .illustrated-duel .pq-dots>i{animation:none;opacity:.6}}
html .illustrated-duel .pq-late-status{position:absolute;right:14px;top:50%;translate:0 -50%}
html .illustrated-duel .round-photo-loading.pq-dots{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;background:transparent!important;box-shadow:none!important}
/* Demand 72: a dragged marker stays under the finger (no 40-point lift). */
html .illustrated-marker-flight:has(>[data-hanging]){translate:none}
/* Demand 73: no translucent hover square around a marker. */
html .illustrated-duel .duel-shell [data-gap]>button:hover{background:transparent!important}
/* Demand 75: lighter action zone with two buttons; the question never runs under the team label. */
html .illustrated-duel .illustrated-context-question{padding-top:6px}
html .illustrated-duel .illustrated-context-question h1{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
html .illustrated-duel .pq-period{white-space:nowrap}
html .illustrated-duel .duel-shell [data-action-team] button.pq-cancel-round{width:40px!important;min-width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;justify-content:center}
/* Demand 79: a slightly larger team name above the action zone. */
html .illustrated-duel .illustrated-action-medallion{height:24px!important;top:-12px!important;font-size:13px!important}
html .illustrated-duel .illustrated-action-medallion strong{font-size:13px!important}
/* Demand 82: larger token count; a golden perseverance ring around the token icon; « 0 jeton » paler, icon dimmed. */
html .illustrated-duel .illustrated-team-tools .token-steps,html .illustrated-duel .illustrated-team-tools .illustrated-perseverance{display:none!important}
html .illustrated-duel [data-reserve]>span{position:relative;overflow:visible}
html .illustrated-duel .pq-token-ring{position:absolute;left:-6px;top:-6px;width:calc(100% + 12px);height:calc(100% + 12px);pointer-events:none;overflow:visible}
html .illustrated-duel .pq-token-ring circle{fill:none;stroke-width:4}
html .illustrated-duel .pq-ring-track{stroke:#ffffff45}html .illustrated-duel .pq-ring-fill{stroke:#ffd25a;stroke-linecap:round}
html .illustrated-duel [data-reserve] strong{font-size:22px!important;line-height:1}html .illustrated-duel [data-reserve] strong small{font-size:13px!important}
html .illustrated-duel [data-reserve][data-empty=true] strong{opacity:.6}
html .illustrated-duel [data-reserve][data-empty=true] [data-choice-kind]{filter:grayscale(1);opacity:.5}
/* Demand 83: a round exit button on the left; the logo centred on the screen width. */
html .illustrated-duel .duel-header a.pq-exit{display:grid!important;place-items:center;width:38px;height:38px;min-height:38px!important;padding:0!important;border:1px solid var(--line,#cfdaeb);border-radius:12px;background:#fff;color:#1d5fc0;flex:none}
html[data-appearance=night] .illustrated-duel .duel-header a.pq-exit{background:#1a2d4d;border-color:#3a5683;color:#e2ebf7!important}
html .illustrated-duel .duel-shell>.duel-header{position:relative}
html .illustrated-duel .duel-header .pq-game-brand{position:absolute;left:50%;top:50%;translate:-50% -50%;margin:0!important}
/* Demand 85: a deeper blue action zone. */
html .illustrated-duel .duel-shell [data-contextual-action][data-action-team='0']:not([data-neutral-action=true]){background:#c4dbf8!important}
/* Demand 87: on the board, the page never bounces; a finger on the photo to place only grabs it. */
html:has(.illustrated-duel),html:has(.illustrated-duel) body{overscroll-behavior:none}
html .illustrated-duel [data-current-photo][data-photo-draggable=true]{touch-action:pinch-zoom}
/* Demand 200: in dark mode, every modal window stands out from the screen. */
[data-theme=dark] dialog[open],[data-theme=dark] [role=dialog][aria-modal=true]{background:#2a3c52!important;color:var(--pq-text);border:1px solid rgba(255,255,255,.32)!important;box-shadow:0 20px 60px rgba(0,0,0,.75),0 0 0 1px rgba(0,0,0,.4)!important}
[data-theme=dark] dialog::backdrop{background:rgba(0,0,0,.72)!important}
/* Demand 345: « ✗ Pas ici » on a losing interval with no pin on this device. */
html .pq-hang-tag.pq-gap-tag{left:50%;top:10px;transform:translateX(-50%);z-index:40}
html .pq-cps-pin svg{display:block;width:100%;height:100%;filter:drop-shadow(0 3px 4px #0006)}
/* Demand 347: the pin pulls the photo with a string; the photo passes under « Les votes ». */
html .pq-cps-pin{position:fixed;z-index:1003;width:40px;height:40px;color:#1f8a4c;pointer-events:none}
html .pq-cps-cord{position:fixed;left:0;top:0;width:100vw;height:100vh;z-index:28;pointer-events:none;overflow:visible}
html .pq-cps-cord line{stroke:#d9e1ec;stroke-width:1.6;stroke-linecap:round}
html .pq-reveal-flight.pq-cps-pulled{z-index:29}
/* Demand 348: the string of the pulled photo replaces the board's thin strings for that photo. */
html [data-pq-own-cord] .pq-hung .pq-hanging-cord line{stroke:#e6ecf4!important;stroke-width:2!important}
html .pq-cps-cord line{stroke:#e6ecf4;stroke-width:2}
/* Demand 399: main card button keeps its filled look in dark mode (Mes parties). */
html[data-theme=dark] #app .party-list-actions button.game-action{background:#1764bf!important;border:1px solid #418be7!important;color:#fff!important}
