/* Handfall – light "scrapbook / Freundebuch" theme */

/* Fonts are self-hosted (no request to Google = DSGVO-friendly). Latin subset, variable weights. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/fraunces.woff2) format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 600 800; font-display: swap; src: url(../fonts/fraunces-italic.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope.woff2) format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/caveat.woff2) format('woff2'); }
:root {
  --bg: #f4eee3;
  --surface: #fffdf8;
  --surface-2: #f8f2e7;
  --ink: #2b2219;
  --ink-2: #4b3f33;
  --muted: #86786a;
  --line: #e7dccb;
  --line-2: #d6c7ae;
  --accent: #c0432e;
  --accent-2: #a33522;
  --gold: #b07d22;
  --gold-soft: #f3e2bb;
  --green: #2e8657;
  --red: #c0432e;
  --blue: #3c6db0;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(60, 40, 10, 0.04), 0 10px 28px -14px rgba(60, 40, 10, 0.35);
  --shadow-lg: 0 2px 0 rgba(60, 40, 10, 0.04), 0 22px 44px -18px rgba(60, 40, 10, 0.45);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', Georgia, serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(120, 90, 40, 0.13) 1px, transparent 1.2px);
  background-size: 22px 22px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; font-variation-settings: 'SOFT' 50; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; }
img { max-width: 100%; }
code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; font-size: 0.88em; }
[hidden] { display: none !important; }

.container { width: min(1180px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 32px); }
.page-top { padding-top: 32px; }
section.container { margin-bottom: 52px; }
.muted { color: var(--muted); }
.small { font-size: 0.85em; }
.center { text-align: center; }
.empty { color: var(--muted); font-style: italic; padding: 14px 0; margin: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.74rem; color: var(--accent); margin: 0 0 6px; font-weight: 800; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.spacer { flex: 1; }
.inline { display: inline; }

/* Section titles with a hand-drawn highlighter */
.section-title { display: inline-block; position: relative; margin: 0; padding-bottom: 4px; z-index: 0; }
.section-title::after {
  content: ''; position: absolute; left: -4px; right: -8px; bottom: -2px; height: 11px; z-index: -1;
  background: var(--gold-soft); border-radius: 40% 60% 50% 40%; transform: rotate(-1deg);
}

/* Paper sheet + washi tape */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.taped { position: relative; }
.taped::before {
  content: ''; position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(-3deg);
  background: repeating-linear-gradient(45deg, rgba(192, 67, 46, 0.32) 0 8px, rgba(192, 67, 46, 0.22) 8px 16px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); z-index: 2;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100% - 1180px) / 2));
  background: rgba(244, 238, 227, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.12rem; font-style: italic; }
.brand:hover { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--ink-2); font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav-me { display: flex; align-items: center; gap: 8px; }
.mini-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2) center/cover; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); display: inline-block; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; display: flex; }
.link-btn:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fbf6ec; font-weight: 700; font-size: 0.93rem; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s; white-space: nowrap; font-family: var(--font);
}
.btn:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(192, 67, 46, 0.6); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn-danger { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-danger.btn-ghost { background: transparent; color: var(--red); border-color: rgba(192, 67, 46, 0.45); }
.btn-sm { padding: 6px 14px; font-size: 0.84rem; }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); }
.badge-gold { background: var(--gold-soft); border-color: #e2c784; color: #7a5410; }
.badge-dim { color: var(--muted); }

/* ---------- Flash ---------- */
.flash {
  position: fixed; top: 72px; right: 20px; z-index: 60; padding: 12px 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--green);
  box-shadow: var(--shadow-lg); transition: opacity 0.4s, transform 0.4s; max-width: 360px; font-weight: 600;
}
.flash-warn { border-left-color: var(--gold); }
.flash.hide { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.alert { background: #fbe9e5; border: 1px solid #efc1b7; color: #8d2a19; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }

/* ---------- Mana pips ---------- */
.pips { display: inline-flex; gap: 2px; vertical-align: middle; }
.pips img { width: 18px; height: 18px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25)); }
.pips-xs img { width: 13px; height: 13px; }
.pips-sm img { width: 15px; height: 15px; }
.pips-lg img { width: 24px; height: 24px; }

/* ---------- Landing ---------- */
.hero { position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0 0 0 30%; background: center 30% / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity 1.2s, transform 8s ease-out; }
.hero-bg.loaded { opacity: 1; transform: scale(1); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg) 32%, rgba(244, 238, 227, 0.75) 52%, rgba(244, 238, 227, 0) 80%), linear-gradient(0deg, var(--bg) 0%, transparent 25%); }
.hero-inner { position: relative; z-index: 1; max-width: 620px; margin-left: max(16px, calc((100% - 1180px) / 2)); padding-right: 16px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 750; }
.hero h1 em { font-family: var(--hand); font-style: normal; color: var(--accent); font-weight: 700; font-size: 1.15em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature:nth-child(odd) { transform: rotate(-0.6deg); }
.feature:nth-child(even) { transform: rotate(0.5deg); }
.feature span { font-size: 1.7rem; }
.feature h3 { margin-top: 6px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- Grids & tiles ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h1, .section-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-users { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-decks { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }

.user-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.user-tile:hover { transform: translateY(-4px) rotate(-0.4deg); color: var(--ink); box-shadow: var(--shadow-lg); }
.user-tile-bg { height: 110px; background: linear-gradient(135deg, #e9dcc3, #d8c6a5) center/cover; }
.user-tile-body { display: flex; gap: 12px; align-items: flex-start; padding: 0 16px 16px; margin-top: -26px; position: relative; }
.user-tile-body > div { flex: 1; padding-top: 30px; min-width: 0; }
.user-tile-body small { color: var(--muted); display: block; }
.user-tile-body p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-combos { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; padding-top: 32px; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(135deg, #d9a35a, var(--accent)) center/cover; border: 4px solid #fff; color: #fff; font-family: var(--display); font-weight: 800; flex-shrink: 0; box-shadow: 0 6px 16px -6px rgba(60, 40, 10, 0.5); }
.avatar-md { width: 56px; height: 56px; font-size: 1.4rem; border-width: 3px; }
.avatar-xl { width: 148px; height: 148px; font-size: 3.4rem; border-width: 6px; }

/* Deck tiles */
.deck-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.deck-tile::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ci); z-index: 2; }
.deck-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.deck-tile-link { display: block; color: var(--ink); }
.deck-tile-link:hover { color: var(--ink); }
.deck-art { height: 105px; display: flex; position: relative; overflow: hidden; }
.deck-art > div { flex: 1; background: #ddd center 25% / cover; transition: transform 0.5s; }
.deck-tile:hover .deck-art > div { transform: scale(1.05); }
.deck-art-split > div:first-child { clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); margin-right: -12%; }
.deck-tile-body { padding: 10px 12px 12px; }
.deck-tile-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.deck-tile h3 { margin: 0 0 2px; font-size: 1rem; }
.deck-tile p { margin: 0; font-size: 0.86rem; }
.deck-stats { display: flex; justify-content: space-between; margin-top: 8px !important; font-size: 0.8rem !important; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 8px; }
.deck-stats .wr { color: var(--green); font-weight: 800; }
.deck-hated .deck-tile-link { cursor: zoom-in; }
.deck-hated .deck-art > div { filter: saturate(0.55) sepia(0.15); }
.deck-hated .deck-art::after {
  content: 'NERVT'; position: absolute; right: 12px; top: 16px; z-index: 2; padding: 2px 10px;
  color: var(--red); border: 3px solid var(--red); border-radius: 6px; font-weight: 900; letter-spacing: 0.12em;
  transform: rotate(8deg); background: rgba(255, 253, 248, 0.85); font-size: 0.85rem;
}
.hate-reason { margin-top: 8px !important; font-family: var(--hand); font-size: 1.3rem !important; color: var(--accent-2); line-height: 1.15; }
.tile-actions { position: absolute; top: 14px; left: 10px; z-index: 3; }
.tile-actions a, .corner-edit { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255, 253, 248, 0.92); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Profile ---------- */
.profile-hero { padding-top: 22px; margin-bottom: 4px; }
.profile-banner {
  height: 270px; border-radius: 18px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e6d6b8, #cdb68c) center 28% / cover;
  border: 6px solid #fff; box-shadow: var(--shadow-lg);
}
.banner-credit { position: absolute; right: 12px; bottom: 10px; font-size: 0.72rem; color: #fff; background: rgba(0, 0, 0, 0.45); padding: 2px 8px; border-radius: 999px; }
.profile-head { position: relative; display: flex; align-items: flex-end; gap: 22px; margin: -74px 0 0 28px; flex-wrap: wrap; }
.profile-id { flex: 1; min-width: 240px; padding-top: 80px; }
.hello { font-family: var(--hand); font-size: 1.5rem; color: var(--accent); margin: 0; line-height: 1; }
.profile-id h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 750; }
.profile-sub { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); margin: 2px 0; font-size: 0.92rem; font-weight: 600; }
.tagline { font-family: var(--hand); font-size: 1.55rem; color: var(--ink-2); margin: 2px 0 0; line-height: 1.2; }
.profile-actions { display: flex; gap: 8px; align-items: center; padding-bottom: 8px; margin-right: 6px; }
.combo-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 0 28px; }
.combo-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--muted); margin-right: 4px; }
.combo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow); }

.profile-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; margin-bottom: 22px !important; position: sticky; top: 53px; z-index: 40; background: linear-gradient(var(--bg) 75%, rgba(244, 238, 227, 0)); scrollbar-width: none; }
.profile-tabs::-webkit-scrollbar { display: none; }
.profile-tabs a { padding: 7px 15px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; font-size: 0.88rem; font-weight: 700; }
.profile-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.profile-tabs b { color: var(--accent); margin-left: 3px; }
section[id] { scroll-margin-top: 120px; }

.profile-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; margin-bottom: 52px; align-items: start; }

/* Friendbook (compact lined paper) */
.friendbook {
  position: relative; padding: 20px 22px 18px 52px; border-radius: 4px 14px 14px 4px; color: var(--ink);
  background:
    linear-gradient(90deg, transparent 36px, rgba(192, 67, 46, 0.35) 36px 38px, transparent 38px),
    repeating-linear-gradient(0deg, transparent 0 25px, rgba(60, 109, 176, 0.16) 25px 26px),
    #fffdf4;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.friendbook::after { content: ''; position: absolute; left: 10px; top: 22px; bottom: 22px; width: 12px; background: radial-gradient(circle, var(--bg) 4px, var(--line-2) 4.5px, transparent 5.5px) 0 0 / 12px 40px repeat-y; }
.hand-title { font-family: var(--hand); font-size: 2rem; font-weight: 700; margin: 0 0 4px; color: var(--accent-2); line-height: 1; }
.friendbook .bio { font-family: var(--hand); font-size: 1.25rem; line-height: 26px; margin: 0 0 8px; color: #23407a; }
.fb-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.fb-list div { line-height: 1.25; padding: 4px 0; }
.fb-list dt { font-weight: 800; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fb-list dd { margin: 0; font-family: var(--hand); font-size: 1.25rem; color: #23407a; }

/* Top 3 */
.top3 .section-title { font-size: 1.3rem; margin-bottom: 14px; }
.top3-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.top3-item { display: grid; grid-template-columns: 34px 74px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); transition: transform 0.15s, border-color 0.15s; }
.top3-item:hover { color: var(--ink); transform: translateX(3px); border-color: var(--gold); }
.top3-list li:first-child .top3-item { background: linear-gradient(90deg, var(--gold-soft), var(--surface-2) 70%); border-color: #e2c784; }
.rank { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--gold); text-align: center; }
.top3-art { height: 52px; border-radius: 8px; background: #ddd center 25% / cover; }
.top3-text { min-width: 0; display: flex; flex-direction: column; }
.top3-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top3-text small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top3-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wr { color: var(--green); font-weight: 800; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; }
.stat b { display: block; font-size: 1.45rem; font-family: var(--display); color: var(--ink); line-height: 1.2; }
.stat small { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.stat-row-lg { max-width: 560px; margin-bottom: 32px; }
.stat-row-lg b { font-size: 2.1rem; }

/* Favourite card + favourites */
.fav-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.fav-card-box { text-align: center; padding: 22px 20px; transform: rotate(-1.2deg); }
.hand-label { font-family: var(--hand); font-size: 1.6rem; color: var(--accent-2); margin: 0 0 10px; line-height: 1; }
.fav-card-box .foil-card { max-width: 220px; margin: 0 auto; }
.fav-reason { font-family: var(--hand); font-size: 1.3rem; color: var(--ink-2); line-height: 1.2; margin: 12px 0 0; }
.card-placeholder { width: 180px; aspect-ratio: 488/680; margin: 10px auto 16px; border-radius: 12px; border: 2px dashed var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--muted); }

/* Favourite cards: swipe stack */
.fav-showcase { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; padding: 36px 40px; }
.swipe-stack { position: relative; width: 250px; aspect-ratio: 488/680; touch-action: pan-y; outline: none; margin: 10px 20px 10px 6px; }
.swipe-card { position: absolute; inset: 0; transition: transform 0.35s cubic-bezier(.2,.8,.3,1.2), opacity 0.3s; user-select: none; pointer-events: none; }
.swipe-card.is-top { pointer-events: auto; cursor: grab; }
.swipe-card.dragging { transition: none; cursor: grabbing; }
.swipe-card.flying { transition: transform 0.26s ease-in, opacity 0.26s ease-in; }
.swipe-card img, .swipe-card .mtg-card-missing { width: 100%; height: 100%; display: block; border-radius: 4.75% / 3.5%; box-shadow: 0 14px 30px -12px rgba(40, 25, 5, 0.6); -webkit-user-drag: none; }
.swipe-stack:focus-visible .is-top img { box-shadow: 0 0 0 3px var(--accent), 0 14px 30px -12px rgba(40, 25, 5, 0.6); }
.swipe-info h3 { font-size: 1.6rem; margin: 0 0 6px; }
.swipe-info .fav-reason { font-size: 1.5rem; margin: 0 0 18px; min-height: 1.2em; }
.swipe-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.swipe-controls [data-sw-count] { font-weight: 800; color: var(--muted); min-width: 48px; text-align: center; }
.round-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); transition: all 0.15s; }
.round-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.round-btn:disabled { opacity: 0.4; cursor: default; }
.swipe-hint { margin: 16px 0 0; }
.private-note { margin: 16px 0 -6px; font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.nav .nav-log { padding: 5px 12px; color: #fbf6ec; }
.nav .nav-log:hover { color: #fff; }

/* Card scanner */
.cp-search-row { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cp-search-row .cp-search { width: 100%; }
.form label.cp-scan, .cp-scan {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line-2); background: #fff; cursor: pointer; font-weight: 700; font-size: 0.85rem; white-space: nowrap; color: var(--ink);
  min-height: 36px;
}
.cp-scan:hover { border-color: var(--accent); color: var(--accent); }
.scan-modal { position: fixed; inset: 0; z-index: 210; background: rgba(30, 22, 12, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.scan-box { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 18px; padding: 16px; box-shadow: var(--shadow-lg); }
.scan-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--display); font-size: 1.15rem; }
.scan-close { background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--muted); }
.scan-photo { position: relative; border-radius: 12px; overflow: hidden; background: #222; line-height: 0; }
.scan-photo canvas { width: 100%; height: auto; max-height: 52vh; object-fit: contain; display: block; cursor: crosshair; }
.scan-beam { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 14px var(--accent); opacity: 0; pointer-events: none; }
.scan-beam.on { opacity: 1; animation: scan-sweep 1.6s ease-in-out infinite alternate; }
@keyframes scan-sweep { from { top: 2%; } to { top: 96%; } }
.scan-mark { position: absolute; border: 2px solid var(--accent); border-radius: 4px; background: rgba(192, 67, 46, 0.15); pointer-events: none; }
.scan-status { margin: 12px 0 8px; font-weight: 700; min-height: 1.5em; }
.scan-result { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.scan-result img { width: 96px; border-radius: 6px; box-shadow: var(--shadow); }
.scan-result strong { display: block; font-size: 1.05rem; }
.scan-result small { display: block; color: var(--muted); margin-bottom: 10px; }
.scan-result label.btn { margin: 0; flex-direction: row; }
.scan-hint { margin: 10px 0 6px; font-size: 0.85rem; color: var(--muted); }
.scan-manual { display: flex; gap: 8px; }
.scan-manual input { padding: 8px 12px; }

/* Favourite star on deck tiles */
.deck-star { position: absolute; top: 12px; right: 10px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 253, 248, 0.9); color: #c9bba3; font-size: 1.1rem; line-height: 1; box-shadow: var(--shadow); padding: 0; }
button.deck-star { cursor: pointer; transition: transform 0.15s, color 0.15s; }
button.deck-star:hover { transform: scale(1.12); color: var(--gold); }
.deck-star.on { color: #e0a419; background: #fff8e3; }
.star-hint { margin-right: auto; margin-left: 4px; }
.profile-grid-single { grid-template-columns: 1fr; }

/* Logbook tools */
#log-tools-toggle.active { border-color: var(--ink); background: var(--ink); color: #fbf6ec; }
.log-tools { margin-bottom: 26px; }
.log-filters { display: grid; grid-template-columns: 2fr 1.3fr 1fr 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.log-filters label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.8rem; color: var(--ink-2); }
.log-filters input, .log-filters select { padding: 8px 10px; }
.stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.stats-table th { text-align: left; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 10px; border-bottom: 2px solid var(--line-2); cursor: pointer; user-select: none; white-space: nowrap; }
.stats-table th:hover, .stats-table th.sorted { color: var(--accent); }
.stats-table th[data-dir]:not([data-dir=""])::after { content: ' ' attr(data-dir); }
.stats-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.stats-table .num { text-align: right; }
.stats-table tbody tr:hover { background: var(--surface-2); }
.rate-bar { display: inline-block; width: 70px; height: 7px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.rate-bar span { display: block; height: 100%; background: var(--green); }
.log-all-title { margin-top: 8px; }

/* Swipe to delete (logbook, wishlist) */
.swipe-item { position: relative; overflow: hidden; transition: height 0.25s ease, opacity 0.25s ease; }
.log-item { border-radius: 12px; }
.swipe-slide { position: relative; z-index: 1; touch-action: pan-y; }
.log-item .swipe-slide { background: var(--bg); border-radius: 12px; }
.wish-item .swipe-slide { background: var(--surface); }
@media (hover: hover) { .wish-item.swipe-item .wish-row { cursor: grab; } .wish-item.swipe-item .wish-name { cursor: zoom-in; } }
.wish-item .wish-row:hover { background: var(--surface-2); }
.swipe-slide .game-row, .swipe-slide img { user-select: none; -webkit-user-drag: none; }
.swipe-del {
  position: absolute; top: 0; right: 0; bottom: 0; width: 104px; border: 0; z-index: 0;
  background: var(--red); color: #fff; font: inherit; font-weight: 800; font-size: 0.85rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
}
.log-item .swipe-del { border-radius: 0 12px 12px 0; }
.swipe-item:not(.is-open):not(.swiping) .swipe-del { visibility: hidden; }
.swipe-del span { font-size: 0.75rem; letter-spacing: 0.04em; }
.swipe-trash { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; opacity: 0; transition: opacity 0.15s; font-size: 0.85rem; }
.log-item .swipe-trash { right: 128px; }
.wish-item .swipe-trash { right: 74px; }
.swipe-item.removing { pointer-events: none; opacity: 0.6; }
.swipe-tip { margin: -6px 0 12px; }
.wish .swipe-tip { margin: 8px 10px 4px; }
@media (hover: hover) {
  .swipe-item:hover .swipe-trash { opacity: 1; }
  .swipe-item.is-open .swipe-trash { opacity: 0; pointer-events: none; }
  .swipe-tip { display: none; }
}
@media (hover: none) { .swipe-trash { display: none; } }

/* "+ Hinzufügen" dropdown */
.add-menu { position: relative; }
.add-menu > summary { list-style: none; }
.add-menu > summary::-webkit-details-marker { display: none; }
.add-menu .caret { font-size: 0.7em; transition: transform 0.15s; }
.add-menu[open] .caret { transform: rotate(180deg); }
.add-menu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 45; width: 300px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.add-menu-list a { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; padding: 10px; border-radius: 10px; color: var(--ink); }
.add-menu-list a:hover { background: var(--surface-2); color: var(--ink); }
.add-menu-list span { grid-row: span 2; font-size: 1.3rem; line-height: 1.2; }
.add-menu-list b { font-size: 0.92rem; }
.add-menu-list small { color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.add-menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.add-menu-list form button { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.add-menu-list form button:hover { background: var(--surface-2); }
.nav-menu > summary { cursor: pointer; color: var(--ink-2); font-weight: 600; }
.nav-menu > summary:hover { color: var(--accent); }
.nav-menu .add-menu-list { width: 290px; max-height: calc(100vh - 80px); overflow-y: auto; }
.nav-menu .add-menu-list a span, .nav-menu .add-menu-list button span { font-size: 1.1rem; }

/* Wishlist import preview */
.form-actions-tight { margin: 12px 0 0; }
.wl-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wl-card { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 6px; transition: opacity 0.15s, transform 0.15s; }
.wl-card img, .wl-card .mtg-card-missing { width: 100%; display: block; border-radius: 4.75% / 3.5%; box-shadow: 0 4px 10px -4px rgba(40, 25, 5, 0.5); }
.wl-card .mtg-card-missing { font-size: 0.7rem; }
.wl-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 900; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
.wl-card.off { opacity: 0.35; transform: scale(0.95); }
.wl-card.off .wl-check { background: var(--muted); }
.wl-missing { background: #fbe9e5; border: 1px solid #efc1b7; color: #8d2a19; padding: 8px 12px; border-radius: 10px; font-size: 0.88rem; margin-bottom: 14px; }

/* Favourites + wishlist side by side */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-bottom: 52px; }
.duo > section { min-width: 0; }
.duo .fav-showcase { grid-template-columns: auto 1fr; gap: 26px; padding: 28px 24px; }
.duo .swipe-stack { width: 200px; margin: 8px 12px 8px 4px; }
.duo .swipe-info h3 { font-size: 1.3rem; }
.swipe-info { min-width: 0; overflow-wrap: anywhere; }
.duo .swipe-info .fav-reason { font-size: 1.25rem; }

/* Wishlist: compact rows, preview + expand */
.wish-row { grid-template-columns: 56px minmax(0, 1fr) auto auto !important; grid-template-areas: 'thumb name price flags' 'thumb note price flags'; column-gap: 12px !important; row-gap: 0 !important; }
.wish-row .wish-thumb { grid-area: thumb; width: 56px; height: 40px; }
.wish-row .wish-name { grid-area: name; justify-self: start; max-width: 100%; } /* only the text is zoomable – the rest of the row is for swiping */
.wish-row .wish-note { grid-area: note; display: block !important; font-size: 1.05rem; white-space: nowrap; }
.wish-row .wish-ci { display: none; }
.wish-row .wish-price { grid-area: price; }
.wish-row .wish-flags { grid-area: flags; }
.wish-item .swipe-trash { display: none !important; } /* swipe left to delete – the hover bin covered the price */
.wish.is-collapsed .wish-tools { display: none; }
.wish-tools { padding: 6px 8px 10px; }
.wish-filter { flex: 1; min-width: 160px; }
.wish-sort { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.wish-sort select { width: auto; padding: 7px 10px; font-size: 0.85rem; }
.wish-toggle { display: block; width: 100%; margin-top: 4px; padding: 11px; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; font-weight: 800; font-size: 0.88rem; color: var(--accent); cursor: pointer; border-radius: 0 0 12px 12px; }
.wish-toggle:hover { background: var(--surface-2); }
.more-toggle { display: block; margin: 14px auto 0; padding: 9px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font: inherit; font-weight: 800; font-size: 0.88rem; color: var(--accent); cursor: pointer; box-shadow: var(--shadow); }
.more-toggle:hover { background: var(--surface-2); }

/* Profile header v3: avatar overlaps the banner, colours + quick links side by side */
.profile-head { align-items: flex-start !important; margin: -84px 0 0 28px !important; }
.profile-head .avatar-xl { width: 168px; height: 168px; }
.profile-id { padding-top: 92px !important; }
.profile-actions { padding-top: 96px; padding-bottom: 0 !important; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-start; margin: 18px 0 30px 28px; }
.combo-block, .tabs-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.combo-block { flex: 1 1 360px; }
.tabs-block { flex: 0 1 auto; max-width: 420px; }
.meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; color: var(--muted); }
.profile-meta .combo-row { margin: 0; }
.profile-meta .profile-tabs { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 !important; background: none; overflow: visible; }
.profile-meta .profile-tabs a { padding: 4px 11px; font-size: 0.8rem; }
section[id] { scroll-margin-top: 80px; }

/* Share menu + QR */
.profile-actions { flex-wrap: wrap; }
.share-btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: all 0.15s; }
.share-btn::-webkit-details-marker { display: none; }
.share-btn:hover, .share-menu[open] .share-btn { border-color: var(--accent); color: var(--accent); }
.add-menu-list button { display: grid; grid-template-columns: 30px 1fr; column-gap: 8px; width: 100%; padding: 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.add-menu-list button:hover { background: var(--surface-2); }
.add-menu-list button[hidden] { display: none; }
.add-menu-list button span { grid-row: span 2; font-size: 1.3rem; line-height: 1.2; }
.add-menu-list button b { font-size: 0.92rem; }
.add-menu-list button small { color: var(--muted); font-size: 0.78rem; line-height: 1.3; overflow-wrap: anywhere; }
.qr-box { width: min(360px, 100%); text-align: center; }
.qr-img { width: 100%; max-width: 280px; image-rendering: pixelated; border-radius: 10px; border: 1px solid var(--line); }
.qr-url { font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; margin: 8px 0 12px; }
.qr-actions { justify-content: center; }

/* Share button inline with the profile sub line */
.profile-sub { align-items: center; }
.profile-sub .share-btn { width: 32px; height: 32px; }
.profile-sub .share-btn svg { width: 15px; height: 15px; }
.profile-sub .share-menu .add-menu-list { left: 0; right: auto; }
.profile-sub .add-menu-list b, .profile-sub .add-menu-list small { font-weight: normal; }
.profile-sub .add-menu-list b { font-weight: 700; color: var(--ink); }

/* Partner commanders: swipeable pair on the deck page */
.cmd-stack { width: 290px; }
.cmd-stack-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; }
.cmd-stack-controls { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--muted); font-size: 0.85rem; }
.cmd-stack-controls .round-btn { width: 34px; height: 34px; font-size: 0.95rem; }

.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; margin-left: 4px; }

/* Card images */
.mtg-card { width: 100%; border-radius: 4.75% / 3.5%; display: block; box-shadow: 0 10px 22px -10px rgba(40, 25, 5, 0.55); }
.zoomable { cursor: zoom-in; }
.mtg-card-missing { aspect-ratio: 488/680; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; font-size: 0.85rem; color: var(--muted); }

.foil-card { position: relative; perspective: 900px; }
.foil-card > img, .foil-card > .mtg-card-missing { transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transition: transform 0.15s ease-out; }
.foil-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 4.75% / 3.5%; pointer-events: none; mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.8), transparent 45%), linear-gradient(115deg, transparent 20%, rgba(255, 0, 180, 0.35) 35%, rgba(0, 255, 230, 0.35) 50%, rgba(255, 230, 0, 0.35) 65%, transparent 80%);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0));
}
.foil-card:hover::after { opacity: 0.9; }

.card-fan { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.card-item { position: relative; margin: 0; transition: transform 0.2s; }
.card-item:nth-child(3n+1) { transform: rotate(-1deg); }
.card-item:nth-child(3n+2) { transform: rotate(0.8deg); }
.card-item:hover { transform: translateY(-6px) rotate(0); z-index: 2; }
.card-item figcaption { font-family: var(--hand); font-size: 1.2rem; color: var(--ink-2); text-align: center; margin-top: 6px; line-height: 1.1; }
.card-item .corner-edit { position: absolute; top: 8px; right: 8px; opacity: 0; transition: opacity 0.2s; }
.card-item:hover .corner-edit { opacity: 1; }

/* Wishlist (list view) */
.wish { padding: 8px 8px 4px; }
.wish-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 10px 12px; flex-wrap: wrap; }
.wish-filter { max-width: 320px; padding: 8px 14px; }
.wish-total { font-weight: 800; color: var(--green); font-size: 0.9rem; }
.wish-list { list-style: none; margin: 0; padding: 0; }
.wish-item { border-top: 1px solid var(--line); }
.wish-row { display: grid; grid-template-columns: 64px minmax(160px, 2fr) 70px minmax(0, 2fr) 90px 54px; gap: 14px; align-items: center; padding: 8px 10px; }
.wish-row:hover { background: var(--surface-2); }
.wish-row.prio .wish-name strong::before { content: '★ '; color: var(--gold); }
.wish-thumb { width: 64px; height: 44px; border-radius: 6px; background: #eee center 25% / cover; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.wish-thumb-product { background-color: #fff; background-size: contain; background-repeat: no-repeat; border: 1px solid var(--line); }
.wish-name { display: flex; flex-direction: column; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: zoom-in; }
a.wish-name { cursor: pointer; }
.wish-name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-name small { color: var(--muted); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wish-name:hover strong { color: var(--accent); }
.wish-note { font-family: var(--hand); font-size: 1.15rem; color: var(--ink-2); line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
.wish-price { text-align: right; font-weight: 800; color: var(--green); font-size: 0.9rem; white-space: nowrap; }
.wish-price a { color: var(--green); }
.wish-flags { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.wish-flags .star { color: var(--gold); }
.wish-flags a { color: var(--muted); }

/* Game list */
.game-list { display: flex; flex-direction: column; gap: 10px; }
.game-row { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); transition: box-shadow 0.2s, transform 0.2s; border-left: 5px solid var(--line-2); box-shadow: var(--shadow); }
.game-row:hover { color: var(--ink); transform: translateX(3px); box-shadow: var(--shadow-lg); }
.game-won { border-left-color: var(--green); }
.game-lost { border-left-color: var(--red); }
.game-art { width: 110px; flex-shrink: 0; background: #ddd center 25% / cover; }
.game-main { flex: 1; padding: 10px 16px; display: flex; flex-direction: column; min-width: 0; }
.game-main .muted { font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-meta { display: flex; gap: 6px; align-items: center; font-size: 0.76rem; color: var(--muted); font-weight: 700; }
.game-result { padding: 10px 16px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; }
.game-result small { color: var(--muted); font-size: 0.74rem; }
.res { font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; padding: 1px 8px; border: 2px solid currentColor; border-radius: 5px; transform: rotate(-4deg); }
.res-win { color: var(--green); }
.res-loss { color: var(--red); }

.deck-winrates { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.wr-row { display: grid; grid-template-columns: 56px 1fr 2fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 6px 6px; color: var(--ink); box-shadow: var(--shadow); }
.wr-row:hover { color: var(--ink); border-color: var(--gold); }
.wr-art { height: 40px; border-radius: 8px; background: center/cover; }
.wr-bar { height: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.wr-bar span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.wr-num { font-size: 0.85rem; color: var(--muted); white-space: nowrap; font-weight: 700; }

/* ---------- Deck page ---------- */
.deck-hero { position: relative; padding: 44px 0; margin-bottom: 32px; overflow: hidden; border-bottom: 1px solid var(--line); }
.deck-hero-bg { position: absolute; inset: -30px; background: center 25% / cover; filter: blur(26px) saturate(1.1); opacity: 0.35; }
.deck-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 5%, rgba(244, 238, 227, 0.55)); }
.deck-hero-inner { position: relative; z-index: 1; display: flex; gap: 44px; align-items: center; flex-wrap: wrap; }
.deck-hero-cards { display: flex; width: 290px; position: relative; flex-shrink: 0; }
.deck-hero-cards .foil-card { width: 100%; }
.deck-hero-cards .partner-card { position: absolute; width: 78%; left: 42%; top: 12%; z-index: -1; transform: rotate(6deg); }
.deck-hero-cards:has(.partner-card) { margin-right: 120px; }
.deck-hero-info { flex: 1; min-width: 280px; }
.back-link { display: inline-block; margin-bottom: 10px; color: var(--muted); font-weight: 700; }
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.deck-desc { color: var(--ink-2); max-width: 640px; }

.deck-overview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 32px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 18px; box-shadow: var(--shadow); }
.curve { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.curve-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.curve-col .bar { width: 100%; min-height: 2px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #e0a85a, var(--accent)); }
.curve-col .n { font-size: 0.8rem; color: var(--ink-2); font-weight: 700; }
.curve-col .l { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }
.type-row { display: grid; grid-template-columns: 120px 1fr 32px; gap: 10px; align-items: center; font-size: 0.88rem; margin-bottom: 6px; }
.tbar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.tbar div { height: 100%; background: var(--blue); border-radius: 99px; }
.type-row b { text-align: right; }

.view-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.view-toggle button { background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: 700; }
.view-toggle button.active { background: var(--ink); color: #fbf6ec; }

.deck-visual { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 22px; align-items: start; }
.stack-col h4, .text-col h4 { font-family: var(--display); margin: 0 0 10px; font-size: 0.98rem; display: flex; justify-content: space-between; border-bottom: 2px solid var(--line-2); padding-bottom: 6px; }
.stack-col h4 span, .text-col h4 span { color: var(--accent); }
.stack { display: flex; flex-direction: column; }
.stack-card { position: relative; margin-bottom: -118%; transition: transform 0.18s, margin 0.18s; cursor: zoom-in; }
.stack-card:last-child { margin-bottom: 0; }
.stack-card img, .stack-card .mtg-card-missing { width: 100%; display: block; border-radius: 4.75% / 3.5%; box-shadow: 0 -2px 10px rgba(40, 25, 5, 0.3); }
.stack-card:hover { transform: translateY(-4px) scale(1.04); z-index: 5; margin-bottom: -40%; }
.stack-card:last-child:hover { margin-bottom: 0; }
.qty { position: absolute; top: 7%; right: 8%; background: var(--ink); color: #fff; font-weight: 800; font-size: 0.8rem; padding: 1px 7px; border-radius: 999px; }
.deck-text { columns: 3 240px; column-gap: 28px; }
.text-col { break-inside: avoid; margin-bottom: 20px; }
.text-col ul { list-style: none; margin: 0; padding: 0; }
.text-col li { padding: 2px 0; font-size: 0.92rem; cursor: zoom-in; }
.text-col li:hover { color: var(--accent); }
.text-col .q { display: inline-block; width: 22px; color: var(--muted); }

#card-hover { position: fixed; left: 0; top: 0; width: 250px; aspect-ratio: 488/680; background: center/cover; border-radius: 12px; pointer-events: none; z-index: 100; opacity: 0; transition: opacity 0.12s; box-shadow: 0 20px 44px -10px rgba(40, 25, 5, 0.6); }
#card-hover.show { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(30, 22, 12, 0.78); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lightbox img { max-height: calc(100vh - 110px); max-width: min(480px, 92vw); border-radius: 4.75% / 3.5%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.lightbox-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lightbox-links a, .lightbox-close { background: var(--surface); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; font-size: 0.88rem; cursor: pointer; }
.lightbox-links a:hover { color: var(--accent); }
.lightbox img { touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.lightbox img.slide-next { animation: lb-in-next 0.22s ease-out; }
.lightbox img.slide-prev { animation: lb-in-prev 0.22s ease-out; }
@keyframes lb-in-next { from { opacity: 0.3; transform: translateX(40px); } }
@keyframes lb-in-prev { from { opacity: 0.3; transform: translateX(-40px); } }
.lightbox-count { color: #fff; font-weight: 700; font-size: 0.85rem; opacity: 0.8; margin-top: -6px; }
.lightbox-count:empty { display: none; }
.lightbox-nav { display: none; flex: none; width: 48px; height: 48px; margin: 0 12px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.lightbox-nav:hover { background: #fff; color: var(--accent); }
.lightbox.has-gallery .lightbox-nav { display: block; }
@media (hover: none) { .lightbox.has-gallery .lightbox-nav { display: none; } }

/* ---------- Game page ---------- */
.game-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.result-big { font-weight: 900; font-size: 1.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 18px; border-radius: 8px; border: 4px solid currentColor; transform: rotate(-5deg); color: var(--muted); }
.result-big.res-win { color: var(--green); }
.result-big.res-loss { color: var(--red); }
.table-seats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.seat { position: relative; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.seat-art { height: 110px; background: #ddd center 25% / cover; }
.seat-body { padding: 10px 14px 14px; display: flex; flex-direction: column; }
.seat-body small { color: var(--muted); font-weight: 700; }
.seat-me { border-color: var(--blue); }
.seat-winner { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow-lg); }
.crown { position: absolute; top: 8px; right: 10px; font-size: 1.6rem; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.game-notes { display: grid; grid-template-columns: 1fr 1fr 220px; gap: 14px; }
.game-notes .panel { margin: 0; }
.note-good { border-top: 4px solid var(--green); }
.note-bad { border-top: 4px solid var(--red); }
.mvp { text-align: center; }
.win-panel p { margin: 8px 0 0; }
.game-notes + .panel { margin-top: 14px; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 4px; }
.form fieldset { border: 1px solid var(--line); }
.form legend { font-family: var(--display); font-weight: 700; padding: 0 8px; color: var(--accent-2); font-size: 1.05rem; }
.form label, .form .label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 0.88rem; margin-bottom: 14px; }
.form .label { margin-bottom: 6px; }
.form label small, .form .label small { color: var(--muted); font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: inherit; font-weight: 500; transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(192, 67, 46, 0.15); }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.85rem; }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
.form label.check { flex-direction: row; align-items: center; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reason-field { margin: 12px 0 0 !important; }
.picker-stack { display: flex; flex-direction: column; gap: 18px; margin-bottom: 14px; }
.picker-stack > div + div { padding-top: 16px; border-top: 1px dashed var(--line-2); }
.input-row { display: flex; gap: 8px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin: 10px 0 40px; }
.import-status { font-size: 0.9rem; min-height: 1.4em; margin-top: 8px; font-weight: 600; }
.import-status.ok { color: var(--green); }
.import-status.warn { color: var(--gold); }
.import-status.err { color: var(--red); }
.filter-input { max-width: 360px; margin-bottom: 20px; }

.combo-picker { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.combo-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.combo-group-name { width: 100%; font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.form label.combo-opt { margin: 0; display: inline-flex; cursor: pointer; }
.combo-opt input { position: absolute; opacity: 0; pointer-events: none; }
.combo-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 7px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: 0.82rem; font-weight: 700; color: var(--ink-2); transition: all 0.15s; }
.combo-opt:hover span { border-color: var(--accent); }
.combo-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.combo-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(192, 67, 46, 0.25); }

/* Card picker */
.card-picker { display: flex; gap: 14px; align-items: flex-start; }
.cp-preview { width: 110px; aspect-ratio: 488/680; flex-shrink: 0; border-radius: 8px; border: 2px dashed var(--line-2); background: var(--surface-2) center/cover no-repeat; }
.cp-preview.has-img { border: 0; box-shadow: var(--shadow-lg); }
.cp-preview.cp-art { aspect-ratio: 626/457; width: 140px; }
.cp-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-search { position: relative; }
.cp-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 340px; overflow-y: auto; }
.cp-results li { padding: 6px 10px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cp-results li img { width: 54px; height: 40px; object-fit: cover; border-radius: 4px; }
.cp-results li:hover, .cp-results li.active { background: var(--gold-soft); }
.cp-selected strong { display: block; }
.cp-selected small { color: var(--muted); }
.cp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-actions button { background: #fff; border: 1px solid var(--line-2); color: var(--ink); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer; }
.cp-actions button:hover { border-color: var(--accent); color: var(--accent); }
.cp-prints { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; padding: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; align-items: start; }
.cp-prints-head { grid-column: 1 / -1; margin: 0; font-size: 0.75rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.cp-prints button { padding: 0; border: 2px solid transparent; background: none; border-radius: 6px; cursor: pointer; overflow: hidden; text-align: left; font: inherit; color: var(--ink); }
.cp-prints button:hover { border-color: var(--accent); }
.cp-prints button.current { border-color: var(--green); }
.cp-prints img { display: block; width: 100%; border-radius: 4px; }
.cp-print-label { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 3px 2px 2px; font-size: 0.66rem; line-height: 1.25; }
.cp-print-label b { width: 100%; font-weight: 800; }
.cp-print-label i { font-style: normal; background: var(--gold-soft); color: #7a5410; border-radius: 4px; padding: 0 4px; font-weight: 700; }
.card-picker-compact .cp-preview { width: 70px; }

.opp-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 12px; }
.opp-fields label { margin-bottom: 8px !important; }
.opp-remove { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1rem; }
.opp-remove:hover { color: var(--red); }

.product-preview { display: flex; gap: 16px; align-items: flex-start; }
.product-preview .product-img { width: 150px; height: 150px; border-radius: 12px; flex-shrink: 0; background: #fff center/contain no-repeat; border: 1px solid var(--line); }
.grow { flex: 1; }

/* Auth */
.auth { display: flex; justify-content: center; padding: 60px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow-lg); position: relative; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 4px; }

.empty-page { text-align: center; padding: 80px 0; }
.empty-page h1 { font-size: 5rem; color: var(--accent); }
.legal h2 { margin-top: 1.4em; font-size: 1.2rem; }

.footer { border-top: 1px solid var(--line); padding: 24px 16px; text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 40px; background: rgba(255, 253, 248, 0.6); }
.footer p { max-width: 760px; margin: 0 auto 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .profile-grid, .deck-overview { grid-template-columns: 1fr; }
  .row-2:has(.card-picker) { grid-template-columns: 1fr; }
  .game-notes { grid-template-columns: 1fr 1fr; }
  .mvp { grid-column: 1 / -1; }
  .mvp .foil-card { max-width: 220px; margin: 0 auto; }
  .row-3 { grid-template-columns: 1fr; }
  .fav-showcase, .duo .fav-showcase { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; padding: 32px 20px; }
  .swipe-controls { justify-content: center; }
  .duo { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .nav { gap: 12px; font-size: 0.9rem; }
  .brand span { display: none; }
  .hero { min-height: 480px; }
  .hero-bg { inset: 0; }
  .hero-bg.loaded { opacity: 0.35; }
  .profile-banner { height: 180px; border-width: 4px; }
  .profile-head { margin: -60px 0 0 12px; gap: 12px; }
  .profile-id { padding-top: 0; min-width: 100%; }
  .avatar-xl { width: 112px; height: 112px; font-size: 2.4rem; border-width: 5px; }
  .combo-row { margin-left: 0; }
  /* phone: avatar sits on the banner's bottom-right corner, text moves up */
  .profile-head { position: relative; margin: 12px 0 0 2px !important; }
  .profile-head .avatar-xl { position: absolute; right: 8px; top: -78px; width: 112px; height: 112px; }
  .profile-id { padding-top: 0 !important; }
  .profile-id .hello, .profile-id h1 { padding-right: 118px; }
  .profile-actions { padding-top: 0; }
  .share-menu .add-menu-list { left: 0; right: auto; }
  .profile-meta { margin: 14px 0 26px; gap: 14px; }
  .tabs-block { max-width: none; }
  .friendbook { padding: 18px 16px 16px 44px; }
  .friendbook::after { left: 8px; }
  .fb-list { grid-template-columns: 1fr; }
  .row-2, .opp-row, .game-notes { grid-template-columns: 1fr; }
  .deck-hero-cards { width: 220px; }
  .cmd-stack { width: 230px; }
  .cmd-stack-wrap, .deck-hero-cards { margin: 0 auto; }
  .game-art { width: 70px; }
  .wr-row { grid-template-columns: 44px 1fr auto; }
  .wr-bar { display: none; }
  .deck-visual { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .input-row { flex-direction: column; }
  .card-fan { grid-template-columns: repeat(2, 1fr); }
  .top3-item { grid-template-columns: 28px 56px 1fr auto; gap: 8px; }
  .wish-row { gap: 10px; padding: 8px 4px; }
  .flash { left: 16px; right: 16px; max-width: none; }
  .swipe-stack { width: 220px; }
  .card-picker { gap: 10px; }
  .cp-preview { width: 76px; }
  .cp-preview.cp-art { width: 96px; }
  .cp-search-row { flex-direction: column; }
  .cp-scan { justify-content: center; padding: 9px 14px; align-self: stretch; }
  .card-picker-compact .cp-scan-label { display: inline; }
  .log-filters { grid-template-columns: 1fr 1fr; }
  .log-filters label:first-child { grid-column: 1 / -1; }
  .rate-bar { display: none; }
  .deck-star { width: 26px; height: 26px; font-size: 0.9rem; top: 8px; right: 6px; }
  .star-hint { display: none; }
  .grid-decks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deck-art { height: 64px; }
  .deck-tile::before { height: 4px; }
  .deck-tile-body { padding: 7px 9px 9px; }
  .deck-tile-top { gap: 4px; margin-bottom: 3px; }
  .deck-tile-top .badge { font-size: 0.66rem; padding: 0 6px; }
  .deck-tile h3 { font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .deck-tile p { font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hate-reason { font-size: 1.05rem !important; white-space: normal !important; }
  .deck-hated .deck-art::after { font-size: 0.6rem; padding: 0 6px; border-width: 2px; top: 10px; right: 8px; }
  .tile-actions { top: 8px; left: 6px; }
  .tile-actions a { width: 24px; height: 24px; font-size: 0.75rem; }
  .profile-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
}

/* ---------- Pods ---------- */
.avatar-sm { width: 36px; height: 36px; font-size: 0.95rem; border-width: 2px; }
.nav-menu > summary { position: relative; }
.nav-dot { position: absolute; top: -4px; left: 22px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.68rem; font-weight: 800; line-height: 18px; text-align: center; border: 2px solid var(--bg, #f4eee3); }
.menu-count { font-style: normal; display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 0.72rem; line-height: 18px; text-align: center; }

.notices { display: grid; gap: 10px; margin: 0 0 22px; }
.notice { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: var(--gold-soft); border: 1px solid #e2c784; border-radius: 14px; box-shadow: var(--shadow); }
.notice p { flex: 1; min-width: 180px; margin: 0; }
.notice a { color: var(--ink); }
.notice a:hover { color: var(--accent); }
.notice-icon { font-size: 1.4rem; }
.notice-actions { display: flex; gap: 8px; }
.notice-actions form { margin: 0; }

.pod-list { display: grid; gap: 10px; }
.pod-list-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pod-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.15s, box-shadow 0.15s; }
.pod-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--ink); }
.pod-icon { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface-2); font-size: 1.4rem; }
.pod-tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pod-tile-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod-tile-body small { color: var(--muted); }
.pod-more-title { margin: 36px 0 14px; }
.pod-empty p { margin-top: 0; }

.pod-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pod-head h1 { margin: 0 0 4px; }
.pod-head .muted { margin: 0; }
.pod-desc { max-width: 640px; color: var(--ink-2); }
.pod-member { position: relative; }
.pod-owner { position: absolute; top: 10px; left: 10px; }
.pod-member form { position: absolute; top: 8px; right: 8px; }
.pod-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--muted); cursor: pointer; font-weight: 800; }
.pod-remove:hover { color: var(--red, #b3261e); }
.pod-invite { margin-top: 24px; }
.pod-invite h3 { margin-top: 0; }
.pod-invite .input-row input { flex: 1; min-width: 0; }
.pod-invite .label { margin-top: 16px; }
.pod-pending { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.pod-pending-item { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: 0.85rem; }
.pod-join { text-align: center; }
.pod-join-faces { display: flex; justify-content: center; align-items: center; gap: 0; margin: 18px 0; }
.pod-join-faces .avatar { margin-left: -12px; }
.pod-join-faces .muted { margin-left: 12px; }
.pod-chip { gap: 6px; color: var(--ink); text-decoration: none; }
.pod-chip:hover { color: var(--accent); }
.pod-chip-add { color: var(--accent); border-style: dashed; }

.home-people { padding-top: 28px; }
.people-strip { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 76px; color: var(--ink); font-size: 0.82rem; font-weight: 700; text-align: center; }
.person span:last-child { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person:hover { color: var(--accent); }
.person:hover .avatar { transform: translateY(-2px); }
.person .avatar { transition: transform 0.15s; }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 6px; }

/* Deck order: sort mode on the own profile */
.grid-decks.is-sorting .deck-tile { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; animation: deck-wiggle 0.35s ease-in-out infinite alternate; }
.grid-decks.is-sorting .deck-tile:nth-child(2n) { animation-delay: -0.17s; }
.grid-decks.is-sorting .deck-tile * { pointer-events: none; }
.grid-decks.is-sorting .deck-tile.is-dragging { opacity: 0.35; animation: none; }
.grid-decks.is-sorting .deck-tile img, .grid-decks.is-sorting .deck-tile a { -webkit-user-drag: none; }
@keyframes deck-wiggle { from { transform: rotate(-0.7deg); } to { transform: rotate(0.7deg); } }
.deck-ghost { position: fixed; z-index: 300; margin: 0; pointer-events: none; transform: rotate(2deg) scale(1.04); box-shadow: var(--shadow-lg); cursor: grabbing; }
@media (prefers-reduced-motion: reduce) { .grid-decks.is-sorting .deck-tile { animation: none; } }
