/* =========================================================
   Pingd.HQ: warm, hand-made look. Solid colors, no glow.
   ========================================================= */
:root, [data-theme="ember"] {
  --bg: #141210; --bg-2: #1A1815; --card: #201D19; --card-2: #26221D; --field: #17150F;
  --line: #2F2B25; --line-2: #3D3830;
  --text: #F3EDE3; --text-2: #BDB3A4; --muted: #968C7E;
  --accent: #FF6B4A; --accent-ink: #1E0B05; --accent-soft: rgba(255,107,74,0.12);
  --accent-2: #7CC6FE; --accent-2-soft: rgba(124,198,254,0.12);
  --gold: #F5C451; --gold-ink: #241A02; --gold-soft: rgba(245,196,81,0.08); --gold-line: rgba(245,196,81,0.55);
  --live: #5FD38D;
  --shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 10px 24px -14px rgba(0,0,0,0.7);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.04) inset, 0 22px 40px -18px rgba(0,0,0,0.8);
  --banner-s: 42%; --banner-l: 30%; --avatar-s: 55%; --avatar-l: 56%; --tag-l: 78%;
  --nav: rgba(20,18,16,0.88); --grain: 0.06;
}
[data-theme="ocean"] {
  --bg: #0F131A; --bg-2: #131823; --card: #18202C; --card-2: #1D2634; --field: #0E131B;
  --line: #263142; --line-2: #33415A;
  --text: #EAF0F7; --text-2: #A8B5C6; --muted: #8494A8;
  --accent: #5B9DFF; --accent-ink: #061226; --accent-soft: rgba(91,157,255,0.13);
  --accent-2: #FF9F7A; --accent-2-soft: rgba(255,159,122,0.12);
  --gold: #F5C451; --gold-ink: #241A02; --gold-soft: rgba(245,196,81,0.08); --gold-line: rgba(245,196,81,0.55);
  --live: #4FD1A5; --nav: rgba(15,19,26,0.88);
}
[data-theme="moss"] {
  --bg: #10140F; --bg-2: #151A13; --card: #1A2118; --card-2: #20281D; --field: #0F130D;
  --line: #29331F; --line-2: #38452B;
  --text: #EEF2E6; --text-2: #B0BBA2; --muted: #8E9A80;
  --accent: #A7D86E; --accent-ink: #132006; --accent-soft: rgba(167,216,110,0.12);
  --accent-2: #F2A65A; --accent-2-soft: rgba(242,166,90,0.12);
  --gold: #F5C451; --gold-ink: #241A02; --gold-soft: rgba(245,196,81,0.08); --gold-line: rgba(245,196,81,0.55);
  --live: #A7D86E; --nav: rgba(16,20,15,0.88);
}
[data-theme="paper"] {
  --bg: #F7F1E7; --bg-2: #F0E8DA; --card: #FFFCF6; --card-2: #FBF5EA; --field: #F4ECDF;
  --line: #E4D9C6; --line-2: #D3C5AE;
  --text: #221D16; --text-2: #5E5547; --muted: #75695A;
  --accent: #E2533A; --accent-ink: #FFFFFF; --accent-soft: rgba(226,83,58,0.10);
  --accent-2: #2F6FDB; --accent-2-soft: rgba(47,111,219,0.10);
  --gold: #B7800E; --gold-ink: #FFFFFF; --gold-soft: rgba(214,160,40,0.10); --gold-line: rgba(183,128,14,0.6);
  --live: #1F9D5A;
  --shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 10px 22px -16px rgba(60,40,10,0.35);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.6) inset, 0 22px 36px -18px rgba(60,40,10,0.45);
  --banner-s: 55%; --banner-l: 80%; --avatar-s: 50%; --avatar-l: 52%; --tag-l: 32%;
  --nav: rgba(247,241,231,0.9); --grain: 0.05;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: var(--grain); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "DM Sans", sans-serif; margin: 0; color: var(--text); letter-spacing: -0.02em; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0 8px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.kicker.gold { color: var(--gold); } .kicker.blue { color: var(--accent-2); }
.h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; }
.lede { margin: 12px 0 0; color: var(--text-2); font-size: 17px; max-width: 600px; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.42em; overflow: visible; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }

/* Buttons */
.btn { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none !important; transition: transform .12s ease, background .2s, border-color .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-main:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-main:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 55%, #000); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-line:hover { background: var(--card-2); color: var(--text); }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--gold) 50%, #000); }
.btn-gold:hover { color: var(--gold-ink); transform: translateY(-1px); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-soft:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.btn-danger { background: transparent; border-color: rgba(255,100,100,0.4); color: #FF8A80; }
[data-theme="paper"] .btn-danger { color: #B3261E; border-color: rgba(179,38,30,0.4); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text-2); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, color .15s, border-color .15s; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; transform: rotate(45deg); }
.pick { min-height: 66px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--field); color: var(--text); text-align: left; display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 14px; }
.pick span { font-weight: 400; font-size: 12px; color: var(--muted); }
.pick[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 12px; border-radius: 9px; border: none; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg button[aria-selected="true"] { background: var(--card-2); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-live { background: color-mix(in srgb, var(--live) 15%, transparent); color: var(--live); }
.pill-gold { background: var(--gold); color: var(--gold-ink); }
.pill-dark { background: rgba(10,8,6,0.62); color: #F7F1E7; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; display: inline-block; }
.dot.beat { animation: beat 2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent); } 50% { box-shadow: 0 0 0 5px transparent; } }
.tag { --h: 20; padding: 2px 9px; border-radius: 7px; font-size: 12px; font-weight: 600; background: hsl(var(--h) 60% 55% / 0.13); color: hsl(var(--h) 65% var(--tag-l)); }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 66px; }
header.nav .wrap { max-width: none; padding: 0 clamp(16px, 2.5vw, 36px); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.logo-mark { position: relative; width: 36px; height: 36px; flex: none; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.logo:hover .logo-mark { transform: rotate(-10deg); }
.wordmark { font: 800 24px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -0.05em; color: var(--text); white-space: nowrap; }
.wordmark .hq { color: var(--accent); font-size: 0.74em; letter-spacing: -0.01em; margin-left: 1px; }
.logo-ping { animation: lping 2.6s ease-in-out infinite; transform-origin: 29px 7px; }
@keyframes lping { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--card-2); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.me-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-size: 13px; }
.me-btn .av { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
.themes { position: relative; }
.theme-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lift); display: none; z-index: 60; }
.theme-pop.open { display: block; }
.theme-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px; border-radius: 10px; border: 1px solid transparent; background: transparent; text-align: left; }
.theme-opt:hover { background: var(--card-2); }
.theme-opt[aria-checked="true"] { border-color: var(--accent); }
.swatch { display: flex; flex: none; border-radius: 8px; overflow: hidden; }
.swatch i { width: 13px; height: 28px; display: block; }
.theme-opt b { display: block; font-size: 14px; }
.theme-opt small { color: var(--muted); font-size: 12px; }
@media (max-width: 980px) { .nav-links, .hide-sm { display: none !important; } }

/* Slideshow hero */
.slideshow { position: relative; z-index: 5; height: clamp(480px, 66vh, 620px); border-bottom: 1px solid var(--line); background: #0B0A09; }
.slide { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.slide .slide-copy { transition: opacity .2s ease; }
.slide:not(.on) .slide-copy { opacity: 0; visibility: hidden; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide-art { position: absolute; inset: -40px; filter: blur(14px) saturate(1.15); transform: scale(1.08); }
.slide.on .slide-art { animation: drift 9s ease-out forwards; }
@keyframes drift { from { transform: scale(1.08) translate(0,0); } to { transform: scale(1.18) translate(-1.5%, -1%); } }
.slide-art svg { width: 100%; height: 100%; display: block; }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,7,6,0.88) 0%, rgba(8,7,6,0.6) 45%, rgba(8,7,6,0.15) 100%), linear-gradient(0deg, rgba(8,7,6,0.7), transparent 40%); }
.slide-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 640px; color: #F7F1E7; }
.slide-copy .kicker { color: #FFD9A8; }
.slide-copy h1 { color: #FFF8EE; font-size: clamp(38px, 6vw, 66px); line-height: 1.0; letter-spacing: -0.035em; margin-bottom: 16px; }
.slide-copy p { margin: 0 0 26px; color: rgba(247,241,231,0.82); font-size: 18px; max-width: 520px; }
.slide.on .slide-copy > * { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.slide.on .slide-copy > *:nth-child(2) { animation-delay: .08s; } .slide.on .slide-copy > *:nth-child(3) { animation-delay: .16s; } .slide.on .slide-copy > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.show-ctrl { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 5; }
.show-ctrl .wrap { display: flex; align-items: center; gap: 14px; }
.sdots { display: flex; gap: 8px; }
.sdot { position: relative; width: 44px; height: 6px; border-radius: 6px; border: none; padding: 0; background: rgba(255,255,255,0.22); overflow: hidden; }
.sdot i { position: absolute; inset: 0; width: 0; background: #FFF8EE; border-radius: 6px; }
.sdot.on i { animation: fill var(--dur, 6s) linear forwards; }
.slideshow.paused .sdot.on i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.sarrow { width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.25); background: rgba(10,8,6,0.4); color: #FFF8EE; display: grid; place-items: center; }
.sarrow:hover { background: rgba(10,8,6,0.65); }
.slide-label { margin-left: auto; color: rgba(247,241,231,0.7); font-size: 13px; font-weight: 600; }

/* Search with suggestions */
.search { position: relative; max-width: 560px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--line-2); transition: border-color .2s, box-shadow .2s; }
.slideshow .search-box { background: rgba(255,250,242,0.96); border-color: transparent; color: #221D16; }
.slideshow .search-box input::placeholder { color: #85796A; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search-box input { flex: 1; min-width: 0; height: 44px; border: none; background: transparent; outline: none; font-size: 16px; }
.search-box input::placeholder { color: var(--muted); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lift); padding: 8px; display: none; color: var(--text); }
.suggest.open { display: block; animation: rise .2s ease; }
.suggest h4 { margin: 6px 10px 4px; font: 700 11px "DM Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sug { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: none; background: transparent; text-align: left; color: var(--text); }
.sug:hover, .sug.active { background: var(--card-2); }
.sug .av { width: 32px; height: 32px; border-radius: 9px; font-size: 14px; }
.sug .cat-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.sug b { font-weight: 700; font-size: 14px; }
.sug b mark { background: none; color: var(--accent); }
.sug small { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sug-empty { padding: 12px 10px; color: var(--text-2); font-size: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.persp { perspective: 1100px; }
.tilt { transition: transform .2s ease-out, box-shadow .25s; transform-style: preserve-3d; will-change: transform; }
.card { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-lift); }
.card.promo { border: 1.5px solid var(--gold-line); background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--card); }
.promo-tag { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; }
.banner { position: relative; height: 92px; flex: none; }
.banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.09) 1.2px, transparent 1.3px); background-size: 12px 12px; }
[data-theme="paper"] .banner::after { background-image: radial-gradient(rgba(0,0,0,0.07) 1.2px, transparent 1.3px); }
.banner .corner { position: absolute; top: 12px; right: 12px; z-index: 2; }
.av { flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 20px "Bricolage Grotesque", sans-serif; border-radius: 14px; width: 52px; height: 52px; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { position: relative; z-index: 2; padding: 0 20px 20px; display: flex; flex-direction: column; flex: 1; pointer-events: none; }
.card-body a, .card-body button { pointer-events: auto; }
.card-body .av { margin-top: -26px; border: 3px solid var(--card); }
.card.promo .card-body .av { border-color: color-mix(in srgb, var(--card) 92%, var(--gold)); }
.card h3 { font-size: 18px; margin: 12px 0 4px; }
.card p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.meta { display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.meta .on { display: flex; align-items: center; gap: 7px; color: var(--text); font-weight: 600; }
.meta .sub { color: var(--muted); }
.card-link { position: absolute; inset: 0; z-index: 1; }

/* Empty slots */
.slot { width: 100%; height: 100%; min-height: 290px; border-radius: 18px; border: 2px dashed var(--line-2); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; color: var(--text-2); transition: border-color .2s, background .2s, transform .2s; }
.slot:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transform: rotate(-0.6deg); }
.slot .plus { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, #000); transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.slot:hover .plus { transform: rotate(90deg); }
.slot b { font: 700 18px "Bricolage Grotesque", sans-serif; color: var(--text); }
.slot small { font-size: 13px; color: var(--muted); max-width: 250px; display: block; margin-top: 2px; }
.slot.gold { border-color: var(--gold-line); background: var(--gold-soft); }
.slot.gold .plus { background: var(--gold); color: var(--gold-ink); box-shadow: 0 3px 0 color-mix(in srgb, var(--gold) 50%, #000); }
.slot.slim { min-height: 0; flex-direction: row; text-align: left; justify-content: flex-start; padding: 14px 18px; }
.slot.slim .plus { width: 44px; height: 44px; border-radius: 13px; flex: none; }

/* Find */
.finder { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.finder-q { flex: 1 1 380px; min-width: 0; padding: 26px; display: flex; flex-direction: column; gap: 24px; }
fieldset { border: none; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 12px; font: 700 15px "Bricolage Grotesque", sans-serif; }
legend b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); margin-right: 8px; font-size: 13px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.finder-r { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.match { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.match.promo { border: 1.5px solid var(--gold-line); background: linear-gradient(var(--gold-soft), var(--gold-soft)), var(--card); }
.match .av { width: 54px; height: 54px; }
.match-main { flex: 1; min-width: 0; position: relative; z-index: 2; pointer-events: none; }
.match-main .nm { font: 700 17px "Bricolage Grotesque", sans-serif; }
.match-main .pt { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { margin-top: 9px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 5px; background: var(--accent); transition: width .45s ease; }
.match-side { position: relative; z-index: 2; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; }
@media (max-width: 540px) { .row3 { grid-template-columns: 1fr; } .match { flex-wrap: wrap; } .match-side { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; } }

/* Picks */
.daily { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.sotd { flex: 2 1 540px; min-width: 0; }
.lucky { flex: 1 1 300px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.flip-wrap { flex: 1; min-height: 280px; perspective: 1200px; }
.flip { position: relative; height: 100%; min-height: 280px; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 20px; }
.fact { padding: 10px 14px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); }
.fact b { display: block; font: 700 18px "Bricolage Grotesque", sans-serif; }
.fact small { font-size: 12px; color: var(--muted); }
.count { position: absolute; top: 16px; right: 18px; z-index: 2; text-align: right; color: #FFF8EE; }
.count small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .05em; opacity: .8; }
.count b { font: 700 22px "Bricolage Grotesque", sans-serif; font-variant-numeric: tabular-nums; }
[data-theme="paper"] .count { color: var(--text); }

/* Doors, collections, board */
.doors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.door { --h: 20; position: relative; min-height: 168px; padding: 22px; border-radius: 18px; display: flex; flex-direction: column; color: var(--text); text-decoration: none !important; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, border-color .2s; }
.door:hover { transform: translateY(-3px) rotate(-0.4deg); border-color: hsl(var(--h) 60% 55% / 0.6); color: var(--text); }
.door-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: hsl(var(--h) 70% 60%); color: #16110B; margin-bottom: 16px; transform: rotate(-4deg); }
.door b { font: 700 19px "Bricolage Grotesque", sans-serif; margin-bottom: 2px; }
.door span.d { font-size: 14px; color: var(--text-2); }
.door .go { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: hsl(var(--h) 65% var(--tag-l)); }
.cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.col { --h: 20; width: 100%; min-height: 170px; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-align: left; display: flex; flex-direction: column; color: var(--text); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.col::before { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 40px; transform: rotate(18deg); background: hsl(var(--h) 65% 55% / 0.16); }
.col:hover { transform: translateY(-3px); border-color: hsl(var(--h) 60% 55% / 0.6); }
.faces { display: flex; margin-bottom: 16px; position: relative; }
.faces .av { width: 36px; height: 36px; font-size: 14px; border-radius: 10px; margin-right: -9px; border: 2px solid var(--card); }
.col .t { font: 700 18px "Bricolage Grotesque", sans-serif; position: relative; }
.col .s { font-size: 14px; color: var(--text-2); position: relative; }
.col .n { margin-top: auto; padding-top: 14px; font-size: 13px; font-weight: 700; color: hsl(var(--h) 65% var(--tag-l)); position: relative; }
.duo { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.duo > .panel { flex: 1 1 420px; min-width: 0; padding: 24px; }
.lb { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.lb li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.lb li:hover { background: var(--card-2); }
.lb .pos { width: 28px; text-align: center; font: 800 17px "Bricolage Grotesque", sans-serif; color: var(--muted); }
.lb li.first .pos { color: var(--gold); }
.lb .av { width: 40px; height: 40px; font-size: 16px; border-radius: 11px; }
.lb a { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.lb .nm { display: block; font-weight: 700; }
.lb .gn { display: block; font-size: 12px; color: var(--muted); }
.row-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.row-link:hover { border-color: var(--line-2); }
.row-link .av { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
.row-link b { display: block; font-weight: 700; }
.row-link small { color: var(--muted); font-size: 12px; }

/* Advertise page */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 16px; margin-bottom: 28px; }
.place { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.mini { height: 96px; border-radius: 12px; background: var(--field); border: 1px solid var(--line); padding: 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini i { border-radius: 6px; background: var(--line); display: block; }
.mini i.g { background: var(--gold); opacity: .85; }
.place h3 { font-size: 17px; }
.place p { margin: 0; color: var(--text-2); font-size: 14px; }
.place .price { font: 800 22px "Bricolage Grotesque", sans-serif; }
.place .price small { font: 500 13px "DM Sans", sans-serif; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; margin-bottom: 40px; }
.step { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.step .num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-2-soft); color: var(--accent-2); font: 800 15px "Bricolage Grotesque", sans-serif; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }

/* Modal */
.modal-back { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,6,4,0.6); }
.modal-back.open { display: flex; }
.modal { position: relative; width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 22px; background: var(--card); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8); padding: 28px; animation: rise .3s ease; }
.modal.wide { width: min(900px, 100%); }
.modal h2 { font-size: 26px; margin-bottom: 4px; }
.modal .x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--text-2); display: grid; place-items: center; }
.mstep { display: flex; gap: 6px; margin-bottom: 18px; }
.mstep i { height: 5px; flex: 1; border-radius: 5px; background: var(--line-2); }
.mstep i.on { background: var(--accent); }
.discord-btn { width: 100%; height: 52px; border-radius: 14px; border: none; background: #5865F2; color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 3px 0 #3B45B8; }
.guilds { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.guild { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--field); text-align: left; width: 100%; }
.guild:hover { border-color: var(--accent); }
.guild .av { width: 42px; height: 42px; font-size: 17px; border-radius: 12px; }
.guild b { display: block; font-size: 15px; }
.guild small { color: var(--muted); font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.fgroup { display: flex; flex-direction: column; gap: 6px; }
.fgroup label, .fgroup .lbl { font-size: 13px; font-weight: 700; }
.field { height: 44px; padding: 0 14px; border-radius: 11px; border: 1.5px solid var(--line-2); background: var(--field); outline: none; font-size: 15px; transition: border-color .2s; width: 100%; }
.field:focus { border-color: var(--accent); }
.field::placeholder { color: var(--muted); }
textarea.field { height: 90px; padding: 11px 14px; resize: vertical; line-height: 1.5; }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; font-weight: 600; color: #FF8A80; min-height: 18px; }
[data-theme="paper"] .err { color: #B3261E; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 13px; margin-bottom: 16px; }
.tones { display: flex; flex-wrap: wrap; gap: 8px; }
.tone { width: 34px; height: 34px; border-radius: 10px; border: 2.5px solid transparent; }
.tone[aria-pressed="true"] { border-color: var(--text); }
.checks-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .checks-grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--field); cursor: pointer; }
.check:has(input:checked) { border-color: var(--gold-line); background: var(--gold-soft); }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }
.check b { display: block; font-size: 14px; }
.check small { color: var(--muted); font-size: 12px; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--field); border: 1px solid var(--line); margin: 16px 0 6px; }
.total b { font: 800 20px "Bricolage Grotesque", sans-serif; }
.preview-wrap { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--field); border: 1px solid var(--line); }

/* Mine + admin */
.mine-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.mine-row .av { width: 52px; height: 52px; }
.mine-row .info { flex: 1 1 220px; min-width: 0; }
.mine-row .info b { display: block; font: 700 17px "Bricolage Grotesque", sans-serif; }
.mine-row .info small { color: var(--muted); font-size: 13px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font: 800 30px "Bricolage Grotesque", sans-serif; }
.stat small { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat.gold b { color: var(--gold); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.atab { height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.atab[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.atab .n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font-size: 11px; display: inline-grid; place-items: center; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl-wrap { border-radius: 16px; border: 1px solid var(--line); background: var(--card); overflow-x: auto; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl .who { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.tbl .who .av { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
.status { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status.pending { background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.status.active { background: color-mix(in srgb, var(--live) 15%, transparent); color: var(--live); }
.status.ended, .status.rejected { background: var(--field); color: var(--muted); }
.empty-row { padding: 30px; text-align: center; color: var(--text-2); }

/* Server page */
#server-view { display: none; }
body.on-server #views { display: none; }
body.on-server #server-view { display: block; }
.sv-banner { height: 230px; position: relative; }
.sv-banner::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.1) 1.4px, transparent 1.5px); background-size: 16px 16px; }
.sv-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; margin-top: -54px; position: relative; z-index: 2; }
.sv-head .av { width: 108px; height: 108px; border-radius: 28px; font-size: 42px; border: 5px solid var(--bg); }
.sv-title { flex: 1 1 300px; min-width: 0; padding-bottom: 4px; }
.sv-title h1 { font-size: clamp(30px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sv-grid { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.sv-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sv-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.sv-block { padding: 22px; }
.sv-block h3 { font-size: 18px; margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Pages + footer */
.view { display: none; min-height: calc(100vh - 66px); padding-bottom: 40px; }
.view.active { display: block; animation: rise .4s cubic-bezier(.2,.8,.2,1); }
.next { margin: 56px 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none !important; transition: transform .2s, border-color .2s; }
.next:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.next small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.next b { display: block; font: 700 21px "Bricolage Grotesque", sans-serif; }
.next em { font-style: normal; font-size: 14px; color: var(--text-2); }
.next-arrow { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 20px; font-weight: 800; }
details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); padding: 0 18px; margin-bottom: 10px; }
summary { list-style: none; cursor: pointer; padding: 16px 0; font: 700 16px "Bricolage Grotesque", sans-serif; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary .pl { color: var(--accent); transition: transform .2s; font-size: 22px; line-height: 1; }
details[open] summary .pl { transform: rotate(45deg); }
details p { margin: 0; padding: 0 0 16px; color: var(--text-2); }
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 28px 24px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--text-2); margin-left: 18px; }
.tabbar { display: none; }
@media (max-width: 980px) {
  .tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70; justify-content: space-around; padding: 6px; border-radius: 18px; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-lift); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; font-size: 11px; font-weight: 700; color: var(--text-2); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
  body { padding-bottom: 86px; }
}
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px; transition: opacity .25s, transform .25s; z-index: 400; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) { .toast { bottom: 96px; } }

/* ---------- Slideshow collage ---------- */
.collage { position: absolute; left: 46%; right: 0; top: 0; bottom: 90px; pointer-events: none; }
.collage .it { position: absolute; width: var(--s); height: var(--s); transform: translate(-50%, 0) rotate(var(--r)); filter: drop-shadow(0 14px 18px rgba(0,0,0,0.5)); animation: bob 6s ease-in-out infinite; animation-delay: var(--d); transition: opacity .5s ease; }
.collage .it svg { width: 100%; height: 100%; display: block; }
.slide:not(.on) .collage .it { opacity: 0; }
.slide.on .collage .it { animation: popin .7s cubic-bezier(.3,1.5,.5,1) both, bob 6s ease-in-out infinite; animation-delay: calc(var(--d) * .15s), var(--d); }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0) rotate(var(--r)); } 50% { transform: translate(-50%, -14px) rotate(calc(var(--r) + 5deg)); } }
@keyframes popin { from { opacity: 0; transform: translate(-50%, 30px) scale(.4) rotate(var(--r)); } to { opacity: 1; transform: translate(-50%, 0) scale(1) rotate(var(--r)); } }
@media (max-width: 900px) { .collage { left: 30%; opacity: .35; } .collage .it { width: calc(var(--s) * .7); height: calc(var(--s) * .7); } }

/* ---------- Compact collections on Find ---------- */
.cols.mini { margin-bottom: 16px; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.cols.mini .col::before { display: none; }
.cols.mini .col { background: linear-gradient(120deg, hsl(var(--h) 60% 50% / .10), transparent 60%), var(--card); }
.cols.mini .col { min-height: 0; padding: 14px 16px; flex-direction: row; align-items: center; gap: 12px; }
.cols.mini .col .faces { margin: 0; flex: none; }
.cols.mini .col .t { font-size: 15px; }
.cols.mini .col .s { display: none; }
.cols.mini .col .n { margin: 0 0 0 auto; padding: 0; font-size: 12px; white-space: nowrap; }
.cols.mini .col[aria-pressed="true"] { border-color: hsl(var(--h) 65% 55%); background: hsl(var(--h) 60% 50% / .12); }

/* ---------- Arcade theme ---------- */
[data-theme="arcade"] {
  --bg: #0B0918; --bg-2: #110D24; --card: #161131; --card-2: #1E173F; --field: #0E0B20;
  --line: #2B2353; --line-2: #3D3275;
  --text: #F2EEFF; --text-2: #B7AEE0; --muted: #9289C2;
  --accent: #FF3D9A; --accent-ink: #FFFFFF; --accent-soft: rgba(255,61,154,0.14);
  --accent-2: #2EF2FF; --accent-2-soft: rgba(46,242,255,0.12);
  --gold: #FFD23F; --gold-ink: #241A02; --gold-soft: rgba(255,210,63,0.08); --gold-line: rgba(255,210,63,0.6);
  --live: #3DFF8F; --nav: rgba(11,9,24,0.86);
  --banner-s: 70%; --banner-l: 34%; --avatar-s: 80%; --avatar-l: 60%; --tag-l: 78%;
  --shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 10px 24px -14px rgba(0,0,0,0.8);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.05) inset, 0 22px 40px -18px rgba(0,0,0,0.9), 6px 6px 0 -1px rgba(46,242,255,0.18), -6px -6px 0 -1px rgba(255,61,154,0.14);
  --grain: 0.04;
}
[data-theme="arcade"] body { background-image: linear-gradient(rgba(124,92,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(124,92,255,0.06) 1px, transparent 1px); background-size: 32px 32px; background-attachment: fixed; }
[data-theme="arcade"] .kicker { font-family: "Press Start 2P", monospace; font-size: 10px; letter-spacing: 0.02em; line-height: 1.6; }
[data-theme="arcade"] .btn-main { background: linear-gradient(90deg, #FF3D9A, #9B5CFF 55%, #2EF2FF); color: #fff; box-shadow: 0 3px 0 #5B1340; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
[data-theme="arcade"] .btn-main:hover { color: #fff; box-shadow: 0 4px 0 #5B1340, 0 0 0 3px rgba(46,242,255,0.25); }
[data-theme="arcade"] .btn-line:hover, [data-theme="arcade"] .chip:hover { border-color: #2EF2FF; color: #fff; box-shadow: 0 0 0 2px rgba(46,242,255,0.15); }
[data-theme="arcade"] .chip[aria-pressed="true"] { background: linear-gradient(90deg, #FF3D9A, #9B5CFF); border-color: transparent; color: #fff; }
[data-theme="arcade"] .card, [data-theme="arcade"] .door, [data-theme="arcade"] .col, [data-theme="arcade"] .panel { border-color: #2B2353; }
[data-theme="arcade"] .card:hover, [data-theme="arcade"] .door:hover { border-color: #FF3D9A; }
[data-theme="arcade"] .wordmark .hq { color: #2EF2FF; }
[data-theme="arcade"] .nav-links a[aria-current="page"] { background: linear-gradient(90deg, rgba(255,61,154,.25), rgba(46,242,255,.18)); color: #fff; }
[data-theme="arcade"] .slot .plus { background: linear-gradient(135deg, #FF3D9A, #9B5CFF); color: #fff; box-shadow: 0 3px 0 #5B1340; }
[data-theme="arcade"] .bar i { background: linear-gradient(90deg, #FF3D9A, #2EF2FF); }

/* Hover sparks (Arcade only) */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 500; overflow: hidden; perspective: 600px; }
.px { position: absolute; left: 0; top: 0; width: 9px; height: 9px; transform-style: preserve-3d; will-change: transform, opacity; animation: pxfly var(--t, .8s) cubic-bezier(.15,.7,.3,1) forwards; }
.px.cube { background: var(--c); box-shadow: inset -2px -2px 0 rgba(0,0,0,0.35), inset 2px 2px 0 rgba(255,255,255,0.45); }
.px.tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10px solid var(--c); }
.px.ring { border: 2.5px solid var(--c); border-radius: 50%; }
.px.plus { background: linear-gradient(var(--c), var(--c)) center / 100% 3px no-repeat, linear-gradient(var(--c), var(--c)) center / 3px 100% no-repeat; width: 11px; height: 11px; }
@keyframes pxfly {
  0% { transform: translate3d(var(--x0), var(--y0), 0) rotateX(0) rotateY(0) rotateZ(0) scale(.6); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate3d(var(--x1), var(--y1), var(--z1)) rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz)) scale(.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
#siteNotice { background: var(--gold); color: var(--gold-ink); font-weight: 700; font-size: 14px; text-align: center; }
#siteNotice .wrap { padding: 9px 24px; }
.form-grid .check.full { grid-column: 1 / -1; }
.filterbar { position: sticky; top: 66px; z-index: 30; display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filterbar .search-box { background: var(--field); }
.fb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fb-chips .chip { height: 34px; padding: 0 12px; }
.fb-selects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sel { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--field); font-size: 13px; }
.sel span { color: var(--muted); font-weight: 700; }
.sel select { border: none; background: transparent; height: 34px; font-size: 13px; font-weight: 600; outline: none; cursor: pointer; color: var(--text); }
.sel select option { background: var(--card); color: var(--text); }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-head h3 { font-size: 20px; }
.results-head span { color: var(--muted); font-size: 14px; font-weight: 600; }
.match-pill { position: absolute; top: 12px; right: 12px; z-index: 2; }
@media (max-width: 760px) { .filterbar { position: static; } }
.rec { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #3B82F6; color: #fff; font-size: 11px; font-weight: 800; margin-left: 4px; vertical-align: 2px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--card) 70%, transparent); }
.pill-rec { background: rgba(59,130,246,0.16); color: #8CBBFF; font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.pill-rec .rec { margin: 0; width: 16px; height: 16px; box-shadow: none; }
[data-theme="paper"] .pill-rec { color: #1D5FD1; }
.unclaimed { font-size: 12px; font-weight: 700; color: var(--muted); margin: -2px 0 6px; }
#fRecBtn[aria-pressed="true"] .rec { box-shadow: none; }
.preview-wrap [inert], .preview-wrap [inert] * { pointer-events: none !important; cursor: default !important; user-select: none; }
.preview-wrap [inert] .card { transform: none !important; }
.guild-off { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.foot a.ig { display: inline-flex; align-items: center; gap: 6px; }
.foot a.ig:hover { color: #E1306C; }
.cf { position: absolute; top: -20px; left: 0; width: var(--w); height: calc(var(--w) * 1.6); background: var(--c); border-radius: 2px; opacity: 0; animation: cfall var(--t) cubic-bezier(.25,.6,.4,1) var(--d) forwards; }
.cf.round { border-radius: 50%; height: var(--w); }
@keyframes cfall { 0% { transform: translate3d(var(--x), -20px, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(calc(var(--x) + var(--dx)), 105vh, 0) rotate(var(--r)); opacity: 0; } }
.yay { text-align: left; }
.yay-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 800; font-size: 13px; margin-bottom: 10px; animation: yaypop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes yaypop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.yay-card { max-width: 340px; margin: 0 auto 16px; pointer-events: none; }
.yay-card .card { transform: none !important; }
.yay-steps { margin: 0 0 18px; padding-left: 20px; color: var(--text-2); display: grid; gap: 6px; font-size: 14px; }
.yay-steps b { color: var(--text); }
.yay-acts { display: flex; flex-wrap: wrap; gap: 10px; }
