/* Cat on Chair base styles (layout) */

body.coc-app {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #fefce8 0%, #f9fafb 30%, #ede9fe 100%);
    color: #111827;
}

/* === GLOBAL SPACING TWEAKS FOR TIMER CONTROLS === */
/* Ensure controls and main actions don't stick to elements above */
.coc-scene-controls,
.coc-main-actions,
.coc-room-controls,
.coc-wood-buttons {
    margin-top: 20px;
}

/* === HEADER / NAVBAR === */

.coc-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.coc-header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
}

/* Левая часть: логотип + навигация */
.coc-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Логотип / бренд */
.coc-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.coc-logo-mark {
    font-size: 22px;
    transform: translateY(1px);
}

.coc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.coc-logo-title {
    font-weight: 600;
    font-size: 15px;
    color: #111827;
}

.coc-logo-sub {
    font-size: 11px;
    color: #6b7280;
}

/* Навигация */
.coc-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: 8px;
}

.coc-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 9999px;
    font-size: 13px;
    text-decoration: none;
    color: #4b5563;
    background: transparent;
    border: 1px solid transparent;
    transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease,
            box-shadow 0.15s ease;
}

.coc-nav-link:hover {
    background: #f3f4ff;
    border-color: #e5e7eb;
    color: #111827;
    box-shadow: 0 2px 6px rgba(148, 163, 184, 0.25);
}

/* Можно добавить класс active на текущую страницу */
.coc-nav-link.active {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
}

.coc-nav-coins {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    margin-left: 6px;
}

/* Виджет авторизации (Telegram) */
.coc-auth-widget {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 40px; /* чтобы шапка не "дергалась" пока грузится скрипт */
}

.coc-profile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.coc-profile-label {
    font-size: 13px;
    color: #374151;
    white-space: nowrap;
}

.coc-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-weight: 600;
    font-size: 13px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

.coc-avatar-btn {
    background: #f3f4f6;
    color: #4b5563;
}

.coc-avatar-skeleton {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(110deg, #f1f5f9 30%, #e5e7eb 40%, #f1f5f9 55%);
    background-size: 200% 100%;
    display: none;
    animation: coc-skeleton 1.2s ease-in-out infinite;
}

.coc-avatar-spinner {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #e5e7eb;
    border-top-color: #111827;
    display: none;
    animation: coc-spin 0.8s linear infinite;
}

.coc-avatar-btn.loading .coc-avatar-spinner {
    display: inline-block;
}

.coc-avatar-btn.loading .coc-avatar-skeleton {
    display: block;
}

.coc-avatar-btn.loading #coc-profile-initials {
    display: none;
}

@keyframes coc-spin {
    to { transform: rotate(360deg); }
}

@keyframes coc-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.coc-profile-menu {
    position: absolute;
    top: 48px;
    right: 0;
    min-width: 200px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    padding: 10px;
    display: none;
    z-index: 40;
}

.coc-profile-menu.open {
    display: grid;
    gap: 10px;
}

.coc-profile-name {
    font-size: 13px;
    color: #4b5563;
}

.coc-btn.danger {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.coc-hidden {
    display: none !important;
}

/* === MAIN CONTAINER === */

.coc-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px;
}

/* === SHOP === */

.coc-shop-accordions {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.coc-shop-section {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: transparent;
    padding: 8px 12px 12px;
}

.coc-shop-section > summary {
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    list-style: none;
}

.coc-shop-section > summary::-webkit-details-marker {
    display: none;
}

.coc-shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.coc-shop-card {
    display: grid;
    gap: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px;
}

.coc-shop-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    background: #f3f4f6;
}

.coc-shop-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.coc-shop-card-meta {
    font-size: 12px;
    color: #6b7280;
}

.coc-shop-card-actions {
    display: flex;
    justify-content: flex-start;
}

.coc-shop-status {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    min-height: 16px;
}

.coc-shop-status[data-tone="error"] {
    color: #ef4444;
}

.coc-shop-status[data-tone="ok"] {
    color: #059669;
}

/* === GROUP FOCUS === */

.coc-group-members {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.coc-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coc-group-controls {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.coc-group-timer-display {
    font-family:
        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-size: 48px;
    font-weight: 700;
    color: #111827;
}

.coc-group-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #ffffff;
    gap: 12px;
}

.coc-group-member-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.coc-group-member-left img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f3f4f6;
}

.coc-group-member-name {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.coc-group-member-meta {
    display: grid;
    gap: 4px;
    text-align: right;
}

.coc-group-member-status {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coc-group-member-remaining {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
}

.coc-group-member-task {
    font-size: 12px;
    color: #111827;
}

.coc-group-member-presence {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coc-group-member-presence.is-online { color: #059669; }
.coc-group-member-presence.is-offline { color: #9ca3af; }

@media (max-width: 640px) {
    .coc-group-member {
        flex-direction: column;
        align-items: flex-start;
    }

    .coc-group-member-left {
        align-items: flex-start;
    }

    .coc-group-member-meta {
        text-align: left;
    }
}

.coc-group-status {
    margin-top: 10px;
    font-size: 12px;
    color: #6b7280;
    min-height: 16px;
}

.coc-group-status[data-tone="error"] {
    color: #ef4444;
}

.coc-group-landing {
    display: grid;
    gap: 16px;
}

.coc-group-landing-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.coc-group-landing-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.coc-group-landing-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: #4b5563;
    font-size: 13px;
    display: grid;
    gap: 6px;
}

.coc-group-landing-rooms {
    margin-top: 8px;
    display: grid;
    gap: 8px;
}

.coc-group-room-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: #111827;
    text-decoration: none;
    background: #f9fafb;
}

.coc-group-room-link:hover {
    border-color: #d1d5db;
}

.coc-group-room-name {
    font-size: 14px;
    font-weight: 600;
}

.coc-group-room-note {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.coc-group-landing-form {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.coc-group-landing-form label {
    font-size: 12px;
    color: #6b7280;
}

.coc-group-landing-form input {
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 0 10px;
    font-size: 14px;
}

.coc-group-landing-status {
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    min-height: 16px;
}

.coc-group-landing-status[data-tone="error"] {
    color: #ef4444;
}

@media (max-width: 768px) {
    .coc-group-landing-grid {
        grid-template-columns: 1fr;
    }
}

/* === SHARED PAGE SURFACE === */

.coc-page {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.coc-page h1 {
    margin: 0;
    font-size: 20px;
    color: #111827;
}

.coc-page h2 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.coc-page p {
    margin: 0;
    color: #4b5563;
}

/* === SHARED UI ELEMENTS === */

.coc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #111827;
    color: #f9fafb;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coc-btn:active {
    transform: translateY(1px);
}

.coc-btn.secondary {
    background: #ffffff;
    color: #111827;
    border-color: #e5e7eb;
}

.coc-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #f9fafb;
}

.coc-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    gap: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.coc-table {
    width: 100%;
    border-collapse: collapse;
}

.coc-table th,
.coc-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.coc-table th {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    background: #ffffff;
}

.coc-table td {
    font-size: 14px;
    color: #111827;
}

.coc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.coc-table-wrap .coc-table {
    min-width: 560px;
}

.coc-empty {
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
}

/* === СТАРЫЕ БАЗОВЫЕ СТИЛИ (оставим минимальный набор для совместимости) === */

/* Простой отступ и базовая типографика для старых компонентов */
.companion {
    font-size: 24px;
    margin-bottom: 12px;
}

.timer-controls input,
.timer-controls button {
    margin-right: 8px;
    padding: 6px 10px;
}

#coc-timer-display {
    font-size: 32px;
    margin-top: 10px;
}

/* Базовый баннер активной задачи (переопределяется на странице таймера, если нужно) */
.active-banner {
    background: #f6f6f6;
    border: 1px solid #e1e1e1;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 10px 0;
}

.active-banner .label {
    color: #555;
    margin-right: 6px;
}

.active-banner .value {
    font-weight: 600;
}

/* Мини-статистика (если используется где-то ещё) */
.mini-stats {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 10px 0 14px;
    color: #222;
}

.mini-stats span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* Финиш-панель (базовая версия; на таймере есть более cozy вариант в @push('scripts')) */
.finish-panel {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fafafa;
}

.finish-panel h2 {
    margin: 0 0 8px;
}

.finish-summary {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.finish-actions {
    display: flex;
    gap: 10px;
}

.finish-actions .btn {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: #111;
    cursor: pointer;
}

.finish-actions .btn:hover {
    background: #f3f3f3;
}

/* === АДАПТИВ ДЛЯ ШАПКИ === */

@media (max-width: 768px) {
    .coc-header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand profile"
            "nav nav";
        align-items: center;
        gap: 10px 12px;
    }

    .coc-brand {
        grid-area: brand;
        width: auto;
    }

    .coc-nav {
        grid-area: nav;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
        gap: 6px;
    }

    .coc-nav-link {
        padding: 5px 9px;
        font-size: 12px;
    }

    .coc-auth-widget {
        justify-content: flex-end;
    }

    .coc-profile {
        grid-area: profile;
        width: auto;
        justify-content: flex-end;
    }

    .coc-profile-label {
        display: none;
    }

    .coc-container {
        padding: 12px;
    }
}

/* === CAT ON CHAIR TIMER PAGE === */

/* === БАЗОВАЯ КОМПОЗИЦИЯ И ЦЕНТРИРОВАНИЕ === */

/* Единые радиусы (без var() для совместимости) */
/* card: 12px; pill/chip: 999px */

/* Вся страница: колонка, футер внизу, контент по центру */
.coc-timer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0 -16px;
    --coc-controls-max-width: 480px;
    --coc-presets-gap: 6px;
    --coc-presets-row-gap: 10px;
    --coc-presets-row-margin: 8px;
    --coc-preset-size: 48px;
}

.coc-layout-main {
    flex: none;
}

/* Область с основным контентом (без футера) — центрируем по вертикали */
.coc-layout-main {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px 16px 0;
}

/* Внутренняя колонка: header + room + статус + баннер/финиш */
.coc-layout-inner {
    width: 100%;
    max-width: 1040px;
    display: flex;
    flex-direction: column;
    gap: 12px; /* единый вертикальный шаг между блоками */
}

/* === СЦЕНА КОМНАТЫ === */

.coc-room {
    position: relative;
    border-radius: 0;
    overflow: visible;
    width: 100%;
    min-height: auto;
    background: transparent;
    border: none;
    padding: 0;
}

.coc-room-grid {
    display: grid;
    grid-template-columns: 490px 1fr;
    grid-template-rows: auto;
    gap: 16px 20px;
    max-width: 980px;
    margin: 0 auto;
    width: 100%;
}

.coc-cell {
    display: flex;
    align-items: flex-start;
}

#coc-timer-display-control {
    font-family:
            ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
            "Liberation Mono", "Courier New", monospace;
    font-size: 112px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111827;
    background: transparent;
    border: none;
    padding: 0;
}

.companion {
    position: relative;
    display: grid;
    justify-items: start;
    gap: 4px;
    z-index: 3;
}

.companion-avatar {
    font-size: 140px; /* для случая эмодзи-фолбэка */
    transition: transform .25s ease;
}
.companion-avatar img {
    width: 480px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.companion.companion-idle .companion-avatar {
    animation: none;
}

.companion.companion-focus .companion-avatar {
    transform: translateY(-2px) scale(1.02);
}

.companion.companion-success .companion-avatar {
    animation: cat-joy .8s ease-in-out 1;
}

.companion.companion-sad .companion-avatar {
    opacity: 0.9;
    filter: saturate(0.8);
    transform: translateY(1px);
}

@keyframes cat-breathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-1.5px); }
}

@keyframes cat-joy {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-6px); }
    60%  { transform: translateY(0); }
    100% { transform: translateY(-2px); }
}

/* === КОНТРОЛЫ НА СТОЛЕ === */

.coc-main-cell {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0;
}

.coc-cat-cell {
    justify-content: flex-start;
    align-items: center;
}

.coc-room-controls {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
    z-index: 2;
}

.coc-cat-cell .companion-avatar img {
    max-width: 520px;
}


/* Лист бумаги с полем для задачи */
.coc-paper {
    position: relative;
    background: #fffdf7;
    border: 1px solid #efe7d9;
    border-radius: 10px;
    padding: 0;
    box-shadow:
            0 2px 0 rgba(0, 0, 0, 0.02),
            0 10px 24px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.coc-paper input[type=text] {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 16px;
    color: #111827;
    padding: 0 12px;
    height: var(--coc-preset-size);
    box-sizing: border-box;
}

.coc-paper input[type=text]::placeholder {
    color: #9ca3af;
}

.coc-task-display {
    display: none;
}

.coc-room-controls.coc-session-active .coc-task-field input[type="text"] {
    pointer-events: none;
    opacity: 0.6;
}

.coc-task-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coc-task-title {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
    word-break: break-word;
}

/* Пресеты и кнопки */
.coc-timer-widget {
    display: grid;
    gap: 10px;
    justify-items: center;
    align-items: center;
    width: 100%;
}

.coc-controls-stack {
    display: grid;
    gap: 10px;
    width: fit-content;
    max-width: min(100%, var(--coc-controls-max-width));
    margin: 0 auto;
    align-items: stretch;
}

/* Ряд с пресетами и кастомным вводом */
.coc-presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--coc-presets-row-gap);
    align-items: center;
    width: 100%;
    margin-bottom: var(--coc-presets-row-margin);
}

.coc-presets {
    display: flex;
    gap: var(--coc-presets-gap);
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.coc-preset {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    height: var(--coc-preset-size);
    width: var(--coc-preset-size);
    padding: 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.coc-preset.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.coc-wood-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    justify-content: center;
}

.coc-wood-buttons .is-hidden {
    display: none;
}

.coc-wood-btn {
    border: none;
    border-radius: 5px;
    min-height: 48px;
    width: 100px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    box-shadow:
            0 2px 0 rgba(0, 0, 0, 0.04),
            0 6px 14px rgba(0, 0, 0, 0.06);
}

.coc-wood-btn.green {
    background: linear-gradient(#2ecc71, #27ae60);
    color: white;
}

.coc-wood-btn.yellow {
    background: linear-gradient(#f6d365, #fda085);
    color: #4b5563;
}

.coc-wood-btn.red {
    background: linear-gradient(#f87171, #ef4444);
    color: white;
}

.coc-room-controls.coc-session-active .coc-presets-row {
    display: none;
}

.coc-room-controls.coc-session-active .coc-task-field {
    display: none;
}

.coc-room-controls.coc-session-active .coc-task-display {
    display: block;
}

/* Подпись под контролами */
.coc-controls-caption {
    text-align: center;
    font-size: 12px;
    color: #9ca3af;
    margin-top: 12px;
    opacity: 0.9;
}

/* === АДАПТИВНОСТЬ (ПЛАНШЕТ) === */
@media (max-width: 1024px) {
    .coc-layout-main {
        padding: 20px 16px;
    }

    .coc-room {
        min-height: clamp(340px, 60vh, 480px);
    }

    #coc-timer-display-control {
        font-size: 80px;
    }

    .companion-avatar img {
        width: 320px;
    }
}

/* === АДАПТИВНОСТЬ (МОБИЛКА) === */
@media (max-width: 768px) {
    .coc-timer {
        margin: 0 -12px;
        --coc-controls-max-width: 100%;
    }

    .coc-layout-main {
        padding: 16px;
        align-items: stretch; /* если контента много, чтобы не обрезался по центру */
    }

    .coc-layout-inner {
        gap: 12px;
    }

    .coc-room {
        padding-top: 12px;
        padding-bottom: 20px;
    }

    .coc-room-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cat"
            "main";
        grid-template-rows: auto;
        gap: 12px;
    }

    .coc-main-cell {
        grid-area: main;
    }

    .coc-cat-cell {
        grid-area: cat;
    }

    #coc-timer-display-control {
        font-size: 56px;
    }

    .coc-cat-cell {
        grid-row: auto;
        justify-content: center;
    }

    .companion {
        justify-items: center;
    }

}

@media (max-width: 750px) {
    .coc-preset[data-min="45"],
    .coc-preset[data-min="60"] {
        display: none;
    }

    .companion-avatar {
        font-size: 42px;
    }

    .companion-avatar img {
        width: 168px;
    }
}

@media (max-width: 360px) {
    .coc-wood-btn {
        padding: 14px 18px;
        font-size: 12px;
    }

    .companion-avatar img {
        width: 240px;
    }
}

@media (max-width: 320px) {
    .coc-room {
        min-height: 400px;
    }

    .coc-wood-buttons {
        gap: 6px;
    }

    .coc-wood-btn {
        padding: 7px 9px;
        font-size: 11px;
    }
}
