/* Visual language shared by the public site and the supporter receipt. */
:root {
  color-scheme: dark;
  --atlas-bg: #101327;
  --atlas-surface: #171b34;
  --atlas-raised: #222743;
  --atlas-gold: #ddbf79;
  --atlas-ink: #f4efe3;
  --atlas-muted: #b6bacb;
  --atlas-rule: #53546a;
  --atlas-display: "Source Han Serif SC","Noto Serif SC","Songti SC","STSong","SimSun",Georgia,serif;
  --atlas-body: "Source Sans 3","PingFang SC","Microsoft YaHei","Noto Sans CJK SC",system-ui,sans-serif;
  --bg: var(--atlas-bg);
  --panel: var(--atlas-surface);
  --panel-2: var(--atlas-raised);
  --ink: var(--atlas-ink);
  --ink-dim: var(--atlas-muted);
  --line: #41455d;
  --accent: var(--atlas-gold);
  --accent-2: #a78745;
  --accent-ink: #171827;
  --head: var(--atlas-display);
  --red:#ed8d79; --yellow:#e5c163; --blue:#7cb7df; --green:#8dc596; --purple:#c49bd9;
}
body { background:var(--atlas-bg); color:var(--atlas-ink); font-family:var(--atlas-body); }
a { text-underline-offset:.22em; }
:where(a,button,input,summary,select,textarea,[tabindex="0"]):focus-visible {
  outline:2px solid #ffe2a4; outline-offset:4px;
}
::selection { background:#ddbf79; color:#101327; }
.atlas-skip { position:fixed; left:12px; top:-70px; z-index:120; padding:8px 16px; background:var(--atlas-gold); color:var(--atlas-bg); }
.atlas-skip:focus { top:8px; }
.wrap { max-width:1440px; padding-inline:clamp(20px,4.4vw,70px); }
.site-header { background:#11142af7; border:0; border-bottom:1px solid #79704f; box-shadow:0 5px 25px #090a162d; backdrop-filter:blur(10px); }
.site-header .wrap { min-height:74px; display:flex; flex-wrap:nowrap; justify-content:space-between; gap:clamp(14px,2.5vw,40px); padding-block:0; }
.atlas-brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; white-space:nowrap; }
.atlas-brandmark { display:block; width:38px; height:38px; object-fit:contain; flex:none; }
.atlas-brand-name { font:700 1.25rem/1.26 var(--atlas-display); letter-spacing:.11em; color:var(--atlas-ink); display:block; }
.atlas-brand-en { display:block; margin-top:2px; font:600 .61rem/1.35 Georgia,serif; letter-spacing:.23em; color:var(--atlas-gold); text-transform:uppercase; }
.site-header .tabs { display:flex; align-self:stretch; justify-content:center; gap:clamp(8px,2.1vw,32px); }
.site-header .tab { display:inline-flex; align-items:center; padding:0 4px; color:var(--atlas-muted); background:none; border:0; border-radius:0; font:550 .98rem/1.25 var(--atlas-body); text-decoration:none; position:relative; white-space:nowrap; }
.site-header .tab:hover,.site-header .tab.active { color:var(--atlas-ink); background:none; }
.site-header .tab.active::after { content:""; height:3px; background:var(--atlas-gold); position:absolute; bottom:0; inset-inline:3px; }
.atlas-rewards { color:var(--atlas-gold); padding:8px 19px; border:1px solid #988657; text-decoration:none; font-size:.9rem; font-weight:650; white-space:nowrap; }
.atlas-rewards:hover { background:var(--atlas-gold); color:var(--atlas-bg); }
#main-content:focus { outline:0; }
.site-footer { border-top:1px solid #645d4a; background:#101225; color:var(--atlas-muted); padding:0; }
.site-footer .wrap { display:flex; justify-content:space-between; align-items:center; gap:24px; padding-block:30px; }
.atlas-footer-brand { font:650 1.5rem/1.3 var(--atlas-display); letter-spacing:.13em; text-decoration:none; color:var(--atlas-ink); }
.atlas-footer-copy { text-align:right; }
.site-footer .atlas-footer-copy p { margin:3px 0; font-size:.85rem; color:var(--atlas-muted); }
.site-footer #site-subtitle { color:var(--atlas-gold); }
#view-cards { padding-block:0 clamp(50px,7vw,100px); }
.atlas-gallery-head {
  position:relative; isolation:isolate; overflow:hidden; display:flex; align-items:center;
  min-height:clamp(185px,17vw,248px); padding:clamp(28px,4vw,58px) 0;
  border-bottom:1px solid #97845c;
  background:radial-gradient(ellipse at 81% 86%,#343752 0,transparent 62%);
}
.atlas-gallery-head::before {
  content:""; z-index:-1; position:absolute; right:-2%; bottom:-195px; width:570px; height:350px;
  border-radius:50%; border:1px solid #8b805d55; box-shadow:0 0 0 9px #171b3420,0 0 0 10px #8b805d40,0 0 0 44px #171b3410,0 0 0 45px #8b805d28;
}
.atlas-gallery-title { z-index:1; position:relative; width:55%; }
.atlas-gallery-title h1 { margin:0; color:var(--atlas-ink); font:650 clamp(2.7rem,4.75vw,4.6rem)/1.12 var(--atlas-display); letter-spacing:.075em; }
.atlas-gallery-title p { margin:18px 0 0; max-width:35em; color:var(--atlas-muted); font-size:1rem; }
.atlas-cast { position:absolute; pointer-events:none; right:0; top:0; bottom:0; width:43%; max-width:580px; }
.atlas-cast img { position:absolute; height:95%; width:auto; max-width:48%; object-fit:contain; object-position:bottom center; filter:drop-shadow(0 5px 7px #07091ba8); }
.atlas-cast .cast-boxer { left:0; bottom:-9%; height:91%; transform:rotate(-7deg); }
.atlas-cast .cast-napoleon { left:26%; bottom:-3%; height:100%; z-index:1; }
.atlas-cast .cast-snowball { right:0; bottom:-8%; height:88%; transform:rotate(5deg); }
.atlas-gallery-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px clamp(14px,2vw,30px); background:var(--atlas-surface); border-bottom:1px solid var(--line); padding:19px clamp(14px,1.6vw,25px); }
.atlas-search { display:flex; align-items:center; gap:13px; min-width:200px; flex:1 1 210px; background:#f4f0e7; color:#25283b; border:1px solid #f4f0e7; padding-inline:15px 10px; }
.atlas-search:focus-within { outline:2px solid var(--atlas-gold); outline-offset:3px; }
.atlas-lens { position:relative; border:2px solid currentColor; border-radius:50%; width:13px; height:13px; flex:none; }
.atlas-lens::after { content:""; position:absolute; width:7px; height:2px; left:8px; top:9px; transform:rotate(45deg); background:currentColor; }
#search { height:42px; padding:0; margin:0; background:transparent; color:#20223a; border:0; border-radius:0; outline:0; min-width:0; font:inherit; }
#search::placeholder { color:#646375; opacity:1; }
.atlas-filter-line { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.atlas-filter-line .chip { padding:7px 9px; min-height:38px; background:transparent; color:var(--atlas-muted); border:1px solid transparent; border-radius:2px; font:550 .92rem/1.25 var(--atlas-body); white-space:nowrap; }
.atlas-filter-line .chip:hover { color:var(--atlas-ink); background:#2a2e47; }
.atlas-filter-line .chip.active { color:var(--atlas-gold); background:#282a3c; border-color:#a59263; }
#filter-color .chip:not([data-color="all"]) { display:inline-flex; align-items:center; gap:6px; }
#filter-color .chip:not([data-color="all"])::before { content:""; width:8px; height:8px; background:var(--swatch); transform:rotate(45deg); }
#filter-color .c-red { --swatch:var(--red); } #filter-color .c-green { --swatch:var(--green); }
#filter-color .c-purple { --swatch:var(--purple); } #filter-color .c-blue { --swatch:var(--blue); } #filter-color .c-yellow { --swatch:var(--yellow); }
.atlas-gallery-meta { display:flex; flex-wrap:wrap; gap:14px; align-items:center; padding:19px 0; }
.atlas-gallery-meta .count { font:650 1.14rem/1.3 var(--atlas-display); color:var(--atlas-ink); margin:0; }
.atlas-result-rule { flex:1; border-top:1px solid var(--line); }
.atlas-alt-only,.atlas-reset { color:var(--atlas-muted); font:.91rem/1.4 var(--atlas-body); }
.atlas-alt-only { display:inline-flex; gap:8px; align-items:center; cursor:pointer; }
.atlas-alt-only input { accent-color:var(--atlas-gold); width:16px; height:16px; margin:0; }
.atlas-reset { padding:3px 0; border:0; background:transparent; color:var(--atlas-gold); text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
#grid { display:grid; gap:clamp(22px,2.7vw,38px) clamp(12px,1.7vw,26px); grid-template-columns:repeat(5,minmax(0,1fr)); }
#grid .card { appearance:none; display:block; padding:0; color:var(--atlas-ink); text-align:left; background:none; border:0; border-radius:0; box-shadow:none; overflow:visible; font:inherit; min-width:0; }
#grid .card .thumb { width:100%; aspect-ratio:744/1039; overflow:hidden; border-radius:5%; background:#0a0d1c; box-shadow:0 4px 12px #08091880; }
#grid .thumb img { object-fit:contain; }
#grid .card:hover { transform:translateY(-3px); }
#grid .card:hover .name { color:var(--atlas-gold); }
#grid .alt-badge { top:auto; right:7px; bottom:7px; font:600 .72rem/1.4 var(--atlas-body); padding:3px 6px; color:#f5e4be; background:#18192be8; border:1px solid #ae9669; border-radius:2px; }
#grid .meta { display:block; padding:11px 0 0; }
#grid .name { display:block; font:650 clamp(1.02rem,1.25vw,1.2rem)/1.42 var(--atlas-display); }
#grid .sub { display:flex; align-items:center; gap:7px; color:var(--atlas-muted); font-size:.85rem; margin:2px 0 0; }
#grid .sub i { width:3px; height:3px; background:#afa079; transform:rotate(45deg); }
.atlas-no-results { grid-column:1/-1; padding:clamp(32px,7vw,80px) 16px; text-align:center; color:var(--atlas-muted); border-block:1px solid var(--line); }
.modal-backdrop { background:#080a18dc; backdrop-filter:blur(6px); padding:clamp(12px,4vh,44px) 16px; }
.modal { margin:auto; width:min(100%,1040px); max-width:1040px; border:1px solid #9e8c64; border-radius:4px; background:#191d36; box-shadow:0 22px 80px #050615bb; }
.modal-close { top:10px; right:10px; width:38px; height:38px; border-radius:50%; background:#15172ef5; border:1px solid #7b725c; color:var(--atlas-ink); }
.modal-close:hover { background:#34364a; }
.modal-body { grid-template-columns:minmax(240px,.86fr) minmax(0,1.18fr); }
.m-img { position:sticky; top:0; align-self:start; background:radial-gradient(ellipse at center,#333954 0,#191d36 73%); padding:clamp(20px,3.4vw,48px) clamp(20px,2.6vw,42px); display:flex; flex-direction:column; gap:17px; border-radius:0; }
.atlas-card-print { display:flex; align-items:center; flex-direction:column; gap:12px; width:100%; }
.atlas-card-print img { width:auto; max-width:100%; max-height:min(65vh,560px); object-fit:contain; border-radius:4%; box-shadow:0 11px 24px #08091d99; }
.atlas-card-print .alt-toggle { position:static; transform:none; border-radius:2px; padding:6px 16px; font:550 .9rem/1.6 var(--atlas-body); background:#20243a; }
.atlas-card-print .alt-toggle:hover { background:var(--atlas-gold); color:var(--atlas-bg); }
.atlas-card-pager { display:flex; align-items:center; justify-content:center; gap:16px; font:500 .86rem/1.2 var(--atlas-body); color:var(--atlas-muted); font-variant-numeric:tabular-nums; }
.atlas-card-pager button { cursor:pointer; width:34px; height:32px; border:1px solid var(--atlas-rule); background:var(--atlas-surface); color:var(--atlas-gold); font:1.5rem/1 Georgia,serif; }
.atlas-card-pager button:disabled { opacity:.4; cursor:default; }
.m-info { align-self:start; min-width:0; margin:clamp(16px,2.2vw,32px) clamp(14px,2.3vw,36px) clamp(16px,2.2vw,32px) 0; padding:clamp(18px,2vw,34px); border:1px solid #847657; outline:1px solid #494659; outline-offset:4px; background:var(--atlas-surface); }
.m-info .m-head { padding-right:18px; }
.m-info h2 { font:650 clamp(1.7rem,3vw,2.75rem)/1.25 var(--atlas-display); }
.m-info .m-tags { border-bottom:1px solid var(--line); padding-bottom:14px; }
.m-info .tag { border:0; padding:2px 8px; border-radius:2px; font-size:.84rem; }
.m-info .tag[class*="color-"] { color:#181827; }
.m-info .field { margin-bottom:18px; }
.m-info .field .label { color:var(--atlas-gold); font-size:.91rem; letter-spacing:.03em; }
.m-info .field .val { line-height:1.8; }
.m-info .pair-link { padding:0; border:0; background:none; font:inherit; color:var(--atlas-gold); }
.m-info .fb-toggle,.m-info .fb-submit { border-radius:2px; }
@media(min-width:851px) and (min-height:540px){
  .atlas-gallery-controls { position:sticky; top:var(--header-height,75px); z-index:12; }
}
@media(min-width:1550px){ #grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media(max-width:1080px){
  #grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .atlas-gallery-controls { column-gap:12px; }
  .atlas-filter-line { gap:3px; } .atlas-filter-line .chip { padding-inline:7px; }
}
@media(max-width:850px){
  .site-header .wrap { flex-wrap:wrap; gap:0 12px; padding-top:9px; min-height:0; }
  .site-header .tabs { flex:0 0 100%; width:auto; display:flex; order:3; justify-content:space-between; gap:4px; }
  .site-header .tab { padding:12px 3px 10px; }
  .atlas-brandmark { width:33px; height:33px; }
  .atlas-rewards { margin-left:auto; padding:5px 12px; }
  .atlas-gallery-controls { display:grid; grid-template-columns:1fr auto; }
  .atlas-search { grid-column:1/-1; width:100%; }
}
@media(max-width:650px){
  .wrap { padding-inline:16px; }
  .site-header .tab { font-size:.91rem; }
  .site-footer .wrap { display:block; }
  .atlas-footer-copy { text-align:left; margin-top:12px; }
  .atlas-gallery-head { min-height:154px; }
  .atlas-gallery-title { width:58%; }
  .atlas-gallery-title h1 { font-size:clamp(2.2rem,8vw,3rem); }
  .atlas-gallery-title p { font-size:.88rem; line-height:1.65; margin-top:10px; }
  .atlas-cast { width:44%; }
  .atlas-cast .cast-boxer { display:none; }
  .atlas-cast .cast-napoleon { left:0; max-width:72%; bottom:-2%; }
  .atlas-cast .cast-snowball { max-width:63%; right:-10%; bottom:4%; }
  .atlas-gallery-controls { display:flex; align-items:flex-start; flex-direction:column; padding:13px 0; background:transparent; gap:8px; }
  .atlas-search { min-width:0; flex:auto; }
  .atlas-filter-line .chip { min-height:34px; padding:5px 8px; }
  .atlas-gallery-meta { gap:10px; padding:14px 0; }
  #grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .modal-backdrop { padding:9px; }
  .modal,.modal-body { width:100%; }
  .modal-body { grid-template-columns:minmax(0,1fr); }
  .m-img { position:static; padding:18px 14px 16px; }
  .atlas-card-print img { width:auto; height:auto; max-height:min(44vh,350px); max-width:88%; }
  .m-info { margin:4px 12px 15px; padding:18px; }
}
@media(max-width:480px){
  #grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #grid .sub { font-size:.8rem; gap:5px; }
}
@media(prefers-reduced-motion:reduce){ #grid .card { transition:none; } #grid .card:hover { transform:none; } }
@media print { .site-header,.atlas-skip,.site-footer { display:none; } }

