/* ==========================================================================
   Derech Community - social core styles (feed, daily loop, profiles, directory, onboarding).
   Builds on the theme design system (§9); only module-specific UI lives here.
   Colours come from --dk-* tokens (fallbacks keep it readable without the theme).
   ========================================================================== */

.dc-app {
	--dc-cream: var(--dk-cream, #FBF4E8);
	--dc-paper: var(--dk-paper, #FFFDF8);
	--dc-ink: var(--dk-ink, #2A2420);
	--dc-muted: var(--dk-muted, #6B5F55);
	--dc-teal: var(--dk-teal, #1F4D4A);
	--dc-teal-600: var(--dk-teal-600, #2B6460);
	--dc-clay: var(--dk-clay, #C8572B);
	--dc-clay-600: var(--dk-clay-600, #A9431C);
	--dc-mustard: var(--dk-mustard, #E3A835);
	--dc-sage: var(--dk-sage, #A7BC9C);
	--dc-sky: var(--dk-sky, #DDEDF1);
	--dc-peach: var(--dk-peach, #FCE3CC);
	--dc-blush: var(--dk-blush, #F6D3C4);
	--dc-moss: var(--dk-moss, #5F7F4E);
	--dc-line: var(--dk-line, rgba(42, 36, 32, .12));
	--dc-r: var(--dk-radius, 14px);
	--dc-r-lg: var(--dk-radius-lg, 20px);
	--dc-r-xl: var(--dk-radius-xl, 28px);
	--dc-shadow: var(--dk-shadow, 0 6px 20px rgba(70, 45, 20, .08));
	color: var(--dc-ink);
}
.dc-app *, .dc-hdr * { box-sizing: border-box; }
/* Ghost buttons are flat: the fridge "chunky" bottom edge only belongs on filled buttons. */
.dc-app .dk-btn--ghost, .dcf-app .dk-btn--ghost, .dcc .dk-btn--ghost { --btn-shadow: none; }
.dc-app .dk-btn--ghost:active, .dcf-app .dk-btn--ghost:active, .dcc .dk-btn--ghost:active { box-shadow: none; }
.dc-pad { padding: 16px; }
.dc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-block-end: 16px; flex-wrap: wrap; }
.dc-page-head .dk-h2 { margin: 0; }
.dc-loadmore { display: flex; justify-content: center; padding: 16px 0; }

/* ---------- Header actions ---------- */
.dc-hdr { display: inline-flex; align-items: center; gap: 4px; }
.dc-hdr__btn { position: relative; }
.dc-hdr__btn .dk-badge--count, .dc-hdr .dk-badge--count { position: absolute; inset-block-start: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--dk-clay, #C8572B); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.dc-hdr [hidden] { display: none !important; }
.dc-hpill { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 14px; }
.dc-hpill:hover { transform: translateY(-1px); }
.dc-hpill:focus-visible { outline: 3px solid var(--dk-teal, #1F4D4A); outline-offset: 2px; }
.dc-hpill__streak { display: inline-flex; align-items: center; gap: 2px; padding-inline-start: 6px; border-inline-start: 1px solid rgba(107, 75, 0, .25); }
.dc-hpill.is-pending { animation: dc-pulse 2.4s ease-in-out infinite; }
.dc-hpill.is-pending .dk-coin__icon { animation: dc-wiggle 2.4s ease-in-out infinite; }
/* The coin pill opens the social feed: a small caption under it says so. */
.dc-hcoin { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.dc-hcoin__label { font-size: 11.5px; font-weight: 700; line-height: 1; color: var(--dk-teal, #1F4D4A); text-decoration: none; white-space: nowrap; }
.dc-hcoin:hover .dc-hcoin__label { color: var(--dk-clay, #C8572B); }
.dc-hdr .dk-btn--ghost { --btn-shadow: none; }
.dc-hdr__btn:hover, .dc-hdr__btn:focus-visible { color: var(--dk-clay, #C8572B); }
/* Phones: the bottom nav carries chat, so the top bar shows the messages button only while a message is unread
   (it then opens that conversation directly). */
@media (max-width: 959px) {
	.dc-hdr > a.dc-hdr__btn:not(:has(.dk-badge--count:not([hidden]))) { display: none; }
}
@media (max-width: 440px) {
	.dc-hdr { gap: 2px; }
	.dc-hcoin__label { font-size: 10px; }
	.dc-hpill { padding-inline: .3em .6em; }
	.dc-hpill__streak { display: none; }
}
@media (max-width: 370px) {
	.dc-hdr .dc-hdr__btn.dk-btn--icon { width: 40px; }
}
@keyframes dc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(227, 168, 53, .45); } 50% { box-shadow: 0 0 0 6px rgba(227, 168, 53, 0); } }
@keyframes dc-wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }

.dc-bell { position: relative; }
.dc-bell__menu { position: absolute; inset-inline-end: -40px; inset-block-start: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; z-index: 60; background: var(--dk-paper, #FFFDF8); border-radius: 18px; box-shadow: 0 18px 50px rgba(42, 36, 32, .18); padding: 0; }
@media (max-width: 600px) {
	/* Phones: the dropdown spans the screen under the top bar instead of hanging off the bell. */
	.dc-bell__menu { position: fixed; inset-inline: 10px; inset-block-start: calc(var(--dk-header-h, 64px) + 4px); width: auto; max-height: calc(100dvh - var(--dk-header-h, 64px) - var(--dk-bottom-nav-h, 68px) - 40px); }
}
.dc-bell__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-block-end: 1px solid rgba(42, 36, 32, .08); position: sticky; top: 0; background: inherit; }
.dc-bell__empty { text-align: center; padding: 22px 18px; color: #6B5F55; }
.dc-bell__empty span { font-size: 34px; }
.dc-bell__all { display: block; text-align: center; padding: 12px; font-weight: 600; color: var(--dk-teal, #1F4D4A); border-block-start: 1px solid rgba(42, 36, 32, .08); }
.dk-notification { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; color: inherit; text-decoration: none; position: relative; }
.dk-notification.is-unread { background: color-mix(in srgb, var(--dk-sky, #DDEDF1) 70%, transparent); }
.dk-notification__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.45; }
.dc-ntf-emoji { position: absolute; inset-block-end: -4px; inset-inline-end: -6px; font-size: 14px; background: var(--dk-paper, #FFFDF8); border-radius: 999px; width: 20px; height: 20px; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.dk-avatar-wrap { position: relative; display: inline-flex; flex: none; }
.dc-unread-dot { width: 10px; height: 10px; min-height: 0; aspect-ratio: 1; border-radius: 50%; background: var(--dk-clay, #C8572B); box-shadow: 0 0 0 3px rgba(200, 87, 43, .16); margin-inline-start: auto; flex: none; align-self: center; }

/* ---------- Notifications page ---------- */
.dc-notifs { max-width: 780px; margin-inline: auto; }
.dc-notifs .dk-notification.is-unread::before, .dc-bell .dk-notification.is-unread::before { content: none; }
.dc-notifs .dk-notification { border-radius: 16px; align-items: center; }
.dc-notifs .dk-notification + .dk-notification { margin-block-start: 2px; }
.dc-notifs .dk-notification__body { flex: 1; min-width: 0; }
.dc-notifs .dk-segment { margin-block: 8px 16px; }
.dc-notifs__group { margin-block-end: 18px; }
.dc-notifs__group .dk-eyebrow { margin: 0 0 8px; }
.dc-requests { margin-block-end: 16px; }
.dc-request { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dc-request .dk-user { color: inherit; text-decoration: none; }
.dc-request .dk-user:hover .dk-user__name { color: var(--dk-clay, #C8572B); }

/* ---------- Feed layout ---------- */
.dc-feed-split { align-items: flex-start; }
.dc-feed-main { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.dc-feed { display: flex; flex-direction: column; gap: 14px; }
.dc-feed__row { display: contents; }
.dc-feed-aside { display: none; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
@media (min-width: 960px) {
	.dc-feed-split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
	.dc-feed-aside { display: flex; }
}
.dc-widget { padding: 14px 16px; }
.dc-widget__title { font-size: 15px; font-weight: 800; margin: 0 0 10px; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-widget--daily { display: contents; }
.dc-back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.dc-feed-tabs { overflow-x: auto; scrollbar-width: none; margin-block-start: 14px; }
.dc-feed-tabs::-webkit-scrollbar { display: none; }
.dc-feed-tabs .dk-tab, .dc-profile__tabs .dk-tab { flex: 1 0 auto; justify-content: center; }
@media (max-width: 440px) {
	.dc-feed-tabs, .dc-profile__tabs { gap: 2px; }
	.dc-feed-tabs .dk-tab, .dc-profile__tabs .dk-tab { padding-inline: .55em; }
}
.dc-feed-end { text-align: center; padding: 18px 0 30px; }
.dc-sentinel { height: 1px; }

.dc-new-pill-wrap { position: sticky; top: 72px; z-index: 30; display: flex; justify-content: center; height: 0; }
.dc-new-pill { transform: translateY(6px); border: 0; border-radius: 999px; padding: 9px 18px; background: var(--dk-teal, #1F4D4A); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(31, 77, 74, .35); cursor: pointer; }
.dc-new-pill:focus-visible { outline: 3px solid var(--dk-mustard, #E3A835); outline-offset: 2px; }
.dc-ptr { display: flex; align-items: center; justify-content: center; overflow: hidden; transition: height .1s; }
.dc-ptr span { font-size: 26px; transition: transform .2s; }
.dc-ptr span.is-ready { transform: rotate(180deg) scale(1.2); }

/* ---------- Composer ---------- */
.dc-composer { padding: 12px 14px; border-radius: var(--dc-r-lg, 20px); transition: box-shadow .2s; }
.dc-composer.is-open { box-shadow: 0 10px 30px rgba(42, 36, 32, .12); }
.dc-composer.is-help { box-shadow: inset 0 0 0 2px var(--dk-sky, #DDEDF1); }
.dc-composer.is-win { box-shadow: inset 0 0 0 2px var(--dk-mustard, #E3A835); }
.dc-composer__top { display: flex; gap: 10px; align-items: flex-start; }
.dc-composer__text { flex: 1; min-height: 44px; border: 0; background: var(--dk-cream, #FBF4E8); border-radius: 22px; padding: 11px 16px; font-size: 16px; resize: none; }
.dc-composer__text:focus { outline: 2px solid var(--dk-teal, #1F4D4A); }
.dc-composer__more-in { padding-block-start: 10px; }
.dc-composer__types { margin-block-end: 8px; }
.dc-composer__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-composer__file { cursor: pointer; }
.dc-composer__file.is-disabled { opacity: .45; pointer-events: none; }
.dc-composer__media { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-block-start: 10px; }
.dc-composer__thumb { position: relative; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.dc-composer__thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.dc-composer__thumb.is-uploading img { opacity: .5; }
.dc-composer__thumb .dk-spinner { position: absolute; top: 34%; left: 50%; translate: -50% 0; }
.dc-composer__remove { position: absolute; top: 4px; inset-inline-end: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(42, 36, 32, .75); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.dc-composer__alt { font-size: 12px; padding: 4px 6px; border: 1px solid rgba(42, 36, 32, .15); border-radius: 8px; width: 100%; background: #fff; }
.dc-composer__vis select { min-height: 34px; }

/* ---------- Posts ---------- */
.dc-post { position: relative; padding: 14px 16px 10px; border-radius: var(--dc-r-lg, 20px); overflow: visible; }
.dc-post.is-pending { opacity: .65; }
.dc-post.is-pinned { box-shadow: inset 0 0 0 2px var(--dk-sage, #A7BC9C); }
.dc-post .dk-post__head { display: flex; gap: 10px; align-items: flex-start; }
.dk-post__who { flex: 1; min-width: 0; }
.dk-row--tight { gap: 6px; }
.dc-post .dk-user__name { font-weight: 700; color: inherit; text-decoration: none; }
.dc-post .dk-user__meta { font-size: 13px; color: #6B5F55; display: flex; flex-wrap: wrap; gap: 0 4px; align-items: center; }
.dc-post__time { color: inherit; text-decoration: none; }
.dc-post__time:hover { text-decoration: underline; }
.dc-lvl { font-size: 14px; }
.dc-type-chip { margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: var(--dk-sky, #DDEDF1); color: var(--dk-teal, #1F4D4A); font-weight: 700; font-size: 12px; }
.dc-type-chip.is-resolved { background: #DCEBD3; color: #31512A; }
.dc-post .dk-post__body { white-space: normal; padding: 0; margin-block: 10px; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.dc-post__text.is-short { font-size: 19px; line-height: 1.45; }
.dc-post--win .dc-post__text.is-short, .dc-post--system .dc-post__text { font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-post__challenge { margin: 0 0 6px; font-size: 14px; color: var(--dk-teal, #1F4D4A); background: var(--dk-sky, #DDEDF1); display: inline-block; padding: 4px 10px; border-radius: 10px; }
.dc-app a.dk-mention { unicode-bidi: isolate; }
.dc-post a.dk-mention, .dc-comment a.dk-mention { color: var(--dk-teal, #1F4D4A); font-weight: 600; text-decoration: none; background: color-mix(in srgb, var(--dk-sky, #DDEDF1) 60%, transparent); border-radius: 6px; padding: 0 3px; }
.dc-post__ribbon { position: relative; margin: -14px -16px 10px; padding: 9px 16px; border-radius: 20px 20px 0 0; font-weight: 800; font-family: var(--dk-font-head, Rubik, sans-serif); overflow: hidden; color: var(--dk-ink, #2A2420); background: linear-gradient(100deg, var(--dk-mustard, #E3A835), #F3CF7A 55%, var(--dk-peach, #FCE3CC)); }
.dc-post--system .dc-post__ribbon { color: #fff; background: linear-gradient(100deg, var(--dk-teal, #1F4D4A), var(--dk-teal-600, #2B6460) 60%, var(--dk-moss, #5F7F4E)); }
.dc-post--milestone .dc-post__ribbon { background: linear-gradient(100deg, var(--dk-sage, #A7BC9C), #CFDDC6); }
.dc-post--win, .dc-post--system, .dc-post--milestone { background: linear-gradient(180deg, #FFF7E6, var(--dk-paper, #FFFDF8) 40%); }
.dc-confetti-bit { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--dk-clay, #C8572B); top: 10px; inset-inline-end: 30px; transform: rotate(20deg); opacity: .8; }
.dc-confetti-bit:nth-child(3) { background: var(--dk-teal, #1F4D4A); inset-inline-end: 64px; top: 22px; transform: rotate(-30deg); }
.dc-confetti-bit:nth-child(4) { background: #fff; inset-inline-end: 98px; top: 8px; border-radius: 50%; }
.dc-post--help { box-shadow: inset 4px 0 0 var(--dk-sky, #DDEDF1); }
.dc-post--help.is-resolved { box-shadow: inset 4px 0 0 #BFD9B2; }

.dc-post .dk-media-grid { display: grid; gap: 4px; border-radius: 16px; overflow: hidden; margin-block: 8px; }
.dc-post .dk-media-grid--2, .dc-post .dk-media-grid--4 { grid-template-columns: 1fr 1fr; }
.dc-post .dk-media-grid--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.dc-post .dk-media-grid--3 .dk-media-grid__item:first-child { grid-row: span 2; }
.dk-media-grid__item { padding: 0; border: 0; background: var(--dk-cream, #FBF4E8); cursor: zoom-in; display: block; }
.dk-media-grid__item img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; }
.dk-media-grid--1 .dk-media-grid__item img { height: auto; }

.dc-embed { margin-block: 8px; border-radius: 16px; overflow: hidden; background: var(--dk-ink, #2A2420); aspect-ratio: 16 / 9; }
.dc-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.dc-embed__cover { width: 100%; height: 100%; border: 0; display: flex; align-items: center; justify-content: center; gap: 12px; color: #fff; cursor: pointer; background: radial-gradient(circle at 30% 30%, #3a332e, #1c1815); font: inherit; text-align: start; }
.dc-embed__cover small { display: block; opacity: .8; font-size: 12px; }
.dc-embed__play { width: 58px; height: 58px; border-radius: 50%; background: var(--dk-clay, #C8572B); display: grid; place-items: center; font-size: 22px; }

.dc-help-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: var(--dk-sky, #DDEDF1); margin-block: 6px; }
.dc-help-bar .dk-small { flex: 1; min-width: 140px; color: var(--dk-teal, #1F4D4A); font-weight: 600; }

.dc-post__summary { display: flex; align-items: center; gap: 8px; padding-block: 6px; font-size: 13px; color: #6B5F55; }
.dc-rx-summary { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; color: inherit; font: inherit; cursor: pointer; }
.dc-rx-summary__emojis span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-start: -5px; border-radius: 50%; background: var(--dk-paper, #FFFDF8); box-shadow: 0 0 0 2px var(--dk-paper, #FFFDF8); font-size: 14px; }
.dc-rx-summary__emojis span:first-child { margin-inline-start: 0; }
.dk-avatar-stack { display: inline-flex; }
.dk-avatar-stack img { margin-inline-start: -6px; box-shadow: 0 0 0 2px var(--dk-paper, #FFFDF8); border-radius: 50%; }
.dk-avatar-stack img:first-child { margin-inline-start: 0; }

.dc-post .dk-post__actions { display: flex; gap: 4px; border-block-start: 1px solid rgba(42, 36, 32, .08); padding-block-start: 6px; }
.dc-post .dk-post__actions > * { flex: 1; }
.dk-react-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: #5A4E45; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.dk-react-btn:hover { background: var(--dk-cream, #FBF4E8); }
.dk-react-btn:focus-visible { outline: 2px solid var(--dk-teal, #1F4D4A); }
.dk-react-btn.is-active { color: var(--dk-clay-600, #A9431C); }
.dk-react-btn__emoji { font-size: 18px; transition: transform .2s; }
.dk-react-btn.is-active .dk-react-btn__emoji { animation: dc-pop .35s ease; }
.dk-react-btn--sm { min-height: 28px; padding: 2px 6px; font-size: 13px; }
.dk-react-btn--sm .dk-react-btn__emoji { font-size: 14px; }
@keyframes dc-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }

.dc-react { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.dc-react > .dk-react-btn { flex: 0 1 auto; }
.dk-post__actions .dc-react > .dk-react-btn { padding-inline-end: 4px; }
.dc-react__more { border: 0; background: none; color: #6B5F55; padding: 4px; border-radius: 8px; cursor: pointer; display: inline-grid; place-items: center; min-width: 26px; min-height: 26px; }
.dk-post__actions .dc-react__more { min-height: 40px; }
.dk-react-btn__empty { display: inline-flex; }
.dk-react-btn__heart { width: 18px; height: 18px; color: #8A7D72; }
.dk-react-btn:hover .dk-react-btn__heart { color: var(--dk-clay, #C8572B); }
.dk-react-btn--sm .dk-react-btn__heart { width: 15px; height: 15px; }
.dc-react__more:hover, .dc-react__more:focus-visible { background: var(--dk-cream, #FBF4E8); color: var(--dk-ink, #2A2420); outline: none; box-shadow: 0 0 0 2px var(--dk-teal, #1F4D4A); }
.dc-picker { position: absolute; inset-block-end: calc(100% + 6px); inset-inline-start: 0; z-index: 40; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: var(--dk-paper, #FFFDF8); box-shadow: 0 12px 32px rgba(42, 36, 32, .22); white-space: nowrap; }
.dc-picker__item { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 26px; cursor: pointer; transition: transform .15s ease; display: grid; place-items: center; }
.dc-picker__item:hover, .dc-picker__item:focus-visible { transform: translateY(-4px) scale(1.25); outline: none; background: var(--dk-cream, #FBF4E8); }
.dc-picker__item.is-active { background: var(--dk-peach, #FCE3CC); }

/* Comments */
.dc-post .dk-post__comments { display: flex; flex-direction: column; gap: 10px; padding-block: 8px 2px; }
.dc-more-comments { align-self: flex-start; }
.dc-thread { display: flex; flex-direction: column; gap: 8px; }
.dc-comment { display: flex; gap: 8px; align-items: flex-start; }
.dc-comment.is-pending { opacity: .6; }
.dc-comment.is-highlight .dc-comment__bubble { box-shadow: 0 0 0 2px var(--dk-mustard, #E3A835); }
.dc-comment__main { min-width: 0; flex: 1; }
.dc-comment__bubble { position: relative; display: inline-block; max-width: 100%; padding: 8px 12px; border-radius: 4px 18px 18px 18px; background: var(--dk-paper, #FFFDF8); box-shadow: 0 0 0 1.5px var(--dk-line, #E9DDCB), 0 2px 0 rgba(74, 52, 30, .05); font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
[dir="rtl"] .dc-comment__bubble, .rtl .dc-comment__bubble { border-radius: 18px 4px 18px 18px; }
.dc-comment__bubble .dk-user__name { display: block; font-size: 13px; font-weight: 700; color: inherit; text-decoration: none; }
.dc-comment__rx { position: absolute; inset-block-end: -10px; inset-inline-end: -6px; display: inline-flex; gap: 2px; align-items: center; padding: 1px 6px; border-radius: 999px; background: var(--dk-paper, #FFFDF8); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); font-size: 12px; cursor: pointer; }
.dc-comment__meta { display: flex; align-items: center; gap: 0 10px; padding-inline-start: 8px; margin-block-start: 2px; flex-wrap: wrap; font-size: 12px; }
.dc-comment__meta time { color: #6B5F55; }
.dc-comment__meta .dk-link { background: none; border: 0; padding: 0; min-height: 28px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: #5A4E45; }
.dc-comment__meta .dk-link:hover { color: var(--dk-clay-600, #A9431C); }
.dc-comment__meta .dc-react { gap: 0; }
.dc-comment__meta .dk-react-btn--sm { padding: 2px 4px; gap: 4px; min-height: 28px; font-size: 12px; }
.dc-comment__meta .dc-react__more { min-width: 22px; min-height: 28px; padding: 2px; }
@media (max-width: 480px) {
	.dc-comment__meta { gap: 0 8px; }
	.dc-comment__meta .dk-react-btn__label { display: none; }
}
.dc-replies { margin-inline-start: 38px; display: flex; flex-direction: column; gap: 8px; }
.dc-comment.is-reply .dc-comment__bubble { background: color-mix(in srgb, var(--dk-sky, #DDEDF1) 55%, #fff); }
.dc-comment-form { display: flex; gap: 8px; align-items: flex-end; padding-block: 8px 4px; }
.dc-comment-form--reply { margin-inline-start: 38px; }
.dc-comment-form .dk-textarea { flex: 1; min-height: 38px; border-radius: 20px; padding: 8px 14px; resize: none; background: var(--dk-cream, #FBF4E8); border: 1px solid transparent; font-size: 15px; }
.dc-comment-form .dk-textarea:focus { border-color: var(--dk-teal, #1F4D4A); outline: none; }
.dc-menu-wrap { position: relative; }
.dc-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 4px); z-index: 45; min-width: 200px; background: var(--dk-paper, #FFFDF8); border-radius: 14px; box-shadow: 0 14px 40px rgba(42, 36, 32, .2); padding: 6px; display: flex; flex-direction: column; }
.dc-menu .dk-menu__item { display: flex; gap: 8px; align-items: center; padding: 9px 10px; border: 0; background: none; border-radius: 10px; font: inherit; text-align: start; cursor: pointer; color: inherit; }
.dc-menu .dk-menu__item:hover, .dc-menu .dk-menu__item:focus-visible { background: var(--dk-cream, #FBF4E8); outline: none; }
.dk-menu__item--danger { color: #A33A1B !important; }

/* Teasers */
.dc-teaser { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 20px; background: linear-gradient(120deg, var(--dk-peach, #FCE3CC), #FFF3E3); border: 1.5px dashed rgba(200, 87, 43, .35); }
.dc-teaser__art img { width: 96px; height: 96px; object-fit: cover; border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%; }
.dc-teaser h3 { margin: 6px 0 4px; }
.dc-teaser p { margin: 0 0 8px; }

/* Skeletons */
.dc-skel-row { display: flex; gap: 10px; align-items: center; }
.dc-skel-row .dk-skeleton--circle { width: 40px; height: 40px; flex: none; }
.dc-skel-post { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dc-app .dk-skeleton { background: linear-gradient(90deg, #F2E9DB 25%, #F9F2E7 37%, #F2E9DB 63%); background-size: 400% 100%; animation: dc-shimmer 1.3s ease infinite; border-radius: 10px; min-height: 12px; }
.dc-app .dk-skeleton--circle { border-radius: 50%; }
.dc-app .dk-skeleton--card { min-height: 120px; border-radius: 18px; }
@keyframes dc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- Daily card ---------- */
.dc-daily { padding: 16px; border-radius: var(--dc-r-lg, 20px); background: linear-gradient(170deg, #FFF6E5, var(--dk-paper, #FFFDF8) 55%); overflow: hidden; }
.dc-daily__inner { display: flex; flex-direction: column; gap: 14px; }
.dc-daily__head { display: flex; gap: 10px; align-items: flex-end; }
.dc-guri { object-fit: contain; flex: none; }
.dc-guri--sm { width: 40px; height: 40px; }
.dc-guri--lg { width: 120px; height: 120px; }
.dc-guri--xl { width: 160px; height: 160px; }
.dc-daily__head .dc-guri { width: 72px; height: 72px; animation: dc-bob 4s ease-in-out infinite; }
.dc-guri video, .dc-guri img, .dc-guri .dk-guri-media { width: 100%; height: 100%; object-fit: contain; display: block; }
.dc-welcome__guri .dc-guri { display: inline-block; }
@keyframes dc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.dc-daily__bubble { flex: 1; position: relative; padding: 10px 14px; border-radius: 18px 18px 18px 4px; background: var(--dk-peach, #FCE3CC); font-size: 14px; line-height: 1.45; }
.dc-daily__greet { display: block; font-family: var(--dk-font-head, Rubik, sans-serif); font-size: 17px; }
.dc-daily__stats { display: grid; grid-template-columns: 1fr; gap: 10px; }
.dc-daily__level { display: flex; gap: 10px; align-items: center; }
.dc-daily__level-text { display: flex; flex-direction: column; }
.dc-daily__streak { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: 16px; background: #FFF0E0; }
.dc-daily__streak.is-hot { background: linear-gradient(100deg, #FFE1C2, #FFF0E0); }
.dc-flame { font-size: 26px; display: inline-block; }
.dc-daily__streak.is-hot .dc-flame { animation: dc-flicker 1.6s ease-in-out infinite; }
@keyframes dc-flicker { 0%, 100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12) rotate(3deg); } }
.dc-week { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-basis: 100%; }
.dc-week__day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0; border-radius: 10px; background: rgba(255, 255, 255, .7); min-height: 44px; font-size: 16px; }
.dc-week__day small { font-size: 11px; color: #6B5F55; font-weight: 700; }
.dc-week__day.is-active { background: var(--dk-mustard, #E3A835); }
.dc-week__day.is-active small { color: var(--dk-ink, #2A2420); }
.dc-week__day.is-today { box-shadow: inset 0 0 0 2px var(--dk-clay, #C8572B); }
.dc-week__day.is-future { opacity: .5; }
.dc-week__day.is-frozen { background: var(--dk-sky, #DDEDF1); }
.dc-freeze { flex-basis: 100%; }
.dc-daily__bananas { display: flex; align-items: center; gap: 6px; }
.dc-daily__bananas strong { font-size: 20px; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-banana-count { font-size: 22px; }

.dc-level-ring { --value: 0; --ring: var(--dk-mustard, #E3A835); position: relative; display: inline-grid; place-items: center; padding: 4px; border-radius: 50%; background: conic-gradient(var(--ring) calc(var(--value) * 1%), rgba(42, 36, 32, .1) 0); flex: none; }
.dc-level-ring > img { border: 3px solid var(--dk-paper, #FFFDF8); border-radius: 50%; display: block; }
.dc-level-ring__icon { position: absolute; inset-block-end: -4px; inset-inline-end: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--dk-paper, #FFFDF8); display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.dc-level-ring--xl { padding: 6px; }
.dc-level-ring--xl .dc-level-ring__icon { width: 36px; height: 36px; font-size: 20px; }
.dc-level-ring--lg { width: 84px; height: 84px; }
.dc-level-ring__big { width: 70px; height: 70px; border-radius: 50%; background: var(--dk-paper, #FFFDF8); display: grid; place-items: center; font-size: 34px; }

.dc-checkin-btn { position: relative; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 10px 18px; border: 0; border-radius: 18px; background: var(--dk-mustard, #E3A835); color: var(--dk-ink, #2A2420); font: inherit; font-size: 17px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 0 #B9841F, 0 10px 24px rgba(227, 168, 53, .35); transition: transform .1s ease, box-shadow .1s ease; }
.dc-checkin-btn:hover { transform: translateY(-1px); }
.dc-checkin-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #B9841F; }
.dc-checkin-btn:focus-visible { outline: 3px solid var(--dk-teal, #1F4D4A); outline-offset: 3px; }
.dc-checkin-btn__banana { font-size: 26px; animation: dc-wiggle 2.6s ease-in-out infinite; display: inline-block; }
.dc-checkin-btn--sm { min-height: 40px; font-size: 15px; width: auto; box-shadow: 0 4px 0 #B9841F; }
.dc-plus { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); font-size: 13px; }
.dc-checked { margin: 0; padding: 12px; border-radius: 14px; background: #E5F0DE; color: #31512A; font-weight: 700; text-align: center; }
.dc-daily__section { padding-block-start: 12px; border-block-start: 1px dashed rgba(42, 36, 32, .14); }
.dc-daily__h { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.dc-moods { display: flex; gap: 6px; }
.dc-mood { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1.5px solid transparent; border-radius: 14px; background: rgba(255, 255, 255, .8); cursor: pointer; font: inherit; color: inherit; }
.dc-mood__emoji { font-size: 26px; transition: transform .15s; }
.dc-mood small { font-size: 11px; color: #5A4E45; }
.dc-mood:hover .dc-mood__emoji { transform: scale(1.15); }
.dc-mood.is-active { border-color: var(--dk-teal, #1F4D4A); background: var(--dk-sky, #DDEDF1); }
.dc-mood:focus-visible { outline: 2px solid var(--dk-teal, #1F4D4A); }
.dc-mood-note { display: flex; flex-direction: column; gap: 6px; margin-block-start: 8px; }
.dc-challenge { position: relative; }
.dc-challenge__head { display: flex; justify-content: space-between; align-items: center; }
.dc-challenge__title { margin: 6px 0 4px; font-size: 17px; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-challenge__text { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.dc-challenge.is-done .dc-challenge__title { text-decoration: line-through; text-decoration-color: var(--dk-mustard, #E3A835); text-decoration-thickness: 3px; }
.dc-poll__q { margin: 6px 0 8px; font-size: 16px; }
.dc-poll__opts { display: flex; flex-direction: column; gap: 6px; }
.dc-poll__opt { padding: 10px 12px; border: 1.5px solid rgba(31, 77, 74, .25); border-radius: 12px; background: #fff; text-align: start; font: inherit; cursor: pointer; color: inherit; }
.dc-poll__opt:hover, .dc-poll__opt:focus-visible { border-color: var(--dk-teal, #1F4D4A); background: var(--dk-sky, #DDEDF1); outline: none; }
.dc-poll__results { display: flex; flex-direction: column; gap: 6px; }
.dc-poll__bar { position: relative; display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #F3ECE0; overflow: hidden; font-size: 14px; }
.dc-poll__fill { position: absolute; inset-block: 0; inset-inline-start: 0; background: color-mix(in srgb, var(--dk-sage, #A7BC9C) 70%, #fff); border-radius: 12px; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.dc-poll__bar.is-mine .dc-poll__fill { background: var(--dk-mustard, #E3A835); }
.dc-poll__label, .dc-poll__pct { position: relative; font-weight: 600; }
.dc-daily__foot { display: block; text-align: center; font-weight: 700; padding-block-start: 4px; }

/* Mobile strip */
.dc-daily-strip { border-radius: 20px; background: linear-gradient(110deg, #FFEED3, var(--dk-paper, #FFFDF8)); box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); overflow: hidden; }
.dc-daily-strip__bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; text-align: start; font: inherit; color: inherit; cursor: pointer; }
.dc-daily-strip__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dc-daily-strip__text small { color: #6B5F55; font-size: 12px; }
.dc-daily-strip__chips { display: flex; gap: 4px; }
.dc-chip-stat { padding: 3px 8px; border-radius: 999px; background: #fff; font-size: 13px; white-space: nowrap; }
.dc-daily-strip__chev { transition: transform .2s; display: inline-flex; }
.dc-daily-strip__chev.is-open { transform: rotate(180deg); }
.dc-daily-strip__cta { padding: 0 12px 12px; }
.dc-daily-strip__cta .dc-checkin-btn { width: 100%; }
.dc-daily-strip__body { padding: 0 14px 14px; }
@media (min-width: 960px) { .dc-daily-strip { display: none !important; } }

/* Burst + confetti */
.dc-burst { position: fixed; z-index: 9999; pointer-events: none; width: 0; height: 0; }
.dc-burst span { position: absolute; font-size: 22px; animation: dc-burst .95s cubic-bezier(.15, .8, .3, 1) forwards; }
@keyframes dc-burst { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; } }
.dc-confetti { position: fixed; inset: 0; z-index: 9998; pointer-events: none; overflow: hidden; }
.dc-confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; font-style: normal; font-size: 20px; animation: dc-fall linear forwards; }
@keyframes dc-fall { to { transform: translateY(105vh) rotate(var(--rot)); } }

/* ---------- Leaderboard ---------- */
.dc-board { display: flex; flex-direction: column; gap: 16px; padding-block-end: 24px; max-width: 880px; margin-inline: auto; }
.dc-board__hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 24px; background: linear-gradient(120deg, var(--dk-peach, #FCE3CC), #FFF6E8); }
.dc-board__hero > div { flex: 1; min-width: 0; }
@media (max-width: 520px) {
	.dc-board__hero { align-items: flex-start; padding: 14px; }
	.dc-board__hero .dc-guri--lg { width: 84px; height: 84px; }
	.dc-board__hero .dk-h2 { font-size: 1.5rem; }
	.dc-board__controls .dk-segment { flex: 1 1 100%; }
	.dc-board__controls .dk-segment__item { flex: 1; }
}
.dc-board__hero .dk-h2 { margin: 2px 0 6px; }
.dc-board__hero p { margin: 0; }
.dc-board__controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.dc-podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding-block-start: 24px; }
.dc-podium__place { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: inherit; text-decoration: none; min-width: 0; }
.dc-podium__medal { font-size: 28px; }
.dc-podium__pts { font-size: 13px; font-weight: 700; }
.dc-podium__block { width: 100%; display: grid; place-items: center; border-radius: 16px 16px 6px 6px; font-weight: 900; font-size: 26px; color: #fff; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-podium__place.is-1 .dc-podium__block { height: 110px; background: linear-gradient(180deg, var(--dk-mustard, #E3A835), #C98F23); }
.dc-podium__place.is-2 .dc-podium__block { height: 80px; background: linear-gradient(180deg, var(--dk-teal-600, #2B6460), var(--dk-teal, #1F4D4A)); }
.dc-podium__place.is-3 .dc-podium__block { height: 60px; background: linear-gradient(180deg, var(--dk-clay, #C8572B), var(--dk-clay-600, #A9431C)); }
.dc-podium__place.is-1 .dk-avatar { width: 80px; height: 80px; box-shadow: 0 0 0 4px var(--dk-mustard, #E3A835); }
.dc-board__list { list-style: none; margin: 0; padding: 0; }
.dc-board__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
.dc-board__row.is-me { background: var(--dk-sky, #DDEDF1); }
.dc-board__row .dk-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.dc-board__rank { width: 28px; text-align: center; font-weight: 800; color: #6B5F55; flex: none; }
.dc-board__pts { font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-board__me { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: var(--dk-teal, #1F4D4A); color: #fff; box-shadow: 0 10px 24px rgba(31, 77, 74, .35); }
.dc-board__me span { flex: 1; }
@media (min-width: 960px) { .dc-board__me { bottom: 16px; } }
.dc-board__rules summary { cursor: pointer; padding: 12px 14px; }
.dc-board__rules { padding: 0 6px 10px; }
.dc-levels { list-style: none; padding: 0 10px; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dc-board-mini__list { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-board-mini__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.dc-board-mini__list li.is-me { font-weight: 700; }
.dc-board-mini__list .dk-user { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }

/* Suggestions + online */
.dc-suggest { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dc-suggest__item { display: flex; align-items: center; gap: 10px; }
.dc-suggest__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dc-suggest__who .dk-user__name { font-weight: 700; color: inherit; text-decoration: none; }
.dc-online { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-online__more { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dk-cream, #FBF4E8); font-weight: 700; font-size: 13px; }
.dk-presence { position: absolute; inset-block-end: 0; inset-inline-end: 0; width: 11px; height: 11px; border-radius: 50%; background: #C9C0B6; box-shadow: 0 0 0 2px var(--dk-paper, #FFFDF8); }
.dk-presence.is-online { background: #3BA55C; }

/* ---------- Profile ---------- */
.dc-profile { display: flex; flex-direction: column; gap: 14px; }
.dc-profile__cover { position: relative; height: 170px; margin-inline: -16px; border-radius: 0 0 28px 28px; background-color: var(--dk-peach, #FCE3CC); background-size: cover; background-position: center; }
.dc-profile__cover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 50%, rgba(42, 36, 32, .25)); }
@media (min-width: 720px) { .dc-profile__cover { height: 240px; margin-inline: 0; border-radius: 28px; } }
.dc-profile__cover-btn { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2; cursor: pointer; }
.dc-profile__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; padding-inline: 8px; position: relative; z-index: 3; }
.dc-profile__avatar { margin-block-start: -64px; }
.dc-profile__id { padding-block-start: 6px; }
.dc-profile__actions { flex-basis: 100%; }
@media (min-width: 720px) { .dc-profile__avatar { margin-block-start: -78px; } .dc-profile__actions { flex-basis: auto; align-self: center; } }
.dc-profile__avatar { position: relative; flex: none; }
.dc-profile__avatar .dc-level-ring { background-color: var(--dk-paper, #FFFDF8); }
.dc-profile__presence { inset-block-end: 14px; inset-inline-end: auto; inset-inline-start: 14px; width: 18px; height: 18px; box-shadow: 0 0 0 3px var(--dk-paper, #FFFDF8); }
.dc-profile__body { display: flex; flex-direction: column; gap: 14px; }
.dc-profile__side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dc-profile__main { min-width: 0; }
@media (min-width: 1024px) {
	.dc-profile__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
	.dc-profile__side { grid-column: 2; grid-row: 1; }
	.dc-profile__main { grid-column: 1; grid-row: 1; }
	.dc-profile__side .dc-profile__stats { grid-template-columns: repeat(2, 1fr); }
	.dc-profile__side .dc-journey.dk-card .dc-journey__name { opacity: 0; font-size: 11px; }
	.dc-profile__side .dc-journey.dk-card .dc-journey__st.is-current .dc-journey__name, .dc-profile__side .dc-journey.dk-card .dc-journey__st.is-current + .dc-journey__st .dc-journey__name { opacity: 1; }
	.dc-profile__side .dc-completion { flex-wrap: wrap; }
	.dc-profile__bio { padding: 14px 16px; border-radius: 20px; background: var(--dk-paper, #FFFDF8); border: 2px solid var(--dk-edge, rgba(42, 36, 32, .14)); }
}
@media (max-width: 719px) {
	.dc-profile__actions > .dk-row { flex-wrap: nowrap; width: 100%; }
	.dc-profile__actions > .dk-row > :first-child { flex: 1 1 auto; min-width: 0; }
	.dc-profile__actions .dc-friend-btn .dk-btn { width: 100%; }
	.dc-profile__actions > .dk-btn--primary { width: 100%; }
}
.dc-profile__avatar-btn { position: absolute; inset-block-start: 4px; inset-inline-start: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--dk-teal, #1F4D4A); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.dc-profile__avatar-btn:focus-within { outline: 3px solid var(--dk-mustard, #E3A835); }
.dc-profile__id { flex: 1; min-width: 200px; }
.dc-profile__name { margin: 0; }
.dc-profile__level { margin: 2px 0; color: #5A4E45; font-weight: 600; font-size: 14px; }
.dc-profile__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dc-stickers { display: flex; gap: 6px; margin-block-start: 6px; flex-wrap: wrap; }
.dc-sticker { --tilt: 0deg; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px #fff, 0 3px 8px rgba(42, 36, 32, .22); transform: rotate(var(--tilt)); font-size: 22px; }
.dc-sticker--lg { width: 72px; height: 72px; font-size: 38px; }
.dc-profile__bio { margin: 0; font-size: 16px; line-height: 1.6; white-space: pre-line; }
.dc-profile__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; }
.dc-profile__stats div { padding: 10px 6px; border-radius: 16px; background: var(--dk-paper, #FFFDF8); box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); text-align: center; }
.dc-profile__stats dt { font-size: 12px; color: #6B5F55; }
.dc-profile__stats dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-profile__mutual { display: flex; align-items: center; gap: 8px; margin: 0; }
.dc-profile__tabs { margin-block-end: 12px; overflow-x: auto; }
.dc-profile__pane { display: flex; flex-direction: column; gap: 14px; }
.dc-completion { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; }
.dc-completion > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.dc-people-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .dc-people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .dc-people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-person { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px 14px; text-align: center; border-radius: 20px; height: 100%; min-width: 0; }
.dc-person__link { display: flex; flex-direction: column; align-items: center; gap: 6px; color: inherit; text-decoration: none; max-width: 100%; }
.dc-person__name { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.dc-person__meta { min-height: 18px; line-height: 1.4; }
.dc-person > :last-child:not(.dc-person__link):not(.dc-person__meta) { margin-block-start: auto; padding-block-start: 4px; }
.dc-friend-btn { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.dc-friend-btn .dk-row--tight { justify-content: center; }
.dc-badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .dc-badge-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.dc-badge-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 20px; background: var(--dk-paper, #FFFDF8); text-align: center; box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); }
.dc-badge-card.is-locked { opacity: .55; filter: grayscale(.8); box-shadow: none; border: 1.5px dashed rgba(42, 36, 32, .2); }
.dc-journal { padding: 16px; }
.dc-journal__head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.dc-journal__avg { display: flex; flex-direction: column; align-items: center; font-size: 30px; }
.dc-mood-cal { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.dc-mood-cal__day { position: relative; aspect-ratio: 1; border-radius: 12px; background: #F3ECE0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dc-mood-cal__num { position: absolute; top: 3px; inset-inline-start: 5px; font-size: 10px; color: #7A6E64; }
.dc-mood-cal__emoji { font-size: 20px; }
.dc-mood-cal__day.m5 { background: #DCEBD3; } .dc-mood-cal__day.m4 { background: #E9F1DD; } .dc-mood-cal__day.m3 { background: #FBF0D2; } .dc-mood-cal__day.m2 { background: #FBE0CF; } .dc-mood-cal__day.m1 { background: #F4CFC4; }
.dc-mood-cal__day.is-today { box-shadow: inset 0 0 0 2px var(--dk-teal, #1F4D4A); }
.dc-mood-cal__dot { position: absolute; bottom: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--dk-clay, #C8572B); }
.dc-journal__notes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dc-kid-row { display: flex; gap: 8px; align-items: center; margin-block-end: 6px; }
.dc-kid-row .dk-input { flex: 1; }
.dc-edit-modal .dk-modal__dialog { display: flex; flex-direction: column; max-height: min(92dvh, 860px); overflow: hidden; }
.dc-edit-modal .dk-modal__header h2 { margin: 0; }
.dc-edit-modal .dk-modal__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.dc-edit-modal .dk-modal__footer { flex: none; justify-content: flex-start; background: var(--dk-paper, #FFFDF8); }
@media (max-width: 719px) {
	/* Phones: a bottom sheet with a sticky header and footer. */
	.dc-edit-modal { padding: 0; place-items: end center; }
	.dc-edit-modal .dk-modal__dialog { width: 100%; max-height: 94dvh; border-radius: var(--dk-r-xl, 28px) var(--dk-r-xl, 28px) 0 0; padding-bottom: var(--dk-safe-bottom, 0px); animation: dk-sheet-up .32s var(--dk-ease, ease); }
	.dc-edit-modal .dk-modal__footer .dk-btn--primary { flex: 1; }
	.dc-kid-row { flex-wrap: wrap; }
	.dc-kid-row .dk-select { flex: 1 1 140px; }
}
.dc-search-row { margin-block-end: 6px; }
.dc-switch-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 10px; cursor: pointer; }
.dc-bananas-summary { display: flex; gap: 14px; align-items: center; }
.dc-pts { min-width: 48px; text-align: end; color: var(--dk-moss, #5F7F4E); }
.dc-pts.is-neg { color: #A33A1B; }
.dc-account { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Directory ---------- */
.dc-directory { display: flex; flex-direction: column; gap: 14px; }
.dc-directory__filters { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 20px; }
.dc-directory__selects { gap: 8px; }
.dc-directory__selects > * { flex: 1 1 140px; min-width: 0; }
.dc-stars__title { font-size: 17px; margin: 0 0 8px; font-family: var(--dk-font-head, Rubik, sans-serif); }
.dc-stars__row { display: flex; gap: 10px; overflow-x: auto; padding-block-end: 6px; scroll-snap-type: x mandatory; }
.dc-star { position: relative; flex: 0 0 104px; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 20px; background: linear-gradient(180deg, #FFF3DA, var(--dk-paper, #FFFDF8)); color: inherit; text-decoration: none; box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); }
.dc-star strong { max-width: 100%; }
.dc-star__rank { position: absolute; top: 6px; inset-inline-start: 8px; font-weight: 800; }

/* ---------- Onboarding ---------- */
.dc-welcome { max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; position: relative; }
.dc-welcome__progress { display: flex; align-items: center; gap: 10px; }
.dc-welcome__progress .dk-progress { flex: 1; height: 10px; border-radius: 999px; background: #F0E6D6; overflow: hidden; }
.dc-welcome__progress .dk-progress__bar { height: 100%; background: linear-gradient(90deg, var(--dk-mustard, #E3A835), var(--dk-clay, #C8572B)); border-radius: inherit; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.dc-welcome__stage { display: flex; align-items: flex-end; gap: 10px; }
.dc-welcome__guri .dc-guri { width: 110px; height: 110px; animation: dc-bob 3.6s ease-in-out infinite; }
@media (min-width: 720px) { .dc-welcome__guri .dc-guri { width: 150px; height: 150px; } }
.dc-guri.is-cheer { animation: dc-jump 1.2s ease-in-out infinite; }
@keyframes dc-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px) rotate(-3deg); } }
.dc-welcome__bubble, .dc-daily__bubble { white-space: normal; max-width: none; }
.dc-welcome__bubble { flex: 1; position: relative; padding: 14px 18px; border-radius: 22px 22px 22px 6px; background: var(--dk-sky, #DDEDF1); font-size: 16px; line-height: 1.55; box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); }
.dc-welcome__bubble p { margin: 0; }
.dc-welcome__card { border-radius: 26px; padding: 20px; }
.dc-welcome__card section { display: flex; flex-direction: column; gap: 12px; }
.dc-welcome__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.dc-welcome__photo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dc-welcome__interests .dk-chip--lg, .dk-chip--lg { padding: 10px 16px; font-size: 15px; }
.dc-welcome__interests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr)); gap: 8px; }
@media (max-width: 480px) { .dc-welcome__interests .dk-chip--lg { padding: 8px 10px; font-size: 14px; line-height: 1.3; } }
.dc-welcome__interests .dk-chip { justify-content: center; text-align: center; min-height: 44px; }
.dc-app fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dc-app fieldset > legend { padding: 0; margin-block-end: 8px; }
.dc-welcome .dk-textarea { resize: none; }
.dc-welcome__nav { display: flex; align-items: center; gap: 10px; margin-block-start: 18px; flex-wrap: wrap; }
.dc-welcome__later { text-align: center; margin: 10px 0 0; }
.dc-welcome__done { position: fixed; inset: 0; z-index: 9990; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: rgba(251, 244, 232, .96); }
.dc-places { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 600px) { .dc-places { grid-template-columns: 1fr 1fr; } }
.dc-place { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1.5px solid rgba(42, 36, 32, .12); cursor: pointer; background: #fff; }
.dc-place span:nth-child(3) { flex: 1; display: flex; flex-direction: column; }
.dc-place.is-active { border-color: var(--dk-teal, #1F4D4A); background: var(--dk-sky, #DDEDF1); }
.dc-place:focus-within { outline: 2px solid var(--dk-teal, #1F4D4A); }
.dc-place__emoji { font-size: 24px; }
.dc-place__check { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--dk-cream, #FBF4E8); font-weight: 800; }
.dc-people-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Guest teaser ---------- */
.dc-guest { display: flex; flex-direction: column; gap: 18px; }
.dc-guest__hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 28px; flex-wrap: wrap; }
.dc-guest__hero > div { flex: 1; min-width: 240px; }
.dc-guest__posts { position: relative; display: flex; flex-direction: column; gap: 12px; }
.dc-post--blurred { filter: blur(3px); user-select: none; pointer-events: none; }
.dc-post--blurred:first-child { filter: blur(1.2px); }
.dc-guest__veil { position: absolute; inset: 30% 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, transparent, var(--dk-cream, #FBF4E8) 45%); text-align: center; }
.dc-guest__perks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dc-guest__perks li { padding: 12px; border-radius: 16px; background: var(--dk-paper, #FFFDF8); box-shadow: var(--dc-shadow, 0 6px 20px rgba(70, 45, 20, .08)); }

/* ---------- Mentions ---------- */
.dc-mentions[hidden] { display: none !important; }
.dc-mentions { position: absolute; inset-inline-start: 0; top: 100%; z-index: 70; min-width: 220px; max-width: 320px; background: var(--dk-paper, #FFFDF8); border-radius: 14px; box-shadow: 0 14px 40px rgba(42, 36, 32, .22); padding: 4px; }
.dc-mentions__item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.dc-mentions__item small { color: #6B5F55; margin-inline-start: auto; }
.dc-mentions__item.is-active, .dc-mentions__item:hover { background: var(--dk-sky, #DDEDF1); }

/* ---------- Modals (lightbox + vanilla report dialog) ---------- */
.dc-lightbox { background: #111 !important; color: #fff; max-width: min(96vw, 1100px) !important; padding: 0 !important; }
.dc-lightbox__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.dc-lightbox__inner img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.dc-lightbox__close { position: absolute; top: 8px; inset-inline-end: 8px; color: #fff; z-index: 2; }
.dc-lightbox__nav { display: flex; align-items: center; gap: 14px; padding: 10px; }
.dc-report-dialog { position: fixed; inset: 0; z-index: 9995; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dc-report-dialog .dk-modal__backdrop { position: absolute; inset: 0; background: rgba(42, 36, 32, .5); }
.dc-report-dialog .dk-modal__dialog { position: relative; width: min(460px, 100%); background: var(--dk-paper, #FFFDF8); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.dc-report-dialog .dk-chip input { margin-inline-end: 4px; }


/* ---------- Daily HUD (fridge-door game HUD) ---------- */
.dc-hud { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; }
.dc-hud__keys { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 16px; background: linear-gradient(180deg, #FFF7DB, #fff); box-shadow: 0 3px 0 rgba(42, 36, 32, .08); text-align: center; color: inherit; text-decoration: none; min-width: 0; }
.dc-hud__key { font-size: 20px; }
.dc-hud__cta { color: var(--dk-teal, #1F4D4A) !important; font-weight: 700; text-decoration: underline; }
.dc-journey__keys { margin: 4px 0 0; }
.dc-hud > div, .dc-hud > a { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; border-radius: 16px; background: #fff; box-shadow: 0 3px 0 rgba(42, 36, 32, .08); text-align: center; min-width: 0; }
.dc-hud .dk-coin strong { font-size: 18px; }
.dc-hud .dk-coin { max-width: 100%; padding: .05em .55em .05em .2em; gap: .25em; box-shadow: 0 2px 0 #D3A93A; }
.dc-hud .dk-coin__icon { width: 22px; height: 22px; }
.dc-hud .dk-coin__icon img { width: 15px; }
.dc-hud strong { font-family: var(--dk-font-display, Fredoka, Rubik, sans-serif); font-size: 22px; line-height: 1.1; }
.dc-hud small { font-size: 11px; color: #5A4E45; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@keyframes dc-coin { 0%, 70%, 100% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } }
.dc-hud__streak.is-hot { background: linear-gradient(180deg, #FFE7CC, #fff); }
.dc-hud__streak.is-hot .dc-flame { animation: dc-flicker 1.6s ease-in-out infinite; }
.dc-hud__streak.is-cold { filter: grayscale(.4); }
.dc-hud__level strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dc-hud__lvl-icon { font-size: 22px; }
.dc-daily__grow { display: grid; grid-template-columns: minmax(118px, 40%) 1fr; gap: 12px; align-items: center; }
.dc-growth { margin: 0; list-style: none; }
.dc-growth .dk-growth__mark { font-size: 1.15rem; padding: .35rem .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-daily__grow-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-daily__grow-text p { margin: 0; }
.dc-daily__grow-title { font-size: 20px; line-height: 1; }
.dc-daily__bar { height: 10px; border-radius: 999px; background: #F0E6D6; overflow: hidden; }
.dc-daily__bar .dk-progress__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--dk-sage, #A7BC9C), var(--dk-moss, #5F7F4E)); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.dc-challenge.dk-note, .dc-poll.dk-polaroid, .dc-journal.dk-note, .dc-teaser.dk-note { position: relative; }
.dc-challenge.dk-note { border-block-start: 0; margin-block-start: 14px; padding: 18px 14px 14px; }
.dc-poll.dk-polaroid { display: block; border-block-start: 0; margin-block-start: 18px; padding: 18px 12px 14px; }
.dc-sticker-book { padding: 14px; border-radius: 22px; background: repeating-linear-gradient(0deg, #FFFDF8 0 26px, #F3EADC 26px 27px); }
.dc-post .dk-media-grid.dk-polaroid { display: block; padding: 8px 8px 22px; }
.dc-post .dk-media-grid.dk-polaroid img { aspect-ratio: auto; max-height: 520px; }



/* ---------- Journey: "המסע לאכילה בריאה" ---------- */
.dc-journey { padding: 14px 16px; border-radius: 20px; }
.dc-journey--compact { padding: 4px 0 0; }
.dc-journey__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dc-journey__title { margin: 0; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dc-journey__title .dk-hand { font-size: 26px; color: var(--dk-clay, #C8572B); }
.dc-journey__title small { color: #5A4E45; font-weight: 600; }
.dc-journey__lvl { color: #5A4E45; white-space: nowrap; }
.dc-journey__path { list-style: none; margin: 0; padding: 30px 2px 6px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); position: relative; }
.dc-journey__path::before { content: ""; position: absolute; inset-inline: 6%; top: 47px; border-top: 3px dashed rgba(95, 127, 78, .45); }
.dc-journey__st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.dc-journey__st:nth-child(even) { transform: translateY(8px); }
.dc-journey__dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: #F1E8DA; border: 2px solid rgba(42, 36, 32, .12); filter: grayscale(.6); }
.dc-journey__st.is-reached .dc-journey__dot { background: var(--dk-sage-100, #E5EEDF); border-color: var(--dk-sage, #A7BC9C); filter: none; }
.dc-journey__st.is-current .dc-journey__dot { width: 40px; height: 40px; font-size: 20px; background: var(--dk-mustard, #E3A835); border: 3px solid #fff; box-shadow: 0 0 0 3px var(--dk-mustard, #E3A835), 0 6px 14px rgba(227, 168, 53, .45); }
.dc-journey__name { font-size: 10px; line-height: 1.15; text-align: center; color: #5A4E45; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: 0; }
.dc-journey__st.is-current .dc-journey__name, .dc-journey__st.is-current + .dc-journey__st .dc-journey__name { opacity: 1; font-weight: 700; }
.dc-journey__guri { position: absolute; top: -34px; width: 40px; height: 40px; object-fit: contain; z-index: 2; animation: dc-bob 3s ease-in-out infinite; }
@media (min-width: 720px) { .dc-journey:not(.dc-journey--compact) .dc-journey__name { opacity: 1; font-size: 12px; } }
.dc-journey__next { display: flex; flex-direction: column; gap: 6px; margin-block-start: 8px; }
.dc-journey__next p { margin: 0; }
.dc-journey__unlocks { margin-block-start: 8px; padding: 12px 14px; }
.dc-journey__unlocks-title { margin: 0 0 4px; font-size: 22px; }
.dc-journey__unlocks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.dc-journey__done { margin: 8px 0 0; font-weight: 700; }
.dc-daily__weekrow { display: flex; flex-direction: column; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .dc-journey__guri { animation: none; } }

/* Phones/tablets: leave room under the last item for the floating Guri (it sits above the bottom nav). */
@media (max-width: 959px) {
	.dc-app.dc-feed-page, .dc-app.dc-profile, .dc-app.dc-directory, .dc-app.dc-notifs, .dc-app.dc-board, .dc-app.dc-quiz, .dc-app.dc-welcome, .dcf-app { padding-block-end: 76px; }
}

/* ---------- Motion & a11y ---------- */
@media (prefers-reduced-motion: reduce) {
	.dc-app *, .dc-hdr *, .dc-burst, .dc-confetti { animation: none !important; transition: none !important; }
	.dc-daily__head .dc-guri, .dc-welcome__guri .dc-guri { animation: none !important; }
}
.dc-app :focus-visible { outline-offset: 2px; }
.dc-app [x-cloak], .dc-hdr [x-cloak] { display: none !important; }
