/* Mobile-only layout. Desktop scene coordinates and artwork are untouched. */
@media screen and (max-width:767.98px), screen and (max-width:1023.98px) and (pointer:coarse) and (max-height:600px) {
body:is([data-mobile-page="Home"],[data-mobile-page="Zvire"],[data-mobile-page="Form"],[data-mobile-page="About"]) { margin:0; background:#fbf7e9; color:#294533; padding:0 0 calc(82px + env(safe-area-inset-bottom)); font-family:Georgia,'Times New Roman',serif; }
body:is([data-mobile-page="Home"],[data-mobile-page="Zvire"]) > .concept-home-page { display:none; }
.mobile-only { display:block; }
.mobile-header { position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; max-width:620px; margin:auto; padding:12px 18px; border-bottom:1px solid #c4a35c; background:linear-gradient(120deg,#fbf7e9e8,#f1ecd9ed),url('/img/mobile/meadow-v1.webp') center top/cover; }
.mobile-brand { display:flex; align-items:center; gap:10px; color:#294533; text-decoration:none; font-size:clamp(24px,7vw,34px); font-weight:bold; line-height:.98; }
.mobile-brand img { display:block; width:72px; height:72px; object-fit:contain; border-radius:50%; }
.mobile-menu summary { list-style:none; width:48px; height:48px; display:grid; place-items:center; font-size:27px; cursor:pointer; }
.mobile-menu summary::-webkit-details-marker { display:none; }
.mobile-menu nav { position:absolute; top:100%; right:12px; left:12px; z-index:1080; padding:8px; border:1px solid #b79c61; border-radius:12px; background:#fffcef; box-shadow:0 8px 24px #29453330; }
.mobile-menu nav a { display:block; padding:12px 16px; color:#294533; text-decoration:none; font-family:system-ui,sans-serif; }
.mobile-bottom-nav { position:fixed; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); z-index:1035; inset:auto 0 0; padding:7px max(8px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom)); border-top:1px solid #b79c61; background:#faf7e9f7; box-shadow:0 -3px 15px #29453310; }
.mobile-bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:0; min-height:56px; border-radius:10px; color:#294533; text-decoration:none; font-size:13px; line-height:1.2; }
.mobile-bottom-nav i { font-size:23px; }
.mobile-bottom-nav a[aria-current="page"] { background:#dce3bd; font-weight:bold; }
.mobile-home,.mobile-listing { max-width:620px; margin:auto; }
.mobile-hero { height:clamp(205px,66vw,360px); background:url('/img/mobile/hero-v1.webp') center center/cover no-repeat; }
.mobile-home-intro { position:relative; margin-top:-17px; padding:0 16px 16px; text-align:center; }
.mobile-home h1 { font-size:clamp(24px,7.2vw,38px); font-weight:bold; line-height:1.15; margin:0 0 12px; }
.mobile-home-intro p { font-size:17px; line-height:1.5; margin-bottom:18px; font-style:italic; }
.mobile-button { display:flex; align-items:center; justify-content:center; gap:10px; min-height:48px; padding:10px 15px; border:1px solid #b89448; border-radius:15px; background:linear-gradient(#fffdf4,#f7edcc); color:#294533; font-size:17px; font-weight:bold; text-align:center; text-decoration:none; line-height:1.3; box-shadow:0 2px 3px #5a4b2420; }
.mobile-button--primary { color:#fffbea; background:linear-gradient(#506a27,#2b491d); border:2px solid #c9ac61; font-size:21px; }
.mobile-button:hover,.mobile-button:focus-visible { color:#294533; outline:3px solid #758b4e; outline-offset:2px; }
.mobile-button--primary:hover,.mobile-button--primary:focus-visible { color:#fffbea; }
.mobile-search { display:flex; gap:0; margin:15px 0 0; min-height:50px; border:1px solid #bca77c; border-radius:14px; background:#fffcf1; overflow:hidden; }
.mobile-search input { width:100%; min-width:0; padding:10px 12px; border:0; outline-offset:-3px; background:transparent; font:16px/1.4 system-ui,sans-serif; color:#294533; }
.mobile-search button { flex:0 0 50px; border:0; background:transparent; color:#294533; font-size:21px; }
.mobile-categories { padding:8px 14px 28px; }
.mobile-categories h2 { font-size:25px; font-weight:bold; text-align:center; margin:0 0 16px; }
.mobile-category-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.mobile-category { display:flex; align-items:center; gap:8px; min-width:0; min-height:86px; padding:10px 8px; border:1px solid #c1ad7b; border-radius:15px; background:linear-gradient(145deg,#fffdf4,#f3e8c9); color:#294533; text-decoration:none; font-size:clamp(16px,4.6vw,23px); font-weight:bold; }
.mobile-category__picture { display:grid; place-items:center; flex:0 0 52px; width:52px; height:60px; border-radius:50% 50% 12% 12%; background:#e6e2d0; border:1px solid #c4bda4; }
.mobile-category__picture img { width:44px; height:44px; object-fit:contain; mix-blend-mode:multiply; }
.mobile-listing__controls { padding:12px 16px 0; }
.mobile-back { display:inline-flex; align-items:center; gap:9px; min-height:44px; color:#294533; text-underline-offset:3px; font-size:16px; }
.mobile-listing h1 { font-weight:bold; font-size:32px; text-align:center; margin:6px 0 10px; overflow-wrap:anywhere; }
.mobile-section-picker { margin:12px 0 0; font-family:system-ui,sans-serif; font-size:15px; }
.mobile-section-picker summary { cursor:pointer; padding:10px 0; min-height:44px; }
.mobile-section-picker nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:8px; border:1px solid #d0c29e; border-radius:12px; }
.mobile-section-picker nav a { display:block; padding:10px; border-radius:8px; color:#294533; text-decoration:none; }
.mobile-section-picker a[aria-current] { background:#dce3bd; font-weight:600; }
.mobile-meadow-controls { display:flex; align-items:center; gap:8px; justify-content:space-between; margin:10px 0 14px; }
.mobile-arrow { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border:1px solid #c1a664; border-radius:12px; background:#fcf2d5; color:#294533; text-decoration:none; font-size:22px; }
.mobile-arrow[inert] { opacity:.35; }
.mobile-meadow-controls select { max-width:100%; min-width:0; flex:1; min-height:46px; padding:8px 5px; border:0; background:transparent; color:#294533; font:bold 18px Georgia,serif; text-align:center; }
.mobile-meadow { margin-top:14px; padding:clamp(90px,25vw,155px) 10px 20px; background:#d0dd9c url('/img/mobile/meadow-v1.webp') center top/100% 100% no-repeat; }
.mobile-graves { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 8px; }
.mobile-grave-wrap { position:relative; min-width:0; }
.mobile-grave { display:block; position:relative; width:100%; aspect-ratio:3/4; color:#294533; background:url('/img/mobile/stone-v1.webp') center/100% 100% no-repeat; text-decoration:none; }
.mobile-grave__photo { position:absolute; top:16%; left:20%; width:60%; height:41%; object-fit:cover; border-radius:48% 48% 3% 3%; background:#e8e8de; }
.mobile-grave__photo[src*="/img/placeholders/"] { object-fit:contain; padding:4px; background:#f9f7e9; }
.mobile-grave__name { position:absolute; top:59%; left:9%; display:flex; align-items:center; justify-content:center; width:82%; height:23%; overflow:hidden; text-align:center; overflow-wrap:anywhere; font-size:clamp(15px,4.5vw,24px); font-weight:bold; line-height:1.08; text-shadow:0 1px #fff8; }
.mobile-grave__dates { position:absolute; top:81%; left:10%; width:80%; text-align:center; font-size:clamp(13px,3.6vw,19px); line-height:1.2; }
.mobile-grave__edit { position:absolute; bottom:-3px; right:0; display:grid; place-items:center; width:44px; height:44px; border:1px solid #c0aa6d; border-radius:50%; background:#fffae6; color:#294533; }
.mobile-empty { padding:20px; border-radius:15px; background:#fffbeded; font:17px/1.5 system-ui,sans-serif; }
.mobile-meadow-pagination { display:flex; justify-content:space-between; gap:10px; margin:22px 0 0; }
.mobile-meadow-pagination .mobile-button { flex:1; padding:10px 8px; font-size:15px; }
.mobile-detail-intro { max-width:620px; padding:8px 16px; margin:auto; }
body[data-mobile-page="Zvire"][data-mobile-detail="true"] #petModal { display:block!important; position:static; width:auto; height:auto; overflow:visible; opacity:1; z-index:auto; }
body[data-mobile-detail="true"] #petModal .modal-dialog { display:block; width:auto; max-width:600px; min-height:0; margin:0 auto; padding:0 14px 22px; transform:none!important; }
body[data-mobile-detail="true"] #petModal .modal-content { display:block; height:auto; max-height:none; overflow:visible; border:0; border-radius:0; background:transparent; box-shadow:none; color:#294533; }
body[data-mobile-detail="true"] #petModal .modal-header { display:block; padding:4px 0 14px; border:0; background:transparent; color:#294533; text-align:center; }
body[data-mobile-detail="true"] #petModal .modal-title { margin:0; font:bold clamp(32px,10vw,45px)/1.15 Georgia,serif; overflow-wrap:anywhere; }
body[data-mobile-detail="true"] #petModal .modal-header::after { content:'Navždy v našich srdcích'; display:block; margin-top:10px; font:italic 18px Georgia,serif; }
body[data-mobile-detail="true"] #petModal .btn-close { display:none; }
body[data-mobile-detail="true"] #petModal .modal-body { padding:0; overflow:visible; }
body[data-mobile-detail="true"] #petModal .pet-memorial__photo-frame { position:relative; height:auto; margin:0 0 16px; padding:0; border:0; background:transparent; }
body[data-mobile-detail="true"] #petFoto { display:block; width:100%; height:auto; max-height:460px; aspect-ratio:1.15; padding:7px; object-fit:contain; border:1px solid #c4a665; border-radius:24px; background:#fffcef; }
body[data-mobile-detail="true"] #petModal .pet-memorial__photo-frame::after { content:''; position:absolute; width:95px; height:55px; bottom:-7px; right:-3px; background:url('/img/brand/social-rainbow-mini-bridge.png') center/contain no-repeat; pointer-events:none; }
body[data-mobile-detail="true"] #petText { margin:18px 0 0; padding:22px 16px; border:1px solid #ccb682; border-radius:20px; background:linear-gradient(130deg,#fffdf5,#f7f0dc); white-space:pre-wrap; overflow-wrap:anywhere; font:18px/1.7 Georgia,serif; }
body[data-mobile-detail="true"] #petModal .pet-memorial__dates { margin-top:16px; border-color:#cdbd91; }
body[data-mobile-detail="true"] #petModal .modal-body p:not(#petText) { margin:14px 0; font:16px/1.5 Georgia,serif; }
body[data-mobile-detail="true"] #petRemembererRow { padding:14px 8px; border-bottom:1px solid #c5ac6c; }
body[data-mobile-detail="true"] #petModal .pet-share { padding:20px 0; border:0; background:transparent; }
body[data-mobile-detail="true"] #petModal .pet-share__heading { font:bold 25px Georgia,serif; margin-bottom:14px; }
body[data-mobile-detail="true"] #petModal .pet-share__buttons>.btn { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 14px; font-size:16px; border-radius:13px; }
body[data-mobile-detail="true"] #petModal .pet-share__buttons>:is(.pet-share__facebook,.pet-share__instagram),
body[data-mobile-detail="true"] #petModal .pet-share__buttons>:is(.pet-share__facebook,.pet-share__instagram):is(:hover,:focus-visible,:active) { flex:1; color:#294533; border:1px solid #bb963f; background:linear-gradient(#fffdf4,#f7edcc); filter:none; font-weight:bold; }
body[data-mobile-detail="true"] #petModal .pet-share__details { max-height:none; overflow:visible; text-align:left; }
body[data-mobile-detail="true"] #petModal .pet-share__details .small { font-size:15px; line-height:1.5; }
body[data-mobile-detail="true"] #petModal .pet-share__details textarea { font-size:16px; }
body[data-mobile-detail="true"] #petModal .pet-share__buttons>[hidden] { display:none; }
.mobile-only a:focus-visible,.mobile-only button:focus-visible,.mobile-only summary:focus-visible { outline:3px solid #637b36; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { body[data-mobile-detail="true"] #petModal { transition:none; } }
/* Reading pages and the original single form share the same mobile shell. */
body:is([data-mobile-page="Form"],[data-mobile-page="About"]) > .concept-home-page { display:block; width:100%; max-width:620px; height:auto; min-height:0; margin:0 auto; padding:20px 14px 28px; aspect-ratio:auto; background:transparent; overflow:visible; }
body:is([data-mobile-page="Form"],[data-mobile-page="About"]) .concept-home { position:relative; width:100%; height:auto; min-height:0; aspect-ratio:auto; padding:0; border:0; border-radius:0; background:none; overflow:visible; box-shadow:none; }
body:is([data-mobile-page="Form"],[data-mobile-page="About"]) :is(.concept-home__scene,.concept-home__shared-gate,.concept-home__shared-pillars,.concept-home__header-controls) { display:none; }
body[data-mobile-page="Form"] .concept-form__content,
body[data-mobile-page="About"] .concept-about:not(.concept-error) .concept-about__content { position:static; display:block; inset:auto; width:100%; height:auto; min-height:0; max-height:none; margin:0; padding:0; overflow:visible; transform:none; text-shadow:none; }
body[data-mobile-page="Form"] .form-page__panel { position:static; width:100%; max-width:none; height:auto; min-height:0; margin:0; padding:20px 16px; border:1px solid #cdb884; border-radius:20px; background:linear-gradient(135deg,#fffdf4,#f7efda); transform:none; box-shadow:none; }
.mobile-content-title, body[data-mobile-page="About"] .concept-about__intro h1 { color:#294533; margin:0 0 18px; font:bold 32px/1.2 Georgia,serif; text-align:center; }
body[data-mobile-page="Form"] .form-page__panel .middle-text { margin:0 0 22px; font:17px/1.5 Georgia,serif; text-align:center; }
body[data-mobile-page="Form"] .form-page__panel .middle-content { width:100%; margin:0; padding:0; }
body[data-mobile-page="Form"] .form-page__table { display:block; width:100%; max-width:none; margin:0; padding:0; }
body[data-mobile-page="Form"] .form-page__table tbody { display:grid; grid-template-columns:minmax(0,1fr); gap:17px; width:100%; }
body[data-mobile-page="Form"] .form-page__table tr { display:grid; grid-template-columns:minmax(0,1fr); grid-column:auto; gap:6px; width:100%; margin:0; }
body[data-mobile-page="Form"] .form-page__table td,
body[data-mobile-page="Form"] .form-page__table tr:nth-child(-n+8) td:last-child { display:block; width:100%; min-width:0; padding:0; text-align:left; }
body[data-mobile-page="Form"] .form-page__table label { font:600 16px/1.4 system-ui,sans-serif; color:#294533; }
body[data-mobile-page="Form"] .form-page__table :is(input:not([type="submit"]):not([type="file"]):not([type="hidden"]),select,textarea) { display:block; width:100%; min-width:0; max-width:100%; min-height:48px; margin:0; padding:11px 12px; border:1px solid #bca77c; border-radius:11px; background:#fffef8; color:#294533; font:16px/1.4 system-ui,sans-serif; box-sizing:border-box; }
body[data-mobile-page="Form"] .form-page__table textarea { min-height:160px; resize:vertical; }
body[data-mobile-page="Form"] .form-page__required-field { padding-right:17px; }
body[data-mobile-page="Form"] .form-page__required-field > .form-page__required-star { left:auto; right:0; }
body[data-mobile-page="Form"] .form-page__table input[type="file"] { display:block; width:100%; max-width:100%; font:15px/1.5 system-ui,sans-serif; }
body[data-mobile-page="Form"] .form-page__table input[type="file"]::file-selector-button,
body[data-mobile-page="Form"] .form-page__photo-button { min-height:48px; padding:12px 8px; border:1px solid #bca77c; border-radius:11px; background:#fff9e8; font:16px/1.4 system-ui,sans-serif; }
body[data-mobile-page="Form"] .form-page__table .form-page__photo-input { display:block; position:absolute; width:1px!important; min-height:0; height:1px; }
body[data-mobile-page="Form"] .form-page__photo-name { margin-top:6px; font-size:14px; }
body[data-mobile-page="Form"] .form-page__table input[type="submit"] { display:block; width:100%; min-height:52px; margin:0; padding:12px; border:2px solid #c9ac61; border-radius:14px; color:#fffbea; background:linear-gradient(#506a27,#2b491d); font:bold 20px/1.3 Georgia,serif; }
body[data-mobile-page="Form"] .form-page__required-note { margin-top:20px; font:14px/1.5 system-ui,sans-serif; }
body[data-mobile-page="Form"] .concept-form .alert { padding:12px; margin:8px 0; font:16px/1.5 system-ui,sans-serif; }
body[data-mobile-page="Form"] .form-page__thanks { display:block; min-height:0; padding:18px 0; font:18px/1.6 Georgia,serif; }
body[data-mobile-page="Form"] .form-page__thanks h1 { font:bold 30px/1.2 Georgia,serif; margin-bottom:20px; }
body[data-mobile-page="Form"] .form-page__thanks-link { display:flex; justify-content:center; align-items:center; min-height:48px; padding:10px; border:1px solid #b99c54; border-radius:12px; background:#fffbed; }
body[data-mobile-page="About"] .concept-about__content { text-align:left; }
body[data-mobile-page="About"] :is(.concept-about__intro,.concept-about__rules,.concept-about__contact) { width:100%; padding:20px 16px; margin:0 0 18px; border:1px solid #cdb884; border-radius:20px; background:linear-gradient(135deg,#fffdf4,#f7efda); }
body[data-mobile-page="About"] :is(.concept-about__intro p,.concept-about__rules,.concept-about__rules p,.concept-about__rules li,.concept-about__contact p,.concept-about__contact a) { font:17px/1.65 Georgia,serif; overflow-wrap:anywhere; }
body[data-mobile-page="About"] .concept-about__rules ul { padding-left:22px; }
body[data-mobile-page="About"] :is(.concept-about__rules h2,.concept-about__contact h2) { margin:0 0 14px; color:#294533; font:bold 25px/1.2 Georgia,serif; }
body[data-mobile-page="About"] .concept-about__content a { color:#294533; text-underline-offset:3px; }
body[data-mobile-page="About"] .concept-about__numbers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; width:100%; margin:0 0 18px; }
body[data-mobile-page="About"] .concept-about__numbers div { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; min-width:0; padding:14px 5px; border:1px solid #c9b67c; border-radius:12px; background:#eef0d5; text-align:center; }
body[data-mobile-page="About"] .concept-about__numbers div+div { border:1px solid #c9b67c; }
body[data-mobile-page="About"] .concept-about__numbers strong { font:bold 25px/1.1 Georgia,serif; }
body[data-mobile-page="About"] .concept-about__numbers span { font:13px/1.4 system-ui,sans-serif; }

body[data-mobile-page="About"] .concept-about:not(.concept-error) { position:relative; width:100%; height:auto; min-height:0; aspect-ratio:auto; padding:0; overflow:visible; background:none; }
body[data-mobile-page="Form"] .form-page__table tr:nth-child(-n+8) td:last-child { padding-right:17px; }
body[data-mobile-page="Form"] .form-page__required-field { padding-right:0; }
body[data-mobile-page="Form"] .form-page__required-field > .form-page__required-star { right:-14px; }
body[data-mobile-page="About"] .concept-about__contact a { display:inline-block; min-height:44px; padding:8px 0; }

body[data-mobile-page="Form"] .grecaptcha-badge { bottom:calc(90px + env(safe-area-inset-bottom))!important; }
body[data-mobile-page="About"] .concept-about__intro p { margin:0 0 16px; }
body[data-mobile-page="About"] .concept-about__intro p:last-child { margin-bottom:0; }

}
