:root {
  --bg: #fffdf9;
  --bg-elevated: #ffffff;
  --bg-soft: #fff6e8;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --text: #17140f;
  --muted: #7b7770;
  --line: #e9e5df;
  --line-strong: #d7d1c8;
  --accent: #ff9500;
  --accent-strong: #e67f00;
  --accent-soft: #fff0d8;
  --pink: #ff6675;
  --green: #34c759;
  --red: #ff3b30;
  --blue: #1677ff;
  --shadow-sm: 0 5px 18px rgba(45, 33, 14, 0.07);
  --shadow-md: 0 18px 50px rgba(45, 33, 14, 0.13);
  --shadow-lg: 0 30px 100px rgba(31, 22, 10, 0.22);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Segoe UI, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11100e;
    --bg-elevated: #191713;
    --bg-soft: #211b13;
    --surface: #1b1916;
    --surface-2: #24211d;
    --text: #f8f4ed;
    --muted: #aaa49b;
    --line: #35312b;
    --line-strong: #4a443b;
    --accent-soft: #35230c;
    --shadow-sm: 0 5px 18px rgba(0, 0, 0, 0.22);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.32);
    --shadow-lg: 0 30px 100px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% -15%, rgba(255, 149, 0, 0.13), transparent 34rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }

button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.app-frame {
  min-height: 100vh;
  width: 100%;
  padding-bottom: calc(78px + var(--safe-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  min-height: calc(76px + var(--safe-top));
  padding: calc(16px + var(--safe-top)) 22px 12px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
.topbar-title {
  margin: 0;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 850;
}
.topbar-subtitle { margin-top: 6px; color: var(--muted); font-size: .83rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; padding-bottom: 1px; }
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--muted); }
.live-dot.online { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 13%, transparent); }

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.icon-button:hover { transform: translateY(-1px); }
.icon-button.danger { color: var(--red); }
.icon-button.ghost { background: transparent; box-shadow: none; }
.icon-button svg { width: 21px; height: 21px; }
.badge-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--bg);
  font-size: .65rem;
  font-weight: 800;
}

.screen {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 16px 16px 30px;
}
.screen.wide { width: min(100%, 960px); }
.stack { display: grid; gap: 16px; }
.stack.compact { gap: 10px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .83rem; }
.tiny { font-size: .72rem; }
.semibold { font-weight: 650; }
.bold { font-weight: 800; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: calc(68px + var(--safe-bottom));
  padding: 8px max(6px, env(safe-area-inset-left)) var(--safe-bottom) max(6px, env(safe-area-inset-right));
  background: color-mix(in srgb, var(--bg-elevated) 91%, transparent);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}
.nav-item {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #a09e98;
  cursor: pointer;
  font-size: .67rem;
  font-weight: 620;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--accent); }
.nav-item:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body { padding: 16px; }
.card-header { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-footer { padding: 12px 16px; border-top: 1px solid var(--line); }

.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-2);
}
.segmented button {
  padding: 7px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 650;
}
.segmented button.active {
  background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 760;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.button:hover { filter: brightness(.97); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.button.secondary { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.button.ghost { background: transparent; color: var(--accent-strong); border-color: var(--line); }
.button.danger { background: var(--red); }
.button.danger-ghost { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, var(--line)); }
.button.small { min-height: 34px; padding: 7px 11px; border-radius: 10px; font-size: .8rem; }
.button.full { width: 100%; }
.button svg { width: 18px; height: 18px; }

.field { display: grid; gap: 7px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}
.textarea { resize: vertical; min-height: 90px; line-height: 1.45; }
.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: max(24px, var(--safe-top)) 20px max(24px, var(--safe-bottom));
}
.auth-card {
  width: min(100%, 470px);
  padding: 28px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
}
.brand-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent), var(--pink));
  color: #fff;
  box-shadow: 0 14px 32px rgba(255, 120, 35, .28);
}
.brand-mark svg { width: 39px; height: 39px; }
.auth-title { margin: 0; font-size: 2.3rem; letter-spacing: -.055em; text-align: center; }
.auth-subtitle { color: var(--muted); text-align: center; line-height: 1.45; margin: 8px 0 22px; }

.alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid color-mix(in srgb, var(--red) 24%, var(--line));
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
  color: var(--red);
  font-size: .83rem;
  line-height: 1.35;
}
.alert.info { color: var(--blue); border-color: color-mix(in srgb, var(--blue) 22%, var(--line)); background: color-mix(in srgb, var(--blue) 7%, var(--surface)); }

.loading-block, .empty-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 34px;
  color: var(--muted);
}
.empty-state-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 23px;
  background: var(--surface-2);
  color: var(--accent);
}
.empty-state-icon svg { width: 34px; height: 34px; }
.empty-state h2 { margin: 0 0 6px; color: var(--text); font-size: 1.15rem; }
.empty-state p { margin: 0; line-height: 1.45; }
.spinner {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.spinner.small { width: 18px; height: 18px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.stories-scroll, .tab-scroll, .challenge-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  scroll-snap-type: x proximity;
}
.stories-scroll::-webkit-scrollbar, .tab-scroll::-webkit-scrollbar, .challenge-scroll::-webkit-scrollbar { display: none; }
.story-avatar-button {
  flex: 0 0 68px;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  scroll-snap-align: start;
}
.story-ring {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 3px;
  background: var(--line-strong);
}
.story-ring.unseen { background: linear-gradient(135deg, var(--accent), var(--pink)); }
.story-ring .avatar { border: 3px solid var(--bg); }
.story-name { width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; text-align: center; }

.avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f45, #f46683);
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { width: 32px; height: 32px; font-size: .68rem; }
.avatar.sm { width: 42px; height: 42px; font-size: .8rem; }
.avatar.md { width: 52px; height: 52px; font-size: 1rem; }
.avatar.lg { width: 92px; height: 92px; font-size: 2rem; }
.avatar.xl { width: 112px; height: 112px; font-size: 2.35rem; }

.feed-list { display: grid; gap: 18px; }
.submission-card { overflow: hidden; }
.submission-head {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 12px 14px;
}
.submission-author {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.submission-author strong { display: block; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.submission-author span { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.challenge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 135px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .73rem;
  font-weight: 760;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.submission-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  background: linear-gradient(135deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 60%, var(--bg)));
  overflow: hidden;
}
.submission-media > button {
  width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
}
.submission-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.score-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 83%, transparent);
  border: 1px solid rgba(255, 255, 255, .4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.04em;
}
.score-badge.small { width: 44px; height: 44px; top: 8px; right: 8px; font-size: 1.05rem; }
.score-badge.error { color: var(--red); }
.score-badge .spinner { width: 22px; height: 22px; }
.image-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
}
.image-fallback .image-retry { display: inline-flex; align-items: center; gap: 7px; width: auto; height: auto; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.submission-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 10px;
  border-top: 1px solid var(--line);
}
.action-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 9px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  font-size: .82rem;
}
.action-button:hover { background: var(--surface-2); }
.action-button.active { color: var(--accent); }
.action-button.danger { color: var(--red); }
.action-button.push { margin-left: auto; }
.action-button svg { width: 20px; height: 20px; }
.roast-caption {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 12px 12px;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--accent-soft);
  font-size: .88rem;
  line-height: 1.42;
  font-weight: 630;
}
.roast-caption .quote { color: var(--accent); flex: 0 0 auto; }

.chip-tabs { display: flex; gap: 8px; }
.challenge-tab {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 34px auto;
  grid-template-areas: "icon title" "icon meta";
  align-items: center;
  column-gap: 8px;
  min-height: 50px;
  padding: 6px 11px 6px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
  scroll-snap-align: start;
}
.challenge-tab.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.challenge-tab-icon { grid-area: icon; width: 34px; height: 34px; border-radius: 999px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.challenge-tab-icon img { width: 100%; height: 100%; object-fit: cover; }
.challenge-tab-title { grid-area: title; font-size: .8rem; font-weight: 760; white-space: nowrap; }
.challenge-tab-meta { grid-area: meta; color: var(--muted); font-size: .66rem; font-weight: 620; white-space: nowrap; }

.ranking-list { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ranking-row {
  display: grid;
  grid-template-columns: 44px 78px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 122px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
.ranking-row:last-child { border-bottom: 0; }
.rank-number { font-size: 1.45rem; font-weight: 900; text-align: center; }
.rank-number.podium { color: var(--accent); }
.ranking-thumb { position: relative; width: 74px; height: 74px; border: 0; padding: 0; border-radius: 13px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.ranking-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ranking-copy { min-width: 0; }
.ranking-copy .name { border: 0; background: transparent; padding: 0; font-weight: 780; cursor: pointer; text-align: left; }
.ranking-copy .challenge { color: var(--muted); font-size: .75rem; margin-top: 2px; }
.ranking-copy .caption { color: var(--muted); font-size: .76rem; line-height: 1.28; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ranking-mini-actions { display: flex; gap: 10px; margin-top: 7px; color: var(--muted); font-size: .72rem; }
.ranking-score { min-width: 47px; text-align: right; font-size: 2rem; font-weight: 900; letter-spacing: -.05em; }
.winner-hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff3cd, #ffe0aa 48%, #ffd2dc);
  color: #3a2608;
  box-shadow: var(--shadow-md);
}
.winner-hero::before, .winner-hero::after { content: "✦"; position: absolute; font-size: 4rem; opacity: .22; }
.winner-hero::before { top: -12px; right: 18px; }
.winner-hero::after { bottom: -24px; left: 8px; font-size: 6rem; }
.winner-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 18px; align-items: center; }
.winner-image { width: 130px; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 5px solid rgba(255,255,255,.75); box-shadow: 0 12px 28px rgba(106,71,14,.2); cursor: pointer; padding: 0; background: #fff; }
.winner-image img { width: 100%; height: 100%; object-fit: cover; }
.winner-kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.winner-title { margin: 4px 0; font-size: 1.65rem; letter-spacing: -.04em; }
.winner-score { font-size: 2.7rem; line-height: 1; font-weight: 950; letter-spacing: -.06em; }

.draw-layout { display: grid; gap: 18px; }
.challenge-picker-card {
  flex: 0 0 154px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 19px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  scroll-snap-align: start;
}
.challenge-picker-card.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.challenge-picker-card img { width: 100%; aspect-ratio: 1.25; object-fit: contain; background: #fff; display: block; }
.challenge-picker-card span { display: block; padding: 9px 10px 10px; font-size: .8rem; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reference-card img { width: 100%; max-height: 440px; object-fit: contain; background: #fff; display: block; }
.reference-copy { padding: 15px 17px; }
.reference-copy h2 { margin: 0 0 6px; font-size: 1.2rem; }
.reference-copy p { margin: 0; color: var(--muted); line-height: 1.45; }
.deadline { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--accent-strong); font-size: .78rem; font-weight: 720; }
.drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 2px dashed var(--line-strong);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  overflow: hidden;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.drop-zone.dragging { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.005); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone-copy { pointer-events: none; display: grid; justify-items: center; gap: 8px; padding: 28px; text-align: center; color: var(--muted); }
.drop-zone-copy svg { width: 44px; height: 44px; color: var(--accent); }
.drop-zone-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); }
.drop-zone-overlay { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 8px; }

.people-list { display: grid; gap: 10px; }
.person-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}
.person-main { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.person-main strong, .person-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-main span { margin-top: 2px; color: var(--muted); font-size: .76rem; }
.person-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.request-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 800; }

.profile-hero { padding: 22px; text-align: center; }
.profile-avatar-wrap { position: relative; width: fit-content; margin: 0 auto 13px; }
.avatar-edit-button { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 999px; border: 3px solid var(--surface); background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.profile-name { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.profile-handle { margin-top: 4px; color: var(--muted); }
.profile-bio { max-width: 460px; margin: 12px auto 0; line-height: 1.45; }
.profile-count { margin-top: 14px; color: var(--muted); }
.art-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.art-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.art-tile img { width: 100%; height: 100%; object-fit: cover; }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 0;
  background: rgba(13, 10, 6, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade-in .16s ease;
}
.modal-sheet {
  width: min(100%, 720px);
  max-height: calc(96vh - var(--safe-top));
  overflow: auto;
  border-radius: 28px 28px 0 0;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  animation: sheet-in .22s ease;
  overscroll-behavior: contain;
}
.modal-sheet.compact { width: min(100%, 560px); }
.modal-drag { width: 42px; height: 5px; margin: 9px auto 4px; border-radius: 999px; background: var(--line-strong); }
.modal-head {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.modal-head h2 { margin: 0; flex: 1; font-size: 1.05rem; text-align: center; }
.modal-content { padding: 16px; }
.modal-close { border: 0; border-radius: 999px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--surface-2); cursor: pointer; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { transform: translateY(25px); opacity: .85; } }

.art-card-image { position: relative; width: 100%; max-height: 66vh; min-height: 280px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; }
.art-card-image img { width: 100%; max-height: 66vh; object-fit: contain; display: block; background: var(--surface-2); }
.art-card-meta { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.art-card-caption { margin-top: 10px; font-size: .95rem; line-height: 1.45; font-weight: 650; }
.art-card-actions { display: flex; align-items: center; gap: 3px; padding: 8px 9px; border-bottom: 1px solid var(--line); }
.art-card-tabs { position: sticky; top: 58px; z-index: 3; padding: 10px 14px; background: color-mix(in srgb, var(--bg-elevated) 92%, transparent); backdrop-filter: blur(16px); }
.review-copy { display: grid; gap: 15px;    opacity: .2; }
.review-copy p { margin: 0; line-height: 1.64; font-size: .98rem; }
.grade-list { display: grid; gap: 10px; margin-top: 18px; }
.grade-item { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.grade-head { display: flex; justify-content: space-between; gap: 12px; font-weight: 780; }
.grade-score { color: var(--accent-strong); }
.grade-bar { height: 8px; margin: 9px 0; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.grade-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--pink)); }
.grade-explanation { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.comment-list { display: grid; gap: 9px; }
.comment-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment-item.reply { margin-left: 30px; }
.comment-bubble { min-width: 0; }
.comment-bubble strong { font-size: .82rem; }
.comment-bubble p { margin: 3px 0 0; line-height: 1.38; font-size: .86rem; overflow-wrap: anywhere; }
.comment-meta { margin-top: 5px; display: flex; gap: 10px; color: var(--muted); font-size: .7rem; }
.comment-meta button { border: 0; background: transparent; padding: 0; color: inherit; cursor: pointer; }
.comment-compose { position: sticky; bottom: 0; padding: 12px 0 calc(6px + var(--safe-bottom)); background: var(--bg-elevated); border-top: 1px solid var(--line); }
.comment-compose form { display: flex; gap: 8px; }
.comment-compose .input { flex: 1; }
.replying-chip { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 7px 9px; border-radius: 10px; background: var(--accent-soft); font-size: .76rem; }

.story-modal { position: fixed; z-index: 110; inset: 0; display: grid; background: #090806; color: #fff; }
.story-stage { position: relative; width: min(100%, 680px); height: 100%; margin: 0 auto; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; }
.story-progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: calc(10px + var(--safe-top)) 12px 7px; z-index: 4; }
.story-progress span { height: 3px; border-radius: 999px; background: rgba(255,255,255,.3); }
.story-progress span.done, .story-progress span.current { background: #fff; }
.story-header { position: absolute; z-index: 4; top: calc(21px + var(--safe-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 10px; padding-top: 10px; text-shadow: 0 1px 5px rgba(0,0,0,.7); }
.story-header .avatar { border: 2px solid rgba(255,255,255,.8); }
.story-close { margin-left: auto; color: #fff; background: rgba(0,0,0,.35); box-shadow: none; }
.story-image-wrap { grid-row: 1 / -1; min-height: 0; display: grid; place-items: center; }
.story-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.story-caption { position: absolute; z-index: 3; left: 14px; right: 14px; bottom: calc(18px + var(--safe-bottom)); padding: 14px; border-radius: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(14px); line-height: 1.4; }
.story-nav { position: absolute; z-index: 2; top: 0; bottom: 0; width: 42%; border: 0; background: transparent; cursor: pointer; }
.story-nav.prev { left: 0; }
.story-nav.next { right: 0; }

.toast-root { position: fixed; z-index: 200; left: 50%; bottom: calc(88px + var(--safe-bottom)); width: min(calc(100% - 30px), 520px); transform: translateX(-50%); display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 15px; background: color-mix(in srgb, var(--text) 90%, transparent); color: var(--bg); box-shadow: var(--shadow-md); animation: toast-in .22s ease; }
.toast.error { background: color-mix(in srgb, var(--red) 92%, #360000); color: #fff; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }

.notification-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; padding: 12px; border-radius: 15px; cursor: pointer; }
.notification-item:hover { background: var(--surface-2); }
.notification-item.unread { background: var(--accent-soft); }
.notification-copy { line-height: 1.35; font-size: .86rem; }
.notification-copy time { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; }

.menu {
  position: fixed;
  z-index: 120;
  min-width: 190px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.menu button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--surface-2); }
.menu button.danger { color: var(--red); }

.skeleton { position: relative; overflow: hidden; background: var(--surface-2); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); animation: shimmer 1.35s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }

@media (min-width: 800px) {
  .app-frame { padding-left: 108px; padding-bottom: 0; }
  .topbar { left: 108px; padding-left: 32px; padding-right: 32px; }
  .bottom-nav {
    top: 0;
    right: auto;
    width: 108px;
    min-height: 100vh;
    padding: calc(28px + var(--safe-top)) 10px calc(20px + var(--safe-bottom));
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 72px) 1fr;
    align-content: start;
    border-top: 0;
    border-right: 1px solid var(--line);
  }
  .nav-item { gap: 5px; font-size: .72rem; }
  .screen { padding: 22px 24px 44px; }
  .modal-backdrop { align-items: center; padding: 28px; }
  .modal-sheet { border-radius: 28px; max-height: min(920px, 92vh); }
  .modal-drag { display: none; }
  .story-stage { height: min(920px, 96vh); border-radius: 24px; }
  .story-modal { place-items: center; background: rgba(0,0,0,.92); }
  .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .draw-layout.desktop-two { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; }
}

@media (max-width: 520px) {
  .topbar { padding-left: 20px; padding-right: 16px; }
  .screen { padding-left: 12px; padding-right: 12px; }
  .submission-card { border-radius: 22px; }
  .ranking-row { grid-template-columns: 36px 72px minmax(0,1fr) auto; padding-left: 8px; padding-right: 10px; }
  .ranking-score { font-size: 1.75rem; }
  .winner-grid { grid-template-columns: 104px minmax(0,1fr); gap: 13px; }
  .winner-image { width: 104px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.reference-card, .challenge-picker-card, .challenge-tab-icon, .ranking-thumb, .winner-image, .art-tile, .story-image-wrap { position: relative; }

/* NAPKINART_THEATRICAL_ROAST_V1_START */
.roast-metrics {
  margin-top: 18px;
  padding: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), color-mix(in srgb, var(--pink) 5%, var(--surface)));
  box-shadow: var(--shadow-sm);
}
.roast-metrics-heading { display: flex; align-items: center; gap: 11px; }
.roast-metrics-heading h3 { margin: 0; font-size: 1rem; line-height: 1.2; }
.roast-metrics-heading > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: .74rem; }
.roast-metrics-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.roast-metrics-mark svg { width: 19px; height: 19px; }
.roast-metrics-list { display: grid; gap: 10px; margin-top: 13px; }
.roast-metric-item { padding: 12px 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.roast-metric-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .84rem; }
.roast-metric-head span { color: var(--accent-strong); font-weight: 850; font-variant-numeric: tabular-nums; }
.roast-metric-bar { height: 7px; margin: 9px 0; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.roast-metric-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--pink)); }
.roast-metric-item p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
/* NAPKINART_THEATRICAL_ROAST_V1_END */

/* NAPKINART_WEB_JUDGE_FEEDBACK_V1_START */
.judge-feedback {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface));
  box-shadow: var(--shadow-sm);
}
.judge-feedback-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.judge-feedback-heading h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}
.judge-feedback-heading > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .74rem;
}
.judge-feedback-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.judge-feedback-mark svg {
  width: 19px;
  height: 19px;
}
.judge-feedback-summary {
  margin: 14px 0 0;
  line-height: 1.58;
  font-size: .94rem;
}
.judge-feedback-groups {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.judge-feedback-group {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.judge-feedback-group.strengths {
  border-color: color-mix(in srgb, var(--green) 28%, var(--line));
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}
.judge-feedback-group.improvements {
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.judge-feedback-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
}
.judge-feedback-label svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
.judge-feedback-group.strengths .judge-feedback-label {
  color: var(--green);
}
.judge-feedback-group.improvements .judge-feedback-label {
  color: var(--accent-strong);
}
.judge-feedback-group ul {
  display: grid;
  gap: 7px;
  margin: 9px 0 0;
  padding-left: 19px;
}
.judge-feedback-group li {
  padding-left: 2px;
  color: var(--text);
  font-size: .84rem;
  line-height: 1.45;
}
@media (min-width: 660px) {
  .judge-feedback-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* NAPKINART_WEB_JUDGE_FEEDBACK_V1_END */

/* NAPKINART_REVIEW_ART_BACKGROUND_V2_START */
/* Build: review-bg-v2-20260712_213746_34558 */
.art-review-stage-v2 {
  --review-bg-height: min(72svh, 650px);
  position: relative !important;
  isolation: isolate !important;
  min-height: var(--review-bg-height);
  overflow: visible;
}

.art-review-backdrop-v2 {
  position: sticky !important;
  top: 124px !important;
  z-index: 0 !important;
  width: 100%;
  height: var(--review-bg-height) !important;
  margin-bottom: calc(0px - var(--review-bg-height)) !important;
  overflow: hidden !important;
  border: 1px solid rgba(140, 118, 92, .32);
  border-radius: 20px !important;
  background: var(--surface-2) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.11), 0 12px 34px rgba(0,0,0,.10);
  pointer-events: none !important;
}

.art-review-backdrop-cover-v2,
.art-review-backdrop-art-v2,
.art-review-backdrop-shade-v2 {
    opacity: .65;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  font-weight: bold;
}

.art-review-backdrop-cover-v2 {
  object-fit: cover !important;
  opacity: 0.186 !important;
  filter: blur(18px) saturate(.82) contrast(1.08) !important;
  transform: scale(1.12) !important;
}

.art-review-backdrop-art-v2 {
  object-fit: contain !important;
  object-position: center !important;
  opacity: 0.300 !important;
  filter: saturate(.78) contrast(1.12) !important;
}

.art-review-backdrop-shade-v2 {
  background:
    linear-gradient(180deg, rgba(255,250,244,.42), rgba(255,250,244,.57)),
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.02) 0 24%, rgba(255,250,244,.26) 100%) !important;
}

.art-review-reading-v2 {
  position: relative !important;
  z-index: 1 !important;
  display: grid;
  min-width: 0;
  padding: 8px !important;
}

.art-review-reading-v2 .review-copy {
  display: grid;
  gap: 13px !important;
}

.art-review-reading-v2 .review-copy > p,
.art-review-reading-v2 .loading-block,
.art-review-reading-v2 .empty-state,
.art-review-reading-v2 .card,
.art-review-reading-v2 .alert {
  margin: 0;
  padding: 15px 16px !important;
  border: 1px solid rgba(116, 95, 70, .28) !important;
  border-radius: 17px !important;
  /* background: rgba(255, 252, 247, .78) !important; */
  color: #17130f;
  box-shadow: 0 9px 30px rgba(0,0,0,.10);
  /* -webkit-backdrop-filter: blur(13px) saturate(1.08); */
  /* backdrop-filter: blur(13px) saturate(1.08); */
}

.art-review-reading-v2 .grade-list,
.art-review-reading-v2 .roast-metrics,
.art-review-reading-v2 .judge-feedback {
  border-color: rgba(116, 95, 70, .26) !important;
  background: rgba(255, 252, 247, 0) !important;
  box-shadow: 0 9px 30px rgba(0,0,0,.10) !important;
  -webkit-backdrop-filter: blur(13px) saturate(1.08);
  backdrop-filter: blur(13px) saturate(1.08);
}

.art-review-reading-v2 .grade-item,
.art-review-reading-v2 .roast-metric-item,
.art-review-reading-v2 .judge-feedback-group {
  background: rgba(255, 255, 255, 0) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.04);
  backdrop-filter: blur(9px) saturate(1.04);
}

@media (prefers-color-scheme: dark) {
  .art-review-backdrop-shade-v2 {
    background:
      linear-gradient(180deg, rgba(17, 14, 11, 0), rgba(17,14,11,.62)),
      radial-gradient(circle at 50% 28%, rgba(255,255,255,.01) 0 22%, rgba(11, 9, 7, 0) 100%) !important;
  }

  .art-review-reading-v2 .review-copy > p,
  .art-review-reading-v2 .loading-block,
  .art-review-reading-v2 .empty-state,
  .art-review-reading-v2 .card,
  .art-review-reading-v2 .alert,
  .art-review-reading-v2 .grade-list,
  .art-review-reading-v2 .roast-metrics,
  .art-review-reading-v2 .judge-feedback {
    
    color: var(--text) !important;
    border-color: rgba(255,255,255,.13) !important;
  }

  .art-review-reading-v2 .grade-item,
  .art-review-reading-v2 .roast-metric-item,
  .art-review-reading-v2 .judge-feedback-group {
    background: rgba(255, 255, 255, 0) !important;
  }
}

@media (max-width: 520px) {
  .art-review-stage-v2 { --review-bg-height: min(70svh, 610px); }
  .art-review-backdrop-v2 { top: 122px !important; border-radius: 17px !important; }
  .art-review-reading-v2 { padding: 5px !important; }
  .art-review-reading-v2 .review-copy > p { padding: 14px !important; }
}
/* NAPKINART_REVIEW_ART_BACKGROUND_V2_END */

/* Brighter text over the review artwork background */
html body .art-review-reading-v2 .review-copy > p {
  color: #fff4df !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* Brighter text over the review artwork background */
html body .art-review-reading-v2 .review-copy > p {
        background-color: rgba(255, 255, 255, 0) !important;
  color: #fff4df !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}
html body .art-review-reading-v2 .review-copy > p {
        background-color: rgba(255, 255, 255, 0) !important;
  color: #ff9800 !important;
    font-size: 17px;
    font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

/* NAPKINART_REVIEW_TEXT_LAYER_FIX_START */
/* Build: review-text-layer-20260712_220341_37004
   Important: transparency belongs on the background image layers, never on
   .art-review-stage-v2, .art-review-reading-v2, .review-copy, or the text. */
.art-review-stage-v2 {
  --napkin-review-art-opacity: 0.340;
  --napkin-review-cover-opacity: 0.160;
  --napkin-review-panel-light: rgba(255, 252, 247, .84);
  --napkin-review-panel-dark: rgba(14, 12, 10, .82);
  --napkin-review-text-light: #17130f;
  --napkin-review-text-dark: #fff8ea;
  position: relative !important;
  isolation: isolate !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.art-review-backdrop-v2 {
  z-index: 0 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.art-review-backdrop-cover-v2 {
  z-index: 0 !important;
  opacity: var(--napkin-review-cover-opacity) !important;
}

.art-review-backdrop-art-v2 {
  z-index: 1 !important;
  opacity: var(--napkin-review-art-opacity) !important;
}

.art-review-backdrop-shade-v2 {
  z-index: 2 !important;
  opacity: 1 !important;
}

.art-review-reading-v2 {
  position: relative !important;
  z-index: 10 !important;
  opacity: .85 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.art-review-reading-v2 .review-copy,
.art-review-reading-v2 .review-copy > p,
.art-review-reading-v2 .grade-list,
.art-review-reading-v2 .roast-metrics,
.art-review-reading-v2 .judge-feedback,
.art-review-reading-v2 .loading-block,
.art-review-reading-v2 .empty-state,
.art-review-reading-v2 .card,
.art-review-reading-v2 .alert {
  position: relative !important;
  z-index: 11 !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.art-review-reading-v2 .review-copy > p {
  color: var(--napkin-review-text-light) !important;
        background-color: rgba(255, 255, 255, 0) !important;
  text-shadow: none !important;
}

/* NAPKINART_REVIEW_TEXT_LAYER_FIX_END */
@media (prefers-color-scheme: dark) {
    .art-review-reading-v2 .review-copy>p {
        color: var(--napkin-review-text-dark) !important;
        background-color: rgba(255, 255, 255, 0) !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, .82) !important;
    }
}

/* NAPKINART_SIGN_IN_WITH_APPLE_CSS_V1_START */
.apple-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .78rem;
  margin: 18px 0 14px;
}
.apple-auth-divider::before,
.apple-auth-divider::after {
  content: '';
  height: 1px;
  background: color-mix(in srgb, var(--border) 82%, transparent);
}
.apple-auth-divider span { text-transform: uppercase; letter-spacing: .12em; font-weight: 750; }
.apple-auth-wrapper { min-height: 50px; width: 100%; }
#appleid-signin { width: 100%; min-height: 50px; display: flex; justify-content: center; }
#appleid-signin > div,
#appleid-signin iframe { width: 100% !important; max-width: 100% !important; }
.apple-auth-status { min-height: 1em; margin-top: 6px; }
/* NAPKINART_SIGN_IN_WITH_APPLE_CSS_V1_END */


/* NAPKIN_FEEDBACK_MODES_V2 */
.feedback-mode-picker { margin: 14px 0 10px; }
.feedback-mode-title { margin-bottom: 8px; font-size: .84rem; font-weight: 800; }
.feedback-mode-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.feedback-mode-button {
  min-height: 62px; padding: 7px 3px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2); color: inherit; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px; cursor: pointer;
}
.feedback-mode-button span { font-size: 20px; }
.feedback-mode-button small { font-size: 9px; line-height: 1.08; text-align: center; }
.feedback-mode-button.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 14%, transparent); }
.feedback-mode-note { margin: 7px 0 0; text-align: center; color: var(--muted); font-size: .72rem; }
.art-panel-card { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(12px); }
.art-panel-grid { display: grid; gap: 10px; }
.art-panel-critic { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); }
.art-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.art-panel-heading span { color: var(--accent-strong); font-size: .7rem; font-weight: 800; text-align: right; }
.art-panel-critic p { margin: 7px 0 0; line-height: 1.5; }
@media (max-width: 560px) {
  .feedback-mode-buttons { gap: 4px; }
  .feedback-mode-button { min-height: 58px; }
  .feedback-mode-button small { font-size: 8px; }
}

/* NAPKINART_MENU_ART_RANKINGS_V3_CSS_START */

/* The old floating menu is intentionally retired. */
.napkin-options-root,
#napkinCenterMenuMount,
#napkinCenterMenuBackdrop,
#napkinCenterMenuMountV2,
#napkinCenterMenuBackdropV2 {
  display: none !important;
}

.topbar {
  justify-content: flex-start !important;
}
.topbar-actions,
.live-chip,
.topbar [data-action="open-notifications"] {
  display: none !important;
}

.bottom-nav { display: none !important; }
.app-frame {
  padding-bottom: calc(122px + env(safe-area-inset-bottom)) !important;
}

/* Centered menu inspired by the supplied radial examples. */
.center-nav {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 150;
  width: 84px;
  height: 84px;
  transform: translateX(-50%);
  overflow: visible;
  transition: bottom .24s cubic-bezier(.2,.8,.2,1);
}
.center-nav[open] {
  bottom: calc(124px + env(safe-area-inset-bottom));
}
.center-nav > summary {
  list-style: none;
}
.center-nav > summary::-webkit-details-marker { display: none; }
.center-nav-toggle {
  position: relative;
  z-index: 4;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 28%, rgba(193,167,255,.98), rgba(132,91,255,.98) 40%, rgba(76,48,190,.99) 68%, rgba(20,13,56,1) 100%);
  box-shadow:
    0 20px 46px rgba(99,65,232,.46),
    0 8px 19px rgba(0,0,0,.48),
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -12px 20px rgba(28,13,78,.58);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.center-nav-dots {
  width: 32px;
  height: 32px;
  display: grid;
  grid-template-columns: repeat(2, 8px);
  grid-template-rows: repeat(2, 8px);
  place-content: center;
  gap: 7px;
}
.center-nav-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.28);
}
.center-nav-close { display: none; }
.center-nav-close svg { width: 32px; height: 32px; }
.center-nav[open] .center-nav-dots { display: none; }
.center-nav[open] .center-nav-close { display: grid; place-items: center; }
.center-nav-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #11101a;
  border-radius: 999px;
  color: #fff;
  background: #ff3b4e;
  box-shadow: 0 5px 12px rgba(0,0,0,.36);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.center-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  border: 0;
  background: radial-gradient(circle at 50% 84%, rgba(118,77,255,.13), transparent 34%), rgba(0,0,0,.12);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.center-nav[open] .center-nav-backdrop { display: block; }
.center-nav-orbit {
  position: absolute;
  left: 42px;
  top: 42px;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}
.center-nav-item {
  --x: 0px;
  --y: 0px;
  position: absolute;
  left: -40px;
  top: -30px;
  width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  color: #d9ddff;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(var(--x), var(--y)) scale(.65);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility .2s;
}
.center-nav[open] .center-nav-item {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(var(--x), var(--y)) scale(1);
}
.center-nav-bubble {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(171,190,255,.24);
  border-radius: 999px;
  color: #dce3ff;
  background: linear-gradient(180deg, rgba(15,29,65,.97), rgba(7,12,30,.99));
  box-shadow: 0 13px 29px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}
.center-nav-bubble svg { width: 24px; height: 24px; }
.center-nav-item.active .center-nav-bubble,
.center-nav-item:hover .center-nav-bubble,
.center-nav-item:focus-visible .center-nav-bubble {
  color: #fff;
  background: linear-gradient(180deg, rgba(139,94,255,.97), rgba(77,49,194,.99));
  box-shadow: 0 17px 38px rgba(94,65,216,.48), inset 0 1px 0 rgba(255,255,255,.18);
}
.center-nav-item.danger { color: #ff8088; }
.center-nav-item.danger .center-nav-bubble { color: #ff7b84; }
.center-nav-item > .center-nav-badge {
  top: -5px;
  right: 5px;
}
.center-nav .item-notifications { --x: 0px; --y: -150px; }
.center-nav .item-feed          { --x: -98px; --y: -104px; }
.center-nav .item-draw          { --x: 98px; --y: -104px; }
.center-nav .item-rankings      { --x: -132px; --y: -8px; }
.center-nav .item-friends       { --x: 132px; --y: -8px; }
.center-nav .item-profile       { --x: -96px; --y: 91px; }
.center-nav .item-logout        { --x: 96px; --y: 91px; }

body:has(.modal-sheet[aria-label="Art Card"]) .center-nav {
  display: none !important;
}

/* Existing floating artwork control: now centered, approximately twice the former size. */
.napkin-floating-art-button {
  left: 50% !important;
  right: auto !important;
  bottom: calc(34px + env(safe-area-inset-bottom)) !important;
  width: min(148px, 38vw) !important;
  transform: translate(-50%, 20px) scale(.82) !important;
  padding: 5px !important;
  border: 2px solid rgba(255,197,99,.88) !important;
  border-radius: 29px !important;
  background: linear-gradient(135deg, #ffd783 0%, #ff9d3e 46%, #74401f 100%) !important;
  box-shadow:
    0 22px 48px rgba(0,0,0,.56),
    0 0 0 1px rgba(255,231,181,.34),
    0 0 30px rgba(255,146,50,.26),
    inset 0 1px 0 rgba(255,255,255,.4) !important;
}
.napkin-floating-art-button.is-visible {
  opacity: 1 !important;
  transform: translate(-50%, 0) scale(1) !important;
}
.napkin-floating-art-button img {
  border-radius: 23px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14) !important;
  filter: saturate(1.05) contrast(1.03);
}
.napkin-floating-art-button .napkin-floating-art-eye {
  right: 9px !important;
  bottom: 9px !important;
  width: 38px !important;
  height: 38px !important;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 6px 16px rgba(0,0,0,.34);
}
.modal-sheet.napkin-has-floating-art .modal-content {
  padding-bottom: min(196px, 48vw) !important;
}

/* Competition closing details between tabs and rankings. */
.competition-timing-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 2px 0 3px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff9800) 25%, var(--line, #3c3934));
  border-radius: 17px;
  color: var(--text, #fff);
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface, #1d1a16) 94%, #ff9800 6%), var(--bg-elevated, #171512));
  box-shadow: 0 12px 28px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.competition-timing-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.competition-timing-main strong {
  font-size: 14px;
  line-height: 1.25;
}
.competition-timing-kicker {
  color: var(--accent-strong, #ff9800);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.competition-timing-side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: var(--muted, #9b978f);
  font-size: 11px;
  font-weight: 700;
}
.competition-status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff2df;
  background: color-mix(in srgb, var(--accent, #ff9800) 18%, transparent);
}
.overall-timing {
  align-items: flex-start;
}
.overall-timing > div {
  display: grid;
  gap: 4px;
}
.competition-timing-note {
  max-width: 170px;
  color: var(--muted, #9b978f);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}
.ranking-list-heading { margin-top: 2px; }

@media (max-width: 430px) {
  .center-nav .item-rankings { --x: -126px; }
  .center-nav .item-friends  { --x: 126px; }
  .competition-timing-card { align-items: flex-start; }
  .competition-timing-side { justify-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  .center-nav-item,
  .napkin-floating-art-button { transition: none !important; }
}
/* NAPKINART_MENU_ART_RANKINGS_V3_CSS_END */

/* NAPKINART_ORANGE_RADIAL_MENU_V1_START */

/* Main center orb: Napkin Art orange -> coral, instead of purple. */
.center-nav-toggle,
.napkin-v4-toggle,
#napkinCenterMenuFab,
#napkinCenterMenuFabV2 {
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 224, 148, .99) 0%,
      rgba(255, 159, 24, .99) 40%,
      rgba(255, 99, 82, .99) 68%,
      rgba(92, 31, 8, 1) 100%
    ) !important;
  border-color: rgba(255, 222, 163, .38) !important;
  box-shadow:
    0 20px 46px rgba(255, 126, 31, .48),
    0 8px 19px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -12px 20px rgba(118, 41, 7, .56) !important;
}

/* Orange/coral selected radial buttons. */
.center-nav-item.active .center-nav-bubble,
.center-nav-item:hover .center-nav-bubble,
.center-nav-item:focus-visible .center-nav-bubble,
.napkin-v4-item.active .napkin-v4-bubble,
.napkin-v4-item:hover .napkin-v4-bubble,
.napkin-v4-item:focus-visible .napkin-v4-bubble,
#napkinCenterMenuMountV2 .napkin-orbit-item.active .napkin-orbit-bubble,
#napkinCenterMenuMountV2 .napkin-orbit-item:hover .napkin-orbit-bubble,
#napkinCenterMenuMount .napkin-orbit-item.active .napkin-orbit-bubble,
#napkinCenterMenuMount .napkin-orbit-item:hover .napkin-orbit-bubble {
  color: #fff !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 174, 51, .98),
      rgba(244, 92, 72, .99)
    ) !important;
  border-color: rgba(255, 213, 145, .38) !important;
  box-shadow:
    0 17px 38px rgba(255, 113, 35, .43),
    inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

/* Warm, subtle menu-open glow behind the radial controls. */
.center-nav-backdrop,
.napkin-v4-backdrop,
#napkinCenterMenuBackdrop,
#napkinCenterMenuBackdropV2 {
  background:
    radial-gradient(
      circle at 50% 84%,
      rgba(255, 140, 48, .14),
      transparent 34%
    ),
    rgba(0, 0, 0, .13) !important;
}

/* NAPKINART_ORANGE_RADIAL_MENU_V1_END */

/* NAPKINART_HEADERS_TOKENS_PAYMENT_V1_CSS_START */

/* The image banners replace the textual top bar and also retire Live/the bell. */
.app-frame > .topbar { display: none !important; }
.app-frame { padding-top: env(safe-area-inset-top); }
.screen { padding-top: 12px; }

.napkin-section-header {
  width: min(100%, 745px);
  margin: 0 auto 2px;
  overflow: hidden;
  border: 1px solid rgba(117, 79, 38, .34);
  border-radius: 19px;
  background: #d6bd92;
  box-shadow:
    0 15px 32px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .34);
}
.napkin-section-header img {
  width: 100%;
  height: auto;
  aspect-ratio: 745 / 323;
  display: block;
  /* object-fit: contain; */
  object-position: center;
}

.competition-timing-side { align-content: center; }
.competition-go-draw {
  min-height: 31px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 189, 108, .42);
  border-radius: 999px;
  color: #211207;
  background: linear-gradient(180deg, #ffc86e, #ff941c);
  box-shadow: 0 7px 15px rgba(255, 139, 18, .2), inset 0 1px 0 rgba(255,255,255,.45);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}
.competition-go-draw:hover { filter: brightness(1.04); transform: translateY(-1px); }

.attempt-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff9800) 24%, var(--line));
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 177, 71, .14), transparent 38%),
    var(--surface);
  box-shadow: 0 10px 24px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.05);
}
.attempt-balance-card.empty {
  border-color: rgba(255, 91, 83, .36);
  background: linear-gradient(145deg, rgba(255, 92, 74, .1), var(--surface));
}
.attempt-balance-copy { min-width: 0; display: grid; gap: 2px; }
.attempt-balance-copy strong { font-size: 1rem; }
.attempt-balance-copy > span:last-child { color: var(--muted); font-size: .72rem; }
.attempt-balance-kicker {
  color: var(--accent-strong, #ff9800);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.attempt-shop-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  align-items: end;
  padding: 18px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.attempt-shop {
  width: min(100%, 520px);
  max-height: min(86vh, 720px);
  margin: 0 auto;
  overflow: auto;
  display: grid;
  gap: 17px;
  padding: 20px;
  border: 1px solid rgba(255, 178, 78, .28);
  border-radius: 27px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(255, 160, 31, .24), transparent 42%),
    color-mix(in srgb, var(--surface) 96%, #120800 4%);
  box-shadow: 0 32px 90px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.08);
}
.attempt-shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.attempt-shop-head h2 { margin: 3px 0 0; font-size: 1.35rem; }
.attempt-shop-eyebrow {
  color: var(--accent-strong, #ff9800);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.attempt-shop-note {
  margin: -6px 0 0;
  padding: 9px 11px;
  border-radius: 12px;
  color: #ffe2b6;
  background: rgba(255, 151, 27, .1);
  border: 1px solid rgba(255, 170, 58, .18);
  font-size: .77rem;
  text-align: center;
}
.attempt-package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.attempt-package {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 14px 7px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: var(--surface-2);
  cursor: pointer;
}
.attempt-package strong { font-size: 1.55rem; line-height: 1; }
.attempt-package span { color: var(--muted); font-size: .72rem; }
.attempt-package b { margin-top: 5px; color: #ffb14a; }
.attempt-package.selected {
  border-color: #ff9b22;
  background: linear-gradient(155deg, rgba(255, 157, 36, .22), rgba(255, 83, 73, .08));
  box-shadow: 0 9px 22px rgba(255, 122, 22, .15), inset 0 1px 0 rgba(255,255,255,.08);
}
.attempt-swipe {
  --swipe-progress: 0%;
  position: relative;
  height: 62px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 178, 77, .28);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 152, 28, .42) var(--swipe-progress), transparent var(--swipe-progress)),
    var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.attempt-swipe span {
  position: relative;
  z-index: 1;
  pointer-events: none;
  padding-left: 42px;
  font-size: .84rem;
  font-weight: 850;
}
.attempt-swipe input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .01;
  cursor: ew-resize;
}
.attempt-swipe::before {
  content: '››';
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(145deg, #ffbf5a, #ff711f);
  box-shadow: 0 8px 18px rgba(255, 118, 23, .28), inset 0 1px 0 rgba(255,255,255,.42);
  font-size: 1.4rem;
  font-weight: 900;
}

@media (min-width: 700px) {
  .attempt-shop-backdrop { align-items: center; }
}
@media (max-width: 430px) {
  .screen { padding-left: 10px; padding-right: 10px; }
  .napkin-section-header { border-radius: 15px; }
  .competition-timing-card { gap: 9px; }
  .competition-timing-side { min-width: 94px; }
  .attempt-balance-card { align-items: flex-start; }
  .attempt-package-grid { gap: 7px; }
}

/* NAPKINART_HEADERS_TOKENS_PAYMENT_V1_CSS_END */

/* NAPKINART_DARK_RADIAL_MENU_V1_START */

/*
 * A dark glass stage sits behind the expanded radial controls.
 * Opacity is applied only to this background, never to icons or labels.
 */
.center-nav[open]::before,
.napkin-v4-nav[open]::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -222px;
  z-index: 2;
  width: min(440px, calc(100vw - 10px));
  height: 438px;
  transform: translateX(-50%);
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .085);
  border-bottom: 0;
  border-radius: 38px 38px 0 0;
  background:
    radial-gradient(circle at 50% 82%, rgba(255, 137, 31, .13), transparent 34%),
    linear-gradient(
      180deg,
      rgba(26, 23, 20, 0.940) 0%,
      rgba(9, 9, 11, 0.975) 52%,
      rgba(3, 3, 5, .995) 100%
    );
  box-shadow:
    0 -18px 46px rgba(0, 0, 0, .42),
    inset 0 1px 0 rgba(255, 255, 255, .055);
  backdrop-filter: blur(14px) saturate(.76);
  -webkit-backdrop-filter: blur(14px) saturate(.76);
}

/* Dim the page behind the stage without dimming the menu itself. */
.center-nav[open] .center-nav-backdrop,
.napkin-v4-nav[open] .napkin-v4-backdrop {
  background:
    radial-gradient(circle at 50% 83%, rgba(255, 139, 35, .08), transparent 36%),
    rgba(0, 0, 0, 0.380) !important;
  backdrop-filter: blur(3px) brightness(.68) saturate(.82) !important;
  -webkit-backdrop-filter: blur(3px) brightness(.68) saturate(.82) !important;
}

/* Keep controls and words above the dark stage and fully opaque. */
.center-nav[open] .center-nav-orbit,
.napkin-v4-nav[open] .napkin-v4-orbit {
  z-index: 3 !important;
}
.center-nav[open] .center-nav-toggle,
.napkin-v4-nav[open] .napkin-v4-toggle {
  z-index: 4 !important;
}
.center-nav[open] .center-nav-item,
.napkin-v4-nav[open] .napkin-v4-item {
  color: rgba(255, 255, 255, .98) !important;
  opacity: 1;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .95);
}
.center-nav[open] .center-nav-item.danger,
.napkin-v4-nav[open] .napkin-v4-item.danger {
  color: #ff8b91 !important;
}
.center-nav[open] .center-nav-bubble,
.napkin-v4-nav[open] .napkin-v4-bubble {
  border-color: rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(24, 27, 34, .985), rgba(8, 9, 13, .995));
  box-shadow:
    0 13px 29px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .10);
}

@media (max-width: 380px) {
  .center-nav[open]::before,
  .napkin-v4-nav[open]::before {
    width: calc(100vw - 4px);
    border-radius: 30px 30px 0 0;
  }
}

/* NAPKINART_DARK_RADIAL_MENU_V1_END */

/* NAPKINART_PROFILE_ALERTS_MENU_V1_START */
/* The radial menu now contains exactly: Feed, Draw, Competitions, Rankings, Friends, Profile. */
.center-nav .item-notifications,
.center-nav .item-logout {
  display: none !important;
}

/* Clockwise order beginning at the top. */
.center-nav .item-feed         { --x: 0px !important; --y: -148px !important; }
.center-nav .item-draw         { --x: 116px !important; --y: -76px !important; }
.center-nav .item-competitions { --x: 116px !important; --y: 76px !important; }
.center-nav .item-rankings     { --x: 0px !important; --y: 148px !important; }
.center-nav .item-friends      { --x: -116px !important; --y: 76px !important; }
.center-nav .item-profile      { --x: -116px !important; --y: -76px !important; }

.center-nav .item-profile > .center-nav-badge {
  top: 4px;
  right: 2px;
}

.profile-alerts-card {
  overflow: hidden;
  padding: 0;
  border-color: color-mix(in srgb, var(--accent, #ff9800) 24%, var(--line, #3d3934));
  background:
    radial-gradient(circle at 92% -18%, rgba(255, 151, 0, .16), transparent 44%),
    linear-gradient(155deg, color-mix(in srgb, var(--surface, #211d19) 96%, #ff9800 4%), var(--bg-elevated, #171412));
  box-shadow: 0 14px 34px rgba(0,0,0,.19), inset 0 1px 0 rgba(255,255,255,.045);
}

.profile-alerts-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.profile-alerts-title-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-alerts-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff5e7;
  background: linear-gradient(145deg, #ffab20, #ff6558);
  box-shadow: 0 8px 20px rgba(255, 111, 38, .24), inset 0 1px 0 rgba(255,255,255,.28);
}
.profile-alerts-icon svg { width: 21px; height: 21px; }
.profile-alerts-title-wrap h2 { margin: 0; font-size: 1rem; }
.profile-alerts-title-wrap p { margin: 3px 0 0; color: var(--muted, #aaa39a); font-size: .78rem; }

.profile-alerts-count {
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #ff405d;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 7px 16px rgba(255, 51, 81, .25);
}

.profile-alerts-list {
  display: grid;
  padding: 5px 10px;
}

.profile-alert-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 7px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.055);
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-alert-row:last-child { border-bottom: 0; }
.profile-alert-row.unread {
  background: linear-gradient(90deg, rgba(255, 143, 30, .08), transparent 75%);
}
.profile-alert-row:active { transform: scale(.995); }
.profile-alert-copy { min-width: 0; display: grid; gap: 3px; }
.profile-alert-copy strong {
  overflow: hidden;
  color: var(--text, #fff);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-alert-copy time { color: var(--muted, #aaa39a); font-size: .7rem; }
.profile-alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #ff405d;
  box-shadow: 0 0 0 4px rgba(255,64,93,.12);
}
.profile-alerts-empty {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px;
  color: var(--muted, #aaa39a);
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
}
.profile-alerts-empty svg { flex: 0 0 auto; width: 20px; height: 20px; }
.profile-alerts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255,255,255,.055);
}

@media (max-width: 430px) {
  .center-nav .item-feed         { --x: 0px !important; --y: -136px !important; }
  .center-nav .item-draw         { --x: 103px !important; --y: -70px !important; }
  .center-nav .item-competitions { --x: 103px !important; --y: 70px !important; }
  .center-nav .item-rankings     { --x: 0px !important; --y: 136px !important; }
  .center-nav .item-friends      { --x: -103px !important; --y: 70px !important; }
  .center-nav .item-profile      { --x: -103px !important; --y: -70px !important; }
  .profile-alert-copy strong { max-width: 225px; }
}
/* NAPKINART_PROFILE_ALERTS_MENU_V1_END */
