/* mozaika.css — terapeutická hra kolíková mozaika (mobile first, iOS + Android) */

.moz_section {
    padding-inline: clamp(var(--space-xs), 3%, var(--space-l));
    padding-bottom: clamp(var(--space-2xl), 8vh, var(--space-3xl));
    scroll-margin-top: 90px;
}

.moz_head {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
    padding-bottom: var(--space-m);
}
.moz_head .relax_nadpis {
    font-size: clamp(1.6rem, 5vw, 3rem);
    margin-bottom: var(--space-2xs);
}

.moz_wrap {
    max-width: 860px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.moz_glass {
    background: rgba(255, 255, 255, 0.5);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(3, 252, 201, 0.3);
    border-radius: 20px;
    box-shadow: 0 6px 28px rgba(1, 61, 91, 0.08);
}

/* ================= NASTAVENÍ (dropdown + záložky) ================= */
.moz_settings > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: var(--step--1);
    color: var(--blue3);
    -webkit-tap-highlight-color: transparent;
}
.moz_settings > summary::-webkit-details-marker { display: none; }
.moz_settings > summary svg { width: 20px; height: 20px; stroke: var(--blue1); flex: none; }
.moz_summary_txt {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--blue2);
    font-size: var(--step--2);
    margin-left: auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moz_chev { transition: transform 0.25s; }
.moz_settings[open] .moz_chev { transform: rotate(180deg); }

.moz_tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 0 12px;
    padding: 4px;
    border-radius: 50px;
    background: rgba(1, 61, 91, 0.06);
}
.moz_tab {
    border: 0;
    background: transparent;
    border-radius: 50px;
    min-height: 40px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--step--2);
    color: var(--blue2);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.moz_tab[aria-selected="true"] {
    background: #fff;
    color: var(--blue3);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(1, 61, 91, 0.12);
}
.moz_tabpanel {
    padding: 14px 16px 16px;
}
.moz_tabpanel[hidden] { display: none; }
.moz_note {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--blue2);
    opacity: 0.85;
    margin-top: 10px;
}

.moz_chips { display: flex; flex-wrap: wrap; gap: 8px; }
.moz_chip {
    font-family: 'Poppins', sans-serif;
    font-size: var(--step--2);
    color: var(--blue3);
    padding: 8px 14px;
    min-height: 44px;
    border-radius: 50px;
    border: 1px solid rgba(3, 252, 201, 0.5);
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.moz_chip.active {
    background: linear-gradient(180deg, #00798b 0%, #0a5b67 100%);
    border-color: transparent;
    color: #fff;
}
.moz_chip small { opacity: 0.7; }
.moz_chip_shape { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; opacity: 0.8; }

/* předlohy – posuvná řada */
.moz_templates {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 2px 16px 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.moz_templates::-webkit-scrollbar { display: none; }
.moz_tpl {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 78px;
    padding: 6px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--blue3);
    -webkit-tap-highlight-color: transparent;
}
.moz_tpl canvas { width: 64px; height: 64px; border-radius: 10px; box-shadow: 0 3px 10px rgba(1, 61, 91, 0.18); }
.moz_tpl.active { border-color: var(--blue1); background: rgba(3, 252, 201, 0.12); }

.moz_switch {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
    font-family: 'Poppins', sans-serif; font-size: var(--step--2); color: var(--blue3);
    cursor: pointer; user-select: none; -webkit-user-select: none;
}
.moz_switch input { position: absolute; opacity: 0; pointer-events: none; }
.moz_switch_track { width: 40px; height: 22px; border-radius: 22px; background: rgba(1, 61, 91, 0.2); position: relative; transition: background 0.25s; flex: none; }
.moz_switch_track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.25s; }
.moz_switch input:checked + .moz_switch_track { background: var(--blue1); }
.moz_switch input:checked + .moz_switch_track::after { transform: translateX(18px); }

/* ================= PALETA NAD DESKOU ================= */
.moz_palette {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 0 8px 8px;
    transition: opacity 0.3s;
}
.moz_heights {
    flex: none;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(1, 61, 91, 0.06);
}
.moz_hbtn {
    width: 30px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 7px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.moz_hbtn i {
    display: block;
    width: 10px;
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(90deg, #7c96a3, #c6d4da 45%, #7c96a3);
}
.moz_hbtn[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 6px rgba(1, 61, 91, 0.15); }
.moz_hbtn[aria-pressed="true"] i { background: linear-gradient(90deg, #005a68, #2fb7c7 45%, #005a68); }

.moz_colors_scroll {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent 100%);
}
.moz_colors_scroll::-webkit-scrollbar { display: none; }
.moz_colors {
    display: flex;
    gap: 8px;
    padding: 6px 22px 8px 10px;
    width: max-content;
}
.moz_peg {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    cursor: grab;
    scroll-snap-align: start;
    touch-action: pan-x;               /* vodorovně posun řady, svisle tah na desku */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55) 0 12%, rgba(255,255,255,0) 38%),
        radial-gradient(circle at 50% 50%, var(--c) 0 58%, color-mix(in srgb, var(--c) 72%, #000) 72%, color-mix(in srgb, var(--c) 55%, #000) 100%);
    box-shadow: 1px 3px 5px rgba(40, 25, 10, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.moz_peg.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue1), 1px 4px 8px rgba(40,25,10,0.35);
}
.moz_peg:focus-visible, .moz_hbtn:focus-visible, .moz_tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ================= DESKA ================= */
.moz_board_area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.moz_board_outer {
    position: relative;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(60, 35, 10, 0.25), 0 14px 40px rgba(1, 61, 91, 0.22);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    transition: box-shadow 0.6s, background 0.6s;
}
#mozCanvas {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    touch-action: none;
    cursor: pointer;
}
.moz_is3d .moz_board_outer {
    box-shadow: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.9), rgba(215,230,233,0.55) 70%, rgba(215,230,233,0) 100%);
}
.moz_is3d #mozCanvas { cursor: grab; }

.moz_hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    pointer-events: none;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.95rem, 2.4vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 6px rgba(60, 35, 10, 0.55);
    transition: opacity 0.5s;
}
.moz_hint.hide { opacity: 0; }
.moz_is3d .moz_hint { align-items: flex-end; padding-bottom: 14px; color: var(--blue2); text-shadow: none; font-size: var(--step--2); }

/* plovoucí přepínač 3D */
.moz_3dbtn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 16px 8px 12px;
    border-radius: 50px;
    border: 0;
    background: rgba(1, 61, 91, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(1, 61, 91, 0.3);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s, background 0.25s;
}
.moz_3dbtn svg { width: 20px; height: 20px; stroke: var(--green); }
.moz_3dbtn:active { transform: scale(0.96); }
.moz_is3d .moz_3dbtn { background: linear-gradient(180deg, #edad49 0%, #d4882a 100%); }
.moz_is3d .moz_3dbtn svg { stroke: #fff; }

.moz_status {
    font-family: 'Poppins', sans-serif;
    font-size: var(--step--2);
    color: var(--blue2);
    text-align: center;
}
.moz_status b { color: var(--blue3); font-weight: 700; font-family: 'Montserrat', sans-serif; }

/* ================= AKCE ================= */
.moz_actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.moz_btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 4px;
    border: 1px solid rgba(3, 252, 201, 0.4);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    color: var(--blue3);
    -webkit-tap-highlight-color: transparent;
    transition: background 0.25s, border-color 0.25s, color 0.25s, opacity 0.25s;
}
.moz_btn svg { width: 22px; height: 22px; stroke: var(--blue3); }
.moz_btn.active { background: rgba(3, 252, 201, 0.15); border-color: var(--green); }
.moz_btn.active svg { stroke: var(--blue1); }
.moz_btn:disabled { opacity: 0.35; cursor: default; }
.moz_btn--warm { border-color: var(--orange); color: var(--orange); }
.moz_btn--warm svg { stroke: var(--orange); }
@media (hover: hover) {
    .moz_chip:hover { border-color: var(--blue1); }
    .moz_btn:not(:disabled):hover { background: rgba(3, 252, 201, 0.15); border-color: var(--green); }
    .moz_btn--warm:not(:disabled):hover { background: linear-gradient(180deg, #edad49 0%, #d4882a 100%); color: #fff; border-color: transparent; }
    .moz_btn--warm:not(:disabled):hover svg { stroke: #fff; }
    .moz_peg:hover { transform: translateY(-2px); }
}

/* ve 3D se neskládá */
.moz_is3d .moz_palette { opacity: 0.35; pointer-events: none; }

/* ================= TAŽENÝ KOLÍK ================= */
.moz_ghost {
    position: fixed;
    left: 0; top: 0;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background:
        radial-gradient(circle at 35% 30%, rgba(255,255,255,0.55) 0 12%, rgba(255,255,255,0) 38%),
        radial-gradient(circle at 50% 50%, var(--c) 0 58%, color-mix(in srgb, var(--c) 72%, #000) 72%, color-mix(in srgb, var(--c) 55%, #000) 100%);
    box-shadow: 4px 12px 18px rgba(40, 25, 10, 0.35);
    will-change: transform;
    transition: opacity 0.15s;
}

/* ================= RÁMEČEK DOKUMENTU NAD DESKOU ================= */
.moz_doc {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-family: 'Poppins', sans-serif;
    font-size: var(--step--2);
    color: var(--blue2);
    min-height: 1.6em;
}
.moz_doc_name { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--blue3); }
.moz_doc_dirty {
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.moz_doc_dirty::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.moz_doc_dirty[hidden] { display: none; }

.moz_btn--save { border-color: var(--blue1); }
.moz_btn_ico { position: relative; display: inline-flex; }
.moz_count {
    position: absolute;
    top: -6px; right: -10px;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--blue1);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
}
.moz_count[hidden] { display: none; }

/* ================= SPODNÍ PANELY (sheet) ================= */
html.moz_lock, html.moz_lock body { overflow: hidden; }
.moz_backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(1, 61, 91, 0.35);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.28s;
}
.moz_backdrop.show { opacity: 1; }
.moz_backdrop[hidden], .moz_sheet[hidden] { display: none; }

.moz_sheet {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1001;
    max-height: min(86vh, 86dvh);
    display: flex;
    flex-direction: column;
    background: #f6fbfb;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 40px rgba(1, 61, 91, 0.25);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
    font-family: 'Poppins', sans-serif;
    color: var(--blue3);
}
.moz_sheet.show { transform: translateY(0); }
.moz_sheet_grip { width: 42px; height: 5px; border-radius: 3px; background: rgba(1, 61, 91, 0.2); margin: 8px auto 0; }
.moz_sheet_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 8px 20px;
}
.moz_sheet_head h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: var(--step-1); margin: 0; color: var(--blue3); }
.moz_sheet_close {
    position: relative;
    width: 44px; height: 44px;
    border: 0; background: transparent; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.moz_sheet_close span { position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: var(--blue3); border-radius: 2px; }
.moz_sheet_close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.moz_sheet_close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.moz_sheet_body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.moz_sheet_foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid rgba(3, 252, 201, 0.3);
}
.moz_sheet_foot .moz_note { margin: 0; }

.moz_save_top { display: flex; align-items: center; gap: 14px; }
.moz_save_top img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; box-shadow: 0 4px 14px rgba(1, 61, 91, 0.2); background: #c4a179; flex: none; }
.moz_warn { color: var(--red); font-size: var(--step--2); margin: 0; }
.moz_modes { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.moz_modes[hidden], .moz_field[hidden] { display: none; }
.moz_radio {
    display: flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 8px 14px;
    border: 1px solid rgba(3, 252, 201, 0.5);
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    font-size: var(--step--1);
    cursor: pointer;
}
.moz_radio input { width: 20px; height: 20px; accent-color: var(--blue1); flex: none; }
.moz_radio:has(input:checked) { border-color: var(--blue1); background: rgba(3, 252, 201, 0.12); }
.moz_field { display: flex; flex-direction: column; }
.moz_field input {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;                 /* < 16 px by iOS při psaní zoomoval stránku */
    color: var(--blue3);
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 14px;
    border: 1px solid rgba(1, 61, 91, 0.2);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
}
.moz_field input:focus { outline: 2px solid var(--blue1); outline-offset: 1px; border-color: transparent; }
.moz_primary { min-height: 48px; }
.moz_primary:disabled { opacity: 0.4; pointer-events: none; }
.moz_textbtn {
    border: 0; background: transparent; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-size: var(--step--2);
    color: var(--blue1); text-decoration: underline; text-underline-offset: 3px;
    min-height: 44px; padding: 0 4px;
}

/* galerie */
.moz_empty { font-size: var(--step--1); color: var(--blue2); line-height: 1.7; text-align: center; padding: 24px 8px; margin: 0; }
.moz_card {
    border: 1px solid rgba(3, 252, 201, 0.35);
    border-radius: 18px;
    background: rgba(255,255,255,0.7);
    padding: 12px;
}
.moz_card.current { border-color: var(--blue1); box-shadow: 0 0 0 1px var(--blue1) inset; }
.moz_card_head { display: flex; gap: 12px; align-items: center; }
.moz_card_head img { width: 72px; height: 72px; object-fit: contain; border-radius: 10px; background: #c4a179; box-shadow: 0 3px 10px rgba(1, 61, 91, 0.18); flex: none; }
.moz_card_txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.moz_card_txt h4 { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: var(--step-0); color: var(--blue3); overflow-wrap: anywhere; }
.moz_card_txt > span { font-size: 0.78rem; color: var(--blue2); }
.moz_vers { margin-top: 10px; }
.moz_vers summary {
    cursor: pointer; list-style: none;
    font-size: var(--step--2); color: var(--blue1);
    min-height: 36px; display: flex; align-items: center; gap: 6px;
}
.moz_vers summary::-webkit-details-marker { display: none; }
.moz_vers summary::after { content: "▾"; transition: transform 0.2s; }
.moz_vers[open] summary::after { transform: rotate(180deg); }
.moz_vers ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.moz_ver {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 6px 8px;
    border-radius: 12px;
    background: rgba(1, 61, 91, 0.04);
}
.moz_ver.current { background: rgba(3, 252, 201, 0.14); }
.moz_ver img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #c4a179; flex: none; }
.moz_ver_txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.8rem; }
.moz_ver_txt b { font-family: 'Montserrat', sans-serif; color: var(--blue3); }
.moz_ver_txt .moz_ver_meta { color: var(--blue2); font-size: 0.74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moz_ver_txt .moz_badge { align-self: flex-start; margin: 2px 0 1px; }
.moz_badge { display: inline-block; font-size: 0.66rem; font-weight: 400; color: #fff; background: var(--blue1); border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.moz_mini {
    flex: none;
    min-height: 40px; min-width: 40px;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--blue1);
    background: #fff;
    font-family: 'Poppins', sans-serif; font-size: 0.78rem; color: var(--blue3);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.moz_mini--primary { background: linear-gradient(180deg, #00798b 0%, #0a5b67 100%); color: #fff; border-color: transparent; min-height: 36px; }
.moz_mini--del { padding: 6px; border-color: rgba(209, 73, 92, 0.4); }
.moz_mini--del svg { width: 18px; height: 18px; stroke: var(--red); }
.moz_mini.armed, .moz_linkdel.armed { background: var(--red); color: #fff; border-color: var(--red); padding-inline: 10px; font-size: 0.72rem; }
.moz_linkdel {
    margin-top: 8px;
    border: 0; background: transparent; cursor: pointer;
    font-family: 'Poppins', sans-serif; font-size: 0.78rem; color: var(--red);
    min-height: 40px; padding: 0 10px; border-radius: 50px;
}

/* toast */
.moz_toast {
    position: fixed;
    left: 50%;
    top: calc(16px + env(safe-area-inset-top, 0px));
    text-align: center;
    z-index: 1100;
    max-width: calc(100vw - 32px);
    transform: translate(-50%, -20px);
    opacity: 0;
    pointer-events: none;
    padding: 12px 18px;
    border-radius: 50px;
    background: var(--blue3);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: var(--step--2);
    box-shadow: 0 8px 24px rgba(1, 61, 91, 0.3);
    transition: opacity 0.25s, transform 0.25s;
}
.moz_toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 700px) {
    .moz_sheet {
        left: 50%; right: auto; bottom: auto; top: 50%;
        width: min(520px, calc(100vw - 48px));
        max-height: min(80vh, 760px);
        border-radius: 22px;
        transform: translate(-50%, -46%);
        opacity: 0;
        transition: transform 0.28s cubic-bezier(.2,.8,.2,1), opacity 0.28s;
    }
    .moz_sheet.show { transform: translate(-50%, -50%); opacity: 1; }
    .moz_sheet_grip { display: none; }
}

/* ================= DESKTOP ================= */
@media (min-width: 960px) {
    .moz_settings > summary { padding-inline: 20px; }
    .moz_tabs { margin-inline: 20px; max-width: 420px; }
    .moz_tabpanel { padding-inline: 20px; }
    .moz_templates { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
    .moz_palette { padding: 10px 10px 10px 12px; }
    .moz_colors_scroll { -webkit-mask-image: none; mask-image: none; }
    .moz_colors { gap: 6px; padding: 6px; }
    .moz_colors .moz_peg { width: 36px; height: 36px; }
}

/* rozcestník se 4 pilíři */
.relax-nav-pilire.moz_four { grid-template-columns: repeat(4, 1fr); max-width: 1040px; }
@media (max-width: 760px) {
    .relax-nav-pilire.moz_four { grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
    .relax-nav-pilire.moz_four .relax-pilir { padding: var(--space-s) var(--space-xs); }
}

@media (prefers-reduced-motion: reduce) {
    .moz_peg, .moz_btn, .moz_chip, .moz_hint, .moz_tab, .moz_chev, .moz_sheet, .moz_backdrop, .moz_toast { transition: none; }
}
