.social-page { max-width: 1320px; margin: 0 auto 60px; padding: 24px; color: var(--text-dark); }
.social-hero { max-width: 820px; margin: 0 auto 38px; text-align: center; }
.social-hero > span, .social-kicker { display: inline-block; padding: 5px 10px; background: #25252d; color: #fff; font-weight: 900; letter-spacing: .1em; transform: rotate(-2deg); }
.social-hero h1 { margin: 18px 0 8px; font-size: clamp(2.5rem, 7vw, 5rem); line-height: .95; }
.social-hero p { font-weight: 650; }
.community-tabs { display: flex; gap: 2px; max-width: 920px; min-height: 48px; margin: 0 auto 24px; overflow-x: auto; border-bottom: 1px solid #dedbd6; scrollbar-width: none; }
.community-tabs [role="tab"] { position: relative; flex: none; padding: 0 16px; border: 0; border-radius: 10px 10px 0 0; background: transparent; box-shadow: none; color: var(--text-muted); font: inherit; font-size: .95rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.community-tabs [role="tab"]::after { content: ''; position: absolute; inset: auto 10px 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.community-tabs [role="tab"]:is(:hover, :active) { background: var(--bg-subtle); color: var(--text-dark); transform: none; }
.community-tabs [aria-selected="true"] { color: var(--text-dark); }
.community-tabs [aria-selected="true"]::after { background: #25252d; }
.community-tabs [role="tab"]:focus-visible { outline: 2px solid #7c3aed; outline-offset: -3px; }
.activity-feed { max-width: 920px; margin: 0 auto 44px; padding: 22px; border: 3px solid var(--ink-border); border-radius: 14px; background: var(--tint-yellow); box-shadow: 6px 6px 0 var(--ink-shadow); }
.activity-feed[hidden] { display: none; }
.activity-feed > header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.activity-feed h2, .activity-feed header p { margin: 0; }
.activity-feed header p { margin-top: 3px; opacity: .7; font-size: .82rem; font-weight: 700; }
.activity-feed ol { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.activity-feed li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 2px solid var(--ink-border); border-radius: 8px; background: var(--white); font-weight: 700; }
.activity-feed li a { color: var(--accent-purple); font-weight: 950; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.activity-feed time { flex: none; opacity: .55; font-size: .72rem; font-weight: 850; white-space: nowrap; }
.activity-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 14px; }
.activity-filters label { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 850; }
.activity-filters input { min-width: min(280px, 60vw); min-height: 42px; box-sizing: border-box; padding: 0 12px; border: 2px solid var(--ink-border); border-radius: 10px; background: var(--white); font: inherit; font-weight: 700; }
.activity-more { display: block; margin: 14px auto 0; }
.activity-more[hidden] { display: none; }
.profile-directory-card[hidden] { display: none; }
.profile-directory { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.profile-directory-card { --frame: #25252d; display: flex; flex-direction: column; gap: 10px; padding: 17px; border: 3px solid var(--frame); border-radius: 14px; background: var(--white); color: var(--text-dark); text-decoration: none; box-shadow: 6px 6px 0 var(--frame); transition: transform .15s, box-shadow .15s; }
.profile-directory-card:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--frame); }
.profile-directory-card > strong { margin-top: auto; font-size: .8rem; }
.profile-directory-card h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 1.15rem; }
/* A citizen's card wears their country (`country-paper` and `country-cover`, wallet.css): a strip of its
   cover across the top, with its emblem and code, which their picture stands on the edge of, then its
   paper and its ink. A collector with no country keeps the plain card. */
.profile-directory-card.country-paper { --frame: var(--cover-deep); overflow: hidden; padding-top: 0; background: var(--paper), #fffdf9; }
.profile-directory-cover { display: flex; align-items: center; justify-content: flex-end; gap: 9px; height: 56px; margin: 0 -17px -40px; padding: 0 14px 9px; box-sizing: border-box; }
.profile-directory-cover::after { bottom: 5px; }
.profile-directory-cover .bouzopp-passport-emblem { display: block; width: 30px; height: 30px; stroke-width: 2.6; }
.profile-directory-cover b { font-size: .8rem; font-weight: 800; letter-spacing: .28em; }
.profile-directory-card.country-paper h2 { position: relative; align-items: flex-end; }
.profile-directory-card.country-paper h2 .collector { align-items: flex-end; }
.profile-directory-card.country-paper h2 .collector-avatar { border-color: #fffdf9; box-shadow: 0 0 0 2px var(--foil), 0 0 0 3px color-mix(in srgb, var(--cover-deep) 55%, transparent); }
.profile-directory-card.country-paper > strong { color: var(--ink); }
.profile-directory-card.is-pedalistan .collector-name { font-style: italic; font-weight: 900; }
.profile-directory-card.is-andasmas .collector-name { font-family: Georgia, "Times New Roman", serif; }
/* By night the card is read by lamplight (wallet.css): the country's night paper and night ink under the same cover. */
html[data-theme="dark"] .profile-directory-card.country-paper { --ink: var(--ink-night); background: var(--paper), var(--paper-night); }
html[data-theme="dark"] .profile-directory-card.country-paper h2 .collector-avatar { border-color: var(--paper-night); }
.profile-directory-card h2 .collector-detail { font-size: .7rem; font-weight: 700; }
.profile-directory-card h2 em { padding: 2px 5px; background: var(--pastel-yellow); font-size: .6rem; font-style: normal; }
.profile-directory-card h2 .visibility-public { background: #75d69c; color: #2d2d2d; }
.profile-directory-card h2 .visibility-private { background: #ff8f8f; color: #2d2d2d; }
.profile-directory-card h2 .visibility-friends { background: var(--pastel-yellow); }
.profile-avatar-public { overflow: hidden; display: grid; place-items: center; border: 3px solid var(--ink-border); border-radius: 50%; background: var(--pastel-purple-light); font-weight: 1000; }
.profile-avatar-public img { width: 100%; height: 100%; object-fit: cover; }
.trade-composer button, .trade-filters button, .trade-list-item footer button, .inspector-trade-button { padding: 10px 14px; border: 3px solid var(--ink-border); border-radius: 8px; background: var(--pastel-yellow); box-shadow: 3px 3px 0 var(--ink-shadow); color: var(--text-dark); font-weight: 900; cursor: pointer; }
.report-dialog { max-width: 460px; padding: 22px; border: 3px solid var(--ink-border); border-radius: 12px; box-shadow: 6px 6px 0 var(--ink-shadow); }
.report-dialog::backdrop { background: rgba(37, 37, 45, .5); }
.report-dialog form { display: grid; gap: 8px; }
.report-dialog h2 { font-size: 1.3rem; font-weight: 1000; }
.report-dialog p { color: var(--text-muted); font-weight: 700; }
.report-dialog label { font-size: .72rem; font-weight: 1000; text-transform: uppercase; }
.report-dialog select, .report-dialog textarea { padding: 9px 10px; border: 3px solid var(--ink-border); border-radius: 8px; font: inherit; font-weight: 700; }
.report-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.report-dialog-actions button { padding: 9px 16px; border: 3px solid var(--ink-border); border-radius: 8px; background: var(--white); font: inherit; font-weight: 1000; cursor: pointer; box-shadow: 3px 3px 0 var(--ink-shadow); }
#reportSubmit { background: var(--pastel-peach); }
/* Giving a booster from a profile: the packs you hold, drawn as the inbox draws them, to pick one. */
.give-booster-dialog { width: min(600px, calc(100vw - 32px)); max-width: none; }
.give-booster-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; max-height: min(56vh, 460px); overflow-y: auto; margin: 6px 0 2px; padding: 3px 8px 9px 3px; }
.give-booster-option { display: grid; gap: 8px; align-content: start; }
.give-booster-option .give-booster-count { display: flex; align-items: center; gap: 8px; padding: 0 4px; font-size: .85rem; font-weight: 800; text-transform: none; animation: give-booster-count-in 220ms ease-out; }
.give-booster-option .give-booster-count[hidden] { display: none; }
.give-booster-count input { width: 4.5em; padding: 6px 8px; border: 3px solid var(--ink-border); border-radius: 8px; font: inherit; font-weight: 800; }
@keyframes give-booster-count-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: none; } }
.give-booster-choice { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 3px solid var(--ink-border); border-radius: 12px; background: var(--white); box-shadow: 4px 4px 0 var(--ink-shadow); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.give-booster-choice:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink-shadow); }
.give-booster-choice[aria-pressed="true"] { background: var(--tint-yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-shadow); }
.give-booster-choice:focus-visible { outline: 3px solid #ff5d8f; outline-offset: 3px; }
.give-booster-pack { flex: 0 0 auto; width: 52px; }
.give-booster-pack .booster-pack { width: 52px; }
.give-booster-copy { display: grid; gap: 3px; min-width: 0; }
.give-booster-copy strong { overflow-wrap: anywhere; }
.give-booster-copy small { color: var(--text-muted); font-weight: 650; }
#giveBoosterSubmit { background: var(--pastel-yellow); }
#closeAccountSubmit { background: #ffadad; }
.report-dialog input[type="text"] { padding: 9px 10px; border: 3px solid var(--ink-border); border-radius: 8px; font: inherit; font-weight: 700; }
.account-data { display: grid; gap: 8px; margin: 26px 0; padding: 18px 20px; border: 3px solid var(--ink-border); border-radius: 12px; background: var(--white); box-shadow: 5px 5px 0 var(--ink-shadow); }
.account-data h2 { font-size: 1.2rem; font-weight: 1000; }
.account-data p { color: var(--text-muted); font-weight: 700; }
.account-data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.account-data-actions a, .account-data-actions button { padding: 9px 16px; border: 3px solid var(--ink-border); border-radius: 8px; background: var(--white); color: var(--text-dark); font: inherit; font-weight: 1000; text-decoration: none; cursor: pointer; box-shadow: 3px 3px 0 var(--ink-shadow); }
#closeAccountButton { background: #ffadad; }


.report-dialog-actions button:disabled { cursor: progress; opacity: .6; }

.profile-showcase { position: relative; overflow: hidden; margin: 24px 0 30px; padding: 22px 26px 28px; border: 3px solid var(--ink-border); border-radius: 14px; background: linear-gradient(135deg, var(--white) 35%, var(--pastel-purple-light)); box-shadow: 6px 6px 0 var(--ink-shadow); }
.profile-showcase::before { content: ''; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, #8d55ef, #ff6f9e, var(--pastel-yellow)); }
.profile-showcase > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 3px 0 24px; }
.profile-showcase h2 { margin: 10px 0 3px; font-size: 1.75rem; }
.profile-showcase > header p { margin: 0; opacity: .65; font-size: .85rem; font-weight: 750; }
.profile-showcase button { padding: 9px 13px; border: 2px solid var(--ink-border); border-radius: 8px; background: var(--pastel-purple-light); box-shadow: 2px 2px 0 var(--ink-shadow); color: var(--text-dark); font-weight: 900; cursor: pointer; }
.profile-showcase-content { display: flex; align-items: start; gap: 32px; }
.profile-showcase-grid { flex: 1; min-width: 0; max-width: none; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-self: center; align-items: start; }
.profile-showcase .collection-card-button { display: block; width: min(100%, var(--showcase-card-width, 265px)); flex: 0 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: inherit; }
.collection-card-button { text-decoration: none; color: inherit; }
.profile-showcase > .social-empty { padding: 18px; border: 2px dashed #aaa0b9; border-radius: 9px; background: rgba(var(--surface-rgb), .75); }
.profile-showcase [hidden] { display: none; }
.showcase-editor { position: fixed; inset: 0; z-index: 21000; display: grid; place-items: center; overflow: auto; padding: 24px; background: rgba(25, 22, 34, .72); backdrop-filter: blur(8px); }
.showcase-editor-panel { width: min(920px, 100%); max-height: min(760px, calc(100dvh - 48px)); display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding: 24px; border: 3px solid var(--ink-border); border-radius: 14px; background: var(--white); box-shadow: 10px 10px 0 var(--ink-shadow); }
.showcase-fridge-setting { display: flex; align-items: center; gap: 10px; }
.showcase-items-settings { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.showcase-items-settings legend { padding: 0; margin-bottom: 8px; font-weight: 800; }
.showcase-editor-panel > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.showcase-editor-panel h3 { margin: 10px 0 3px; font-size: 1.65rem; }
.showcase-editor-panel header p { margin: 0; opacity: .65; font-weight: 750; }
.profile-showcase .showcase-editor-close { padding: 0; border: 0; background: transparent; box-shadow: none; font-size: 2rem; line-height: 1; }
.showcase-options { min-height: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; overflow-y: auto; margin: 20px 0; padding: 2px 8px 4px 2px; }
.showcase-option { display: grid; grid-template-columns: auto 46px 1fr; gap: 9px; align-items: center; padding: 8px; border: 2px solid #d6d1dc; border-radius: 9px; background: var(--white); cursor: pointer; }
.showcase-option:has(input:checked) { border-color: var(--ink-border); background: var(--pastel-purple-light); box-shadow: 2px 2px 0 var(--ink-shadow); }
.showcase-option:has(input:disabled) { opacity: .42; cursor: not-allowed; }
.showcase-option input { width: 18px; height: 18px; accent-color: #8d55ef; }
.showcase-option img { width: 46px; height: 58px; border: 1px solid var(--ink-border); border-radius: 5px; object-fit: cover; }
.showcase-option strong, .showcase-option small { display: block; overflow-wrap: anywhere; }
.showcase-option strong { font-size: .78rem; line-height: 1.15; }
.showcase-option small { margin-top: 4px; opacity: .55; font-size: .65rem; }
.showcase-editor-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 2px solid #e6e1eb; }
.showcase-editor-panel > footer p { margin: 0; color: var(--danger); font-size: .78rem; font-weight: 750; }
.showcase-editor-panel > footer button { min-width: 150px; background: var(--pastel-yellow); }
.trade-composer { margin: 35px 0; padding: 24px; border: 3px solid var(--ink-border); border-radius: 14px; background: var(--tint-green); box-shadow: 6px 6px 0 var(--ink-shadow); }
.trade-composer h2 { margin: 14px 0 4px; }
.trade-composer p { margin: 5px 0; }
.trade-composer form { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 14px; align-items: end; margin-top: 18px; }
.trade-composer label { display: grid; gap: 6px; font-size: .8rem; font-weight: 900; }
.trade-composer select, .booster-composer input { min-width: 0; padding: 11px; border: 2px solid var(--ink-border); border-radius: 8px; background: var(--white); }
.booster-composer { background: var(--tint-yellow); }
.booster-composer form { grid-template-columns: minmax(240px, 1fr) auto; }
.passport-desk form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.passport-desk #passportStampForm label { grid-column: 1 / -1; }
.signal-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.signal-admin-recipe { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 22px; }
.signal-admin-recipe span { display: block; font-size: .85rem; overflow-wrap: anywhere; }
.trade-arrow { padding-bottom: 10px; font-size: 1.6rem; font-weight: 1000; }
.profile-collection-toolbar { margin-top: 38px; }
.social-empty, .social-error { grid-column: 1 / -1; padding: 30px; text-align: center; font-weight: 800; }
.social-error { color: var(--danger); }
.inspector-trade-button { margin-top: 16px; }
.trade-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; }
.trade-filters button { background: var(--white); }
.trade-filters button.active { background: var(--pastel-yellow); transform: translate(-2px, -2px); }
.trade-list { display: grid; gap: 22px; max-width: 1000px; margin: auto; }
.trade-list-item { padding: 20px; border: 3px solid var(--ink-border); border-radius: 14px; background: var(--white); box-shadow: 6px 6px 0 var(--ink-shadow); }
.trade-list-item.status-accepted { background: var(--tint-green); }
.trade-list-item.status-declined, .trade-list-item.status-cancelled { opacity: .7; }
.trade-list-item > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.trade-list-item > header a { color: inherit; font-weight: 900; }
.trade-list-item .trade-status { display: grid; justify-items: end; gap: 2px; text-align: right; }
.trade-list-item .trade-times { display: grid; justify-items: end; color: var(--text-muted); font-weight: 700; }
.trade-list-item > header > strong { padding: 3px 7px; background: var(--pastel-purple-light); border: 2px solid var(--ink-border); border-radius: 20px; font-size: .7rem; text-transform: uppercase; }
.trade-offer-message { margin: 0 0 14px; padding: 10px 12px; border-left: 4px solid #9ba360; background: var(--bg-subtle); font-style: italic; }
.trade-card-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.trade-card-pair > b { font-size: 2rem; }
.trade-card-pair > div > small { display: block; margin-bottom: 7px; font-weight: 900; text-transform: uppercase; }
.trade-mini-card { --rarity-color: #8a96a3; display: grid; grid-template-columns: 90px 1fr; overflow: hidden; position: relative; border: 3px solid var(--ink-border); border-radius: 10px; background: var(--white); box-shadow: 4px 4px 0 var(--rarity-color); }
.trade-mini-card.rarity-uncommon { --rarity-color: #30a46c; }
.trade-mini-card.rarity-rare { --rarity-color: #3976e8; }
.trade-mini-card.rarity-epic { --rarity-color: #9c4dcc; }
.trade-mini-card.rarity-legendary { --rarity-color: #f39a20; }
.trade-mini-card.rarity-unique { --rarity-color: #ff3cac; background: linear-gradient(145deg, var(--white) 0 76%, rgba(255, 60, 172, .13) 91%, rgba(77, 238, 234, .2)); box-shadow: 4px 4px 0 #ff3cac, 7px 7px 0 #17131f, 0 0 18px rgba(77, 238, 234, .42); }
.trade-mini-card.rarity-mythical { --rarity-color: #d8243f; background: linear-gradient(145deg, var(--white) 0 72%, var(--tint-peach) 88%, #29070d); box-shadow: 4px 4px 0 #d8243f, 7px 7px 0 #1b080b, 0 0 20px #e244386b; }
.trade-mini-card.rarity-celestial { --rarity-color: #776de8; background: radial-gradient(circle at 86% 18%, var(--white) 0 1px, transparent 2px), linear-gradient(145deg, var(--white) 0 70%, var(--tint-blue) 88%, #35256d); box-shadow: 4px 4px 0 #776de8, 7px 7px 0 #35256d, 0 0 22px #8edfff80; }
.trade-mini-card.rarity-gilded { --rarity-color: #d4a23a; background: linear-gradient(145deg, var(--white) 0 70%, var(--tint-yellow) 86%, #d4a23a); box-shadow: 4px 4px 0 #d4a23a, 7px 7px 0 #1a1204, 0 0 18px #f3dc9866; }
.trade-mini-card.rarity-abyssal { --rarity-color: #0b5a70; background: radial-gradient(circle at 84% 20%, var(--pastel-blue) 0 1px, transparent 2px), linear-gradient(145deg, var(--white) 0 70%, var(--tint-blue) 86%, #06324a); box-shadow: 4px 4px 0 #0b5a70, 7px 7px 0 #031019, 0 0 20px #3ff5d866; }
.trade-mini-card.rarity-overgrown { --rarity-color: #3f8f2c; background: linear-gradient(145deg, var(--white) 0 70%, var(--tint-green) 86%, #7cc242); box-shadow: 4px 4px 0 #3f8f2c, 7px 7px 0 #0f230d, 0 0 18px #9be15d66; }
.trade-mini-card.rarity-inkbound { --rarity-color: #1d1b22; background: var(--tint-yellow); box-shadow: 4px 4px 0 var(--ink-shadow), 7px 7px 0 #c8102e; }
.trade-mini-card.rarity-stormforged { --rarity-color: #2d63e8; background: linear-gradient(145deg, var(--white) 0 68%, var(--tint-blue) 84%, #0e1c55); box-shadow: 4px 4px 0 #2d63e8, 7px 7px 0 #0a1238, 0 0 20px #7cc4ff66; }
.trade-mini-card.rarity-blueprint { --rarity-color: #1f56a8; background: linear-gradient(145deg, var(--white) 0 68%, var(--tint-blue) 84%, #12407f); box-shadow: 4px 4px 0 #1f56a8, 7px 7px 0 #0b2a5c; }
.trade-mini-card.rarity-glitched { --rarity-color: #0d0d0f; background: repeating-linear-gradient(0deg, #ffffff0a 0 1px, transparent 1px 3px), #111114; color: #d6d6cc; box-shadow: -2px 0 0 #ff2d55, 2px 0 0 #00e7ff, 5px 5px 0 var(--ink-shadow); }
.trade-mini-card.rarity-counterfeit { --rarity-color: #9ba360; background: var(--bg-subtle); box-shadow: 4px 4px 0 #9ba360, 7px 7px 0 #17131f; }
.trade-mini-card.is-foil { background: linear-gradient(135deg, var(--white), var(--tint-green) 35%, var(--pastel-purple-light) 70%, var(--tint-yellow)); box-shadow: 4px 4px 0 var(--rarity-color), 0 0 18px rgba(124, 236, 255,.55); }
.trade-mini-card.rarity-unique.is-foil { background: linear-gradient(135deg, var(--white), var(--tint-green) 40%, var(--tint-pink) 76%, var(--tint-blue)); box-shadow: 4px 4px 0 #ff3cac, 7px 7px 0 #17131f, 0 0 22px rgba(77, 238, 234, .65); }
.trade-mini-card img { width: 90px; height: 90px; object-fit: cover; border-right: 3px solid var(--ink-border); }
.trade-mini-card div { min-width: 0; padding: 12px; align-self: center; }
.trade-mini-card strong, .trade-mini-card small { display: block; overflow-wrap: anywhere; }
.trade-mini-card small { margin-top: 5px; opacity: .6; }
.trade-list-item footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.trade-list-item footer button.secondary { background: var(--white); }

@media (max-width: 760px) {
    .social-page { padding: 16px 12px 12px; }
    .activity-feed { padding: 16px; }
    .activity-feed li { align-items: flex-start; flex-direction: column; gap: 5px; }
    .profile-showcase { padding: 20px 16px 24px; }
    .profile-showcase > header { align-items: stretch; flex-direction: column; }
    .profile-showcase-grid { gap: 20px; }
    .profile-showcase-grid .collection-card-button { width: min(38vw, 145px); }
    .showcase-editor { padding: 12px; }
    .showcase-editor-panel { max-height: calc(100dvh - 24px); padding: 18px; }
    .showcase-options { grid-template-columns: 1fr; }
    .showcase-editor-panel > footer { align-items: stretch; flex-direction: column; }
    .trade-composer form { grid-template-columns: 1fr; }
    .booster-composer form { grid-template-columns: 1fr; }
    .trade-arrow { padding: 0; text-align: center; transform: rotate(90deg); }
    .trade-card-pair { grid-template-columns: 1fr; }
    .trade-card-pair > b { transform: rotate(90deg); text-align: center; }
}
.social-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.social-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 9px 13px; border: 1px solid #aaa5b0; border-radius: 8px; background: var(--white); color: var(--text-muted); font-size: .8rem; font-weight: 800; text-decoration: none; }
.social-action:hover { border-color: #8d6cb2; background: var(--pastel-purple-light); color: var(--accent-purple); }
.collection-load-more { display: block; margin: 24px auto 0; padding: 11px 18px; border: 2px solid var(--ink-border); border-radius: 8px; background: var(--white); color: var(--text-dark); font-weight: 900; box-shadow: 3px 3px 0 var(--ink-shadow); cursor: pointer; }
.collection-load-more[hidden] { display: none; }
.collection-load-more:hover { background: var(--pastel-purple-light); }
.social-action:focus-visible, .badge-cabinet > summary:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }
.badge-cabinet { margin: 22px 0 16px; border: 1px solid #dedbd6; border-radius: 12px; background: var(--white); color: var(--text-dark); box-shadow: 0 3px 0 #e9e3ee; overflow: hidden; }
.badge-cabinet > summary { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 18px 48px 18px 20px; list-style: none; background: var(--bg-subtle); }
.badge-cabinet[open] > summary { border-bottom: 1px solid #e5deec; }
.badge-cabinet > summary::-webkit-details-marker { display: none; }
.badge-cabinet > summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 1.4rem; font-weight: 500; }
.badge-cabinet[open] > summary::after { content: '−'; }
.badge-cabinet summary span { color: var(--text-muted); font-size: .6rem; letter-spacing: .16em; font-weight: 900; }
.badge-cabinet h2 { margin: 5px 0 0; font-size: 1.25rem; color: var(--text-dark); }
.badge-cabinet summary p { margin: 0; color: var(--text-muted); font-size: .8rem; }
/* The medal itself, its ribbon and its tones are in badge-medal.css, which every page has. */
/* Ribbons (#1109): ribbon bars racked under the medals, as on a uniform, a symbol in the middle and the count, ×2 in
   the medals' gold, on the lower right corner; on the profile card, the same rack, small. The tip says what each counts. */
.ribbon-rack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; max-width: 600px; margin: 0 auto; padding: 0 18px 26px; list-style: none; }
/* Each opens up close in the inspector, like a medal. */
/* The bar itself is in badge-medal.css, which every page has. */
/* None of the site's button on it, at rest, hovered or pressed: no shadow, no box, no colour. */
.ribbon .ribbon-open, .ribbon .ribbon-open:is(:hover, :active, :focus) { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; transform: none; font: inherit; color: inherit; cursor: pointer; transition: filter .12s ease; }
.ribbon .ribbon-open:is(:hover, :focus-visible) { filter: brightness(1.12); }
.inspector-object.is-ribbon { zoom: 4; }
/* Its facts beside it, in the inspector's own colours, whatever the theme. */
.ribbon-details { border-top-color: color-mix(in srgb, currentColor 30%, transparent); }
.ribbon-details :is(.badge-details-kind, .badge-details-xp, .badge-details-facts) { color: inherit; opacity: .85; }
.ribbon-details .badge-details-xp strong { color: inherit; }
.ribbon-details .badge-details-facts { border-top-color: color-mix(in srgb, currentColor 20%, transparent); }
@media (max-width: 1000px), (max-height: 760px) { .inspector-object.is-ribbon { zoom: 3; } }
.ribbon-rack.is-small { gap: 5px 6px; max-width: 220px; padding: 0; }
.ribbon-rack.is-small .ribbon { width: 46px; height: 16px; }
.ribbon-rack.is-small .ribbon-symbol { width: 11px; height: 11px; stroke-width: 2.8; }
.ribbon-rack.is-small .ribbon-count { right: -3px; bottom: -7px; font-size: .58rem; }
.profile-card-ribbons { margin: 6px auto 0; }
.profile-card-ribbons[hidden] { display: none; }
/* Pinned to the profile card: a pin head on the clasp. */
.badge-pinned { position: absolute; right: 10px; top: -2px; z-index: 3; width: 13px; height: 13px; border: 2px solid #fffdf9; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--tint-yellow) 0 2px, #352940 3px); box-shadow: 0 1px 2px #0005; }

/* The cabinet is a display case: the rack laid on velvet, a brass plate for the score, and the
   three medals on the card in their own cases at the head. */
.badge-sections { background: radial-gradient(ellipse at 50% 0, #3b2a4f 0, #241a33 55%, #170f21 100%); color: #f3ecf7; }
.badge-score { display: flex; align-items: baseline; justify-content: center; gap: 8px; width: max-content; margin: 22px auto 0; padding: 8px 26px; border-radius: 4px; background: linear-gradient(180deg, var(--pastel-yellow), #d9b25c 55%, #b88c33); color: #3b2a12; box-shadow: inset 0 1px 0 #fff3c9, inset 0 -1px 0 #7a5a1c, 0 2px 0 #0a0611, 0 0 0 1px #7a5a1c; }
.badge-score strong { font-size: 2rem; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 #fff3c9; }
.badge-score span { color: #5a4420; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.badge-pins { display: flex; justify-content: center; gap: 12px; margin: 14px 0 0; padding: 0 20px; list-style: none; }
.badge-pin { position: relative; box-sizing: border-box; display: grid; justify-items: center; gap: 2px; width: 132px; padding: 10px 8px 12px; border: 1px solid #5a4870; border-radius: 14px; background: #2d2140; box-shadow: inset 0 0 0 1px #00000040, 0 2px 0 #0a0611; text-align: center; }
.badge-pin > strong { min-height: 2.4em; font-size: .78rem; line-height: 1.2; text-transform: capitalize; overflow-wrap: anywhere; }
.badge-pin > .badge-multiplicity { position: static; margin-top: 2px; }
.badge-pin.is-empty { align-content: center; border: 2px dashed #5a4870; background: transparent; box-shadow: none; color: var(--accent-purple); font-size: 1.6rem; font-weight: 300; }
/* The search above the rack (#880). */
.badge-search { display: grid; justify-items: center; gap: 8px; margin: 18px 18px 0; }
.badge-search input { box-sizing: border-box; width: min(100%, 320px); padding: 8px 14px; border: 1px solid #5a4870; border-radius: 99px; background: #1d1529; color: #f5e2b0; font: inherit; font-size: .9rem; box-shadow: inset 0 1px 3px #0a0611; }
.badge-search input::placeholder { color: var(--accent-purple); }
.badge-search input:focus-visible { outline: 2px solid #f5e2b0; outline-offset: 2px; }
.badge-search-empty { margin: 0; color: #b3a2c7; font-size: .85rem; }
.badge-search-empty[hidden], .badge-wall > .badge-display[hidden] { display: none; }
/* The rack's order (#1124): the rarest first, or the latest earned. */
.badge-order { display: flex; gap: 4px; padding: 3px; border: 1px solid #5a4870; border-radius: 99px; background: #1d1529; }
.badge-order button { margin: 0; padding: 4px 12px; border: 0; border-radius: 99px; background: transparent; box-shadow: none; color: #b3a2c7; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; transform: none; }
.badge-order button[aria-pressed="true"] { background: #f5e2b0; color: #2d2140; }
.badge-order button:focus-visible { outline: 2px solid #f5e2b0; outline-offset: 2px; }
/* A medal's hover card (#1123), in place of the browser's tip, over the site's chrome (#1230). */
.badge-tip { position: fixed; z-index: 20000; box-sizing: border-box; display: grid; gap: 3px; width: max-content; max-width: min(280px, calc(100vw - 16px)); padding: 10px 14px 11px; border: 1px solid #5a4870; border-radius: 10px; background: #241a33; color: #f3ecf7; font-size: .82rem; line-height: 1.35; box-shadow: 0 10px 24px #0a0611b3, inset 0 1px 0 #ffffff14; pointer-events: none; }
.badge-tip[hidden] { display: none; }
.badge-tip-kind { color: #b3a2c7; font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.badge-tip strong { color: #f5e2b0; font-size: .95rem; }
.badge-tip em { color: #d8cbe6; }
.badge-tip-xp { color: #f5e2b0; font-weight: 800; }
.badge-tip ul { display: grid; gap: 1px; margin: 4px 0 0; padding: 6px 0 0; border-top: 1px solid #5a487080; list-style: none; color: #c9bbd9; font-size: .76rem; }
/* The log of the badges earned (#1136), under the ribbons. */
.badge-log { max-width: 600px; margin: 0 auto; padding: 0 18px 26px; }
.badge-log h3 { margin: 0 0 8px; color: #f5e2b0; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.badge-log ol { display: grid; max-height: 340px; margin: 0; padding: 0; overflow-y: auto; list-style: none; border-top: 1px solid #5a487080; }
.badge-log li { display: grid; grid-template-columns: 7.5em 1fr auto; align-items: baseline; gap: 10px; padding: 6px 2px; border-bottom: 1px solid #5a487080; font-size: .85rem; }
.badge-log time { color: #b3a2c7; font-variant-numeric: tabular-nums; }
.badge-log-name { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #f3ecf7; font: inherit; text-align: left; cursor: pointer; transform: none; }
.badge-log-name:hover, .badge-log-name:focus-visible { color: #f5e2b0; text-decoration: underline; }
.badge-log li > span { color: #f5e2b0; font-weight: 800; font-variant-numeric: tabular-nums; }
/* The rack: rows of medals as they are worn, each a mount at half size, the count under it. */
.badge-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 14px 6px; margin: 0; padding: 22px 18px 26px; list-style: none; }
.badge-wall > .badge-display { position: relative; display: grid; justify-items: center; gap: 0; padding: 8px 2px 4px; border-radius: 10px; background: radial-gradient(ellipse at 50% 30%, #ffffff10, transparent 70%); }
.badge-wall .badge-mount { zoom: .56; --mount-shadow: drop-shadow(0 6px 6px #000000a6); }
.badge-wall .badge-multiplicity { position: static; margin-top: -3px; min-width: 0; padding: 0; border: 0; background: none; color: #f5e2b0; font-size: .72rem; box-shadow: none; }
/* A secret medal's case has a brass thread round it. */
.badge-wall .badge-display.is-secret { background: radial-gradient(ellipse at 50% 30%, #f5e2b026, transparent 72%); box-shadow: inset 0 0 0 1px #f5e2b033; }
.badge-inactive .badge-mount, .badge-inactive .badge-plaque { filter: grayscale(1); opacity: .55; }
.badge-cabinet > footer { padding: 14px 20px; border-top: 1px solid #e5deec; color: var(--text-muted); text-align: center; font-size: .72rem; }
.badge-cabinet-empty { padding: 30px 8px; text-align: center; font-weight: 800; }
.badge-cabinet-empty span { display: inline-block; margin-top: 10px; color: #cbb998; font-size: .85rem; font-weight: 400; }
@media (max-width: 520px) { .badge-wall { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 10px 4px; padding: 14px 10px 16px; } .badge-wall .badge-mount { zoom: .5; } .badge-pins { gap: 6px; padding: 0 10px; } .badge-pin { width: auto; flex: 1 1 0; } .badge-cabinet > summary { grid-template-columns: 1fr; gap: 8px; padding: 16px 44px 16px 14px; } }
/* Above the effect: the count is information, not decoration. */
.badge-multiplicity { position: absolute; right: -2px; top: 62px; z-index: 3; min-width: 24px; padding: 1px 5px; border: 2px solid #f5e2b0; border-radius: 6px; background: var(--pastel-yellow); color: var(--text-dark); font-size: .68rem; font-weight: 900; box-shadow: 0 1px 0 #0a0611; }
.badge-plaque { position: relative; padding: 5px 7px; border: 1px solid #cdb68f; border-radius: 5px; background: var(--tint-yellow); color: var(--text-dark); box-shadow: 0 2px 0 #b59f78; }
.badge-plaque small, .badge-plaque strong, .badge-plaque span { display: block; }
.badge-plaque small { color: #7d6a4d; font-size: .45rem; letter-spacing: .11em; font-weight: 900; }
/* Two lines are reserved whatever the title, so a shelf of plaques lines up. */
.badge-plaque strong { display: flex; align-items: center; justify-content: center; min-height: 1.75rem; margin: 2px 0 1px; font-size: .72rem; line-height: 1.2; text-transform: capitalize; overflow-wrap: anywhere; }
.badge-plaque span { color: #7d6a4d; font-size: .58rem; font-weight: 800; }
.badge-earned { display: block; margin-top: 3px; padding-top: 3px; border-top: 1px dashed #c4ad86; color: #8a7556; font-size: .52rem; font-weight: 800; letter-spacing: .03em; }
/* A medal up close, in the shared inspector (news-ticker.js): the mount grown to the stage, tilting
   under the pointer like a card, its facts beside it in the card page's light type. */
.notable-card-modal .badge-stage { min-height: min(500px, calc(100dvh - 180px)); padding: 34px 24px; }
.inspector-object.is-badge { border-radius: 50%; zoom: 2.8; }
@media (max-height: 760px) { .inspector-object.is-badge { zoom: 2.3; } }
.inspector-object.is-badge .badge-mount { --mount-shadow: drop-shadow(0 2px 2px #0000006b); }
/* The light that crosses a medal as it tilts falls on the decoration alone: it is cut to the ribbon and the medal
   (badge-cabinet.js, `stageMarkup`), not to the box they hang in. */
/* On its own page (badge.html), the label beside the medal opens in the medal's metal, as a card's does in its rarity's. */
.card-page-details[class*="badge-tone-"] { --rarity-color: var(--metal); }
.card-page-details [data-badge-details] { display: contents; }
.card-page-details [data-badge-details] h1 { text-transform: capitalize; }
.badge-details { padding-top: 6px; border-top: 3px solid var(--metal); }
.badge-details-kind { display: block; margin-top: 10px; color: var(--text-muted); font-size: .62rem; font-weight: 900; letter-spacing: .16em; }
.badge-details h3 { margin: 4px 0 0; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; text-transform: capitalize; overflow-wrap: anywhere; }
.badge-details-flavor { margin: 8px 0 0; color: var(--text-muted); font-size: 1rem; font-style: italic; line-height: 1.45; }
.badge-details-flavor::before { content: '\201C'; }
.badge-details-flavor::after { content: '\201D'; }
.badge-details-xp { margin: 14px 0 0; color: var(--text-muted); font-size: .85rem; text-transform: capitalize; }
.badge-details-xp strong { color: var(--text-dark); font-size: 1.05rem; }
.badge-details-facts { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid #e5deec; list-style: none; color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
.badge-details-facts:empty { display: none; }
.badge-details-pin { margin: 18px 0 0; }
.badge-details-pin button { padding: 9px 16px; border: 2px solid var(--ink-border); border-radius: 999px; background: var(--pastel-yellow); color: var(--text-dark); font: inherit; font-size: .82rem; font-weight: 800; box-shadow: 3px 3px 0 var(--ink-shadow); cursor: pointer; }
.badge-details-pin button[aria-pressed="true"] { background: var(--white); }
.badge-details-pin button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink-shadow); }
.badge-details-pin button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-shadow); }
.badge-details-pin button:disabled { opacity: .6; cursor: progress; }
.badge-details-pin button:focus-visible { outline: 2px solid #7c3aed; outline-offset: 3px; }
@media (max-width: 1000px) { .inspector-object.is-badge { zoom: 2.2; } .notable-card-modal .badge-stage { padding: 22px 12px; } }
/* Keep the collection wide and let the card artwork carry the colour. */
/* A collector's page spans the whole width, inside the chrome's room. */
.collector-body { padding: var(--shell-pad-top) 0 var(--shell-bottom) var(--shell-left); }
.public-profile-page { max-width: none; padding: 24px clamp(16px, 3vw, 64px); }
.public-profile-page .social-kicker { padding: 0; background: transparent; color: var(--text-muted); font-size: .7rem; transform: none; }
.public-profile-page .profile-showcase { padding: 20px 0 28px; border: 0; border-bottom: 1px solid #dedbd6; border-radius: 0; background: transparent; box-shadow: none; }
.public-profile-page .profile-showcase::before { display: none; }
.public-profile-page .profile-collection-toolbar { max-width: none; margin: 28px 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.public-profile-page .card-browser { margin: 12px 0; }
.public-profile-page .card-browser input,
.public-profile-page .card-browser select,
.public-profile-page .card-browser button,
.public-profile-page .bulk-sale-toolbar button,
.public-profile-page .profile-showcase > header button { border: 1px solid #aaa5b0; box-shadow: none; }
.public-profile-page .card-browser button { background: transparent; }
.public-profile-page .profile-panel > .collection-grid { max-width: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 36px 28px; padding: 0; }

#profileFridge { flex: 0 0 min(300px, 100%); min-width: 0; }
.profile-showcase .fridge-preview { display: block; width: 100%; padding: 0; border: 0; background: transparent; margin: 20px 0; box-shadow: none; transform: none; }
button.fridge-preview { cursor: zoom-in; }
.fridge-stage { position: relative; width: 100%; aspect-ratio: .49; overflow: hidden; isolation: isolate; }
.fridge-art { position: absolute; width: 210%; max-width: none; left: -54%; top: -1%; pointer-events: none; }
/* Safe center positions leave room for the full magnet at every rotation,
   to the right of the handles and inside the outer edges of both doors. */
.fridge-door { position: absolute; left: 39%; top: 12%; width: 44%; height: 74%; }
.fridge-door { --sticker-width: 32%; --sticker-height: auto; }
.fridge-editor { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; box-sizing: border-box; padding: 24px; border: 3px solid var(--ink-border); background: var(--tint-yellow); color: var(--text-dark); }
.fridge-editor:not([open]) { display: none; }
.fridge-editor::backdrop { background: #191323b3; }
.fridge-editor > header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fridge-editor h3 { margin: 0; }
.fridge-editor { width: min(1080px, calc(100vw - 32px)); border-radius: 17px; background: var(--bg-subtle); overflow-y: auto; }
.fridge-editor [data-fridge-canvas] { width: min(100%, 34vh); margin: auto; }
.fridge-editor .sticker-editor { padding: 0; margin: 0; border: 0; }
.fridge-editor h3 { font-size: 36px; }
.fridge-magnifier { --magnifier-background: #fff; }
@media (max-width: 760px) {
    .fridge-editor [data-fridge-canvas] { width: min(100%, 22vh); margin: 8px auto; }
    .fridge-editor { padding: 16px; }
}
@media (max-width: 760px) {
    .profile-showcase-content { flex-direction: column; }
    .profile-showcase-grid { width: 100%; padding: 0; }
    #profileFridge { flex-basis: auto; width: min(300px, 100%); }
}

/* A collector in a trade reads at a glance: picture, name, level. */
.trade-list-item .collector { color: var(--text-dark); }
.trade-list-item .collector-detail { text-transform: uppercase; }
