.album-open .halloween-return-bar,.app-booting .halloween-return-bar{display:none!important}
.album-home-link{display:flex;align-items:center;justify-content:center;width:fit-content;max-width:100%;box-sizing:border-box;min-height:44px;padding:10px 16px;margin:0 auto 16px;border:1px solid #c292ed;border-radius:9px;background:#382046;color:#f4e7ff;text-align:center;text-decoration:none;font:700 15px/1.35 system-ui,sans-serif}
.album-home-link:hover{background:#4e2a66;color:#fff}
.album-home-link:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* Orange headings contrast with the purple album background. */
.album-open #collection :is(h1,h2,h3),.album-open #collection .cauldron-title{color:#ffad4d}
/* Reveal each higher tier in proportion to its own assigned XP. */
.album-open #collection .family-card img{
 filter:grayscale(var(--card-grey,0)) brightness(var(--card-light,1))!important;
 animation:none!important;
}
.album-open #collection .family-card .card-preview::after{opacity:var(--card-frame-strength,1)}

/* Physical prizes concern blue, orange and purple only. */
.album-open #collection .family-card .physical-card-status{margin:12px 0 2px;font-size:12px;line-height:1.4;overflow-wrap:break-word}
.physical-card-status span{display:block;color:#d8cfdf;margin-bottom:3px}
.physical-card-status strong{display:block;color:#ffc77f;font-weight:650}

/* Half-size cauldron, with a readable count and no repeated family heading. */
.album-open #collection .album-workbench{margin:12px 0 15px}
.album-open #collection .album-workbench .cauldron-art{width:140px;height:119px}
.album-open #collection .album-workbench .cauldron-xp strong{font-size:21px}
.album-open #collection .album-workbench .cauldron-xp span{font-size:12px}
@media(max-width:640px){
 .album-open #collection .album-workbench .cauldron-art{width:120px;height:102px}
 .album-open #collection .album-workbench .cauldron-xp strong{font-size:18px}
}

/* Compact portrait phones: four cards, readable XP and 44px allocation buttons. */
@media(max-width:480px) and (orientation:portrait){
 .album-open #collection{--mobile-card-height:clamp(92px,calc((100svh - 540px)/2),140px)}
 .album-open #collection .album-home-link{margin-bottom:8px}
 .album-open #collection .family-navigation{margin-bottom:6px}
 .album-open #collection .album-workbench{margin:6px 0 8px}
 .album-open #collection .reserve-cauldron{display:grid;grid-template-columns:120px minmax(0,140px);justify-content:center;align-items:center;column-gap:12px}
 .album-open #collection .reserve-cauldron .cauldron-caption{margin:0;text-align:left}
 .album-open #collection .xp-arrival-stage,.album-open #collection .xp-arrival-status{grid-column:1/-1}
 .album-open #collection .xp-arrival-status:empty{display:none}
 .album-open #collection .family-grid{gap:8px}
 .album-open #collection .family-card{padding:5px}
 .album-open #collection .family-card .card-preview{padding:3px;max-width:calc(var(--mobile-card-height)*.75 + 8px)}
 .album-open #collection .family-card img{height:var(--mobile-card-height)}
 .album-open #collection .family-card h3{font-size:14px;margin:4px 0}
 .album-open #collection .family-card progress{height:6px;margin:3px 0}
 .album-open #collection .card-xp-position{min-height:36px;margin:2px 0 4px}
 .album-open #collection .card-xp-position p{font-size:12px}
 .album-open #collection .family-card .primary{min-height:44px;font-size:12px;padding:6px 3px}
 .album-open #collection .family-card .physical-card-status{margin:5px 0 0;font-size:11px;line-height:1.25}
}

/* Small allocation controls on every family, including locked cards. */
.album-open #collection .family-card button[data-card-tier]{
 display:inline-flex;align-items:center;justify-content:center;
 width:auto;max-width:100%;min-height:28px;padding:4px 9px;
 font-size:11px;line-height:16px;border-radius:6px;
}
@media(max-width:480px) and (orientation:portrait){
 .album-open #collection .album-workbench{margin:4px 0 6px}
 .album-open #collection .reserve-cauldron{display:block}
 .album-open #collection .reserve-cauldron .cauldron-caption{margin:4px 0 0;text-align:center;font-size:12px;line-height:1.3}
}

/* A compact pumpkin return beside the centred XP cauldron. */
.album-open #collection .album-workbench{position:relative;margin:4px 0 6px}
.album-open #collection .album-workbench .album-home-link{
 position:absolute;left:calc(50% - 116px);top:22px;z-index:2;
 width:44px;height:44px;min-height:44px;margin:0;padding:0;
 font-size:28px;line-height:1;border-color:#d49432;background:#382046;
}
.album-open #collection .album-workbench .cauldron-art{width:112px;height:95px}
.album-open #collection .album-workbench .cauldron-xp strong{font-size:18px}
.album-open #collection .album-workbench .cauldron-xp span{font-size:11px}
@media(max-width:640px){
 .album-open #collection .album-workbench .cauldron-art{width:96px;height:82px}
 .album-open #collection .album-workbench .cauldron-xp strong{font-size:16px}
 .album-open #collection .album-workbench .album-home-link{left:calc(50% - 102px);top:18px}
}

/* Keep tier colours clearly visible even while their artwork is locked. */
.album-open #collection .family-card:nth-child(2){--frame-light:#8ce2ff;--frame-glow:#39afff99;--frame-tint:#57cdffcc}
.album-open #collection .family-card:nth-child(3){--frame-light:#ffd18a;--frame-glow:#ff8a3299;--frame-tint:#ffae43cc}
.album-open #collection .family-card:nth-child(4){--frame-light:#edbaff;--frame-glow:#b65cff99;--frame-tint:#da8bffcc}
.album-open #collection .family-card:nth-child(n+2) .card-preview::after{opacity:1}

/* Compact family invitation, with controls matching the card XP buttons. */
.album-open #collection .trial-intro{padding:10px 12px;margin:10px 0 0;border-radius:12px}
.album-open #collection .trial-intro h2{font-size:18px;line-height:1.25;margin:0 0 6px}
.album-open #collection .trial-intro p{font-size:12px;line-height:1.45;margin:6px 0}
.album-open #collection .trial-actions{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px;margin:8px 0 0}
.album-open #collection .trial-actions button{display:inline-flex;align-items:center;justify-content:center;width:auto;max-width:100%;min-height:28px;padding:4px 9px;font-size:11px;line-height:16px;border-radius:6px}

/* Ticket history is a focused screen, without the general site menus. */
.history-open>header,.history-open>footer,.history-open #space-identity,.history-open .tabs{display:none!important}
.history-open main{max-width:760px;padding:0 14px 24px;margin:0 auto}
.receipt-entry .scan-simple-heading h1{color:#ffad4d}
#main button[data-view="scan"]{background:linear-gradient(#ffd080,#ff9c39);border:1px solid #ffb552;color:#211307}
#main button[data-view="scan"]:hover{background:#ffd080}
.tickets-simple-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px}
.tickets-simple-heading h1{font-size:clamp(24px,5vw,32px);line-height:1.15;color:#ffad4d;margin:0}
.tickets-simple-heading button,.tickets-refresh button{font-size:12px;line-height:18px;min-height:32px;padding:5px 10px}
.tickets-refresh{display:flex;justify-content:flex-end;margin:0 0 10px}
.history-open .player-receipt-tabs{gap:8px;margin:12px 0}
.history-open .player-receipt-tab{min-height:72px;padding:10px 5px;gap:5px;font-size:12px}
.history-open .player-receipt-tab strong{font-size:22px}
.history-open #player-receipt-list h2{font-size:18px;margin:0 0 12px}
@media(max-width:480px){
 .history-open #history table{min-width:0;width:100%}
 .history-open #history thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .history-open #history tbody,.history-open #history tr,.history-open #history td{display:block;width:auto;min-width:0;white-space:normal}
 .history-open #history td{padding:8px 10px;overflow-wrap:anywhere}
 .history-open #history tr+tr{border-top:2px solid #77603c}
 .history-open #history td:not(:first-child)::before{display:inline-block;margin-right:10px;font-weight:700;color:#ffe1ad}
 .history-open #history td:nth-child(2)::before{content:'Montant'}
 .history-open #history td:nth-child(3)::before{content:'XP'}
 .history-open #history td:nth-child(4)::before{content:'État'}
}

/* Metal Mania font license:
Copyright (c) 2012 by Open Window (dathanboardman@gmail.com) with Reseved Font Name "Metal Mania"

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded, 
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

*/
@font-face{font-family:"Tickets Metal Mania";src:url(/fonts/metal-mania-tickets.ttf) format("truetype");font-style:normal;font-weight:400;font-display:swap}

.history-open .tickets-simple-heading{display:block;text-align:center;margin:0 0 20px}
.history-open .tickets-simple-heading h1{font-family:"Tickets Metal Mania",Georgia,serif;font-weight:400;font-size:clamp(42px,9vw,60px);line-height:1.15;letter-spacing:1px;color:#f5edff;text-shadow:0 2px 3px #080414,0 0 7px #270c46,0 0 18px #a758e8}

/* Account forms have their own background, never the collection underneath. */
.account-entry-open>header,.account-entry-open>footer,.account-entry-open .tabs,.account-entry-open #space-identity{display:none!important}
.account-entry-open{overscroll-behavior-y:contain;background:#181323}
.account-entry-open:has(dialog[open]){overflow:hidden}
.account-entry-open #account-entry{text-align:center;padding:20px 0;color:#f5edff}
.account-entry-open #account-entry h1{font-family:"Tickets Metal Mania",Georgia,serif;font-size:42px;color:#f5edff}
.account-entry-open #auth-dialog,.account-entry-open #recovery-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}

/* A bold, playful Halloween face and clear directional controls. */
@font-face{font-family:"Family Creepster";src:url("/family-Creepster.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
.album-open #collection .family-navigation{grid-template-columns:50px minmax(0,1fr) 50px;gap:8px;align-items:stretch}
.album-open #collection .family-picker select{min-height:48px;padding:5px 32px 5px 12px;font:400 clamp(24px,3vw,30px)/1.2 "Family Creepster",fantasy;letter-spacing:.025em;color:#ffd391;text-shadow:0 1px 0 #5e2d15,0 0 10px #f7ad502e;background-color:#261b35;border:1px solid #b98a55;border-radius:9px;text-align:center}
.album-open #collection .family-picker option{font:600 16px system-ui,sans-serif;color:#fff4df;background:#261b35;text-shadow:none}
.album-open #collection .family-navigation button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:4px;border:1px solid #b98a55;border-radius:9px;background:linear-gradient(145deg,#58374f,#2a1e38);color:#ffd58d;box-shadow:inset 0 1px #ffe5b92b,0 2px 0 #100b18}
.album-open #collection .family-navigation button:hover:not(:disabled){background:linear-gradient(145deg,#79465b,#432753);border-color:#ffdb93;color:#fff0c5}
.album-open #collection .family-navigation button:disabled{opacity:.38;box-shadow:none}
.album-open #collection .family-navigation :is(button,select):focus-visible{outline:3px solid #cbf69c;outline-offset:3px}
.album-open #collection .reserve-cauldron .cauldron-caption{width:max-content;max-width:100%;white-space:nowrap;margin:4px auto 0;text-align:center;line-height:1.3}
@media(max-width:480px){.album-open #collection .family-navigation{grid-template-columns:46px minmax(0,1fr) 46px;gap:6px}.album-open #collection .family-picker select{font-size:24px;padding-left:7px;padding-right:25px}}

/* Focused scanner: title shares the return button row, with no logout banner. */
body.receipt-entry>.session-access{display:none!important}
.receipt-entry .scan-simple-heading{display:flex;justify-content:flex-end;max-width:510px;min-height:36px;margin:4px auto 12px}
.receipt-entry .scan-simple-heading h1{position:absolute;top:calc(10px + env(safe-area-inset-top,0px));left:60px;right:60px;display:flex;align-items:center;justify-content:center;height:44px;margin:0;text-align:center;font:400 clamp(22px,5.2vw,34px)/1.1 "Album Metal Mania",Georgia,serif;white-space:nowrap;color:#ffc36b;text-shadow:0 2px 2px #130819,0 0 12px #ef9d4833}
.receipt-entry .scan-simple-heading button{min-height:36px;padding:6px 12px}

/* Keep all family pages and the complete album free of the logout banner. */
body.album-open>.session-access{display:none!important}
