/* Compact home surfaces; no new animations or gameplay layout work. */
#retention-home{text-align:left;margin:10px 0 16px;color:#f7f0e4}#retention-home button{font:inherit;letter-spacing:0}
.today-card{display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;border:1px solid #e5cc9566;border-radius:19px;padding:12px;background:linear-gradient(120deg,#355566ee,#343457ee);box-shadow:inset 0 1px #ffffff33,0 4px 10px #17203333}.today-icon{font-size:30px;color:#ffe4a0;text-align:center}.today-card small{display:block;color:#c6d5e4;font-size:10px}.today-card b{display:block;font-size:14px;line-height:1.4;margin:3px 0;word-break:normal;overflow-wrap:break-word}.today-card button{min-height:44px;padding:8px 11px;border-radius:14px;background:linear-gradient(#fff0c6,#ecd18c);color:#3c354a;font-size:12px!important;white-space:nowrap}.today-card progress{display:block;width:100%;height:5px;border:0;border-radius:8px;overflow:hidden;background:#172c3d}.today-card progress::-webkit-progress-bar{background:#172c3d}.today-card progress::-webkit-progress-value{background:#efd996;border-radius:8px}
.retention-links{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}.retention-links>button{min-height:62px;border:1px solid #bbcddd55;border-radius:15px;background:#223247c9;color:#eee5cf;text-align:left;padding:9px 11px;font-size:11px!important;display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}.retention-links b{color:#ffebaa}.retention-links i{display:flex;gap:4px;font-style:normal}.retention-links em{font-style:normal;color:#8aa3b355}.retention-links .filled{color:#f5c78c}#growth-open{flex-wrap:nowrap}#growth-open .emblem-art{width:40px;height:43px;flex:0 0 40px}#growth-open b{display:block;margin-top:5px}.retention-dialog{width:min(420px,calc(100% - 24px));max-height:88dvh;overflow:auto;padding:20px}.retention-dialog .map-header{position:sticky;top:-20px;z-index:1;background:#3b4356;padding:12px 0}.retention-dialog h2{font-size:24px;margin:0}.retention-dialog .map-header button{min-width:44px;min-height:44px}.retention-body p{color:#cdd9e5;font-size:13px;line-height:1.6}.retention-body>button,.growth-preview>button{width:100%;min-height:46px;background:linear-gradient(#fbd4e8,#db99c4);color:#352943;border-radius:14px;padding:10px;font-weight:700}.retention-body button:disabled{opacity:.42}.weekly-stamps{display:flex;gap:16px;justify-content:center;padding:18px}.weekly-stamps span{font-size:40px;color:#7a8999;border:1px solid #839aaa;border-radius:50%;width:62px;height:62px;text-align:center;line-height:62px}.weekly-stamps .earned-stamp{color:#ffdd9a;background:#e0ac5733;border-color:#ead7a2}.decoration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.decoration-grid button{background:#1d2c42aa;border:1px solid #a7b5cc44;border-radius:14px;padding:8px;color:#ede2c2;min-height:92px;font-size:36px}.decoration-grid button[aria-pressed=true]{border-color:#ffe4aa;box-shadow:inset 0 0 0 1px #ffe4aa}.decoration-grid svg{width:62px;display:block;margin:auto}.decoration-grid small{font-size:10px;display:block;line-height:1.5}.retention-setting{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:14px}.retention-setting select,.retention-body>select,.retention-setting input[type=number]{min-height:44px;border-radius:12px;border:1px solid #aab9cc88;background:#28364d;color:white;padding:8px;max-width:140px}.retention-setting input[type=checkbox]{width:24px;height:24px;accent-color:#d9b8dd}.retention-body>select{width:100%;max-width:none}.growth-preview{text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;padding:18px 0}.growth-preview .emblem-art{width:130px;height:140px}.growth-preview small{color:#c3cfe0}.weekly-frame{outline:2px solid var(--frame-color);outline-offset:4px;box-shadow:0 0 0 7px #24374d88!important}.retention-secondary{display:block;min-height:44px;padding:8px 14px;border:1px solid #ddcbe955;background:#29334a88;color:#eee6dc;border-radius:12px;font-size:13px;margin:12px auto}.retention-secondary[hidden]{display:none}.share-card-preview{display:block;width:100%;max-height:50dvh;object-fit:contain;border-radius:18px}.reminder-suggestion{padding:10px;margin-top:8px;background:#2c445bee;border-radius:12px;font-size:12px;display:flex;gap:6px;flex-wrap:wrap}.reminder-suggestion button{min-height:44px;color:#f4e6c9;background:#354e65;border-radius:8px;padding:8px}
body.intro-open #intro-screen{align-items:flex-start}.intro-content{margin:auto}#intro-screen .intro-orbs{height:90px;margin:0 auto;transform:scale(.52);transform-origin:center top}#intro-screen .intro-title{margin-top:10px}#intro-screen .intro-tools{z-index:7}.retention-dialog [role=status]{min-height:20px}#reminder-status{color:#f6dfad}
@media(max-width:350px){#intro-screen{padding-left:16px;padding-right:16px}.today-card{grid-template-columns:28px minmax(0,1fr);gap:6px;padding:10px}.today-card>button{grid-column:1/-1;min-height:44px}.retention-links>button{padding:8px;font-size:10px!important}.retention-dialog{padding:16px}.retention-dialog h2{font-size:21px}.weekly-stamps{gap:10px}.retention-setting{flex-wrap:wrap}}

/* Keep the title outside the scrolling body; no opaque sticky rectangle. */
dialog.retention-dialog{padding:0;overflow:hidden;max-height:88dvh;background:linear-gradient(150deg,#405367,#393652 75%)}
dialog.retention-dialog[open]{display:flex;flex-direction:column}
dialog.retention-dialog .retention-header{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) 44px;align-items:center;gap:10px;flex:none;width:100%;height:auto;min-height:80px;padding:16px 18px;margin:0;border-bottom:1px solid #c7d6e42b;background:linear-gradient(110deg,#7695932b,#51436544)}
.retention-heading-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#debd8530;border:1px solid #efd9a54d;color:#ffe5af;font-size:27px}
dialog.retention-dialog .retention-header h2{font-size:22px;line-height:1.25;font-style:normal;text-align:left;word-break:keep-all;overflow-wrap:break-word;margin:0;color:#fff2d5;letter-spacing:-.4px}
dialog.retention-dialog .retention-header button{width:44px;height:44px;min-height:44px;padding:11px;margin:0;border-radius:50%;background:#ffffff0f;border:1px solid #e9e5ee55;box-shadow:none;color:#f5f2fb}
.retention-header button svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round}
.retention-dialog .retention-body{padding:18px;overflow-y:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}
.weekly-summary{padding:15px;border-radius:20px;border:1px solid #c8ddb936;background:linear-gradient(135deg,#37656170,#24364b80)}
.weekly-summary-top{display:flex;justify-content:space-between;align-items:center;gap:10px;text-align:left}.weekly-summary-top>b{font-size:13px;color:#c9dace}.weekly-summary-top strong{font-size:28px;color:#ffdf9a;font-variant-numeric:tabular-nums}.weekly-summary-top small{font-size:14px;color:#bed1d9}
#weekly-dialog .weekly-stamps{padding:15px 0 5px;gap:20px;position:relative}.weekly-stamps:before{content:'';position:absolute;top:44px;left:20%;right:20%;height:2px;background:#b7cbb944}.weekly-stamps span{position:relative;flex:none;background:#2a3c4e;font-size:32px;width:56px;height:56px;line-height:54px}.weekly-stamps span.earned-stamp{background:linear-gradient(150deg,#fff0b7,#d1a65f);color:#855829;border-color:#ffe8ac;box-shadow:0 3px 10px #10283355,inset 0 1px #fff9}
.weekly-summary p{margin:12px 0 0;font-size:12px}.retention-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.retention-section-title h3{font-size:15px;margin:0;color:#f5e7c9}.retention-section-title>span{font-size:12px;color:#c5d2dc}
#weekly-dialog .decoration-grid button{margin:0;padding:8px 5px;box-shadow:none;background:#1d2c4266;color:#eddfbe;font-size:32px}#weekly-dialog .decoration-grid button[aria-pressed=true]{background:#a7baac20;border-color:#ffe4aa}#weekly-dialog .decoration-grid button:disabled{opacity:.48;filter:none}.decoration-grid svg{max-width:100%}
.growth-label{display:block;text-align:left;color:#c8d4df;font-size:12px;margin:0 0 8px}#growth-dialog select{font:inherit;font-size:14px}.growth-preview{padding:12px 0 0;gap:8px}.growth-preview h3{margin:0;font-size:19px;color:#ffe4b3}.growth-preview>.emblem-art{width:122px;height:auto}.growth-preview>b{font-size:13px;line-height:1.5}.growth-preview .growth-total{font-size:26px;color:#ffe1a3}.growth-total small{font-size:14px;color:#c7d6e4}.growth-preview progress{appearance:none;width:100%;height:7px;border:0;border-radius:8px;overflow:hidden;background:#1c2b3d}.growth-preview progress::-webkit-progress-bar{background:#1c2b3d}.growth-preview progress::-webkit-progress-value{background:linear-gradient(90deg,#7ce6d6,#f6d39b);border-radius:8px}
.growth-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;list-style:none;padding:0;margin:8px 0;width:100%}.growth-stages li{display:flex;flex-direction:column;align-items:center;padding:4px 0;border:1px solid #bdcddd22;border-radius:12px;background:#24354a55;color:#91a0b6;font-size:10px}.growth-stages li.target{border-color:#ebcd93;color:#ffe2a3;background:#bf945520}.growth-stages li.reached{color:#abe3ce}.growth-stages .emblem-art{width:100%;max-width:50px;height:auto}.growth-preview #growth-collection{margin:0;background:transparent;box-shadow:none;color:#dce7ef;font-size:13px;border:0;min-height:44px}
@media(max-width:350px){dialog.retention-dialog .retention-header{padding:13px 14px;gap:8px;grid-template-columns:32px minmax(0,1fr) 44px;min-height:74px}.retention-heading-icon{width:32px;height:34px;font-size:24px}dialog.retention-dialog .retention-header h2{font-size:19px}.retention-dialog .retention-body{padding:14px}#weekly-dialog .weekly-stamps{gap:14px}}

/* Glyph ink is not centered in its font line box: use centered SVGs instead. */
.retention-heading-icon{line-height:0}
.retention-heading-icon>.retention-symbol{display:block;width:26px;height:26px;margin:0}
#weekly-dialog .weekly-stamps>span{display:grid;place-items:center;line-height:0}
.weekly-stamps .retention-symbol{display:block;width:34px;height:34px;margin:0}
#weekly-dialog .weekly-stamps:before{top:42px}
#weekly-dialog .decoration-grid .retention-symbol{display:block;width:62px;height:62px;margin:auto;padding:10px}
@media(max-width:350px){.retention-heading-icon>.retention-symbol{width:24px;height:24px}}

.push-optin-art{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;margin:12px auto;background:linear-gradient(145deg,#6b97a8,#514667);border:1px solid #e9d6a877}.push-optin-art svg{width:52px;height:52px;fill:none;stroke:#ffe5ae;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}#reminder-dialog .retention-body>p{text-align:center}#reminder-dialog #reminder-later{background:transparent;color:#ddd6e7;margin-bottom:0}#retention-home>#reminders-open{min-height:44px;margin:8px auto;font-size:12px}

.share-link-note{font-size:12px;line-height:1.5;color:#d5dfe9;text-align:center}.share-link-copy{font-size:13px!important;min-height:40px!important;background:#283b50!important;color:#e2f3ff!important;box-shadow:none!important}.share-link-copy+textarea{box-sizing:border-box;width:100%;min-height:110px;font-size:13px;background:#263747;color:#fff}
