.profile-entry{display:flex;justify-content:space-between;align-items:center;gap:24px;border-top:1px solid var(--line);padding:28px 4px;margin-top:32px}.profile-entry h2{font:400 24px/1.2 GardenRetro,sans-serif;margin:0 0 8px}.profile-entry p{margin:0;font-size:15px;color:var(--muted)}.profile-entry button{white-space:nowrap;background:var(--paper);min-height:48px}
#profile-dialog,#pro-dialog{box-sizing:border-box;width:min(480px,calc(100% - 28px));max-height:90dvh;overflow:auto;padding:28px;border:2px solid #42352e;border-radius:18px;background:#fffaf0;color:#42352e;box-shadow:6px 7px 0 #42352e33}#profile-dialog::backdrop,#pro-dialog::backdrop{background:#241c25aa}#profile-dialog h2,#pro-dialog h2{font:400 32px/1.15 GardenRetro,sans-serif;margin:16px 0}#profile-dialog p,#pro-dialog p{font-size:15px;line-height:1.5}#profile-dialog .eyebrow,#pro-dialog .eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:700}#profile-dialog .fine,#pro-dialog .fine{font-size:14px;color:#665a4c;font-weight:700}.dialog-close{float:right;min-width:40px;min-height:40px;border-radius:50%;background:transparent;color:#42352e}.score-garden{text-align:center;padding:24px 16px;background:#bad0a5;border:1px solid #6b7c59;border-radius:12px;margin:24px 0 14px}.score-garden>span{text-transform:uppercase;letter-spacing:1px;font-size:13px;font-weight:700}.score-garden>strong{display:block;font:400 52px/1.2 GardenRetro,sans-serif;margin:10px 0}.score-garden p{margin:0}.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center;margin-bottom:26px}.profile-stats>div{background:#f3e7d5;border-radius:10px;padding:16px 6px;display:flex;flex-direction:column;gap:8px}.profile-stats strong{font:400 24px GardenRetro,sans-serif}.profile-stats span{font-size:14px;font-weight:700}#save-profile,#saved-profile{border-top:1px solid #bca68e;padding-top:20px}#save-profile h3{font:400 24px GardenRetro,sans-serif;margin:0 0 12px}#provider-buttons{display:grid;gap:10px;margin:16px 0}#email-form{display:grid;gap:12px}#email-form label{text-align:left;font-size:14px;font-weight:700}#profile-dialog input{font-size:16px;box-sizing:border-box;width:100%;min-height:48px}#profile-dialog button:not(.dialog-close),#pro-dialog button:not(.dialog-close){font-size:16px;min-height:48px}#profile-dialog .primary,#pro-dialog .primary{background:#e8a59d;color:#42352e;border-color:#42352e}#profile-dialog .primary:hover,#pro-dialog .primary:hover{background:#f0b7af}#profile-dialog details button{display:block;margin:14px 0}#return-game{width:100%;margin-top:16px;background:#fffaf0}#profile-message:empty,#plan-message:empty,#signin-message:empty{display:none}#profile-message,#plan-message,#signin-message{background:#f3e7d5;border-radius:8px;padding:12px}#profile-dialog .page-links,#pro-dialog .page-links{justify-content:center;margin-top:20px}.plan-options{border:0;padding:0;margin:24px 0 18px;display:grid;gap:12px;grid-template-columns:1fr 1fr}.plan-options legend{font-size:14px;margin-bottom:12px;text-align:center;width:100%;font-weight:700}.plan-options label{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:20px 8px;text-align:center;border:2px solid #bca68e;border-radius:12px;background:#f3e7d5;cursor:pointer}.plan-options label:has(input:checked){border-color:#42352e;background:#bad0a5;box-shadow:0 3px 0 #42352e}.plan-options input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}.plan-options label:has(input:focus-visible){outline:3px solid #a83d4d;outline-offset:3px}.plan-options span{font-size:16px;font-weight:700}.plan-options b{display:block;font-size:12px;line-height:1.5;font-weight:700}.plan-options strong{font:400 24px GardenRetro,sans-serif}.plan-options small{font:400 14px GardenDM,sans-serif}.plan-options label:first-of-type span{padding-bottom:18px}#continue-plan{width:100%;margin-top:12px}#pro-dialog .annual-saving{font-size:15px;font-weight:700;text-align:center}.verify-card{max-width:480px;margin:60px auto;padding:30px;border:2px solid #42352e;border-radius:16px;background:#fffaf0;text-align:center}.verify-card h1{font:400 32px GardenRetro,sans-serif}.verify-card a{display:block;margin-top:24px}.profile-entry[hidden]{display:none}@media(max-width:600px){.profile-entry{align-items:stretch;text-align:center;flex-direction:column;gap:18px}#profile-dialog,#pro-dialog{padding:24px 20px}.profile-stats span{font-size:13px;font-weight:700}.plan-options strong{font-size:23px}}
#pro-dialog .dialog-close,#profile-dialog .dialog-close{position:absolute;top:14px;right:14px;float:none;z-index:1}#pro-dialog>.eyebrow,#profile-dialog>.eyebrow{padding-right:26px}

/* Equal breathing room around the final return action. */
#profile-dialog{--return-space:28px;padding-bottom:var(--return-space)}
#profile-dialog #return-game{display:block;margin:var(--return-space) 0 0}
#profile-dialog>.page-links{margin-bottom:0}
@media(max-width:600px){#profile-dialog{--return-space:24px}}

/* Account actions stay separate and aligned when labels wrap on phones. */
#profile-dialog .account-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:16px 0 8px}
#profile-dialog .account-actions:not(:has(button:not([hidden]))){display:none}
#profile-dialog .account-actions>button{width:100%;margin:0}
#profile-dialog #saved-profile details button{width:100%;margin:12px 0}
#provider-buttons{gap:12px}

/* Clear account actions against the light Strawberry Social surfaces. */
.profile-entry button,#profile-dialog #sign-google{background:#3557a5;color:#fff;border:2px solid #294583;border-radius:10px;box-shadow:0 3px 0 #294583;font-weight:700;min-height:48px;padding:12px 20px}
.profile-entry button:hover:not(:disabled),#profile-dialog #sign-google:hover:not(:disabled){background:#294583;color:#fff}
.profile-entry button:active:not(:disabled),#profile-dialog #sign-google:active:not(:disabled){box-shadow:none;transform:translateY(2px)}

#profile-dialog #cancel-link,#profile-dialog #link-method{width:100%;margin-top:16px}
.score-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 10px}.score-summary>div{padding:18px 12px;text-align:center;background:#f3e7d5;border:1px solid #bca68e;border-radius:12px}.score-summary>div:last-child{background:#bad0a5}.score-summary span{display:block;font-size:15px}.score-summary strong{display:block;font:400 30px/1.3 GardenRetro,sans-serif;margin-top:8px}#keypad button.impossible{opacity:.27;box-shadow:none}#keypad button.possible:not(:disabled){border-color:#42352e;box-shadow:0 2px 0 #42352e}#newbie-help{min-height:44px;font-size:14px;font-weight:700}

#code-form{display:grid;gap:12px;margin-top:16px}#code-form label{margin:0;text-align:left}#email-code{letter-spacing:.25em;text-align:center;font-size:22px!important;font-variant-numeric:tabular-nums}#email-pending{padding:18px;background:#f3e7d5;border:1px solid #bca68e;border-radius:12px;margin-top:16px}.email-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.email-actions button{flex:1;background:#fffaf0;border:1px solid #bca68e}#signin-message:not(:empty){padding:12px 0;font-weight:600}#name{font-size:18px}
