/* Sculpt It Gallery */

:root {
  --bg: #F6EEE3;
  --bg-2: #EEE2D1;
  --card: #FFFAF3;
  --ink: #3A2A22;
  --ink-2: #6B574B;
  --ink-3: #9A877A;
  --line: rgba(58, 42, 34, 0.13);
  --clay: #E0705A;
  --clay-2: #C95C47;
  --clay-ink: #FFFFFF;
  --mint: #86C3AE;
  --butter: #F3C969;
  --lav: #B3A5E4;
  --star: #F2B136;
  --star-empty: rgba(58, 42, 34, 0.16);
  --gold: #F2B136;
  --silver: #BFC6CF;
  --bronze: #D8996B;
  --shadow: 0 1px 0 rgba(58, 42, 34, 0.06), 0 14px 34px -16px rgba(58, 42, 34, 0.35);
  --shadow-lift: 0 2px 0 rgba(58, 42, 34, 0.08), 0 22px 44px -18px rgba(58, 42, 34, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --head-h: 64px;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --stage-bg: #EADCCB;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1D1714;
    --bg-2: #2A211C;
    --card: #2D2520;
    --ink: #F7EDE3;
    --ink-2: #D2C0B3;
    --ink-3: #A08F83;
    --line: rgba(255, 240, 225, 0.13);
    --star-empty: rgba(255, 240, 225, 0.2);
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 16px 36px -18px rgba(0, 0, 0, 0.8);
    --shadow-lift: 0 2px 0 rgba(0, 0, 0, 0.35), 0 24px 48px -18px rgba(0, 0, 0, 0.9);
    --stage-bg: #362B25;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.noscript { text-align: center; padding: 60px 16px; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 1240px; margin: 0 auto; height: var(--head-h);
  display: flex; align-items: center; gap: 18px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 30px; width: auto; }
.brand-word {
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  background: var(--clay); color: var(--clay-ink); padding: 2px 12px 3px; border-radius: 999px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.14);
}
.tabs { display: flex; gap: 4px; margin: 0 auto; background: var(--bg-2); padding: 4px; border-radius: 999px; }
.tabs a {
  text-decoration: none; font-weight: 800; font-size: 14.5px; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 9px 18px; font-weight: 800; font-size: 15px;
  text-decoration: none; background: var(--card); color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.08), var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0,0,0,0.08); }
.btn-get, .btn-primary { background: var(--clay); color: var(--clay-ink); }
.btn-get { flex: none; }
.btn-ghost { background: transparent; box-shadow: none; border: 2px solid var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 820px) {
  .top-in { flex-wrap: wrap; height: var(--head-h); padding: 8px 14px; gap: 8px 10px; align-content: center; }
  .brand { order: 1; gap: 8px; }
  .brand img { height: 22px; }
  .brand-word { font-size: 15px; padding: 1px 9px 2px; }
  .btn-get { order: 2; margin-left: auto; padding: 6px 12px; font-size: 13.5px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 6px 10px; font-size: 13.5px; }
  :root { --head-h: 96px; }
}

/* ---------- shared bits ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 28px 20px 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h1 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { margin: 6px 0 0; color: var(--ink-2); font-weight: 600; }
.seg { display: inline-flex; background: var(--bg-2); padding: 4px; border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.chip {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .01em;
  padding: 3px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
.chip-theme { background: color-mix(in srgb, var(--mint) 30%, var(--card)); color: var(--ink); }
.muted { color: var(--ink-3); }
.empty {
  text-align: center; padding: 56px 20px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--ink-2); font-weight: 600;
}
.empty h2 { color: var(--ink); margin-bottom: 8px; font-size: 24px; }
.empty .btn { margin-top: 16px; }
.loader { display: flex; justify-content: center; padding: 28px; }
.loader i {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--clay); animation: blob 1s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { transform: scale(0.7, 0.7); border-radius: 50%; }
  50% { transform: scale(1.05, 0.85); border-radius: 46% 54% 40% 60%; }
}

/* ---------- stars ---------- */
.stars {
  position: relative; display: inline-block; height: 30px; width: 160px; flex: none;
  cursor: pointer; touch-action: none; border-radius: 8px;
}
.stars .layer { position: absolute; inset: 0; display: flex; gap: 2px; overflow: hidden; pointer-events: none; }
.stars .layer svg { width: 30px; height: 30px; flex: none; }
.stars .empty-l svg { fill: var(--star-empty); }
.stars .fill-l { width: 0; }
.stars .fill-l svg { fill: var(--star); }
.stars[data-mine="1"] .fill-l svg { fill: var(--clay); }
.stars.sm { height: 16px; width: 88px; cursor: default; }
.stars.sm .layer { gap: 2px; }
.stars.sm .layer svg { width: 16px; height: 16px; }
.rate-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rate-note { font-weight: 700; color: var(--ink-2); font-size: 14px; }
.rate-note b { color: var(--ink); }

/* ---------- stage (photo / spin) ---------- */
.stage {
  position: relative; background: var(--stage-bg); border-radius: var(--radius); overflow: hidden;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; transition: opacity .35s ease; }
.stage img.spin { opacity: 0; }
.stage.spinning img.spin { opacity: 1; }
.stage.spinning img.photo { opacity: 0; }
.stage .badge360 {
  position: absolute; right: 12px; top: 12px; font-weight: 800; font-size: 12px;
  background: rgba(0,0,0,0.45); color: #fff; padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.stage .spin-hint {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(0,0,0,0.45); color: #fff; font-weight: 800; font-size: 13px;
  padding: 5px 12px; border-radius: 999px; pointer-events: none; transition: opacity .3s;
}
.stage.dragged .spin-hint { opacity: 0; }
.stage.can-spin { cursor: grab; }
.stage.can-spin:active { cursor: grabbing; }

/* ---------- scroll feed ---------- */
body.mode-scroll .foot { display: none; }
.feed {
  height: calc(100dvh - var(--head-h)); overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.slide {
  height: calc(100dvh - var(--head-h)); scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 22px 20px;
}
.slide .stage { height: 100%; max-height: 760px; }
.info {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.info .top-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.info h2 { font-size: 30px; overflow-wrap: anywhere; }
.info .by { margin: -6px 0 0; color: var(--ink-2); font-weight: 700; }
.info .by b { color: var(--ink); }
.rank-pill { font-weight: 800; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--butter); color: #3A2A22; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { padding: 8px 14px; font-size: 14px; }
.next-hint { color: var(--ink-3); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.next-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

@media (max-width: 820px) {
  .slide {
    grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto;
    gap: 0; padding: 0; align-items: stretch;
  }
  .slide .stage { border-radius: 0; max-height: none; }
  .slide .info {
    border-radius: var(--radius) var(--radius) 0 0; margin-top: -22px; position: relative;
    padding: 16px 16px calc(14px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.3);
  }
  .info h2 { font-size: 22px; }
  .info .by { font-size: 14.5px; margin-top: -8px; }
  .info .stars { width: 136px; height: 26px; }
  .info .stars .layer svg { width: 26px; height: 26px; }
  .info .rate-note { font-size: 13px; }
  .info .actions .btn { padding: 6px 12px; font-size: 13.5px; }
  .next-hint { display: none; }
}

/* ---------- leaderboards / grids ---------- */
.podium {
  display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 18px; align-items: end; margin-bottom: 28px;
}
.podium .card:nth-child(1) { order: 2; }
.podium .card:nth-child(2) { order: 1; }
.podium .card:nth-child(3) { order: 3; }
@media (max-width: 820px) {
  .podium { grid-template-columns: 1fr; }
  .podium .card:nth-child(n) { order: 0; }
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card {
  position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; border: 0; padding: 0; text-align: left; width: 100%;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card .thumb { aspect-ratio: 1 / 1; background: var(--stage-bg); position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card .t { font-family: var(--font-head); font-weight: 600; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .p { color: var(--ink-2); font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .r { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; color: var(--ink-2); }
.medal {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow);
}
.medal.m1 { background: var(--gold); color: #3A2A22; }
.medal.m2 { background: var(--silver); color: #3A2A22; }
.medal.m3 { background: var(--bronze); color: #3A2A22; }
.podium .card .t { font-size: 22px; }
.podium .card:nth-child(1) .thumb { aspect-ratio: 4 / 4.3; }

.winner-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 460px)); gap: 18px; margin-bottom: 26px; }
.winner {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-decoration: none; border: 0; width: 100%; text-align: left;
}
.winner img { width: 104px; height: 104px; border-radius: 16px; object-fit: cover; background: var(--stage-bg); }
.winner .k { font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--clay); }
.winner .t { font-family: var(--font-head); font-weight: 600; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winner .p { color: var(--ink-2); font-weight: 700; font-size: 14px; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center;
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 28px;
  position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); }
.hero h1 em { font-style: normal; color: var(--clay); }
.hero p { color: var(--ink-2); font-weight: 600; font-size: 17px; margin: 10px 0 18px; max-width: 46ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .blobs { position: relative; height: 180px; }
.hero .blobs span { position: absolute; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; box-shadow: inset -10px -12px 0 rgba(0,0,0,0.08); }
.hero .blobs span:nth-child(1) { width: 140px; height: 120px; background: var(--clay); right: 30%; top: 20px; transform: rotate(-12deg); }
.hero .blobs span:nth-child(2) { width: 96px; height: 96px; background: var(--mint); right: 6%; top: 0; }
.hero .blobs span:nth-child(3) { width: 80px; height: 70px; background: var(--butter); right: 14%; bottom: 0; }
.hero .blobs span:nth-child(4) { width: 58px; height: 58px; background: var(--lav); right: 52%; bottom: 8px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero .blobs { display: none; }
}

/* ---------- modal viewer ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; background: rgba(20, 14, 11, 0.72);
  display: grid; place-items: center; padding: 20px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal .sheet { width: min(1100px, 100%); max-height: calc(100dvh - 40px); display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: stretch; }
.modal .stage { min-height: 420px; height: min(78dvh, 720px); }
.modal .x, .modal .nav {
  position: absolute; z-index: 2; border: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--card); color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center;
}
.modal .x { right: 18px; top: 18px; }
.modal .nav.prev { left: 18px; top: 50%; }
.modal .nav.next { right: 18px; top: 50%; }
.modal .x svg, .modal .nav svg { width: 22px; height: 22px; }
@media (max-width: 820px) {
  .modal { padding: 0; place-items: stretch; }
  .modal .sheet { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; max-height: 100dvh; gap: 0; }
  .modal .stage { height: auto; min-height: 0; border-radius: 0; }
  .modal .info { border-radius: var(--radius) var(--radius) 0 0; margin-top: -20px; position: relative; }
  .modal .nav { top: auto; bottom: 46%; }
}

/* ---------- dialog (report) ---------- */
dialog.dlg {
  border: 0; border-radius: var(--radius); background: var(--card); color: var(--ink); padding: 24px;
  width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lift);
}
dialog.dlg::backdrop { background: rgba(20, 14, 11, 0.6); }
dialog.dlg h2 { font-size: 24px; margin-bottom: 4px; }
dialog.dlg p { margin: 0 0 14px; color: var(--ink-2); font-weight: 600; }
.reasons { display: grid; gap: 8px; margin-bottom: 12px; }
.reasons label {
  display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-2); font-weight: 700; cursor: pointer;
}
.reasons input { accent-color: var(--clay); width: 18px; height: 18px; }
dialog.dlg textarea {
  width: 100%; min-height: 70px; resize: vertical; border-radius: 12px; border: 2px solid var(--line);
  background: var(--bg); color: var(--ink); padding: 10px 12px; font: inherit;
}
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
dialog.dlg-get { position: relative; padding-top: 26px; }
dialog.dlg-get h2 { padding-right: 40px; }
.get-code {
  margin: 4px 0 6px; padding: 16px 10px; border-radius: var(--radius-sm); background: var(--bg-2);
  font-weight: 900; font-size: clamp(30px, 9vw, 44px); letter-spacing: 0.22em; text-indent: 0.22em;
  text-align: center; user-select: all; font-variant-numeric: tabular-nums;
}
.dlg-get .dlg-actions { align-items: center; }
.get-count { margin-right: auto; color: var(--ink-3); font-weight: 700; font-size: 14px; }

/* ---------- toast / footer ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translate(-50%, 30px);
  background: var(--ink); color: var(--bg); font-weight: 800; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60; max-width: calc(100vw - 32px);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { max-width: 1240px; margin: 0 auto; padding: 26px 20px 50px; color: var(--ink-3); font-weight: 600; font-size: 14px; text-align: center; }
.foot p { margin: 6px 0; }
.foot-links { display: flex; justify-content: center; gap: 18px; }
.foot-links a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .feed { scroll-behavior: auto; }
}
.modal .stage .badge360 { right: auto; left: 12px; }

/* ---------- accounts ---------- */
.who { flex: none; display: flex; align-items: center; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-ghost.btn-sm { border-width: 2px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.who-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 14.5px;
  padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); max-width: 180px;
}
.who-chip:hover { transform: translateY(-1px); }
.avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--mint); color: #22392F; font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

dialog.dlg-signin { padding: 26px 24px 20px; width: min(420px, calc(100vw - 32px)); position: relative; }
.dlg-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: var(--bg-2); display: grid; place-items: center; color: var(--ink-2);
}
.dlg-x svg { width: 16px; height: 16px; }
dialog.dlg-signin h2 { padding-right: 40px; }
.si-provs { display: grid; gap: 10px; margin: 4px 0 6px; }
.btn-prov { width: 100%; padding: 12px 18px; font-size: 15.5px; }
.btn-epic { background: #2F2D2E; color: #fff; }
.btn-steam { background: #1B2838; color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-epic { background: #F4F2EF; color: #1A1A1A; }
  .btn-steam { background: #2A475E; color: #fff; }
}
.si-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; color: var(--ink-3); font-weight: 700; font-size: 13.5px; }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.si-form { display: grid; gap: 10px; }
.field {
  width: 100%; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--ink);
  padding: 11px 14px; font: inherit; font-weight: 700; font-size: 16px;
}
.field:focus { outline: none; border-color: var(--clay); }
.field-code { font-family: var(--font-head); font-size: 26px; letter-spacing: .42em; text-align: center; padding: 10px 14px; }
.si-err { margin: 0; min-height: 0; color: var(--clay-2); font-weight: 800; font-size: 14px; }
.si-err:empty { display: none; }
dialog.dlg p.si-small { font-size: 13px; color: var(--ink-3); margin: 12px 0 0; font-weight: 600; }
.si-small a { color: var(--ink-2); }
.si-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.linkish { border: 0; background: none; padding: 2px 0; font-weight: 800; font-size: 14px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.linkish:disabled { opacity: .5; }
.btn-danger { background: #C2412D; color: #fff; }
.btn-danger-ghost { background: transparent; box-shadow: none; border: 2px solid color-mix(in srgb, #C2412D 45%, transparent); color: #C2412D; }
@media (prefers-color-scheme: dark) { .btn-danger-ghost { color: #F08E7C; border-color: rgba(240, 142, 124, .45); } }

.acct .section-head { align-items: center; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { font-size: 21px; margin-bottom: 4px; }
.panel > p { margin: 0 0 14px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.panel.quiet { background: transparent; box-shadow: none; border: 2px dashed var(--line); padding: 16px 20px; }
.quiet-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.quiet-row p { margin: 0; color: var(--ink-3); font-weight: 700; }
.idrows { display: grid; gap: 8px; max-width: 720px; }
.idrow { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg-2); }
.idrow.on { background: color-mix(in srgb, var(--mint) 22%, var(--card)); }
.id-name { font-weight: 800; }
.id-label { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.share-card { background: var(--bg); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; }
.share-card .thumb { aspect-ratio: 1; background: var(--stage-bg); display: block; }
.share-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.share-card .body { padding: 10px 12px 12px; display: grid; gap: 6px; justify-items: start; }
.share-card .t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.share-card .r { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.share-card .r span { white-space: nowrap; }
.chip-warn { background: color-mix(in srgb, var(--butter) 45%, var(--card)); color: var(--ink); }
.loading { text-align: center; padding: 40px 0; font-weight: 700; }

@media (max-width: 820px) {
  .who { order: 2; margin-left: auto; }
  .who + .btn-get { margin-left: 0; }
  .who-chip { padding: 3px 10px 3px 3px; font-size: 13.5px; max-width: 120px; }
  .avatar { width: 24px; height: 24px; font-size: 13px; }
  .who .btn-sm { padding: 5px 11px; font-size: 13.5px; }
  .acct-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .idrow { grid-template-columns: 1fr auto; }
  .idrow .id-label { grid-column: 1; grid-row: 2; font-size: 14px; }
  .idrow .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .share-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.get-short { display: none; }
@media (max-width: 460px) {
  .top-in { gap: 8px; }
  .brand img { height: 19px; }
  .brand-word { font-size: 14px; padding: 1px 8px 2px; }
  .get-long { display: none; }
  .get-short { display: inline; }
  .who-name { display: none; }
  .who-chip { padding: 3px; }
}
@media (max-width: 350px) {
  .top-in { padding: 8px 10px; gap: 8px 6px; }
  .brand { gap: 6px; }
  .brand img { height: 16px; }
  .brand-word { font-size: 13px; padding: 1px 7px 2px; }
  .who .btn-sm { padding: 4px 9px; font-size: 13px; }
  .btn-get { padding: 5px 10px; font-size: 13px; }
}
.share-card .chip { white-space: normal; text-overflow: clip; }
