/* AEMAZON CHUSEOK v1.0.4: scoped page + home card, no native app changes. */
.wish-body{margin:0;background:var(--aem-ui-panel,#f6f5f2);color:var(--aem-ui-ink,#17202b);font-family:-apple-system,BlinkMacSystemFont,"Noto Sans KR",system-ui,sans-serif;}
.wish-body *,.aem-wish-feed *{box-sizing:border-box;}
.wish-body button,.wish-body input,.wish-body textarea,.wish-body select{font:inherit;}
.wish-body button,.wish-body a{-webkit-tap-highlight-color:transparent;}
.wish-body button{cursor:pointer;}
.wish-body button:disabled{opacity:.55;cursor:wait;}
.wish-body a{color:inherit;text-decoration:none;}
.wish-body [hidden],.aem-wish-feed[hidden]{display:none!important;}
.wish-body :focus-visible,.aem-wish-feed :focus-visible{outline:3px solid #ff8545;outline-offset:3px;}
.wish-app{max-width:680px;margin:auto;background:var(--aem-ui-surface,#fff);min-height:100dvh;}
.wish-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(8px + env(safe-area-inset-top,0px)) 16px 8px;min-height:64px;background:var(--aem-ui-surface,#fff);}
.wish-header h1{font-size:17px;margin:0;font-weight:750;}
.wish-header>a,.wish-header>button{display:grid;place-items:center;border:0;background:none;font-size:29px;min-width:44px;min-height:44px;color:var(--aem-ui-ink,#17202b);}
.wish-hero{aspect-ratio:1;position:relative;background:#0b1c31 url("../img/chuseok/wish-moon.png") center/cover no-repeat;color:#fff1c3;text-align:center;overflow:hidden;}
.wish-hero h2{font-family:Georgia,"Noto Serif KR",serif;position:absolute;left:15px;right:15px;top:6%;font-size:clamp(17px,4.4vw,26px);letter-spacing:.02em;margin:0;text-shadow:0 2px 9px #08172e;}
.wish-hero>p{position:absolute;left:10px;right:10px;bottom:5%;font-size:clamp(14px,3.6vw,20px);font-family:Georgia,"Noto Serif KR",serif;text-shadow:0 2px 6px #071222;margin:0;}
.wish-moon-tags{position:absolute;inset:24% 8% 22%;pointer-events:none;}
.wish-moon-tag{position:absolute;max-width:70%;padding:12px 15px;border-radius:12px;background:var(--aem-ui-surface,#fffff2ee);color:var(--aem-ui-ink,#283142);font-size:12px;line-height:1.5;box-shadow:0 5px 18px #1420381a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wish-moon-tag:first-child{top:14%;left:0;}
.wish-moon-tag:nth-child(2){top:48%;right:0;}
.wish-panel{position:relative;margin-top:-14px;background:var(--aem-ui-surface,#fff);border-radius:20px 20px 0 0;padding:24px 20px 12px;}
.wish-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.wish-heading h2{font-size:19px;margin:0;letter-spacing:-.03em;}
.wish-panel>.wish-heading{justify-content:center;}
.wish-pill{border:1px solid #ffb186;color:#dc591f;font-size:11px;border-radius:14px;padding:4px 8px;white-space:nowrap;}
.wish-prizes{display:flex;margin:23px 0 16px;}
.wish-prizes>div{flex:1;text-align:center;padding:0 5px;border-right:1px solid var(--aem-ui-line,#e6e8eb);}
.wish-prizes>div:last-child{border:0;}
.wish-prizes strong{display:block;font-size:16px;letter-spacing:-.045em;}
.wish-prizes span{display:block;margin-top:7px;font-size:13px;}
.wish-muted{font-size:12px;color:var(--aem-ui-muted,#687386);line-height:1.7;text-align:center;margin:10px 0;}
.wish-button{width:100%;display:block;border:1px solid #ff6232;background:#ff6232;border-radius:11px;color:white;padding:14px 12px;min-height:48px;font-size:15px;font-weight:700;margin-top:12px;text-align:center;}
.wish-button.secondary{border-color:var(--aem-ui-line,#dce0e7);background:var(--aem-ui-surface,#fff);color:var(--aem-ui-ink,#283248);}
.wish-button.danger{background:var(--aem-ui-panel,#fff7f5);border-color:var(--aem-ui-line,#ffd1c8);color:var(--aem-ui-text-red,#ba4126);}
.wish-community{padding:16px 20px;}
.wish-small{color:var(--aem-ui-muted,#7f8796);font-size:11px;line-height:1.7;}
.wish-link{border:0;background:none;padding:8px 0;color:#e15a28;font-size:12px;min-height:40px;}
.wish-item{display:flex;gap:10px;padding:17px 0;border-bottom:1px solid var(--aem-ui-line,#eef0f3);align-items:flex-start;}
.wish-avatar{width:36px;height:36px;flex:none;border-radius:50%;background:linear-gradient(140deg,#2b4262,#e7bd7a);color:#fff2d2;display:grid;place-items:center;font-size:17px;}
.wish-item-copy{flex:1;min-width:0;}
.wish-item-copy strong{font-size:13px;display:block;margin:0 0 5px;}
.wish-item-copy h3{font-size:14px;margin:0 0 5px;line-height:1.5;overflow-wrap:anywhere;}
.wish-item-copy p{font-size:13px;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
.wish-item-copy time{font-size:10px;color:var(--aem-ui-muted,#8992a0);}
.wish-cheer{background:none;border:0;color:var(--aem-ui-muted,#687386);font-size:12px;padding:8px 2px;min-height:44px;min-width:44px;display:flex;gap:4px;align-items:center;}
.wish-cheer svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8}
.wish-cheer[aria-pressed=true]{color:#ff6232;}
.wish-cheer[aria-pressed=true] svg{fill:currentColor}
.wish-rules{padding:18px 20px;margin:10px 20px;border-radius:12px;background:var(--aem-ui-panel,#f8f8f6);font-size:12px;line-height:1.9;color:var(--aem-ui-muted,#677181);}
.wish-rules summary{font-weight:700;cursor:pointer;color:var(--aem-ui-ink,#394656);min-height:28px;}
.wish-brand{text-align:center;color:#ec6c38;font-weight:750;font-size:15px;padding:22px 15px calc(30px + env(safe-area-inset-bottom,0px));}
.wish-brand span{display:block;font-size:10px;color:var(--aem-ui-muted,#9ba1ab);font-weight:400;margin-top:5px;}
.wish-status{font-size:13px;color:var(--aem-ui-text-red,#ae492c);line-height:1.6;white-space:pre-wrap;text-align:center;}
.wish-empty{text-align:center;padding:28px 15px;color:var(--aem-ui-muted,#8a919e);font-size:13px;line-height:1.8;}
/* Explicit web layer avoids native dialog/top-layer conflicts in embedded WebViews.
   data-apn-managed uses the already-shipped Android opt-out for web-managed modals. */
.wish-dialog-layer{position:fixed;left:0;top:0;width:100%;height:100vh;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(17,26,45,.5);isolation:isolate;overflow:hidden;box-sizing:border-box;}
.wish-dialog-layer[hidden]{display:none!important;}
.wish-dialog-layer .wish-dialog{position:relative;display:block;flex:0 1 480px;min-width:0;min-height:0;width:100%;max-width:480px;max-height:100%;margin:0;background:var(--aem-ui-surface,#fff);color:var(--aem-ui-ink,#17202b);border:0;border-radius:18px;padding:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;box-sizing:border-box;box-shadow:0 16px 48px rgba(0,0,0,.2);color-scheme:light dark;}
.wish-dialog-head{position:sticky;top:0;background:var(--aem-ui-surface,#fff);z-index:1;display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--aem-ui-line,#eef0f3);}
.wish-dialog-head h2{font-size:18px;margin:0;}
.wish-dialog-head button{border:0;background:transparent;font-size:26px;width:44px;height:44px;}
.wish-dialog #wish-dialog-body{padding:20px;}
.wish-dialog label{display:block;font-size:13px;font-weight:650;margin-bottom:18px;}
.wish-dialog input:not([type=checkbox]),.wish-dialog textarea,.wish-admin input:not([type=checkbox]),.wish-admin select,.wish-admin textarea{width:100%;border:1px solid var(--aem-ui-line,#dce1e8);border-radius:9px;padding:12px;color:var(--aem-ui-ink,#182538);background:var(--aem-ui-surface,#fff);box-sizing:border-box;margin-top:7px;font-size:16px;}
.wish-dialog textarea{min-height:150px;resize:vertical;line-height:1.6;}
.wish-dialog small{display:block;font-size:11px;font-weight:400;line-height:1.7;color:var(--aem-ui-muted,#7b8696);margin:5px 0;}
.wish-dialog .wish-check{display:flex;gap:8px;align-items:flex-start;font-weight:400;line-height:1.7;}
.wish-dialog input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#ff6232;margin:3px 0;}
.wish-detail-story{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;font-size:14px;}
.wish-detail-title{overflow-wrap:anywhere;font-size:20px;line-height:1.5;}
.wish-mine-result{background:var(--aem-ui-warm,#fff4e6);border-radius:12px;padding:14px;line-height:1.7;font-size:13px;}
.wish-no-scroll{overflow:hidden!important;overscroll-behavior:none;}
.wish-admin{max-width:1120px;margin:auto;padding:24px 18px 80px;}
.wish-admin .wish-header{padding:0;background:none;}
.wish-admin .wish-header h1{font-size:24px;}
.wish-admin-box{background:var(--aem-ui-surface,#fff);border:1px solid var(--aem-ui-line,#e2e5ea);border-radius:14px;padding:20px;margin:18px 0;}
.wish-admin-box h2{font-size:18px;margin-top:0;}
.wish-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.wish-admin label{display:block;font-size:12px;line-height:1.8;}
.wish-admin textarea{min-height:100px;}
.wish-admin form>label{margin:12px 0;}
.wish-admin .wish-button{width:auto;display:inline-block;margin-right:5px;}
.wish-admin-toolbar{display:grid;grid-template-columns:2fr repeat(3,1fr) auto;gap:10px;align-items:end;}
.wish-admin-stats{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0;}
.wish-admin-stats span{background:var(--aem-ui-warm,#fff3e8);padding:10px;border-radius:8px;font-size:13px;}
.wish-admin-entry{border-bottom:1px solid var(--aem-ui-line,#e4e7ed);padding:20px 0;}
.wish-admin-entry:last-child{border:0;}
.wish-admin-entry h3{margin:8px 0;font-size:19px;overflow-wrap:anywhere;}
.wish-admin-entry .wish-detail-story{margin:10px 0;}
.wish-admin-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--aem-ui-muted,#657288);font-size:12px;}
.wish-admin summary{cursor:pointer;font-weight:650;min-height:44px;line-height:44px;}
.wish-audit{font-size:12px;line-height:1.8;overflow-wrap:anywhere;}
.wish-audit>div{padding:12px 0;border-bottom:1px solid var(--aem-ui-line,#eee);}
.aem-wish-feed{box-sizing:border-box;width:100%;overflow:hidden;border:1px solid var(--aem-ui-line,#ece5db);border-radius:15px;background:var(--aem-ui-surface,#fff);margin:0 0 16px;font-family:inherit;color:var(--aem-ui-ink,#17202b);box-shadow:0 2px 10px #79531b06;}
.aem-wish-author{display:flex;align-items:center;gap:9px;padding:12px 14px;min-height:62px;}
.aem-wish-avatar{display:grid;place-items:center;width:34px;height:34px;background:#ff6232;border-radius:50%;color:white;font-size:19px;font-weight:750;flex:none;}
.aem-wish-author strong{font-size:13px;letter-spacing:.015em;}
.aem-wish-author>span:last-child{font-size:10px;color:#de652f;background:var(--aem-ui-warm,#fff1e5);border-radius:13px;padding:5px 8px;}
.aem-wish-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;padding:60px 22px 62px;background:#f9e4b3 url("../img/chuseok/home-moon.png") center/cover no-repeat;text-align:center;color:var(--aem-ui-ink,#2b231b)!important;text-decoration:none!important;}
.aem-wish-art h2{font-family:Georgia,"Noto Serif KR",serif;font-size:clamp(26px,5.8vw,38px)!important;font-weight:700;line-height:1.4;margin:0 0 14px!important;letter-spacing:-.04em;text-shadow:0 1px 8px #fff4da;}
.aem-wish-art p{font-size:13px;line-height:1.75;margin:0 0 18px;text-shadow:0 1px 7px #fff5db;}
.aem-wish-cta{display:inline-block;background:#ff6232;color:#fff;font-size:14px;font-weight:700;border-radius:28px;padding:13px 24px;box-shadow:0 4px 14px #c8772924;}
.aem-wish-feed>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;padding:14px 15px;color:var(--aem-ui-muted,#6f7988);}
.aem-wish-feed>footer a{color:#e26736;text-decoration:none;}
.wish-mobile-break{display:none;}
@media(max-width:600px){.wish-admin-toolbar,.wish-admin-grid{grid-template-columns:1fr 1fr;}
.wish-admin-toolbar>label:first-child{grid-column:1/-1;}
.wish-admin{padding:16px 12px 50px;}
.wish-admin-box{padding:15px;}
.wish-prizes strong{font-size:15px;}
.aem-wish-art{min-height:335px;}
.wish-dialog{margin:auto;}
}
@media(max-width:370px){.wish-mobile-break{display:block;}
.aem-wish-author{gap:7px;padding:10px;}
.aem-wish-author>span:last-child{font-size:9px;}
.wish-hero h2{font-size:17px;}
.wish-moon-tag{font-size:11px;padding:9px;}
.wish-panel,.wish-community{padding-left:16px;padding-right:16px;}
}
@media(min-width:800px){.wish-app{margin:24px auto;border-radius:18px;overflow:hidden;box-shadow:0 8px 40px #20252b0b;}
.wish-hero{aspect-ratio:1.2;background-position:center 46%;}
.wish-hero h2{top:7%;}
.wish-panel{padding:26px 35px 14px;}
.wish-community{padding:20px 35px;}
.aem-wish-art{min-height:390px;}
.wish-prizes strong{font-size:20px;}
}


.wish-avatar::before{content:"";width:15px;height:15px;border-radius:50%;background:#ffe3a2;box-shadow:0 0 8px #ffe4a770;}
.wish-hero>p{bottom:8%;}


.wish-admin .wish-header>.wish-link{font-size:13px;display:inline-flex;align-items:center;white-space:nowrap;}


.wish-item-copy strong{overflow-wrap:anywhere;}
.wish-admin input[type=checkbox]{accent-color:#ff6232;}
