:root {
  color-scheme: light;
  --forest: #14392e; --deep: #0b291f; --green: #225242; --berry: #7d293f;
  --gold: #edcd88; --cream: #f8f3e7; --white: #fffdf7; --ink: #24362d; --mute: #526156;
  --line: #dfd6c2; --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, sans-serif; color: var(--ink); background: var(--cream);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
p { line-height: 1.55; }
h1,h2,h3 { font-family: var(--serif); margin: 0; }
h2 { font-size: clamp(1.55rem, 4vw, 2rem); line-height: 1.12; }
button,input,textarea,select { font: inherit; }
button, a, input, select, textarea { outline-offset: 4px; }
:focus-visible { outline: 3px solid #ad5e00; }
.skip { position: fixed; top: .5rem; left: .5rem; clip-path: inset(50%); z-index: 3; background: white; padding: .8rem; }
.skip:focus { clip-path: none; }
.site-head { min-height: 68px; padding: .65rem max(1rem, calc((100vw - 1100px)/2)); background: var(--deep); color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand { text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.brand span, footer span { color: var(--gold); padding-right: .25em; }
#account { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; justify-content: flex-end; }
#account button { color: var(--white); border-color: #7f9a8e; }
.hero { isolation: isolate; overflow: hidden; position: relative; color: var(--white); padding: clamp(3rem, 8vw, 6.3rem) 1rem; text-align: center; border-bottom: 4px solid var(--gold);
  background: radial-gradient(ellipse at 50% 105%, #31634e, transparent 65%), radial-gradient(circle, #e9d49d55 1px, transparent 1.6px) 0 0 / 37px 37px, var(--forest); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.2rem); line-height: .97; font-weight: 400; letter-spacing: -.045em; }
.hero h1 em { color: var(--gold); font-weight: 400; }
.hero p:last-child { margin: 1.4rem 0 0; }
.eyebrow { font-weight: 750; font-size: .875rem; letter-spacing: .19em; color: var(--berry); margin: 0 0 .8rem; }
.hero .eyebrow { color: var(--gold); }
.ornaments { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ornaments i { position: absolute; width: 7rem; height: 7rem; border-radius: 50%; border: 1px solid #eac781aa; top: 25%; left: 8%; background: repeating-linear-gradient(135deg,#a9475f 0 7px,#8a3048 7px 14px); box-shadow: inset -.8rem -1rem 2rem #3d192c88, 0 1rem 3rem #10261f88; }
.ornaments i::before { content: ""; position: absolute; width: 1px; height: 9rem; background: #eac78a; left: 50%; bottom: calc(100% + .3rem); }
.ornaments i::after { content: ""; position: absolute; width: 1.05rem; height: .55rem; border-radius: .18rem; background: #c9a55e; left: calc(50% - .525rem); bottom: 100%; }
.ornaments i:nth-child(2) { left: auto; right: 9%; top: 42%; width: 5.5rem; height: 5.5rem; background: repeating-linear-gradient(45deg,#b99153 0 4px,#eac98c 4px 8px); }
.ornaments i:nth-child(3) { left: auto; right: 4%; top: 14%; width: 2.5rem; height: 2.5rem; background: #8b344c; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1.1rem, 3vw, 2rem); box-shadow: 0 .5rem 1.8rem #432f1210; }
.sign-in { width: min(100% - 2rem, 32rem); margin: 2rem auto; }
.notice { width: min(100% - 2rem, 70rem); margin: 1rem auto; padding: .8rem 1rem; border-left: 4px solid var(--berry); background: var(--white); overflow-wrap: anywhere; }
label { display: block; font-weight: 650; }
input:not([type=checkbox],[type=radio]),select,textarea { display: block; width: 100%; margin: .35rem 0 .9rem; padding: .65rem .75rem; min-height: 46px; border: 1px solid #8b9589; border-radius: .45rem; color: var(--ink); background: white; }
textarea { min-height: 90px; resize: vertical; }
button { min-height: 46px; border: 1px solid transparent; border-radius: .5rem; background: var(--berry); color: white; font-weight: 700; padding: .55rem 1rem; cursor: pointer; }
button:hover:not(:disabled) { filter: brightness(1.12); }
button:disabled { cursor: default; }
.subtle { background: transparent; color: var(--forest); border-color: #8a998b; }
.sign-in button { width: 100%; }
.family { width: min(100% - 2rem, 1100px); margin: 2rem auto; display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 1.5rem; align-items: start; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; justify-content: space-between; margin-bottom: 1rem; }
#unlock-status { color: var(--mute); font-size: .875rem; }
#doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; }
.door { min-height: 100px; padding: .45rem .15rem; border: 1px solid #4c7561; background: var(--forest); color: var(--white); overflow-wrap: anywhere; }
.door span { display: block; font: 2rem/1.15 var(--serif); }
.door small { display: block; font-size: .875rem; margin-top: .3rem; }
.door[aria-disabled=true] { border-color: #c9c0aa; background: #ede6d6; color: #555447; }
.door.current { background: var(--berry); border-color: var(--gold); box-shadow: inset 0 0 0 2px var(--gold); }
.door.done:not(.current) { background: var(--green); }
.leaderboard p { margin: .4rem 0 1.1rem; color: var(--mute); }
.leaderboard ol { padding-left: 1.35rem; margin: 0; }
.leaderboard li { padding-left: .25rem; margin: 0 0 1rem; }
.rank-line { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; overflow-wrap: anywhere; }
progress { width: 100%; height: .65rem; accent-color: var(--berry); }
.rank-detail { color: var(--mute); font-size: .875rem; }
footer { text-align: center; margin: 3rem 0 1.5rem; color: var(--mute); }
footer span { color: var(--berry); }
dialog { width: min(100% - 1.5rem, 34rem); max-height: calc(100% - 1.5rem); border: 1px solid var(--line); border-radius: 1rem; padding: clamp(1rem, 4vw, 2rem); color: var(--ink); background: var(--white); }
dialog::backdrop { background: #06251dc2; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.dialog-head .eyebrow { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 .85rem; min-width: 0; }
legend { font-weight: 700; margin-bottom: .4rem; }
.choice { display: flex; min-height: 46px; gap: .6rem; align-items: center; padding: .5rem; border: 1px solid var(--line); border-radius: .4rem; margin-bottom: .35rem; }
.choice input,.check-label input { width: 1.15rem; height: 1.15rem; accent-color: var(--berry); flex: none; }
.surprise { white-space: pre-wrap; padding: .8rem 1rem; background: var(--cream); border-left: 3px solid var(--berry); overflow-wrap: anywhere; }
.is-admin .hero { padding-block: clamp(2.4rem, 6vw, 4rem); }
.is-admin .hero h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); }
.admin-view { width: min(100% - 2rem, 1100px); margin: 1.25rem auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.admin-view .full { grid-column: 1/-1; }
.admin-view h2 { margin-bottom: .85rem; font-size: 1.4rem; }
.check-label { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; min-height: 36px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
td,th { padding: .55rem; text-align: left; border-bottom: 1px solid var(--line); }
@media (max-width: 840px) { .ornaments { opacity: .35; } .ornaments i:first-child { left: -3rem; } .ornaments i:nth-child(2) { right: -2.5rem; } .ornaments i:nth-child(3) { right: 2%; } }
@media (max-width: 660px) { #account { flex-wrap: nowrap; } .brand { font-size: 1rem; } .family,.admin-view { grid-template-columns: 1fr; } .door { min-height: 78px; } .door span { font-size: 1.6rem; } #doors { gap: .3rem; } .door small { font-size: .81rem; } }

.family-replies { padding-left: 1.25rem; }
.family-replies p { margin: .2rem 0 .75rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.header-action { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px;
  padding: .55rem .7rem; border: 1px solid #7f9a8e; border-radius: .5rem; font-weight: 700; text-decoration: none; }
.eye-icon { position: relative; display: inline-block; width: .85rem; height: .85rem; border: 1.5px solid currentColor;
  border-radius: 75% 15%; transform: rotate(45deg); }
.eye-icon::after { content: ''; position: absolute; inset: 28%; border-radius: 50%; background: currentColor; }
@media (max-width: 660px) { .is-admin #account { flex-wrap: wrap; } }

.door-wordle { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.door-wordle p { margin: .35rem 0 .65rem; }
.wordle-link { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem .65rem;
  color: var(--berry); border: 1px solid var(--berry); border-radius: .45rem; font-weight: 700; }
