@font-face{font-family:Metal;src:url('/cartes-numeriques/maudit-halloween/bataille/assets/cinzel-2.ttf');font-display:swap}
:root{color-scheme:dark;--accent:#e1b674;--ink:#f6ecde;--panel:#1c142bdc;--muted:#c5b5d0;--tone:#a978d0}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:15px/1.5 system-ui,sans-serif;background:linear-gradient(#100d1be8,#1d102cdd),url('/assets/galaxie-spirale-anodos-20261104.webp') center/cover fixed;min-height:100svh}
[hidden]{display:none!important}button,select{font:inherit;color:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #fff2b8;outline-offset:4px}
header{display:flex;justify-content:space-between;gap:16px;max-width:1160px;margin:auto;padding:22px 24px;color:var(--accent)}header a{padding:8px 0;min-height:40px}header a:hover{color:#fff2ce}
main{max-width:1120px;margin:auto;padding:8px 24px 42px}h1{font:400 clamp(36px,5vw,54px)/1.1 Metal,Georgia,serif;color:var(--accent);text-align:center;margin:10px 0 0}.subtitle{text-align:center;color:var(--muted);margin:8px 0 26px;letter-spacing:.05em}
.history-tabs{display:flex;gap:8px;justify-content:center;margin-bottom:16px}.history-tabs button{border:1px solid #bd92dc55;background:#20162fe0;border-radius:12px;padding:12px 20px;font-weight:650;min-height:48px}.history-tabs [aria-selected=true]{color:#291b27;border-color:#ffe6ab;background:linear-gradient(#ffdf9a,#c89448);box-shadow:0 3px 0 #745122}.history-tabs button:hover{filter:brightness(1.12)}
.history-panel{border:1px solid #d4af6d66;border-radius:22px;background:var(--panel);box-shadow:inset 0 1px #fff1,0 15px 35px #07051044;padding:22px;min-height:240px}
.history-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:15px}.history-toolbar label{display:grid;gap:5px;font-size:12px;color:var(--muted)}select{background:#21152f;border:1px solid #b493cc88;border-radius:8px;padding:9px 12px;min-height:42px;max-width:100%}.history-toolbar p{margin:0 0 9px;font-size:13px;color:var(--muted)}.history-status{font-size:13px;color:var(--muted);margin:10px 0 18px;text-wrap:balance}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;color:#dbc39a;font-weight:650;padding:12px 10px;border-bottom:1px solid #b292c355}td{padding:13px 10px;border-bottom:1px solid #b292c322;vertical-align:middle}tbody tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.amount{font-variant-numeric:tabular-nums;font-weight:750;white-space:nowrap}.gain{color:#b8e7a1}.loss{color:#ffb3a4}.zero{color:#a899b4}.outcome{display:inline-block;white-space:nowrap;font-size:12px;padding:3px 8px;border:1px solid #aa8ebe55;border-radius:7px}.outcome.win{color:#c2eab0;background:#274b2b44}.outcome.loss{color:#ffc1ac;background:#68302644}.outcome.draw{color:#e9d3b1}.opponent-name{font-weight:650;overflow-wrap:anywhere}.pending{color:#e7c17a}
.empty-history{text-align:center;padding:28px 12px;color:var(--muted)}.empty-history>span{font-size:36px;color:var(--accent)}.empty-history p:first-of-type{color:var(--ink);font-weight:650;margin:10px 0}.empty-history p:last-child{font-size:13px;max-width:470px;margin:auto;text-wrap:balance}
.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:20px}.pagination button,.retry{border:1px solid #b392ca88;background:#362044;border-radius:9px;padding:9px 15px;min-height:42px}.pagination button:disabled{opacity:.4;cursor:default}.pagination span{font-size:13px;color:var(--muted)}.retry{display:block;margin:18px auto 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}footer{display:flex;justify-content:center;gap:26px;font-size:12px;color:#b8a7bf;padding:0 20px 24px}
:is(body[data-world=noel],html[data-world=noel] body){--accent:#f2d9a1;--tone:#bd5c53;--panel:#18251edc}:is(body[data-world=dragons],html[data-world=dragons] body){--accent:#ffc68b;--panel:#271b18dc}:is(body[data-world=fees],html[data-world=fees] body){--accent:#f0c4f4;--panel:#24182fdc}:is(body[data-world=kids],html[data-world=kids] body){--accent:#ffd18b;--panel:#28201bdc}
@media(max-width:700px){header{padding:12px 18px;font-size:13px;gap:12px}main{padding:5px 14px 28px}.subtitle{margin-bottom:20px}.history-tabs{gap:5px}.history-tabs button{flex:1;min-width:0;padding:10px 6px;font-size:12px;line-height:1.3}.history-panel{padding:15px;border-radius:17px}.history-toolbar{align-items:center;gap:10px}.history-toolbar label{min-width:0;max-width:70%}.history-toolbar p{font-size:11px;text-align:right}select{padding:9px 7px;font-size:13px}.table-wrap{overflow:visible}table,tbody{display:block}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;border:1px solid #b292c344;border-radius:12px;padding:12px;margin:12px 0}td{display:block;padding:0;border:0;min-width:0;font-size:13px}td::before{content:attr(data-label);display:block;color:#bca5ca;font-size:10px;margin-bottom:2px}td:nth-child(-n+3){grid-column:1/-1}td small{display:inline;margin-left:6px}.history-status{font-size:12px}.pagination{gap:10px}.pagination button{padding:8px 12px}.empty-history{padding:20px 7px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* The account avatar sets the realm independently of history filters. */
body{--history-art:url('/assets/galaxie-spirale-anodos-20261104.webp');--history-wash:#100d1bbf;--history-base:#100d1b;--history-edge:#b493cc88;--history-field:#21152fe6;--history-tab:#20162fe0;background:linear-gradient(var(--history-wash),var(--history-wash)),var(--history-art) center/cover fixed;background-color:var(--history-base)}
:is(body[data-world=dragons],html[data-world=dragons] body){--accent:#ffd18d;--ink:#fff0da;--muted:#ead5b8;--panel:#2b211adb;--history-art:url('/cartes-numeriques/dragons/arena/assets/arene-jour-v2.webp');--history-wash:#281b115c;--history-base:#27251d;--history-edge:#d1a15e99;--history-field:#291c16ec;--history-tab:#332218eb}
:is(body[data-world=halloween],html[data-world=halloween] body){--accent:#d3a2ff;--ink:#fff1e6;--muted:#e1cfe8;--panel:#21142be0;--history-art:url('/cartes/mauditHalloween/assets/decor-gothique-v2.webp');--history-wash:#1b0f2666;--history-edge:#b980df88;--history-field:#21152fe6;--history-tab:#301a42e6}
:is(body[data-world=noel],html[data-world=noel] body){--accent:#f2d9a1;--ink:#fff5df;--muted:#e0eadb;--panel:#12332ce0;--history-art:url('/cartes-numeriques/noel-bas-saint-laurent/assets/noel-ciel.webp');--history-wash:#10242c40;--history-edge:#d3b87b99;--history-field:#0c2924ed;--history-tab:#153a32eb}
:is(body[data-world=kids],html[data-world=kids] body){--accent:#ffd18b;--ink:#fff4df;--muted:#f0dfc7;--panel:#3b2540e6;--history-art:url('/cartes-numeriques/anodos-kids/assets/village-halloween-kids.webp');--history-wash:#2c173349;--history-edge:#e5ab7299;--history-field:#39213cea;--history-tab:#493045eb}
:is(body[data-world=fees],html[data-world=fees] body){--accent:#f0c4f4;--ink:#fff0ff;--muted:#eadbf3;--panel:#302041de;--history-art:url('/cartes-numeriques/fees-et-princesses/assets/decor.webp');--history-wash:#2619364d;--history-edge:#dbb5df99;--history-field:#291d3aeb;--history-tab:#432b52e6}
:is(body[data-world=aliens],html[data-world=aliens] body){--accent:#96ebff;--ink:#ebfbff;--muted:#c8e6ef;--panel:#102e43e0;--history-art:url('/cartes-numeriques/catalogue-assets/planete-etoiles.webp');--history-wash:#06182e5c;--history-edge:#7bd5e799;--history-field:#0a1c2beb;--history-tab:#15364aeb}
:is(body[data-world=nordique],html[data-world=nordique] body){--accent:#c6e9fc;--ink:#f0faff;--muted:#d5e6ed;--panel:#1e303ee3;--history-art:url('/cartes-numeriques/catalogue-assets/falaises-nordiques.webp');--history-wash:#1024304d;--history-edge:#b2d1df99;--history-field:#142432eb;--history-tab:#263f50eb}
.history-panel{border-color:var(--history-edge)}
.history-tabs button{border-color:var(--history-edge);background:var(--history-tab)}
.history-tabs [aria-selected=true]{color:#291b27;background:linear-gradient(#ffdf9a,#c89448);border-color:#ffe6ab}
select,.pagination button,.retry{background:var(--history-field);border-color:var(--history-edge)}
th{color:var(--accent);border-color:var(--history-edge)}td{border-color:var(--history-edge)}
.history-avatar-theme{width:fit-content;margin:-12px auto 22px;padding:6px 18px;border:1px solid var(--history-edge);border-radius:999px;color:var(--accent);background:var(--panel);font:600 15px/1.3 Georgia,serif;text-align:center}
.opponent-group h2{margin:6px 0 14px;font:400 25px/1.25 Metal,Georgia,serif;color:var(--accent)}
.opponent-group+.opponent-group{margin-top:26px;padding-top:22px;border-top:1px solid var(--history-edge)}
.opponent-empty{margin:0;padding:14px 0;color:var(--muted);font-size:13px}
:is(body[data-world=dragons],html[data-world=dragons] body) .history-panel{border-top:3px solid #e8ac5b;box-shadow:0 0 22px #c580382c,inset 0 1px #fff2}
@media(max-width:700px){.opponent-group h2{font-size:22px}.opponent-group+.opponent-group{margin-top:20px;padding-top:18px}td::before{color:var(--muted)}tbody tr{border-color:var(--history-edge)}}

/* Simple magic-card frames with the XPC amount centered underneath. */
.magic-cards{display:grid;grid-template-columns:repeat(4,minmax(0,150px));justify-content:center;align-items:start;gap:24px;padding:18px 0}
.magic-card-item{min-width:0;text-align:center}
.magic-card-frame{display:flex;align-items:center;justify-content:center;aspect-ratio:560/764;border:1px solid var(--accent);border-radius:5px;background:#00000014;padding:12px;color:var(--ink);font-family:Metal,Georgia,serif;overflow-wrap:anywhere}
.magic-card-xpc{display:block;text-align:center;margin-top:12px;color:var(--accent);font:400 23px/1.3 Metal,Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:600px){.magic-cards{grid-template-columns:repeat(2,minmax(0,130px));gap:20px 18px;padding:10px 0}.magic-card-xpc{font-size:20px}}

/* The selected portrait provides the artwork, not the battle arena. */
body[data-history-avatar]{background-image:linear-gradient(#100d1bd4,#100d1bee),var(--history-avatar-art);background-position:center,center 35%;background-size:cover,cover;background-attachment:fixed;background-repeat:no-repeat}
