/* One welcoming home panel connects the child, their progress and their keepsakes. */
.home-profile-panel{margin:22px 0 20px;padding:22px;border:3px solid #fffdf5;border-radius:30px;background:#fffbed;box-shadow:0 6px 0 #aac68e40;color:#416b52;overflow:hidden}
.home-profile-intro{position:relative;isolation:isolate;display:block;min-height:clamp(360px,44vw,440px);border-radius:24px;overflow:hidden;background:#fffbed}
.home-profile-intro:after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#fffbedfa 0%,#fffbeded 29%,#fffbedb8 39%,#fffbed00 51%)}
.home-profile-copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-width:0;width:45%;max-width:430px;min-height:inherit;padding:25px 23px}
.home-profile-identity{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:15px;row-gap:3px;align-items:center}
.home-profile-identity>.avatar{grid-column:1;grid-row:1/3;width:96px;height:96px;flex-basis:96px;border-width:4px;box-shadow:0 0 0 2px #cee0b6,0 4px 0 #b5c9942b}
.home-profile-identity>div{min-width:0;grid-column:2}
.home-profile-eyebrow{display:block;font-size:14px;line-height:1.5;font-weight:650;color:#7b8157}
.home-profile-identity h1{margin:2px 0 0;color:#396d52;font:36px/1.2 Garden,Pretendard,sans-serif;letter-spacing:-.5px;word-break:keep-all}
.home-profile-switch{grid-column:2;justify-self:start;min-height:44px;margin:0;padding:6px 13px;border:1px solid #cfdbb4;border-radius:13px;background:#f1f6e0;color:#5b7655;font-size:14px;font-weight:650;line-height:1.4;white-space:nowrap}
.home-profile-greeting{margin:18px 0 7px;color:#426f50;font:clamp(25px,3.2vw,31px)/1.45 Garden,Pretendard,sans-serif;letter-spacing:-.5px;word-break:keep-all;overflow-wrap:break-word}
.home-profile-companion{margin:0;color:#5d7b60;font-size:17px;line-height:1.6;word-break:keep-all;overflow-wrap:break-word}
.home-profile-art{position:absolute;inset:0;z-index:0;width:100%;height:100%;max-width:none;aspect-ratio:auto;overflow:hidden;border:0;border-radius:inherit;background:linear-gradient(#fffbed,#dff0d5);box-shadow:none}
/* Use the original landscape across the whole introduction, with its quiet left side behind the copy. */
.home-profile-art>img{display:block;width:100%;max-width:none;height:100%;object-fit:cover;object-position:right 60%;transform:none;pointer-events:none}
.home-profile-art>.farm-petals{--fall-distance:440px}
.home-profile-art .toon-cloud{width:72px;height:39px;opacity:.28}
.home-profile-art .toon-cloud-c{display:none}
.home-profile-art .toon-leaf{width:15px;height:9px}
.home-profile-records{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-top:17px;padding:13px 6px;border:1px solid #dce4bd;border-radius:19px;background:#f1f6df}
.home-profile-stat{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0 8px;text-align:center}
.home-profile-stat+.home-profile-stat{border-left:1px solid #cedbb4}
.home-profile-stat>span{font-size:14px;font-weight:600;line-height:1.4;color:#637c58;word-break:keep-all}
.home-profile-stat>strong{display:block;font:27px/1.25 Garden,Pretendard,sans-serif;color:#3d7450;overflow-wrap:anywhere}
.home-profile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:14px}
.home-profile-link{display:grid;grid-template-columns:58px minmax(0,1fr) auto;align-items:center;gap:12px;min-width:0;min-height:94px;padding:14px;border:2px solid #c8dbaa;border-bottom-width:4px;border-radius:21px;background:#edf5d7;color:#527544;text-align:left;touch-action:manipulation;transition:background .15s,border-color .15s}
.home-profile-link.farm-link{background:#fff1d5;border-color:#e6ce95;color:#8b6c36}
.home-profile-link-art{display:grid;place-items:center;flex:none;width:58px;height:58px;padding:4px;border:1px solid #fff;border-radius:17px;background:#fffcef}
.home-profile-link-art>svg{display:block;width:100%;height:100%}
.home-profile-link>span:not(.home-profile-link-art){display:flex;min-width:0;flex-direction:column;gap:4px}
.home-profile-link small{font:600 13px/1.5 Pretendard,sans-serif;color:#647a55;word-break:keep-all;overflow-wrap:break-word}
.home-profile-link.farm-link small{color:#8a7447}
.home-profile-link strong{font:23px/1.35 Garden,Pretendard,sans-serif;word-break:keep-all;overflow-wrap:break-word}
.home-profile-link>b{font-size:24px;line-height:1;align-self:center;justify-self:end}
.home-profile-switch:focus-visible,.home-profile-link:focus-visible{outline:3px solid #ba9144;outline-offset:4px}
@media(hover:hover) and (pointer:fine){.home-profile-switch:hover{background:#e5efcb;border-color:#b7c995}.home-profile-link:hover{background:#e5f1c6;border-color:#9fbf76}.home-profile-link.farm-link:hover{background:#ffeac0;border-color:#c6a567}}

/* Decoration management stays in its own window, with an always-visible close button. */
.dialog.farm-keepsakes-dialog{display:flex;flex-direction:column;width:min(860px,94vw);max-width:860px;max-height:calc(100dvh - 40px);padding:0;overflow:hidden;text-align:left;border-radius:29px;background:#fffdf2;outline-color:#c9d9a7}
.farm-keepsakes-dialog-header{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:17px 22px;border-bottom:1px solid #dce4c3;background:#f3f7e4}
.farm-keepsakes-dialog-header h2{min-width:0;margin:0;color:#4d7855;font:29px/1.35 Garden,Pretendard,sans-serif;word-break:keep-all}
.farm-keepsakes-dialog-header>button{display:flex;align-items:center;justify-content:center;flex:none;min-width:48px;min-height:48px;padding:10px;border:2px solid #d3dfbc;border-radius:16px;background:#fffdf3;color:#537958}
.farm-keepsakes-dialog-header>button svg{width:24px;height:24px}
.farm-keepsakes-dialog-header>button:focus-visible{outline:3px solid #ba9144;outline-offset:3px}
.farm-keepsakes-dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;scroll-padding-block:18px}
.farm-keepsakes-dialog-body>.farm-keepsakes{margin:0;padding:22px;border:0;border-radius:0;background:transparent;box-shadow:none}
.farm-keepsakes-dialog .farm-display-copy p{font-size:17px;line-height:1.65;text-align:left}
.farm-keepsakes-dialog .keepsakes-note{font-size:14px;line-height:1.65}
.farm-keepsakes-dialog .keepsake-option strong{overflow-wrap:break-word}

@media(max-width:760px) and (min-width:651px){
  .home-profile-intro{min-height:370px}
  .home-profile-copy{width:47%;padding:22px 18px}
  .home-profile-panel{padding:20px}
  .home-profile-identity{column-gap:12px}
  .home-profile-greeting{font-size:27px}
  .home-profile-link{grid-template-columns:49px minmax(0,1fr) auto;gap:9px;padding:12px}
  .home-profile-link-art{width:49px;height:49px}
  .home-profile-link strong{font-size:21px}
}
@media(max-width:650px){
  .home-profile-panel{margin-top:17px;padding:17px;border-radius:26px}
  .home-profile-intro{min-height:380px;border-radius:21px}
  .home-profile-copy{display:flex;width:47%;min-height:inherit;padding:20px 18px}
  .home-profile-identity{grid-column:1;grid-row:1;grid-template-columns:84px minmax(0,1fr);column-gap:12px}
  .home-profile-identity>.avatar{width:84px;height:84px;flex-basis:84px}
  .home-profile-identity h1{font-size:32px}
  .home-profile-eyebrow{font-size:13px}
  .home-profile-switch{font-size:13px;padding:6px 11px}
  .home-profile-art{width:100%;height:100%;border-radius:inherit}
  .home-profile-art>.farm-petals{--fall-distance:420px}
  .home-profile-art .toon-cloud{width:43px;height:24px;opacity:.2}
  .home-profile-greeting{grid-column:auto;grid-row:auto;margin:16px 0 7px;font-size:26px;line-height:1.4}
  .home-profile-companion{grid-column:auto;grid-row:auto;margin:0;font-size:16px}
  .home-profile-records{margin-top:15px;padding:12px 4px}
  .home-profile-stat{padding:0 6px}
  .home-profile-stat>span{font-size:13px}
  .home-profile-stat>strong{font-size:24px}
  .home-profile-links{gap:10px;margin-top:12px}
  .home-profile-link{grid-template-columns:minmax(0,1fr) auto;gap:9px;min-height:0;padding:13px;border-radius:19px}
  .home-profile-link-art{grid-column:1;grid-row:1;width:48px;height:48px;border-radius:14px}
  .home-profile-link>span:not(.home-profile-link-art){grid-column:1/-1;grid-row:2;gap:4px}
  .home-profile-link>b{grid-column:2;grid-row:1;font-size:23px}
  .home-profile-link small{font-size:12px}
  .home-profile-link strong{font-size:21px}
  .farm-keepsakes-dialog-header{padding:14px 17px;gap:12px}
  .farm-keepsakes-dialog-header h2{font-size:26px}
  .farm-keepsakes-dialog-body>.farm-keepsakes{padding:18px}
  .farm-keepsakes-dialog .farm-display-copy p{font-size:16px}
}
@media(max-width:600px){
  .home-profile-intro{--home-scene-height:260px;min-height:480px}
  .home-profile-copy{width:100%;max-width:none;min-height:0;padding:18px 20px;justify-content:flex-start}
  .home-profile-intro:after{background:linear-gradient(180deg,#fffbed 0%,#fffbed calc(100% - var(--home-scene-height)),#fffbed00 calc(100% - var(--home-scene-height) + 40px))}
  .home-profile-art>img{position:absolute;inset:auto 0 0;width:100%;height:var(--home-scene-height);object-fit:cover;object-position:right 60%}
  .home-profile-greeting{margin-top:13px;font-size:25px}
  .home-profile-companion{font-size:16px}
  .home-profile-art .farm-breeze{top:42%}
}
@media(max-width:420px){
  .home-profile-panel{padding:14px;border-radius:24px}
  .home-profile-intro{min-height:480px}
  .home-profile-copy{padding:16px}
  .home-profile-identity{grid-template-columns:80px minmax(0,1fr);column-gap:10px}
  .home-profile-identity>.avatar{width:80px;height:80px;flex-basis:80px}
  .home-profile-identity h1{font-size:29px}
  .home-profile-eyebrow{font-size:12px}
  .home-profile-switch{padding:6px 9px;font-size:12px}
  .home-profile-art{width:100%;height:100%;border-radius:inherit}
  .home-profile-greeting{font-size:24px}
  .home-profile-companion{font-size:15px;line-height:1.6}
  .home-profile-stat>span{font-size:12px}
  .home-profile-stat>strong{font-size:22px}
  .home-profile-link{padding:11px}
  .home-profile-link strong{font-size:19px}
  .farm-keepsakes-dialog-header{padding:12px 13px}
  .farm-keepsakes-dialog-header h2{font-size:23px}
  .farm-keepsakes-dialog-body>.farm-keepsakes{padding:15px}
}
@media(max-width:370px){
  .home-profile-intro{min-height:450px}
  .home-profile-art>img{height:235px}
  .home-profile-identity{grid-template-columns:70px minmax(0,1fr);column-gap:8px}
  .home-profile-identity>.avatar{width:70px;height:70px;flex-basis:70px}
  .home-profile-identity h1{font-size:27px}
  .home-profile-greeting{font-size:22px}
  .home-profile-link strong{font-size:18px}
}
@media(max-width:350px){.home-profile-identity{grid-template-columns:64px minmax(0,1fr)}.home-profile-identity>.avatar{width:64px;height:64px;flex-basis:64px}.home-profile-identity h1{font-size:26px}}
@media(prefers-reduced-motion:reduce){.home-profile-link{transition:none}}
