.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.settings-grid .entry-form { margin-top: 0; }.settings-grid h2 { margin-bottom: 4px; }.settings-help { color: var(--muted); font-size: 14px; }.option-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }.option-chip { padding: 7px 11px; border-radius: 99px; color: var(--purple); background: #f0eafd; font-size: 13px; font-weight: 800; }
@media (max-width: 760px) { .settings-grid { grid-template-columns: 1fr; } }
.photo-preview { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 6px solid #ffe1d9; }.profile-preview { width: 110px; height: 110px; font-size: 42px; }
.manage-add-form, .managed-row form { display: flex; align-items: center; gap: 10px; }.manage-add-form input, .managed-row form:first-child { flex: 1; }.managed-list { display: grid; gap: 8px; margin-top: 25px; }.managed-row { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }.managed-row:last-child { border-bottom: 0; }.managed-row input { min-width: 0; padding: 9px 11px; }.small-action { min-height: 39px; padding: 7px 12px; border: 0; border-radius: 9px; color: white; font-size: 13px; font-weight: 900; }.edit-action { background: var(--teal); }.delete-action { background: var(--coral); }
.option-count { float: right; color: var(--purple); font-size: 15px; }.lottery-page { padding-bottom: 30px; }.lottery-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }.lottery-balance { display: grid; grid-template-columns: auto auto; align-items: center; padding: 15px 18px; border-radius: 16px; color: white; background: var(--teal); font-size: 25px; }.lottery-balance b { font-size: 28px; }.lottery-balance small { grid-column: 2; font-size: 12px; font-weight: 800; }.lottery-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; margin-top: 34px; }.wheel-area { position: relative; display: flex; align-items: center; flex-direction: column; }.lottery-wheel { position: relative; width: min(390px, 80vw); aspect-ratio: 1; overflow: hidden; border: 12px solid white; border-radius: 50%; background: conic-gradient(#ff6f61 0deg 60deg, #4db6ac 60deg 120deg, #7e57c2 120deg 180deg, #ffd166 180deg 240deg, #f28b67 240deg 300deg, #73b9d5 300deg 360deg); box-shadow: 0 8px 0 rgba(62,62,62,.12); transition: transform 1.9s cubic-bezier(.12,.76,.25,1); }.lottery-wheel::after { content: ""; position: absolute; inset: 43%; z-index: 2; border: 5px solid white; border-radius: 50%; background: var(--coral); }.wheel-label { position: absolute; top: 50%; left: 50%; width: 44%; color: white; font-size: clamp(10px, 1.4vw, 14px); font-weight: 900; text-align: center; text-shadow: 1px 1px 2px rgba(62,62,62,.28); transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-125px) rotate(calc(var(--index) * -360deg / var(--total))); transform-origin: 0 0; }.wheel-label b { display: block; font-size: 11px; }.wheel-pointer { position: absolute; z-index: 3; top: -7px; color: var(--ink); font-size: 35px; line-height: 1; }.spin-button { position: relative; z-index: 4; margin-top: -35px; min-width: 145px; }.spin-button:disabled { cursor: wait; opacity: .7; }.lottery-result { padding: 35px; border: 1px solid var(--line); border-radius: 22px; text-align: center; background: var(--white); }.result-star { display: block; color: var(--yellow); font-size: 52px; }.lottery-result .eyebrow { margin-top: 10px; }.lottery-result h2 { min-height: 35px; color: var(--purple); }.lottery-result p { min-height: 25px; color: var(--muted); font-weight: 800; }.lottery-result form { margin: 25px 0 16px; }.lottery-result button:disabled { cursor: not-allowed; opacity: .45; }.choose-own { color: var(--coral); font-size: 14px; font-weight: 900; }
:root {
  --cream: #fff7e6;
  --coral: #ff6f61;
  --teal: #4db6ac;
  --purple: #7e57c2;
  --ink: #3e3e3e;
  --muted: #806f67;
  --line: #eadbcb;
  --yellow: #ffd166;
  --white: #fffdf9;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "Nunito", "Comic Sans MS", sans-serif; font-size: 17px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
.topbar { min-height: 82px; padding: 14px max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; gap: 24px; background-color: var(--white); background-image: radial-gradient(circle at 12px 12px, rgba(255,111,97,.10) 2px, transparent 2.5px); background-size: 24px 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; flex: 0 0 auto; gap: 10px; color: var(--purple); font-size: 17px; line-height: 1; letter-spacing: .2px; white-space: nowrap; }
.brand b { color: var(--coral); font-size: 18px; }
.brand-star { display: grid; place-items: center; width: 40px; height: 40px; color: var(--white); background: var(--coral); clip-path: polygon(50% 0, 61% 34%, 98% 35%, 69% 56%, 79% 93%, 50% 71%, 20% 93%, 30% 56%, 2% 35%, 39% 34%); font-size: 21px; }
.nav-links { display: flex; align-items: center; justify-content: center; flex: 1; gap: 6px; margin-left: auto; font-weight: 900; color: #776a65; }
.nav-links a { display: inline-flex; align-items: center; gap: 5px; padding: 9px 10px; border-radius: 12px; white-space: nowrap; font-size: 14px; transition: background .15s ease, color .15s ease, transform .15s ease; }
.nav-links a span { font-size: 17px; }
.nav-links a:hover { color: var(--purple); background: #f0eafd; transform: translateY(-1px); }
.nav-links a:nth-child(2):hover { color: #d34e42; background: #ffe4df; }.nav-links a:nth-child(3):hover { color: #217f77; background: #dcf5f0; }
.toolbar-menu { position: relative; }.toolbar-menu summary, .account summary { list-style: none; cursor: pointer; }.toolbar-menu summary::-webkit-details-marker, .account summary::-webkit-details-marker { display: none; }.toolbar-menu summary { display: inline-flex; align-items: center; gap: 5px; padding: 9px 10px; border-radius: 12px; white-space: nowrap; font-size: 14px; }.toolbar-menu summary:hover { color: var(--purple); background: #f0eafd; }.toolbar-dropdown, .account-dropdown { position: absolute; z-index: 5; display: grid; min-width: 190px; padding: 8px; gap: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 8px 20px rgba(62,62,62,.14); }.toolbar-dropdown { top: 43px; left: 0; }.account-dropdown { top: 48px; right: 0; }.toolbar-dropdown a, .account-dropdown a, .account-dropdown button { display: block; padding: 9px 10px; border-radius: 8px; color: var(--ink); font-size: 14px; text-align: left; white-space: nowrap; }.toolbar-dropdown a:hover, .account-dropdown a:hover, .account-dropdown button:hover { color: var(--purple); background: #f0eafd; }
.menu-label { display: block; padding: 5px 10px 2px; color: var(--purple); font-size: 12px; text-transform: uppercase; }.language-form { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px; padding: 7px 10px; border-top: 1px dashed var(--line); }.language-form label { color: var(--muted); font-size: 12px; }.language-form select { padding: 5px 7px; font-size: 12px; }.language-form button { grid-column: 1 / -1; border: 0; color: var(--purple); background: #f0eafd; font-size: 12px; font-weight: 900; }
.section-heading a:hover, .back-link:hover { color: var(--coral); }
.account { position: relative; display: flex; align-items: center; flex: 0 0 auto; gap: 7px; padding-left: 10px; border-left: 1px solid var(--line); font-weight: 800; }.account summary { display: flex; align-items: center; gap: 7px; }.account-caret { color: var(--muted); font-size: 18px; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; color: white; border-radius: 50%; background: var(--teal); font-weight: 900; }
.profile-photo { object-fit: cover; }
.skill-photo { flex: 0 0 43px; width: 43px; height: 43px; object-fit: cover; border-radius: 12px; border: 2px solid #ffe1d9; }
.avatar.large { width: 54px; height: 54px; font-size: 25px; }
.logout { border: 0; color: var(--muted); background: transparent; padding: 5px; font-size: 13px; white-space: nowrap; }.logout:hover { color: var(--coral); }
.page-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 70px; }
.welcome-row, .level-heading, .section-heading, .form-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(36px, 5vw, 58px); line-height: .98; letter-spacing: -1px; }
h1 em { color: var(--coral); font-style: normal; }
h2 { margin-bottom: 4px; font-size: 28px; }
h3 { margin-bottom: 3px; font-size: 18px; }
.lead { max-width: 580px; margin-bottom: 0; color: var(--muted); font-size: 19px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--purple); font-size: 13px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; }
.wave { display: inline-block; color: var(--yellow); font-size: 44px; transform: rotate(14deg); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 11px 22px; border: 0; border-radius: 13px; color: white; font-weight: 900; box-shadow: 0 5px 0 rgba(62,62,62,.12); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(62,62,62,.12); }
.button-coral { background: var(--coral); }.button-purple { background: var(--purple); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 42px 0 20px; }
.stat-card { position: relative; min-height: 164px; padding: 23px 27px; overflow: hidden; border-radius: 18px; color: white; box-shadow: 0 8px 0 rgba(62,62,62,.07); }
.stat-card::after { content: ""; position: absolute; right: -25px; bottom: -60px; width: 160px; height: 160px; border: 22px solid rgba(255,255,255,.15); border-radius: 50%; }
.coral-card { background: var(--coral); }.teal-card { background: var(--teal); }.purple-card { background: var(--purple); }
.stat-icon { float: right; font-size: 30px; }.stat-card p { margin: 0 0 5px; font-weight: 800; }.stat-card strong { display: block; font-size: 44px; line-height: 1; }.stat-card small { font-size: 14px; opacity: .9; }
.level-band { display: flex; align-items: center; gap: 20px; min-height: 146px; padding: 23px 30px; margin-bottom: 42px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.level-badge { flex: 0 0 67px; display: grid; place-items: center; height: 67px; color: white; background: var(--yellow); border-radius: 50%; font-size: 13px; line-height: .9; font-weight: 900; }.level-badge strong { font-size: 27px; }
.level-copy { flex: 1; }.level-heading h2 { font-size: 23px; }.level-heading span, .level-copy p { color: var(--muted); font-size: 14px; font-weight: 800; }.progress { height: 13px; margin: 11px 0 6px; overflow: hidden; border-radius: 20px; background: #f1e9de; }.progress span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }.level-copy p { margin: 0; }.trophy { font-size: 48px; transform: rotate(9deg); }
.content-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: 20px; }.activity-panel, .reward-panel { min-height: 310px; padding: 27px 30px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }.section-heading { align-items: end; margin-bottom: 20px; }.section-heading h2 { margin: 0; }.section-heading a { color: var(--purple); font-weight: 900; font-size: 14px; }.activity-list { display: grid; gap: 7px; }.activity-item, .reward-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }.activity-item:last-child, .reward-row:last-child { border: 0; }.activity-icon { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 12px; background: #fff0db; font-size: 23px; }.activity-item p, .reward-row p, .family-row p { margin: 0; color: var(--muted); font-size: 13px; }.activity-item > strong, .reward-row > strong { margin-left: auto; color: var(--coral); font-size: 19px; }.reward-row > span { font-size: 26px; }.reward-empty { padding: 30px 0; text-align: center; color: var(--muted); }.reward-empty span { font-size: 48px; }.empty-state { padding: 40px 0; color: var(--muted); text-align: center; }
.flash-stack { display: grid; gap: 8px; margin-bottom: 20px; }.flash { padding: 13px 17px; border-radius: 11px; font-weight: 800; }.flash.success { background: #d9f3df; color: #216b3a; }.flash.error, .flash.warning { background: #ffe0d9; color: #93443a; }
.login-page { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 590px; align-items: stretch; overflow: hidden; border-radius: 25px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 0 rgba(62,62,62,.06); }.login-art { position: relative; display: flex; flex-direction: column; justify-content: end; padding: 50px; overflow: hidden; color: white; background: var(--teal); }.login-art::before { content: ""; position: absolute; left: -25%; bottom: -25%; width: 140%; aspect-ratio: 1; border-radius: 50%; background: var(--purple); }.login-art p, .rocket, .sun { position: relative; z-index: 1; }.login-art p { font-size: 31px; line-height: 1.05; }.login-art strong { color: var(--yellow); }.rocket { position: absolute; top: 24%; left: 38%; font-size: 75px; transform: rotate(-20deg); }.sun { position: absolute; top: 45px; right: 45px; color: var(--yellow); font-size: 50px; }.login-panel { padding: 75px 75px; }.form-grid, .entry-form { display: grid; gap: 20px; margin-top: 30px; }label { display: grid; gap: 7px; color: var(--ink); font-weight: 900; }input, select, textarea { width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 10px; outline: none; color: var(--ink); background: #fffdfa; }input:focus, select:focus, textarea:focus { border-color: var(--teal); }textarea { resize: vertical; }.hint, .optional { color: var(--muted); font-size: 13px; }.hint { margin-top: 20px; }.form-page { max-width: 760px; margin: 0 auto; }.back-link { display: inline-block; margin-bottom: 38px; color: var(--purple); font-weight: 900; }.form-intro { justify-content: start; align-items: start; margin-bottom: 36px; }.big-emoji { font-size: 62px; }.entry-form { padding: 30px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }.family-list { padding: 9px 25px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }.family-row { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line); }.family-row:last-child { border: 0; }.family-row h2 { margin: 0; font-size: 21px; }.role-pill { margin-left: auto; padding: 5px 11px; border-radius: 99px; color: white; font-size: 12px; font-weight: 900; text-transform: uppercase; }.role-pill.parent { background: var(--purple); }.role-pill.child { background: var(--teal); }footer { padding: 24px; color: var(--muted); text-align: center; font-size: 14px; font-weight: 800; }
@media (max-width: 760px) { .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 13px 10px; padding: 15px 18px; }.nav-links { display: flex; flex-direction: column; align-items: stretch; order: 3; grid-column: 1 / -1; width: 100%; gap: 5px; margin: 0; }.nav-links a, .toolbar-menu summary { justify-content: flex-start; min-width: 0; width: 100%; min-height: 42px; padding: 9px 13px; font-size: 14px; }.nav-links a span, .toolbar-menu summary span { display: inline-block; width: 25px; font-size: 17px; text-align: center; }.toolbar-menu summary { border-radius: 12px; }.toolbar-dropdown { position: static; min-width: 0; margin: 0 0 4px 25px; border: 0; box-shadow: none; background: #fff0db; }.toolbar-dropdown a { min-height: 38px; }.account { display: block; max-width: 155px; margin-left: 0; padding-left: 7px; }.account summary { display: flex; }.account .account-name { display: none; }.account-dropdown { top: 43px; right: 0; min-width: 180px; }.page-shell { width: min(100% - 30px, 600px); padding-top: 34px; }.welcome-row { align-items: start; flex-direction: column; }.welcome-row .button { width: 100%; }.stats-grid, .content-grid, .login-page { grid-template-columns: 1fr; }.stats-grid { gap: 12px; margin-top: 28px; }.stat-card { min-height: 130px; }.level-band { align-items: start; padding: 20px; }.trophy { display: none; }.level-badge { flex-basis: 56px; height: 56px; }.level-heading { align-items: start; flex-direction: column; gap: 2px; }.activity-panel, .reward-panel { padding: 22px 20px; }.login-art { min-height: 250px; padding: 30px; }.login-art p { font-size: 25px; }.rocket { top: 18%; left: 43%; font-size: 55px; }.login-panel { padding: 40px 27px; }.form-row { grid-template-columns: 1fr; }.form-intro { gap: 14px; }.big-emoji { font-size: 48px; }h1 { font-size: 40px; } }
@media (max-width: 760px) { .lottery-heading, .lottery-layout { grid-template-columns: 1fr; display: grid; }.lottery-balance { justify-self: start; }.lottery-layout { gap: 28px; }.lottery-result { padding: 25px 18px; }.manage-add-form { flex-wrap: wrap; }.manage-add-form input:first-of-type { flex: 1 1 100%; }.managed-row { align-items: stretch; flex-wrap: wrap; }.managed-row form:first-child { flex: 1 1 100%; }.managed-row form:last-child { margin-left: auto; } }
.wheel-label { width: 52%; height: 32px; font-size: 12px; }.wheel-label b.wheel-number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 3px; border: 2px solid white; border-radius: 50%; background: rgba(62,62,62,.32); font-size: 12px; }.wheel-text { display: inline-block; max-width: 105px; overflow: hidden; vertical-align: middle; text-overflow: ellipsis; white-space: nowrap; }.wheel-key { margin-top: 35px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }.key-note { color: var(--muted); font-size: 13px; font-weight: 800; }.wheel-key-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }.wheel-key-item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; min-width: 0; padding: 9px 0; border-bottom: 1px dashed var(--line); }.wheel-key-item > b { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: white; background: var(--purple); font-size: 12px; }.wheel-key-item span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }.wheel-key-item strong { color: var(--coral); font-size: 13px; white-space: nowrap; }
@media (max-width: 760px) { .wheel-key { padding: 20px 16px; }.wheel-key-list { grid-template-columns: 1fr; gap: 0; }.key-note { display: block; margin-top: 5px; }.wheel-text { max-width: 82px; } }
@media (max-width: 760px) { .lottery-filter { flex-wrap: wrap; }.lottery-filter label { flex: 1 1 100%; }.lottery-filter select { flex: 1; min-width: 0; }.lottery-filter .button { min-width: 75px; } }
.wheel-label { width: 30px; height: 30px; margin-left: -15px; color: var(--ink); font-family: "Nunito", sans-serif; text-shadow: none; transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-132px) rotate(calc(var(--index) * -360deg / var(--total))); }.wheel-label b.wheel-number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 0; border: 3px solid white; border-radius: 50%; color: white; background: var(--coral); font-size: 14px; box-shadow: 0 2px 4px rgba(62,62,62,.25); }
@media (max-width: 760px) { .wheel-label { transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-112px) rotate(calc(var(--index) * -360deg / var(--total))); } }
.wheel-label { transform: rotate(calc((var(--index) + .5) * 360deg / var(--total))) translateY(-132px) rotate(calc((var(--index) + .5) * -360deg / var(--total))); }
@media (max-width: 760px) { .wheel-label { transform: rotate(calc((var(--index) + .5) * 360deg / var(--total))) translateY(-112px) rotate(calc((var(--index) + .5) * -360deg / var(--total))); } }
.wheel-label { width: 30px; height: 30px; margin-left: -15px; color: var(--ink); text-shadow: none; }.wheel-label b.wheel-number { width: 30px; height: 30px; border: 3px solid white; color: white; background: var(--coral); font-size: 14px; box-shadow: 0 2px 4px rgba(62,62,62,.25); }.wheel-instruction { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; text-align: center; }.wheel-key-item > b { background: var(--coral); }
.lottery-filter { display: flex; align-items: end; gap: 12px; max-width: 620px; margin-top: 25px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }.lottery-filter label { flex: 1; }.lottery-filter select { min-height: 49px; }.lottery-filter .button { min-height: 49px; }
.wheel-label { display: block; width: min(120px, 28%); height: auto; margin-left: -60px; color: white; font-family: "Comic Neue", "Comic Sans MS", sans-serif; font-size: clamp(11px, 1.5vw, 16px); line-height: 1.05; text-shadow: 1px 2px 2px rgba(62,62,62,.4); transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-132px) rotate(calc(var(--index) * -360deg / var(--total))); }.wheel-text { display: -webkit-box; max-width: 120px; overflow: hidden; font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.wheel-label b.wheel-number { display: none; }
@media (max-width: 760px) { .wheel-label { width: 86px; margin-left: -43px; font-size: 11px; transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-112px) rotate(calc(var(--index) * -360deg / var(--total))); }.wheel-text { max-width: 86px; } }
.wheel-label { width: 30px; height: 30px; margin-left: -15px; font-family: "Nunito", sans-serif; font-size: 14px; line-height: 1; text-shadow: none; transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-132px) rotate(calc(var(--index) * -360deg / var(--total))); }.wheel-label b.wheel-number { display: inline-grid !important; place-items: center; width: 30px; height: 30px; margin: 0; border: 3px solid white; border-radius: 50%; color: white; background: var(--coral); font-size: 14px; box-shadow: 0 2px 4px rgba(62,62,62,.25); }
@media (max-width: 760px) { .wheel-label { transform: rotate(calc(var(--index) * 360deg / var(--total))) translateY(-112px) rotate(calc(var(--index) * -360deg / var(--total))); } }
