.theme-dog {
  --bg: #f3faf7;
  --pink: #ff7a3d;
  --pink-soft: #ffe9dd;
  --violet: #0f9d8a;
  --violet-soft: #dcf4ef;
}
:root {
  --bg: #fff8f3;
  --card: #ffffff;
  --ink: #2a2440;
  --muted: #7a7390;
  --line: #ece6f2;
  --pink: #f0577a;
  --pink-soft: #ffe4ea;
  --violet: #6c5ce7;
  --violet-soft: #ece9ff;
  --green: #18a774;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(42, 36, 64, .07);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Rubik', 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.55; }
a { color: var(--violet); }
button, input, select, textarea { font: inherit; color: inherit; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.logo { font-weight: 800; font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.logo span { color: var(--pink); }
.toast.clickable { cursor: pointer; }
.toast.clickable:hover { filter: brightness(1.15); }
#nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
#nav .links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.logo-emoji { font-size: 1.6rem; }
.switch { display: inline-flex; background: #f4f1f8; border-radius: 999px; padding: 3px; }
.switch button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: .9rem; color: var(--muted); font-weight: 500; }
.switch button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink); color: #fff; font-size: .75rem; align-items: center; justify-content: center; margin-inline-start: 6px; }
#nav .hello { color: var(--muted); font-size: .95rem; }

main { max-width: 1080px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 32px) 80px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 20px; border-radius: 999px; border: 0; background: var(--violet); color: #fff; font-weight: 500; cursor: pointer; text-decoration: none; transition: transform .1s, box-shadow .2s; }
.btn:hover { box-shadow: 0 4px 14px rgba(108, 92, 231, .35); }
.btn:active { transform: scale(.98); }
.btn.pink { background: var(--pink); }
.btn.pink:hover { box-shadow: 0 4px 14px rgba(240, 87, 122, .35); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { box-shadow: none; background: #faf8fc; }
.btn.small { padding: 6px 14px; font-size: .9rem; }
.btn.block { width: 100%; padding: 14px; font-size: 1.05rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* hero */
.hero { text-align: center; padding: 40px 0 32px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.hero h1 em { font-style: normal; color: var(--pink); }
.hero p { color: var(--muted); font-size: 1.15rem; margin-top: 12px; }
.choose { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px; margin: 24px auto 0; }
.choice { font: inherit; cursor: pointer; background: var(--card); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.choice:hover { border-color: var(--pink); transform: translateY(-3px); }
.choice .emoji { font-size: 3rem; }
.choice h2 { margin: 8px 0 4px; font-size: 1.4rem; }
.choice p { color: var(--muted); }
.hero .login-line { margin-top: 28px; color: var(--muted); }

/* forms */
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(20px, 4vw, 36px); max-width: 720px; margin: 0 auto; }
.panel.narrow { max-width: 420px; }
.panel h1 { font-size: 1.7rem; margin-bottom: 4px; }
.panel .sub { color: var(--muted); margin-bottom: 24px; }
fieldset { border: 0; margin-bottom: 26px; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
legend small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .92rem; font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fdfcff; width: 100%; outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--violet); background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.err { background: var(--pink-soft); color: #b3203f; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }

/* chips (checkbox / radio pills) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; user-select: none; transition: all .15s; }
.chip input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* availability grid */
.week { display: grid; grid-template-columns: 64px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: center; overflow-x: auto; }
.week .h { text-align: center; font-size: .85rem; font-weight: 500; color: var(--muted); }
.week .slot-label { font-size: .85rem; font-weight: 500; white-space: nowrap; padding-inline-end: 6px; }
.week .slot-label small { display: block; color: var(--muted); font-weight: 400; font-size: .75rem; }
.cell { position: relative; }
.cell input { position: absolute; opacity: 0; }
.cell span { display: block; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; transition: all .15s; }
.cell input:checked + span { background: var(--pink); border-color: var(--pink); }
.cell input:checked + span::after { content: '✓'; color: #fff; display: flex; height: 100%; align-items: center; justify-content: center; font-weight: 700; }
.cell input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* photo */
.photo-pick { display: flex; align-items: center; gap: 18px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--violet-soft); display: flex; align-items: center; justify-content: center; font-size: 2.2rem; flex-shrink: 0; }

/* search */
.search-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 84px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.filters h2 { font-size: 1.2rem; margin-bottom: 14px; }
.filters .week { grid-template-columns: 58px repeat(7, minmax(0, 1fr)); gap: 4px; }
.filters .week .h { font-size: .85rem; }
.filters .cell span { height: 30px; border-radius: 8px; }
.filters .field { margin-bottom: 16px; }
.check-line { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; cursor: pointer; font-size: .95rem; }
.check-line input { width: 18px; height: 18px; accent-color: var(--violet); }
.results-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.results-head h1 { font-size: 1.5rem; }
.results-head span { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 2px solid transparent; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--violet); transform: translateY(-2px); }
.card .avatar { width: 110px; height: 110px; margin-bottom: 4px; }
.card h3 { font-size: 1.15rem; }
.card .meta { color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; background: var(--violet-soft); color: var(--violet); font-weight: 500; }
.tag.green { background: #dff6ec; color: var(--green); }
.tag.pink { background: var(--pink-soft); color: var(--pink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.tags.start { justify-content: flex-start; }
.tag.demo { background: #eee; color: #777; }
.avatar.initials { font-weight: 700; font-size: 2.4rem; }
.avatar.sm.initials { font-size: 1.2rem; }
.card .avatar.initials, .profile-head .avatar.initials { font-size: 3rem; }
.empty { text-align: center; color: var(--muted); padding: 60px 20px; background: var(--card); border-radius: var(--radius); }
.empty .emoji { font-size: 2.6rem; }

/* profile view */
.profile { max-width: 760px; margin: 0 auto; }
.profile-head { display: flex; gap: 24px; align-items: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.profile-head .avatar { width: 140px; height: 140px; font-size: 3rem; }
.profile-head h1 { font-size: 1.9rem; }
.profile-head .meta { color: var(--muted); margin-bottom: 8px; }
.profile-head .tags { justify-content: flex-start; }
.contact { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.section { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-top: 16px; }
.section h2 { font-size: 1.1rem; margin-bottom: 10px; }
.section p { white-space: pre-wrap; }
.week.view .cell span { cursor: default; height: 34px; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; }
.notice { background: var(--violet-soft); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); direction: inherit; background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; box-shadow: var(--shadow); z-index: 50; }

/* provider requests */
.results-head .sub { color: var(--muted); }
.list { display: flex; flex-direction: column; gap: 12px; }
.request { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; }
.request h3 { font-size: 1.15rem; }
.request .meta { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.request .needs { margin-top: 8px; font-size: .92rem; }
.request .about { margin-top: 8px; color: var(--ink); white-space: pre-wrap; }

/* inbox & chat */
.conv { display: flex; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.conv:last-child { border-bottom: 0; }
.conv:hover { background: #faf8fc; }
.conv.unread b { color: var(--violet); }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 10px; }
.conv-top small { color: var(--muted); }
.conv-last { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.sm { width: 48px; height: 48px; font-size: 1.4rem; }
.chat { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; height: calc(100vh - 140px); min-height: 420px; }
.chat-head { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-head .back { margin: 0; }
.chat-who { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 75%; align-self: flex-start; background: #f4f1f8; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--violet); color: #fff; }
.msg small { display: block; font-size: .72rem; opacity: .65; margin-top: 4px; }
.empty-chat { margin: auto; color: var(--muted); }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.chat-form textarea { min-height: 46px; max-height: 140px; }

/* languages */
.other-lang { margin-top: 10px; }
.other-lang[hidden] { display: none; }
.speaks { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.meta.small { font-size: .85rem; }

/* map */
.map { height: 70vh; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; z-index: 0; }
.pin { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25); font-family: 'Rubik', sans-serif; }
.pin-pop { display: flex; flex-direction: column; gap: 6px; min-width: 180px; font-family: 'Rubik', sans-serif; }
.pin-pop small { color: var(--muted); }
.pin-row { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.avatar.xs { width: 30px; height: 30px; font-size: .9rem; }
.avatar.xs.initials { font-size: .9rem; }

/* admin */
.page-title { font-size: 1.8rem; margin-bottom: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px; display: flex; flex-direction: column; }
.stat b { font-size: 2rem; line-height: 1.1; }
.stat span { color: var(--muted); }
.stat.alert b { color: var(--pink); }
.email-status { margin-top: 12px; color: var(--muted); }
.report { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.report:first-of-type { border-top: 0; }
.report.resolved { opacity: .6; }
.report-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report-top small, .report > small { color: var(--muted); }
.report p { white-space: pre-wrap; }
.table-wrap { overflow-x: auto; }
table.users { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.users th { text-align: start; color: var(--muted); font-weight: 500; padding: 8px; border-bottom: 1px solid var(--line); }
table.users td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.users small { color: var(--muted); }
.row-name { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 500; margin-inline-end: 6px; }
.btn.danger { color: #c0304f; border-color: #f3c5cf; }
.narrow-form { max-width: 620px; }

/* footer + report dialog */
.site-footer { text-align: center; padding: 10px 0 30px; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }
dialog { border: 0; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 26px; width: min(520px, 92vw); margin: auto; }
dialog::backdrop { background: rgba(30, 25, 45, .45); }
.report-form h2 { margin-bottom: 14px; }
.report-form textarea { margin-bottom: 14px; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .btn.block { flex: 1; width: auto; }

@media (max-width: 820px) {
  .request { flex-direction: column; align-items: stretch; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .profile-head { flex-direction: column; text-align: center; }
  .profile-head .tags, .contact { justify-content: center; }
  #nav .hello { display: none; }
}

/* ===== accessibility & touch (keyboard focus, 44px targets, no sideways scroll) ===== */
:root { --muted: #6b6480; }
html, body { overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; min-height: 44px; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.btn, .btn.small, .switch button, .link-btn, .logo, .back { min-height: 44px; }
.btn.small { padding: 8px 16px; }
.switch button { padding: 8px 16px; }
.link-btn { padding: 10px 14px; }
.back { display: inline-flex; align-items: center; }
.chip span { min-height: 44px; display: inline-flex; align-items: center; }
.cell span, .filters .cell span { height: 44px; }
.week.view .cell span { height: 34px; }
.check-line { min-height: 44px; }
.login-line a, .panel .sub a, .notice a, .report a, .pin-row, .row-name { display: inline-flex; align-items: center; min-height: 44px; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; }
.photo-pick { flex-wrap: wrap; }
.photo-pick > div:not(.avatar) { flex: 1 1 160px; min-width: 0; }
.photo-pick .avatar { width: 96px; height: 96px; }
input[type=file] { width: 100%; max-width: 100%; min-height: 44px; }
table.users .btn, table.users td:nth-child(2) { white-space: nowrap; }
.profile-logout { margin-top: 16px; }

@media (min-width: 821px) { .profile-logout { display: none; } }

@media (max-width: 820px) {
  .topbar { position: static; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 10px 16px; }
  #nav { display: contents; }
  #nav .lang-btn { grid-column: 2; grid-row: 1; }
  #nav .switch { grid-column: 1 / -1; display: flex; }
  #nav .switch button { flex: 1; }
  #nav .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
  #nav .links .btn { flex: 1 1 auto; padding: 8px 10px; font-size: .88rem; }
  #nav .links .nav-logout { display: none; }
  main { padding-top: 20px; }
  .chat { height: calc(100dvh - 24px); }
}

@media (max-width: 640px) {
  table.users thead { display: none; }
  table.users, table.users tbody, table.users tr, table.users td { display: block; width: 100%; }
  table.users tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  table.users td { border: 0; padding: 2px 0; overflow-wrap: anywhere; }
  table.users td:empty { display: none; }
  table.users td br { display: none; }
  table.users td small { margin-inline-start: 6px; }
}
.leaflet-control-attribution a { display: inline-block; padding: 14px 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-btn { cursor: pointer; }
.file-btn:focus-within { outline: 3px solid var(--violet); outline-offset: 2px; }
.file-name { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.results-head { flex-wrap: wrap; gap: 4px 12px; }
.results-head > span { white-space: nowrap; }
.file-btn { position: relative; overflow: hidden; }
.day-short { display: none; }
@media (max-width: 640px) { .day-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .day-short { display: inline; } }

/* ===== opening-screen stroll ===== */
.stroll { position: relative; height: 124px; margin-top: 28px; overflow: hidden; pointer-events: none; }
[dir=rtl] .stroll { transform: scaleX(-1); }
.stroll .ground { position: absolute; left: 0; right: 0; bottom: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 24px); }
.stroll .mover { position: absolute; bottom: 10px; left: 0; animation: stroll-cross 18s linear infinite; will-change: transform; }
.stroll .mover.dog { animation-duration: 9s; }
.stroll .mover svg { display: block; }
@keyframes stroll-cross { from { transform: translateX(-140px); } to { transform: translateX(min(100vw, 1080px)); } }
.stroll .leg { transform-box: fill-box; transform-origin: 50% 0; }
.stroll .family .leg-a { animation: stroll-step .45s ease-in-out infinite alternate; }
.stroll .family .leg-b { animation: stroll-step .45s ease-in-out infinite alternate-reverse; }
.stroll .dog .leg-a { animation: stroll-run .22s ease-in-out infinite alternate; }
.stroll .dog .leg-b { animation: stroll-run .22s ease-in-out infinite alternate-reverse; }
.stroll .family .bob { animation: stroll-bob .45s ease-in-out infinite alternate; }
.stroll .dog .bob { animation: stroll-bob .22s ease-in-out infinite alternate; }
.stroll .tail { transform-box: fill-box; transform-origin: 100% 100%; animation: stroll-wag .3s ease-in-out infinite alternate; }
@keyframes stroll-step { from { transform: rotate(18deg); } to { transform: rotate(-18deg); } }
@keyframes stroll-run { from { transform: rotate(32deg); } to { transform: rotate(-32deg); } }
@keyframes stroll-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes stroll-wag { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
@media (prefers-reduced-motion: reduce) {
  .stroll .mover, .stroll .leg, .stroll .bob, .stroll .tail { animation: none !important; }
  .stroll .mover { transform: translateX(calc(50vw - 160px)); }
  .stroll .mover.dog { transform: translateX(calc(50vw - 20px)); }
}
@media (max-width: 640px) { .stroll { height: 110px; margin-top: 18px; } .stroll .family svg { width: 88px; height: 88px; } .stroll .dog svg { width: 84px; height: 56px; } }

/* WhatsApp button */
.btn.wa { background: #1fa855; color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.btn.wa:hover { background: #188f47; box-shadow: 0 4px 14px rgba(31, 168, 85, .35); }
.wa-ico { width: 20px; height: 20px; flex: none; }

/* ===== opening screen: split in two ===== */
main:has(> .split) { max-width: none; padding: 0; }
.split { position: relative; }
.split-title { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 999px; padding: 12px 30px; text-align: center; box-shadow: 0 8px 30px rgba(42,36,64,.12); white-space: nowrap; pointer-events: none; }
.split-title h1 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.2; }
.split-title p { color: var(--muted); font-size: .95rem; }
.halves { display: flex; min-height: calc(100vh - 79px); min-height: calc(100dvh - 79px); }
.half { flex: 1; position: relative; overflow: hidden; border: 0; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 150px; transition: flex-grow .45s cubic-bezier(.2,.8,.2,1); }
.half.baby { background: radial-gradient(circle at 30% 20%, #fff 0, transparent 45%), linear-gradient(160deg, #ffe0e8 0%, #ffeef2 55%, #f3efff 100%); --accent: #f0577a; }
.half.dog { background: radial-gradient(circle at 70% 20%, #fff 0, transparent 45%), linear-gradient(200deg, #d6f3ec 0%, #eefaf6 55%, #ffeede 100%); --accent: #0f9d8a; }
.half.dog .half-go { background: #ff7a3d; }
.halves:hover .half { flex-grow: 1; }
.halves .half:hover, .halves .half:focus-visible { flex-grow: 1.35; }
.half:focus-visible { outline: 4px solid var(--accent); outline-offset: -8px; }
.half-body { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; z-index: 1; }
.half-emoji { font-size: clamp(4rem, 8vw, 6rem); line-height: 1; filter: drop-shadow(0 8px 14px rgba(0,0,0,.12)); transition: transform .45s; }
.half:hover .half-emoji { transform: scale(1.12) rotate(-6deg); }
.half-name { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.half-sub { color: var(--muted); font-size: 1.1rem; max-width: 300px; }
.half-go { margin-top: 14px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.12); transition: transform .2s; }
.half:hover .half-go { transform: translateY(-2px); }
.half .stroll { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; height: 120px; }
.half .stroll .ground { bottom: 14px; }
.half .stroll .mover { bottom: 14px; animation-name: half-cross; animation-duration: 14s; }
.half .stroll .mover.dog { animation-duration: 7s; }
@keyframes half-cross { from { left: -130px; } to { left: 100%; } }
@media (max-width: 720px) {
  .split-title { position: static; transform: none; background: none; box-shadow: none; backdrop-filter: none; padding: 22px 16px 14px; white-space: normal; }
  .halves { flex-direction: column; min-height: 0; }
  .half { padding: 34px 20px 128px; min-height: 340px; }
  .halves:hover .half, .halves .half:hover, .halves .half:focus-visible { flex-grow: 1; }
  .half-sub { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .half { transition: none; } .half .stroll .mover { left: calc(50% - 50px); } }

.half-emoji svg { display: block; width: clamp(104px, 11vw, 140px); height: auto; filter: drop-shadow(0 10px 18px rgba(42,36,64,.12)); }
.half-emoji { filter: none; }
@media (max-width: 720px) { .half-emoji svg { width: 96px; } }
