/* 3.52 polish. Loaded last, after every theme.
   Brings the My Collection, Trading and Account pages in line with the parts
   of the site that already have their own character (Home, Sets, set pages):
   the condensed capitals, the kanji watermarks, the pink accent strip and the
   pink main button. The rounded shapes stay as they were.
   Colours come from the theme variables, so every theme follows.
   To go back, remove the sd-polish.css line from catalog/base.html. */

/* ---------- Page headers (the big box at the top) ---------- */
.collector-hero{position:relative;overflow:hidden;isolation:isolate}
/* The pink strip from the "Open the database" panel on Home, along the top edge. */
.collector-hero:not(.profile-hero-background):before{content:"";position:absolute;left:0;top:0;width:38%;height:2px;background:linear-gradient(90deg,var(--pink-hot),var(--pink),transparent);pointer-events:none}
/* A big faint kanji in the corner, the same as the set panels and set pages. */
.collector-hero[data-kanji]:after{content:attr(data-kanji);position:absolute;right:28px;top:50%;transform:translateY(-50%);z-index:-1;font-family:serif;font-weight:600;font-size:clamp(120px,15vw,210px);line-height:1;letter-spacing:-.04em;color:var(--ink);opacity:.045;pointer-events:none;white-space:nowrap}
.collector-hero>*:not(.profile-hero-background-image){position:relative}

/* Headings in the site's own condensed capitals, like "ALL SETS." and "KNOW THE CARDS." */
.collector-hero h1:not(.profile-name),
.collector-section-heading h2,
.account-card-head h2{font-family:"Arial Narrow","Aptos Display","Segoe UI Variable","Segoe UI",Arial,sans-serif;font-weight:600;font-style:normal;text-transform:uppercase;letter-spacing:.01em}
.collector-hero h1:not(.profile-name){font-size:clamp(46px,5.4vw,82px);line-height:.92;margin-top:10px}
.collector-hero h1:not(.profile-name):after{content:".";color:var(--pink)}
.collector-section-heading h2{font-size:clamp(28px,3vw,40px);line-height:1}
.account-card-head h2{font-size:clamp(22px,2.2vw,28px);line-height:1.05}

/* Small labels above headings: pink, like the labels on Home. */
.collector-hero .eyebrow,.collector-section-heading .eyebrow{color:var(--pink)}

/* ---------- Buttons ---------- */
/* The main button in the brand pink (like Search on Home and Find trade matches), not off-white. */
.button:not(.button-ghost):not(.danger-button):not(.google-button){background:var(--pink);border-color:var(--pink);color:#fff}
.button:not(.button-ghost):not(.danger-button):not(.google-button):hover{background:var(--pink-hot);border-color:var(--pink-hot);color:#fff}

/* ---------- Number boxes ---------- */
/* Big numbers in the condensed capitals, like the counts on Home and set pages. */
.stat-card strong{font-family:"Arial Narrow","Aptos Display","Segoe UI Variable","Segoe UI",Arial,sans-serif;font-weight:600;font-size:clamp(34px,3.2vw,46px);line-height:1;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.stat-card{position:relative;overflow:hidden}
.stat-card:before{content:"";position:absolute;left:20px;top:0;width:26px;height:2px;background:var(--pink)}

/* Dark themes: boxes get a faint lit top edge instead of a flat outline, so
   they look printed on rather than drawn round. */
:root:not([data-theme="light"]):not([data-theme="ink"]) :is(.collector-hero,.stat-card,.account-card,.collector-section .settings-card){background-image:linear-gradient(180deg,rgba(255,255,255,.03),transparent 38%);box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}

/* Text on the main button: the same colour each theme already uses on its own accent buttons. */
:root[data-theme="boost"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="boost"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#04120f}
:root[data-theme="christmas"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="christmas"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#0b1236}
:root[data-theme="groupa"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="groupa"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#0c1a5c}
:root[data-theme="halloween"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="halloween"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1a0c02}
:root[data-theme="kinpika"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="kinpika"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1a1205}
:root[data-theme="kintsugi"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="kintsugi"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1b1712}
:root[data-theme="koi"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="koi"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1a0702}
:root[data-theme="light"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="light"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#161615}
:root[data-theme="newyear"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="newyear"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1a1204}
:root[data-theme="night"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="night"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#111111}
:root[data-theme="nightrun"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="nightrun"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#1a0c02}
:root[data-theme="taikyu"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="taikyu"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#2a0e00}
:root[data-theme="toge"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="toge"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#03121a}
:root[data-theme="tsuiso"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="tsuiso"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#03161a}
:root[data-theme="yozakura"] .button:not(.button-ghost):not(.danger-button):not(.google-button),:root[data-theme="yozakura"] .button:not(.button-ghost):not(.danger-button):not(.google-button):hover{color:#2a0716}

@media(max-width:700px){
  .collector-hero[data-kanji]:after{right:10px;top:22px;transform:none;font-size:120px}
  .collector-hero h1:not(.profile-name){font-size:clamp(40px,12vw,56px)}
}

/* ---------- 3.53 ---------- */
/* Value changed marks (7 days after a change). */
.value-mark{display:inline-block;margin-left:6px;font-size:.78em;line-height:1;vertical-align:1px}
.value-mark.is-up{color:#4fd18b}.value-mark.is-down{color:#ff6b6b}
.value-mark-long{display:block;margin:6px 0 2px;margin-left:0;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
/* Staff-only value history on card pages. */
.staff-value-history{margin:14px 0 4px;border:1px dashed var(--line);border-radius:12px;padding:12px 14px;background:rgba(255,255,255,.015)}
.staff-value-history summary{cursor:pointer;display:flex;gap:12px;align-items:baseline;list-style:none}
.staff-value-history summary::-webkit-details-marker{display:none}
.staff-value-history summary span{font-size:10px;letter-spacing:.2em;font-weight:600;color:var(--pink)}
.staff-value-history summary small{font-size:11px;color:var(--muted)}
.staff-value-history table{width:100%;border-collapse:collapse;margin-top:10px;font-size:12px}
.staff-value-history th{text-align:left;font-size:9px;letter-spacing:.16em;color:var(--muted);padding:6px 6px;border-bottom:1px solid var(--line)}
.staff-value-history td{padding:7px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.staff-value-history p{margin:10px 0 0;font-size:12px;color:var(--muted)}
/* Just revealed on Home. */
.just-revealed{padding-top:48px}
.just-revealed-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:16px}
.just-revealed-row{grid-template-columns:repeat(6,minmax(0,1fr))}
@media(max-width:1000px){.just-revealed-row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.just-revealed-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:10px;padding-bottom:6px}.just-revealed-row .card-tile{flex:0 0 42%;scroll-snap-align:start}}
/* 3.53: Getting started on My Collection. */
.getting-started{position:relative;overflow:hidden;margin:18px 0 6px;padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.getting-started:before{content:"";position:absolute;left:0;top:0;width:38%;height:2px;background:linear-gradient(90deg,var(--pink-hot),var(--pink),transparent)}
.getting-started-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}
.getting-started-head strong{display:block;margin-top:6px;font-family:"Arial Narrow","Aptos Display","Segoe UI Variable","Segoe UI",Arial,sans-serif;font-weight:600;font-size:clamp(22px,2.4vw,30px);line-height:1.05;text-transform:uppercase}
.getting-started .eyebrow{color:var(--pink)}
.getting-started-count{display:block;margin-top:4px;font-size:12px;color:var(--muted)}
.getting-started-bar{height:4px;margin:14px 0 4px;border-radius:4px;background:var(--line);overflow:hidden}
.getting-started-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--pink-hot),var(--pink));border-radius:4px;transition:width .6s ease}
.gs-w-0{width:0}.gs-w-25{width:25%}.gs-w-50{width:50%}.gs-w-75{width:75%}.gs-w-100{width:100%}
.getting-started-steps{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.getting-started-steps li{display:flex;gap:12px;padding:14px;border:1px solid var(--line);border-radius:14px}
.getting-started-steps li.is-done{opacity:.6}
.getting-started-steps li.is-done strong{text-decoration:line-through}
.gs-tick{flex:0 0 28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;border:1px solid var(--pink);color:var(--pink)}
.is-done>.gs-tick{background:var(--pink);color:#fff}
.getting-started-steps p{margin:4px 0 10px;font-size:13px;color:var(--muted)}
.gs-links{display:flex;flex-wrap:wrap;gap:8px}
.gs-links .button{padding:8px 14px;font-size:12px}
@media(max-width:700px){.getting-started-steps{grid-template-columns:1fr}.getting-started{padding:16px}}

/* 3.54 preview: section tabs + guides hub */
.section-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 18px;padding:5px;border-radius:999px;background:var(--panel);border:1px solid var(--line);width:max-content;max-width:100%}
.section-tabs a{padding:8px 16px;border-radius:999px;font-weight:700;font-size:.9rem;text-decoration:none;color:inherit;opacity:.75;white-space:nowrap}
.section-tabs a:hover{opacity:1}
.section-tabs a.is-active{background:var(--pink);color:#fff;opacity:1}
@media (max-width:640px){.section-tabs{width:100%;overflow-x:auto;flex-wrap:nowrap}.section-tabs a{padding:7px 12px;font-size:.85rem}}
.guides-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;margin:10px auto 60px}
.guides-card{position:relative;overflow:hidden;display:flex;flex-direction:column;gap:6px;padding:22px;border-radius:18px;border:1px solid var(--line);background:var(--panel);text-decoration:none;color:inherit;transition:transform .15s,border-color .15s}
.guides-card:hover{transform:translateY(-2px);border-color:var(--pink)}
.guides-card strong{font-size:1.15rem}
.guides-card span:not(.guides-kanji){opacity:.75;font-size:.92rem}
.guides-kanji{position:absolute;right:10px;top:-6px;font-size:4.5rem;opacity:.07;font-weight:900;pointer-events:none}
.collection-stats-split.is-single{grid-template-columns:1fr}
.meet-page>.section-tabs{justify-self:start}

/* 3.54.1: a profile banner fills the whole box again (3.52 look rules had pushed it under the buttons). */
.profile-hero-background[data-kanji]:after{content:none}

/* 3.55: Dashboard (/dashboard/, members' landing page) */
.dash-p-0{--p:0}.dash-p-1{--p:1}.dash-p-2{--p:2}.dash-p-3{--p:3}.dash-p-4{--p:4}.dash-p-5{--p:5}.dash-p-6{--p:6}.dash-p-7{--p:7}.dash-p-8{--p:8}.dash-p-9{--p:9}.dash-p-10{--p:10}.dash-p-11{--p:11}.dash-p-12{--p:12}.dash-p-13{--p:13}.dash-p-14{--p:14}.dash-p-15{--p:15}.dash-p-16{--p:16}.dash-p-17{--p:17}.dash-p-18{--p:18}.dash-p-19{--p:19}.dash-p-20{--p:20}.dash-p-21{--p:21}.dash-p-22{--p:22}.dash-p-23{--p:23}.dash-p-24{--p:24}.dash-p-25{--p:25}.dash-p-26{--p:26}.dash-p-27{--p:27}.dash-p-28{--p:28}.dash-p-29{--p:29}.dash-p-30{--p:30}.dash-p-31{--p:31}.dash-p-32{--p:32}.dash-p-33{--p:33}.dash-p-34{--p:34}.dash-p-35{--p:35}.dash-p-36{--p:36}.dash-p-37{--p:37}.dash-p-38{--p:38}.dash-p-39{--p:39}.dash-p-40{--p:40}.dash-p-41{--p:41}.dash-p-42{--p:42}.dash-p-43{--p:43}.dash-p-44{--p:44}.dash-p-45{--p:45}.dash-p-46{--p:46}.dash-p-47{--p:47}.dash-p-48{--p:48}.dash-p-49{--p:49}.dash-p-50{--p:50}.dash-p-51{--p:51}.dash-p-52{--p:52}.dash-p-53{--p:53}.dash-p-54{--p:54}.dash-p-55{--p:55}.dash-p-56{--p:56}.dash-p-57{--p:57}.dash-p-58{--p:58}.dash-p-59{--p:59}.dash-p-60{--p:60}.dash-p-61{--p:61}.dash-p-62{--p:62}.dash-p-63{--p:63}.dash-p-64{--p:64}.dash-p-65{--p:65}.dash-p-66{--p:66}.dash-p-67{--p:67}.dash-p-68{--p:68}.dash-p-69{--p:69}.dash-p-70{--p:70}.dash-p-71{--p:71}.dash-p-72{--p:72}.dash-p-73{--p:73}.dash-p-74{--p:74}.dash-p-75{--p:75}.dash-p-76{--p:76}.dash-p-77{--p:77}.dash-p-78{--p:78}.dash-p-79{--p:79}.dash-p-80{--p:80}.dash-p-81{--p:81}.dash-p-82{--p:82}.dash-p-83{--p:83}.dash-p-84{--p:84}.dash-p-85{--p:85}.dash-p-86{--p:86}.dash-p-87{--p:87}.dash-p-88{--p:88}.dash-p-89{--p:89}.dash-p-90{--p:90}.dash-p-91{--p:91}.dash-p-92{--p:92}.dash-p-93{--p:93}.dash-p-94{--p:94}.dash-p-95{--p:95}.dash-p-96{--p:96}.dash-p-97{--p:97}.dash-p-98{--p:98}.dash-p-99{--p:99}.dash-p-100{--p:100}
.dash-hero{display:flex;align-items:center;justify-content:space-between;gap:24px}
.dash-hero-main{display:flex;align-items:center;gap:22px;min-width:0}
.dash-avatar{flex:0 0 auto;width:92px;height:92px;border-radius:50%;overflow:hidden;display:grid;place-items:center;border:2px solid var(--pink);background:var(--panel);color:var(--pink);font-size:34px;font-weight:800;text-decoration:none}
.dash-avatar img{width:100%;height:100%;object-fit:cover}
.dash-hero h1{margin:6px 0 10px}
.dash-hero-facts{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none;opacity:.9}
.dash-hero-facts b{color:var(--pink);font-size:1.1rem;margin-right:3px}
.dash-ring{flex:0 0 auto;width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--pink) calc(var(--p,0)*1%),rgba(127,127,127,.18) 0)}
.dash-ring>div{width:118px;height:118px;border-radius:50%;background:var(--bg);display:grid;place-content:center;text-align:center}
.dash-ring strong{font-size:2rem;line-height:1}
.dash-ring small{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;opacity:.7;margin-top:4px}
.dash-quick{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px}
.dash-quick a{padding:9px 16px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:inherit;text-decoration:none;font-weight:700;font-size:.9rem}
.dash-quick a:hover{border-color:var(--pink)}
.dash-quick a.is-main{background:var(--pink);border-color:var(--pink);color:#fff}
.dash-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px;margin:18px 0}
.dash-card{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:18px;border:1px solid var(--line);background:var(--panel);color:inherit;text-decoration:none;transition:border-color .15s,transform .15s}
.dash-card:hover{border-color:var(--pink);transform:translateY(-2px)}
.dash-card .eyebrow{color:var(--pink)}
.dash-card strong{font-size:1.2rem}
.dash-card small{opacity:.75}
.dash-card small b{color:var(--pink)}
.dash-card em{margin-top:auto;font-style:normal;font-weight:700;font-size:.85rem;color:var(--pink)}
.dash-card.has-news{border-color:var(--pink)}
.dash-news{margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;opacity:.9}
.dash-bar{height:6px;border-radius:99px;background:rgba(127,127,127,.2);overflow:hidden}
.dash-w{display:block;height:100%;width:calc(var(--p)*1%);border-radius:99px;background:linear-gradient(90deg,var(--pink-hot,var(--pink)),var(--pink))}
.dash-section{margin:26px 0 0}
.dash-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.dash-head .eyebrow{color:var(--pink)}
.dash-head a{font-size:.85rem;color:var(--muted);text-decoration:none}
.dash-head a:hover{color:var(--pink)}
.dash-split{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.dash-sets a{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr auto;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.dash-sets a:hover b{color:var(--pink)}
.dash-sets span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dash-sets small{opacity:.7;min-width:56px;text-align:right}
.dash-activity>div{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:10px 0;border-bottom:1px solid var(--line)}
.dash-activity span{grid-column:1;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--pink)}
.dash-activity strong{grid-column:1;font-size:.95rem}
.dash-activity time{grid-column:2;grid-row:1/3;align-self:center;font-size:.8rem;opacity:.6}
@media (max-width:900px){.dash-split{grid-template-columns:1fr}}
@media (max-width:640px){
  .dash-hero{flex-direction:column;align-items:flex-start}
  .dash-hero-main{gap:14px}
  .dash-avatar{width:64px;height:64px;font-size:24px}
  .collector-hero.dash-hero>.dash-ring{position:absolute;right:16px;top:16px;width:84px;height:84px}
  .dash-hero-main{padding-right:92px;flex-direction:column;align-items:flex-start}
  .dash-hero h1{font-size:1.7rem;line-height:1.1;overflow-wrap:anywhere}
  .dash-ring>div{width:66px;height:66px}
  .dash-ring strong{font-size:1.15rem}
  .dash-ring small{display:none}
  .dash-quick{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .dash-quick a{white-space:nowrap}
}
