/* Scoped «Нора» — palette and layout only under .cotinder-den */
.cotinder-den {
    --den-cream: #fff6ee;
    --den-peach: #f4c7a8;
    --den-mint: #b8e0d2;
    --den-ink: #3d2c29;
    --den-muted: #7a635c;
    --den-line: #ead7c8;
    color: var(--den-ink);
    max-width: 100%;
}

.cotinder-den.is-busy {
    opacity: 1;
}

.cotinder-den.is-busy .cotinder-den__canvas,
.cotinder-den.is-busy .cotinder-den__cols {
    pointer-events: none;
    opacity: 0.72;
}

.cotinder-den__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.cotinder-den__eyebrow {
    margin: 0 0 2px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--den-muted);
    font-weight: 700;
}

.cotinder-den__title {
    margin: 0 0 4px;
    font-size: 1.25rem;
    line-height: 1.2;
}

.cotinder-den__need {
    margin: 0;
    font-size: 0.9rem;
    color: var(--den-muted);
}

.cotinder-den__points {
    flex: 0 0 auto;
    min-width: 88px;
    padding: 8px 12px;
    border-radius: 12px;
    background: var(--den-cream);
    border: 1px solid var(--den-line);
    text-align: right;
}

.cotinder-den__points-label {
    display: block;
    font-size: 0.68rem;
    color: var(--den-muted);
}

.cotinder-den__points strong {
    font-size: 1.1rem;
}

.cotinder-den__xp {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--den-muted);
    max-width: 11rem;
    word-wrap: break-word;
}

.cotinder-den__xp-legend {
    margin: 8px 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--den-muted);
    max-width: 42rem;
    word-wrap: break-word;
}

.cotinder-den__sale {
    margin: 8px 0 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(253, 119, 40, 0.12);
    color: #9a4a18;
    font-size: 0.8rem;
    line-height: 1.35;
    max-width: 42rem;
    box-sizing: border-box;
    word-wrap: break-word;
}

.cotinder-den__scene {
    margin: 0 0 12px;
    max-width: 100%;
}

.cotinder-den__room {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f7e4d0 0%, #f0d4b8 42%, #e8c4a0 100%);
    border: 1px solid var(--den-line);
    box-sizing: border-box;
}

.cotinder-den__slot {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 4px;
    border: 1px dashed rgba(61, 44, 41, 0.28);
    border-radius: 10px;
    background: rgba(255, 246, 238, 0.45);
    color: inherit;
    font: inherit;
    cursor: pointer;
    min-width: 0;
    max-width: 38%;
}

.cotinder-den__slot.is-filled {
    border-style: solid;
    background: rgba(255, 255, 255, 0.72);
}

.cotinder-den__slot-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.cotinder-den__slot-label {
    font-size: 0.65rem;
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cotinder-den__slot--rug {
    left: 50%;
    bottom: 8%;
    width: 42%;
    transform: translateX(-50%);
}

.cotinder-den__slot--bed {
    top: 10%;
    right: 6%;
    width: 28%;
}

.cotinder-den__slot--left {
    left: 4%;
    top: 38%;
    width: 24%;
}

.cotinder-den__slot--right {
    right: 4%;
    top: 38%;
    width: 24%;
}

.cotinder-den__slot--front {
    left: 18%;
    bottom: 10%;
    width: 22%;
}

.cotinder-den__pet {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 46%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 36%;
    max-width: 140px;
    pointer-events: none;
}

.cotinder-den__pet img {
    width: 100%;
    height: auto;
    max-width: 120px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(61, 44, 41, 0.18);
}

.cotinder-den__pet-name,
.cotinder-den__pet-pose {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cotinder-den__pet-name {
    margin-top: 4px;
    font-weight: 700;
}

.cotinder-den__pet-pose {
    color: var(--den-muted);
}

.cotinder-den__care {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.cotinder-den__care-lead {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.82rem;
    color: var(--den-muted);
}

.cotinder-den__care-stats {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.75rem;
    color: var(--den-muted);
}

.cotinder-den__care .btn {
    flex: 1 1 auto;
    min-width: 0;
}

.cotinder-den__guide {
    margin: 0 0 8px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--den-line);
    background: var(--den-cream);
}

.cotinder-den__guide-kicker {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--den-muted);
}

.cotinder-den__guide-text {
    margin: 0 0 6px;
    font-size: 0.8rem;
    line-height: 1.35;
}

.cotinder-den__guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cotinder-den__guide-actions .btn {
    padding: 4px 10px;
    min-height: 0;
    font-size: 0.78rem;
}

.cotinder-den__walls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px;
    margin: 0 0 10px;
}

.cotinder-den__walls-label {
    flex: 1 1 100%;
    font-size: 0.8rem;
    color: var(--den-muted);
    margin-right: 4px;
}

.cotinder-den__wall {
    width: 52px;
    height: 44px;
    padding: 0 2px 3px;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--den-line);
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cotinder-den__wall em {
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 700;
    line-height: 1.15;
    color: #3d2c29;
    background: rgba(255, 246, 238, 0.92);
    border-radius: 4px;
    padding: 0 3px;
}

.cotinder-den__wall.is-on {
    box-shadow: 0 0 0 2px #c9845a;
}

.cotinder-den__story {
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: var(--den-muted);
    max-width: 38rem;
}

.cotinder-den__item-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 10px;
    font-size: 0.78rem;
    color: var(--den-muted);
    background: var(--den-cream);
    border: 1px solid var(--den-line);
    border-radius: 12px;
}

.cotinder-den__item-tools-label {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--den-ink);
}

.cotinder-den__item-tools-hint {
    flex: 1 1 100%;
    font-size: 0.72rem;
}

.cotinder-den__item-tools button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--den-line);
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.cotinder-den__item-tools .cotinder-den__remove {
    width: auto;
    min-width: 148px;
    height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #fff;
    background: #c9845a;
    border-color: #c9845a;
}

.cotinder-den__hint,
.cotinder-den__tip,
.cotinder-den__shop-lead,
.cotinder-den__pack {
    margin: 0 0 10px;
    font-size: 0.86rem;
    color: var(--den-muted);
    max-width: 100%;
}

.cotinder-den__pack a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    max-width: 100%;
}

.cotinder-den__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.cotinder-den__h {
    margin: 0 0 8px;
    font-size: 1rem;
}

.cotinder-den__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cotinder-den__inv-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    align-items: stretch;
}

.cotinder-den__item-unplace {
    min-width: 4.8rem;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid #c9845a;
    background: #c9845a;
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
}

.cotinder-den__sku.is-owned {
    cursor: pointer;
}

.cotinder-den__item,
.cotinder-den__sku {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--den-line);
    border-radius: 12px;
    background: var(--den-cream);
    color: inherit;
    font: inherit;
    text-align: left;
    box-sizing: border-box;
}

.cotinder-den__item {
    cursor: pointer;
}

.cotinder-den__item.is-selected {
    border-color: #c9845a;
    box-shadow: 0 0 0 2px rgba(201, 132, 90, 0.25);
}

.cotinder-den__item em,
.cotinder-den__sku em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.75rem;
    color: var(--den-muted);
    white-space: nowrap;
}

.cotinder-den__sku-icon {
    font-size: 1.3rem;
    flex: 0 0 auto;
}

.cotinder-den__shop-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}

.cotinder-den__shop-cats button {
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--den-line);
    background: var(--den-cream);
    color: var(--den-ink);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.cotinder-den__shop-cats button.is-on {
    border-color: #c9845a;
    background: #fff6ee;
}

.cotinder-den__list--shop {
    max-height: min(70vh, 640px);
    overflow: auto;
}

.cotinder-den__sku > div {
    min-width: 0;
    flex: 1 1 auto;
}

.cotinder-den__sku strong,
.cotinder-den__item strong {
    display: block;
}

.cotinder-den__sku span {
    display: block;
    font-size: 0.78rem;
    color: var(--den-muted);
}

.cotinder-den__sku.is-locked {
    opacity: 0.62;
}

.cotinder-den__empty {
    color: var(--den-muted);
    font-size: 0.86rem;
}

.cotinder-den__modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(61, 44, 41, 0.35);
    box-sizing: border-box;
}

.cotinder-den__modal[hidden] {
    display: none !important;
}

.cotinder-den__modal-card {
    width: min(360px, 100%);
    padding: 24px 20px 20px;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 16px 40px rgba(61, 44, 41, 0.22);
}

.cotinder-den__modal-icon {
    margin: 0 0 8px;
    font-size: 2rem;
}

.cotinder-den__modal-card h4 {
    margin: 0 0 6px;
}

.cotinder-den__modal-card p {
    margin: 0 0 14px;
    color: var(--den-muted);
}

.cotinder-den__modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Home widget */
.cotinder-den--home {
    margin: 8px 0 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff6ee 0%, #eaf6f1 100%);
    border: 1px solid var(--den-line);
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.cotinder-den--home .cotinder-den__home-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
}

.cotinder-den--home .cotinder-den__home-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.cotinder-den--home .cotinder-den__home-copy h2 {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
}

.cotinder-den--home .cotinder-den__home-copy p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    line-height: 1.25;
    color: var(--den-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cotinder-den--home .cotinder-den__home-cta {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #c9845a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
}

.cotinder-den--home .cotinder-den__home-top {
    margin: 6px 0 0;
    font-size: 0.75rem;
    line-height: 1.3;
    color: var(--den-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cotinder-den--home .cotinder-den__home-top a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.cotinder-den--home .cotinder-den__pet,
.cotinder-den--strip .cotinder-den__pet {
    width: 28%;
    max-width: 96px;
    top: 42%;
}

/* Pet page compact */
.cotinder-den--strip {
    margin: 10px 0 0;
    max-width: 100%;
}

.cotinder-den--strip .cotinder-den__room {
    min-height: 150px;
    aspect-ratio: 16 / 9;
}

.cotinder-den--strip .cotinder-den__slot {
    pointer-events: none;
}

.cotinder-den--strip [data-den-canvas],
.cotinder-den--strip .cotinder-den__canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.cotinder-den--strip .cotinder-den__pixi-host {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: top;
}

.cotinder-den--strip .cotinder-den__life {
    margin: 6px 0 0;
    max-width: 100%;
}

.cotinder-den--guest {
    margin: 12px 0 0;
}

@media (max-width: 429.98px) {
    .cotinder-den--home .cotinder-den__home-row {
        gap: 8px;
    }
    .cotinder-den--home .cotinder-den__home-copy p {
        white-space: normal;
    }
    .cotinder-den__slot-label {
        font-size: 0.58rem;
    }
    .cotinder-den__slot--front {
        left: 12%;
        width: 26%;
    }
    .cotinder-den__pet {
        width: 40%;
    }
}

@media (min-width: 768px) {
    .cotinder-den__cols {
        grid-template-columns: 1fr 1fr;
    }
    .cotinder-den__room {
        min-height: 280px;
    }
}

@media (min-width: 1024px) {
    .cotinder-den__room {
        max-width: 640px;
    }
}

@media (min-width: 1200px) {
    .cotinder-den__head {
        align-items: center;
    }
}

.cotinder-den__comfort {
    margin: 8px 0 0;
    max-width: 22rem;
}

.cotinder-den__comfort-label {
    display: block;
    font-size: 0.78rem;
    color: var(--den-muted);
    margin: 0 0 4px;
}

.cotinder-den__comfort-bar {
    display: block;
    height: 8px;
    border-radius: 99px;
    background: rgba(61, 44, 41, 0.12);
    overflow: hidden;
}

.cotinder-den__comfort-bar i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #7ed957, #c9845a);
}

.cotinder-den__sku.is-home {
    border-color: rgba(201, 132, 90, 0.45);
    background: #fffaf4;
}

.cotinder-den__sku.is-luxury {
    border-color: rgba(201, 162, 42, 0.55);
    background: #fff8e8;
}

.cotinder-den__canvas {
    position: relative;
    margin: 0 0 12px;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--den-line);
    background: #c5e4f5;
    touch-action: none;
}

.cotinder-den__canvas.cotinder-den__canvas--wide {
    max-width: none;
    overflow: visible;
}

.cotinder-den__pixi-host {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    vertical-align: top;
    touch-action: none;
    cursor: grab;
}

.cotinder-den__canvas--wide .cotinder-den__pixi-host {
    max-width: none;
    width: 100%;
    cursor: grab;
}

.cotinder-den__canvas--wide .cotinder-den__pixi-host:active {
    cursor: grabbing;
}

.cotinder-den__canvas-hint {
    margin: 0;
    padding: 6px 10px 8px;
    font-size: 0.75rem;
    color: var(--den-muted);
}

.cotinder-den__life {
    margin: 8px 0 0;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(255, 246, 238, 0.94);
    color: #3d2c29;
    font-size: 0.85rem;
    line-height: 1.35;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.cotinder-den__scene.is-pixi-hidden {
    display: none;
}

.cotinder-den__top {
    margin: 16px 0 0;
}

.cotinder-den__top-list {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.cotinder-den__top-list a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--den-cream);
    border: 1px solid var(--den-line);
    color: inherit;
    text-decoration: none;
}

.cotinder-den__top-rank {
    font-weight: 700;
    color: var(--den-muted);
}

.cotinder-den__gifts {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--den-cream);
    border: 1px solid var(--den-line);
}

.cotinder-den__gifts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
}

.cotinder-den__gifts.is-gifted .cotinder-den__gifts-list {
    opacity: 0.55;
    pointer-events: none;
}

.cotinder-den__toast {
    position: fixed;
    z-index: 12000;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    max-width: min(90vw, 360px);
    padding: 10px 14px;
    border-radius: 12px;
    background: #3d2c29;
    color: #fff6ee;
    font-size: 0.9rem;
}

.cotinder-den-garland-rail {
    height: 8px;
    width: 100%;
    margin: 0 0 10px;
    border-radius: 999px;
    pointer-events: none;
    grid-column: 1 / -1;
    flex: 0 0 100%;
    max-width: 100%;
    background-image:
        radial-gradient(circle, #ff6b6b 1.5px, transparent 1.7px),
        radial-gradient(circle, #ffd93d 1.5px, transparent 1.7px),
        radial-gradient(circle, #6bcb77 1.5px, transparent 1.7px),
        radial-gradient(circle, #4d96ff 1.5px, transparent 1.7px);
    background-size: 28px 10px;
    background-position: 0 2px, 7px 6px, 14px 2px, 21px 6px;
    animation: cotinder-den-garland-shift 2.8s linear infinite;
}

.index__post .card.cotinder-den-garland > .card-img-wrap,
.index__post .card.cotinder-den-garland > .card__media-wrap,
.index__posts .card.cotinder-den-garland > a.card-img-wrap {
    position: relative;
}

.index__post .card.cotinder-den-garland > .card-img-wrap::after,
.index__post .card.cotinder-den-garland > .card__media-wrap::after,
.index__posts .card.cotinder-den-garland > a.card-img-wrap::after {
    content: "";
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 16px;
    z-index: 4;
    background-image:
        radial-gradient(circle, #ff6b6b 1.6px, transparent 1.8px),
        radial-gradient(circle, #ffd93d 1.6px, transparent 1.8px),
        radial-gradient(circle, #6bcb77 1.6px, transparent 1.8px),
        radial-gradient(circle, #4d96ff 1.6px, transparent 1.8px);
    background-size: 24px 10px;
    background-position: 0 2px, 6px 6px, 12px 2px, 18px 6px;
    animation: cotinder-den-garland-shift 2.4s linear infinite;
}

@keyframes cotinder-den-garland-shift {
    from {
        background-position: 0 2px, 6px 6px, 12px 2px, 18px 6px;
    }
    to {
        background-position: 24px 2px, 30px 6px, 36px 2px, 42px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cotinder-den-garland-rail,
    .index__post .card.cotinder-den-garland > .card-img-wrap::after,
    .index__post .card.cotinder-den-garland > .card__media-wrap::after,
    .index__posts .card.cotinder-den-garland > a.card-img-wrap::after {
        animation: none;
    }
}

.cotinder-engage:has([data-engage-panel="den"].is-active) {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

html body .person__form-content:has([data-engage-panel="den"].is-active) {
    max-width: none;
    width: auto;
    overflow: visible;
}

.tabs__content.person__form:has([data-engage-panel="den"].is-active) .tabs__content_right {
    flex: 1 1 auto;
    max-width: none;
    width: auto;
}

.cotinder-den__how {
    margin: 0 0 10px;
    border: 1px solid var(--den-line);
    border-radius: 12px;
    background: var(--den-cream);
}

.cotinder-den__how-sum {
    cursor: pointer;
    list-style: none;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--den-ink);
}

.cotinder-den__how-sum::-webkit-details-marker {
    display: none;
}

.cotinder-den__how-sum::before {
    content: '▸ ';
    color: #c9845a;
}

.cotinder-den__how[open] .cotinder-den__how-sum::before {
    content: '▾ ';
}

.cotinder-den__how-body {
    padding: 0 12px 10px;
}

.cotinder-den__how-lead,
.cotinder-den__how-xp {
    margin: 0 0 8px;
    font-size: 0.8rem;
    color: var(--den-muted);
}

.cotinder-den__how-xp {
    padding-left: 1.15rem;
}

.cotinder-den__how-xp li {
    margin: 0 0 4px;
}

.cotinder-den__how .cotinder-den__cal {
    margin: 0 0 8px;
}

.cotinder-den__daily {
    margin: 0 0 8px;
    padding: 8px 10px;
    border: 1px solid var(--den-line);
    border-radius: 12px;
    background: var(--den-cream);
}

.cotinder-den__daily-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cotinder-den__daily-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--den-muted);
    white-space: nowrap;
}

.cotinder-den__cal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(22px, 1fr));
    gap: 4px;
    flex: 1 1 180px;
    min-width: 0;
}

.cotinder-den__cal-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--den-line);
    background: #f3e6d6;
    font-size: 0.72rem;
    text-align: center;
}

.cotinder-den__cal-day strong {
    font-weight: 700;
}

.cotinder-den__cal-day.is-on {
    border-color: #c9845a;
    background: #fd7728;
    color: #fff;
}

.cotinder-den__cal-day.is-done {
    background: #d7eee4;
}

.cotinder-den__missions {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.cotinder-den__missions li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.78rem;
}

.cotinder-den__missions li.is-done {
    opacity: 0.62;
    text-decoration: line-through;
}

.cotinder-den__mission-go {
    flex: 0 0 auto;
    border: 0;
    background: #fd7728;
    color: #fff;
    border-radius: 8px;
    padding: 2px 8px;
    font-size: 0.72rem;
    text-decoration: none;
    cursor: pointer;
}

.cotinder-den__hud {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--den-line);
    background: linear-gradient(135deg, #fff6ee 0%, #fde8d8 100%);
}

.cotinder-den__hud-level {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 180px;
    min-width: 0;
}

.cotinder-den__hud-level strong {
    font-size: 0.92rem;
    white-space: nowrap;
}

.cotinder-den__hud-bar {
    flex: 1 1 auto;
    height: 8px;
    min-width: 64px;
    border-radius: 99px;
    background: #ead7c8;
    overflow: hidden;
}

.cotinder-den__hud-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #7ed957, #fd7728);
}

.cotinder-den__hud-level span[data-den-hud-xp] {
    font-size: 0.72rem;
    color: var(--den-muted);
    white-space: nowrap;
}

.cotinder-den__hud-today,
.cotinder-den__hud-hint {
    margin: 0;
    font-size: 0.75rem;
    color: var(--den-ink);
    flex: 1 1 100%;
}

.cotinder-den__hud-hint {
    color: var(--den-muted);
}

.cotinder-den__hud-share {
    border: 0;
    background: #fd7728;
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.cotinder-den__floors {
    margin-top: 8px;
}

@media (max-width: 430px) {
    .cotinder-den__cal {
        grid-template-columns: repeat(7, minmax(18px, 1fr));
    }

    .cotinder-den__hud-share {
        width: 100%;
    }
}
