/* Kids mode's "Yours": My Treasure Box (kids/mine.js). Big, bright, and simple: a picture on everything, few words */
.km { position: fixed; inset: 0; z-index: 2147483200; display: flex; align-items: flex-end; justify-content: center; background: rgba(40, 24, 60, 0.4); opacity: 0; transition: opacity 0.2s ease; font-family: Andika, var(--sans, system-ui); }
.km.open { opacity: 1; }
.km[hidden] { display: none; }
html.km-open, html.km-open body { overflow: hidden; }
.km-in { display: flex; flex-direction: column; width: min(720px, 100%); height: min(92vh, 860px); border-radius: 28px 28px 0 0; overflow: hidden; background: linear-gradient(180deg, #FFF7E8, #FFFDF8 40%); color: #2E2B27; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.45); animation: km-up 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes km-up { from { transform: translateY(40px); } }
@media (min-width: 760px) { .km { align-items: center; } .km-in { border-radius: 28px; } }
.km-head { flex: none; display: flex; align-items: center; gap: 10px; padding: max(14px, env(safe-area-inset-top)) 16px 10px; }
.km-chest { flex: none; width: 46px; height: 46px; }
.km-chest svg { width: 100%; height: 100%; }
.km-h { flex: 1; min-width: 0; margin: 0; font: 700 26px/1.1 Andika, var(--sans, system-ui); color: #6A3E12; }
.km-back { flex: none; width: 44px; height: 44px; border: none; border-radius: 50%; background: #FFE2B8; color: #6A3E12; font: 700 30px/1 var(--sans, system-ui); cursor: pointer; }
.km-back[hidden] { display: none; }
.km-x.x-close { flex: none; }
.km-main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 4px 16px calc(24px + env(safe-area-inset-bottom)); }
.km-hi { margin: 2px 0 14px; font-size: 18px; color: #6B5A45; }
.km-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 620px) { .km-grid { grid-template-columns: repeat(3, 1fr); } }
.km-tile { font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border: none; border-radius: 22px; background: #fff; color: #2E2B27; text-align: center; cursor: pointer; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, 0.45), inset 0 -4px 0 var(--km-c, #F2B233); transition: transform 0.15s ease; -webkit-tap-highlight-color: transparent; }
.km-tile:active { transform: scale(0.96); }
.km-tile b { font-size: 18px; }
.km-tile small { font-size: 13.5px; line-height: 1.3; color: #6B5A45; }
.km-art { width: 64px; height: 64px; }
.km-art svg { width: 100%; height: 100%; }
.km-tile.is-pink { --km-c: #D6457F; } .km-tile.is-blue { --km-c: #3B82C4; } .km-tile.is-green { --km-c: #3DAA5C; } .km-tile.is-gold { --km-c: #F2B233; } .km-tile.is-purple { --km-c: #8E5CC4; } .km-tile.is-teal { --km-c: #2D9CA8; }
.km-sub { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 24px; }
.km-sub svg { width: 48px; height: 48px; flex: none; }
.km-h4 { margin: 18px 0 8px; font-size: 18px; color: #6A3E12; }
.km-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.km-add { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 10px 22px -16px rgba(0, 0, 0, 0.4); }
.km-add textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #F2D9B0; border-radius: 16px; background: #FFFCF5; color: #2E2B27; font: 19px/1.4 Andika, var(--sans, system-ui); resize: vertical; }
.km-add textarea:focus { outline: none; border-color: #F2B233; }
.km-q { margin: 0; font-size: 15px; font-weight: 700; color: #8A6A3A; }
.km-starts { display: flex; flex-wrap: wrap; gap: 6px; }
.km-starts button { padding: 7px 12px; border: 2px solid #F6C7D8; border-radius: 999px; background: #FFF2F7; color: #A8325F; font: 700 14px Andika, var(--sans, system-ui); cursor: pointer; }
.km-moods { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.km-moods span { flex-basis: 100%; font-size: 15px; font-weight: 700; color: #8A6A3A; }
.km-moods button { width: 48px; height: 48px; border: 2px solid transparent; border-radius: 50%; background: #FFF4E0; font-size: 26px; line-height: 1; cursor: pointer; }
.km-moods button.is-on { border-color: #F2B233; background: #FFE7B0; transform: scale(1.08); }
.km-from { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #6B5A45; }
.km-from input { width: 20px; height: 20px; accent-color: #3DAA5C; }
.km-go { align-self: flex-start; padding: 12px 20px; border: none; border-radius: 999px; background: #F2B233; color: #3B2A0E; font: 700 18px Andika, var(--sans, system-ui); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15); }
.km-go.is-soft { margin-top: 14px; background: #E2EEFB; color: #1F4E80; }
.km-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.km-card { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; padding: 14px 14px 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 18px -14px rgba(0, 0, 0, 0.45); }
.km-card p { flex-basis: 100%; margin: 0; font-size: 19px; line-height: 1.4; }
.km-card small { font-size: 13.5px; color: #8A7A66; }
.km-card.is-pray { border-left: 6px solid #D6457F; }
.km-card.is-yes { border-left: 6px solid #F2B233; background: #FFFBEA; }
.km-card.is-verse { border-left: 6px solid #3B82C4; }
.km-card.is-verse b { flex-basis: 100%; font-size: 15px; color: #1F4E80; }
.km-vt { font-family: Georgia, serif; font-style: italic; }
.km-card.is-page { flex-wrap: nowrap; border-left: 6px solid #3DAA5C; }
.km-card.is-page > div:not(.km-acts) { flex: 1; min-width: 0; }
.km-mood { flex: none; font-size: 30px; line-height: 1; }
.km-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.km-yes, .km-read { padding: 8px 14px; border: none; border-radius: 999px; background: #FFE7B0; color: #6A3E12; font: 700 15px Andika, var(--sans, system-ui); cursor: pointer; }
.km-read { background: #E2EEFB; color: #1F4E80; }
.km-del { width: 34px; height: 34px; border: none; border-radius: 50%; background: #F4ECE2; color: #8A7A66; font: 700 15px var(--sans, system-ui); cursor: pointer; }
.km-empty { margin: 14px 0; padding: 16px; border: 2px dashed #F2D9B0; border-radius: 18px; font-size: 17px; line-height: 1.45; color: #6B5A45; text-align: center; }
body.site-dark .km-in { background: linear-gradient(180deg, #2E2618, #24201A 40%); color: #F4EBDA; }
body.site-dark .km-tile, body.site-dark .km-add, body.site-dark .km-card { background: #332C22; color: #F4EBDA; }
body.site-dark .km-tile small, body.site-dark .km-hi, body.site-dark .km-card small, body.site-dark .km-empty { color: #CDBFA8; }
body.site-dark .km-add textarea { background: #2A241C; color: #F4EBDA; border-color: #5A4A30; }
body.site-dark .km-h, body.site-dark .km-h4 { color: #F2C14E; }
@media (prefers-reduced-motion: reduce) { .km, .km-in, .km-tile { transition: none; animation: none; } }
/* (the Kids mode home page's card for it) */
.hub-mine { background: linear-gradient(135deg, #F2B233 0%, #E0892F 55%, #D6457F 100%) !important; color: #fff !important; }
.hub-mine .km-row { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.hub-mine .km-row button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; border: none; border-radius: 16px; background: rgba(255, 255, 255, 0.95); color: #3B2A0E; font: 700 13.5px Andika, var(--sans, system-ui); cursor: pointer; }
.hub-mine .km-row svg { width: 40px; height: 40px; }
.hub-mine .km-row small { font-size: 11.5px; font-weight: 400; color: #6B5A45; }
.hub-mine .km-row i { font-style: normal; font-size: 30px; line-height: 1.1; }
