@font-face{font-family:Noel;src:url('/assets/fonts/BerkshireSwash-Regular.ttf');font-display:swap}*{box-sizing:border-box}body{margin:0;color:#fff7e8;background:linear-gradient(#061c3970,#061c39dd),url('https://projetanodos.ca/cartes-numeriques/noel-bas-saint-laurent/assets/noel-ciel.webp') center top/100% auto no-repeat #061c39;font:16px/1.45 system-ui,sans-serif}.noel-wrap{width:min(1120px,calc(100% - 32px));margin:auto;padding-bottom:30px}header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 0}a{color:#fff0c7}button,select,input{font:inherit}button,.home,select{min-height:42px;padding:9px 14px;border:1px solid #ebd29b;border-radius:12px;background:#17334b;color:#fff6dc;cursor:pointer}.home{font-size:13px;text-decoration:none}.noel-wrap h1{font:40px/1.15 Noel,Georgia,serif;text-align:center;color:#ffe7ad;margin:16px 0 22px}.album-tools{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.family-nav select{max-width:100%;font-family:Noel,Georgia,serif;font-size:21px}.xp-pot{width:fit-content;margin:20px auto 10px;padding:10px 24px;background:#173f38;border:1px solid #b4e5cf;border-radius:40px;box-shadow:0 0 18px #70ffc133}.xp-pot strong{font-size:24px}.xp-pot>span{color:#fff3a0;margin-right:8px}#notice{min-height:24px;text-align:center;font-size:14px;color:#ffdfa9}#notice a{text-decoration:underline}.collection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px 22px;margin:20px auto}.collection.single{max-width:790px;grid-template-columns:repeat(2,minmax(0,1fr))}.xp-card{min-width:0;padding:11px;border-radius:17px;background:#082037c9;border:1px solid #57728c55}.art{display:block;position:relative;width:100%;padding:5px;border:2px solid var(--colour);border-radius:14px;background:#071321;box-shadow:0 0 9px var(--colour),inset 0 0 6px var(--colour);isolation:isolate;min-height:0}.art::before{content:'';position:absolute;pointer-events:none;inset:-2px;border-radius:14px;border-top:2px solid #f4fdffbb;border-left:1px solid #edfaff77;box-shadow:0 -2px 3px #f1fcff66}.art::after{content:'✦';position:absolute;pointer-events:none;top:-10px;left:17%;color:#fff;font-size:19px;line-height:1;text-shadow:0 0 4px #fff,0 0 9px var(--colour);animation:snow-spark 3.8s ease-in-out infinite}.art .spark{position:absolute;right:-7px;bottom:25%;font-size:15px;color:#fff;z-index:1;pointer-events:none;text-shadow:0 0 8px var(--colour);animation:snow-spark 4.7s ease-in-out infinite reverse}.art img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain;border-radius:8px;filter:grayscale(var(--grey)) brightness(var(--light));transition:filter .8s}.xp-card progress{display:block;appearance:none;width:100%;height:9px;border:0;border-radius:10px;overflow:hidden;background:#08131e;margin:17px 0 8px;accent-color:var(--colour)}progress::-webkit-progress-bar{background:#08131e}progress::-webkit-progress-value{background:var(--colour);box-shadow:0 0 6px var(--colour)}progress::-moz-progress-bar{background:var(--colour)}.xp-line{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.xp-line strong{color:var(--colour)}.assign{display:block;width:100%;min-height:36px;padding:6px 8px;font-size:12px;margin-top:10px;background:#ffe3ac;color:#36200c;font-weight:750;border-color:#ffe3ac}.assign:disabled{background:#273748;color:#b8c4d0;border-color:#66768a;cursor:not-allowed}.bottom-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:25px}.bottom-actions button{background:#a3233c}.guest-note{text-align:center;font-size:13px;max-width:650px;margin:14px auto;color:#e2d9ca}dialog{background:#0c233b;color:#fff2d4;border:1px solid #c5ab72;border-radius:18px;padding:20px;max-width:min(92vw,490px);max-height:94dvh;overflow:auto}dialog::backdrop{background:#020b18dd;backdrop-filter:blur(5px)}dialog h2{font:28px Noel,Georgia,serif}dialog .close{display:block;margin-left:auto;margin-bottom:12px}dialog label{display:block;margin:14px 0}dialog input{display:block;width:100%;padding:11px;margin-top:6px;border-radius:8px;border:1px solid #c9d6e3;background:#071627;color:#fff}dialog button[type=submit]{background:#ffe3ac;color:#361909;font-weight:700}dialog p[role=alert]{color:#ffb4ad}#auth-switch{margin:16px 0;display:block}#auth>a{font-size:13px}#zoom img{display:block;width:100%;max-height:77dvh;object-fit:contain;filter:grayscale(var(--grey)) brightness(var(--light))}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #fff;outline-offset:4px}@keyframes snow-spark{0%,100%{opacity:.35;transform:scale(.7)}50%{opacity:1;transform:scale(1.1)}}@media(max-width:700px){.collection{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.collection.single{max-width:480px}.xp-card{padding:8px}.noel-wrap h1{font-size:32px}.home{font-size:11px;max-width:210px}.family-nav select{font-size:18px}header{gap:10px}.xp-line{font-size:11px}.album-tools button{font-size:12px}.assign{font-size:11px}.art{padding:3px}.noel-wrap{width:calc(100% - 24px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Character names replace colour labels; the frame still identifies the tier. */
.xp-line .character-name{min-width:0;overflow-wrap:anywhere;line-height:1.2}

/* Berkshire Swash, already hosted for this Christmas universe. */
.noel-wrap .xp-line .character-name{font-family:Noel,Georgia,serif;font-weight:400;font-size:20px;line-height:1.15;letter-spacing:.01em;text-shadow:0 1px 2px #001020,0 0 5px #ffffff12}
@media(max-width:700px){.noel-wrap .collection:not(.single) .xp-line .character-name{font-size:14px;line-height:1.1;letter-spacing:0}.noel-wrap .collection.single .xp-line .character-name{font-size:19px}}
@media(max-width:360px){.noel-wrap .collection:not(.single) .xp-line .character-name{font-size:12px;line-height:1.05}}

/* Compensate the wider black artwork margins on elves and gingerbread only. */
.card-art-viewport{display:block;width:100%;height:100%;overflow:hidden;border-radius:8px}
.card-art-viewport img{transform:scale(var(--art-scale,1));transform-origin:50% 48%}

@font-face{font-family:Dragon;src:url('/assets/fonts/DragonMetal.ttf');font-display:swap}body{background:linear-gradient(#10172255,#101722ee),var(--decor) center top/cover fixed #141925;--universe-type:Dragon,Georgia,serif}body[data-universe=fees]{--universe-type:Noel,Georgia,serif;background-color:#172732}.noel-wrap h1,.family-nav select,.noel-wrap .xp-line .character-name,dialog h2{font-family:var(--universe-type)}.xp-card{background:#121a2588;border-color:#d6af6a44}.art::before{border-top-color:var(--colour);box-shadow:none}.home{font-family:var(--universe-type);text-align:center}.xp-line{flex-wrap:wrap;justify-content:center;text-align:center}.xp-line strong{width:100%}.xp-line span{font-variant-numeric:tabular-nums}.universe-reserve .reserve-caption{display:none}.universe-reserve{background:transparent}.noel-wrap .collection:not(.single) .art img{max-height:200px}#collection .xp-card .assign{min-height:28px;font-size:11px}.collection{gap:14px}.collection.single{max-width:620px}@media(max-width:700px){.noel-wrap .collection:not(.single) .art img{max-height:125px}.collection{gap:12px}.xp-card{padding:5px}.xp-card progress{margin:9px 0 5px}.noel-wrap h1{font-size:28px}.noel-wrap .collection:not(.single) .xp-line .character-name{font-size:16px}.collection.single .art img{max-height:240px}}
/* The dragon race sits above the character name in the complete collection. */
body[data-universe="dragons"] .collection:not(.single) .character-caption {display:block;width:100%;min-width:0}
body[data-universe="dragons"] .character-race {display:block;margin:0 0 3px;color:#ffe0a0;font:400 15px/1.15 var(--universe-type);text-wrap:balance;overflow-wrap:normal}
body[data-universe="dragons"] .character-caption .character-name {display:block}
@media(max-width:700px){body[data-universe="dragons"] .character-race {font-size:12px}}

/* Fairy cards: character, progress, centred XP, action, then family rank. */
body[data-universe=fees] #collection .xp-card{display:flex;flex-direction:column;align-items:stretch}
body[data-universe=fees] #collection .fee-character-name{display:block;width:100%;margin:10px 0 0;color:var(--colour);text-align:center;font:400 21px/1.2 var(--universe-type);overflow-wrap:anywhere}
body[data-universe=fees] #collection .xp-card progress{flex:none;margin:10px 0 7px;width:100%}
body[data-universe=fees] #collection .xp-line{display:block;width:100%;text-align:center;font-size:14px;line-height:1.3}
body[data-universe=fees] #collection .xp-line>span{display:block;width:100%;text-align:center}
body[data-universe=fees] #collection .assign{flex:none;margin-top:10px}
body[data-universe=fees] #collection .fee-family-rank{display:block;width:100%;margin-top:auto;padding-top:10px;color:#e9dced;font:400 13px/1.3 var(--universe-type);text-align:center;text-wrap:balance}
@media(max-width:700px){body[data-universe=fees] #collection .fee-character-name{font-size:17px;margin-top:8px}body[data-universe=fees] #collection .xp-line{font-size:11px}body[data-universe=fees] #collection .fee-family-rank{font-size:11px;padding-top:8px}}

/* Fairy captions below the art: prevent the old mobile grid height from collapsing the image. */
body[data-universe=fees] #collection .xp-card{height:auto}
body[data-universe=fees] #collection .art{flex:none}
@media(max-width:700px){body[data-universe=fees] #collection:not(.single) .art{height:129px}body[data-universe=fees] #collection:not(.single) .art img{height:125px;max-height:125px;object-fit:contain}}

/* Dragons on phones: artwork first, then progress, caption and XP action. */
@media(max-width:700px){
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card){display:flex;flex-direction:column;align-items:stretch;height:auto;min-width:0;gap:0}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card)>.art{display:block;flex:none;width:100%;height:auto;min-width:0}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card) .card-art-viewport{display:block;width:100%;height:auto}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card) .art img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:3/4;object-fit:contain}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card)>progress{flex:none;width:100%;height:5px;margin:9px 0 5px}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card)>.xp-line{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;min-width:0;gap:4px;text-align:center}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card)>.xp-line>*{max-width:100%;text-align:center;white-space:normal;overflow-wrap:anywhere}
 body[data-universe=dragons] #collection.collection:not(.single)>.xp-card:not(.mystery-card)>.assign{flex:none;width:100%;margin-top:7px}
}
