@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,650;12..96,800&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root { color-scheme: light; --ink: #221641; --muted: #5c5074; --paper: #fcfaff; --purple: #5730bd; --yellow: #ffe467; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "DM Sans", system-ui, sans-serif; }
h1, h2, h3, .brand { font-family: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; }
:focus-visible { outline: 3px solid #0747c3; outline-offset: 4px; }
.wrap { width: min(1190px, calc(100% - 64px)); margin-inline: auto; }
.top { background: #fff; border-bottom: 1px solid #ede7f8; }
.bar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 800; font-size: 1.55rem; letter-spacing: -.055em; white-space: nowrap; }
.brand > span:last-child { color: var(--purple); }
.brand-icon { display: inline-grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; background: var(--purple); color: white; font-size: 24px; margin-right: 3px; }
.nav-link { font-weight: 800; color: var(--purple); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero { margin-top: 24px; min-height: 438px; background: #5d32ce; color: white; border-radius: 32px; position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr .88fr; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 84% 60%, #9467f2 0%, transparent 57%), radial-gradient(circle, #fff2 1.35px, transparent 1.5px) 0 0 / 23px 23px; }
.hero-copy { padding: 52px 0 57px 60px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 20px; border-radius: 99px; padding: 5px 12px; background: #4220a1; font-weight: 800; }
.eyebrow span { color: var(--yellow); }
h1 { font-size: clamp(3rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -.062em; font-weight: 800; }
h1 em { color: var(--yellow); font-style: normal; }
.intro { font-size: 1.14rem; max-width: 34ch; margin: 21px 0 24px; }
.button { background: var(--purple); color: white; border: 0; border-radius: 13px; padding: 11px 17px; display: inline-flex; align-items: center; justify-content: center; width: fit-content; font-weight: 800; text-decoration: none; }
.button:hover { filter: brightness(.9); }
.button-yellow { background: var(--yellow); color: var(--ink); }
.hero .button { box-shadow: 0 5px 0 #342075; padding-inline: 22px; }
.playground { position: relative; height: 100%; min-height: 375px; container-type: inline-size; }
.playground span, .playground .shape, .floor { position: absolute; }
.floor { background: #a77af6; width: 78%; height: 26%; border-radius: 50%; bottom: 8%; left: 5%; transform: rotate(-7deg); box-shadow: 0 10px 0 #7950d7, inset 0 4px 0 #c39afa; }
.shape { background-image: repeating-linear-gradient(0deg,#fff0 0 3px,#fff2 4px 5px); }
.block { width: 34%; aspect-ratio: 1; border-radius: 25%; left: 23%; top: 25%; background-color: #ff93ac; color: #3f2154; transform: rotate(-14deg); box-shadow: 12px 15px 0 #ac376e, 21px 36px 28px #39207575, inset 7px 8px 0 #ffc5d3; }
.toy-eyes { width: 8%; height: 11%; left: 31%; top: 38%; border-radius: 100%; background: currentColor; box-shadow: 6.7cqw 0 currentColor; }
.toy-smile { width: 25%; height: 14%; border-bottom: 5px solid; border-radius: 50%; top: 48%; left: 36%; }
.ring { width: 30%; aspect-ratio: 1; border: 5.5cqw solid #76f2ce; border-radius: 50%; background: transparent; right: 12%; top: 18%; transform: rotate(15deg) scaleX(.83); box-shadow: 10px 9px 0 #24998e, inset 6px 5px 0 #24998e, 16px 24px 24px #44227d60; }
.star { background: none; color: #ffe266; font-size: 34cqw; line-height: 1; left: 48%; bottom: 13%; transform: rotate(12deg); text-shadow: 5px 7px #e4a237, 11px 15px 16px #38206c82; }
.bead { width: 8%; aspect-ratio: 1; border-radius: 28%; background-color: #6ce8ff; bottom: 17%; left: 19%; transform: rotate(18deg); box-shadow: 3px 5px 0 #288dba; }
.spark { font-weight: 800; color: var(--yellow); font-size: 7cqw; }
.spark-one { top: 13%; left: 12%; }
.spark-two { color: white; top: 8%; right: 27%; }
.spark-three { color: #f8abff; right: 9%; bottom: 25%; font-size: 5cqw; }
.beam { width: 13%; height: 4%; border-top: 3px solid #ffe467; border-radius: 60%; }
.beam-one { top: 57%; left: 6%; transform: rotate(-59deg); }
.beam-two { right: 5%; top: 55%; transform: rotate(-48deg); }
.catalog { margin-top: 35px; scroll-margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; letter-spacing: -.045em; font-weight: 800; margin-bottom: 8px; }
.section-heading p, .card-copy p, small { color: var(--muted); }
.doodle { color: #a42d84; font-size: 2.6rem; line-height: 1; transform: rotate(-14deg); padding-right: 6px; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.toy-card, .panel { min-width: 0; background: #fff; border: 1px solid #e8e1f3; border-radius: 20px; }
.toy-card { padding: 7px; display: flex; flex-direction: column; }
.tile { display: grid; place-items: center; min-height: 105px; border-radius: 14px; background-image: radial-gradient(circle, #fff9 1.5px, transparent 1.6px); background-size: 17px 17px; }
.tile span { font-size: 50px; line-height: 1; transform: rotate(-13deg); text-shadow: 2px 4px #fff9; }
.tile-1 { background-color: #e8d8ff; color: #7435c5; }
.tile-2 { background-color: #fff0aa; color: #9b6100; }
.tile-3 { background-color: #baf4e3; color: #007a65; }
.tile-4 { background-color: #ffdaf0; color: #a82369; }
.tile-5 { background-color: #cfeaff; color: #2968b8; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 6px; padding: 10px; }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.card-copy p { overflow-wrap: anywhere; }
.card-copy .price { color: var(--ink); font-weight: 800; margin-top: auto; }
.card-copy .button { margin-top: 3px; width: 100%; text-align: center; }
.footer { border-top: 1px solid #e7dff2; margin-top: 38px; min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.footer .brand { font-size: 1.14rem; }
.footer .brand-icon { width: 28px; height: 28px; font-size: 17px; border-radius: 9px; }
dialog { border: 0; border-radius: 24px; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; color: var(--ink); box-shadow: 0 20px 70px #29165180; }
dialog::backdrop { background: #20123aae; }
.dialog-inner { padding: 28px; }
.dialog-inner h2 { padding-right: 24px; }
.dialog-inner > p { margin-bottom: 15px; }
.close { position: absolute; top: 8px; right: 10px; border: 0; border-radius: 50%; width: 36px; height: 36px; background: #f1eafa; color: var(--ink); font-size: 24px; line-height: 1; }
.fields { display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-size: .95rem; font-weight: 700; }
input:not([type=checkbox]), textarea, select { min-width: 0; width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid #bfb3d1; background: #fff; color: var(--ink); }
select { appearance: none; background: linear-gradient(45deg, transparent 50%, #5c5074 50%) calc(100% - 15px) 53% / 5px 5px no-repeat, linear-gradient(135deg, #5c5074 50%, transparent 50%) calc(100% - 10px) 53% / 5px 5px no-repeat, #fff; padding-right: 27px; }
.order-total { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #e7dff2; }
.error { color: #a02249; }
.admin { padding-bottom: 40px; }
.admin h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 22px 0 32px; }
.admin section { margin-top: 24px; }
.sign-in-panel { max-width: 430px; margin-inline: auto; }
.sign-in-panel h1 { margin-block: 0 20px; }
.portal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#staff-pin dt { font-weight: 700; }
#staff-pin dd { margin: 2px 0 12px; font-family: monospace; user-select: all; }
.edit-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel { padding: 20px; }
.panel h3 { margin-bottom: 3px; }
.panel > p { margin-bottom: 10px; }
.staff-list { list-style: none; margin: 16px 0 0; padding: 0; }
.staff-member { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; padding-block: 12px; }
.staff-list .staff-member { border-top: 1px solid #e8e1f3; }
.staff-member strong { align-self: center; flex: 1 1 220px; overflow-wrap: anywhere; }
.staff-add label:first-child { flex: 1 1 240px; }
.staff-member label { display: grid; gap: 4px; }
.staff-member .form-status:empty { display: none; }
.staff-member .form-status { flex: 1 0 100%; }
.button-secondary { background: #efe8fa; color: var(--ink); }
.checkbox { display: flex; align-items: center; }
.form-status:empty { display: none; }
summary { font-weight: 800; cursor: pointer; margin-top: 12px; }
details ol { padding-left: 24px; }
details li + li { margin-top: 6px; }
.script-label { margin: 12px 0; }
.table-scroll { overflow-x: auto; }
.order-status { display: inline-block; border-radius: 999px; background: #fff0be; color: #5c3a09; padding: 3px 9px; font-weight: 700; }
.order-status-done { background: #def4e5; color: #215236; }
.order-status-button { display: block; background: none; border: 0; color: var(--purple); text-decoration: underline; padding: 8px 0 0; white-space: nowrap; }
.order-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-block-start: 14px; }
.order-links { margin-block-end: 12px; }
#order-status-message:empty { display: none; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; min-width: 90px; padding: 9px; border-bottom: 1px solid #efe9f6; }
th { background: #f5efff; white-space: nowrap; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 40px, 1190px); }
  .hero { min-height: 380px; }
  .hero-copy { padding-left: 30px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .edit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 28px); }
  .bar { min-height: 64px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; border-radius: 24px; }
  .hero-copy { padding: 30px 24px 8px; }
  .playground { height: 59vw; min-height: 190px; max-height: 300px; width: min(100%, 440px); margin-inline: auto; }
  .intro { margin: 15px 0; }
  .cards, .edit-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .edit-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: clamp(2.65rem, 10vw, 4.1rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

.toy-gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; }
.toy-gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5efff; scroll-snap-align: start; }
.photo-editor { min-inline-size: 0; display: grid; gap: 8px; margin: 0; padding: 10px; border: 1px solid #e8e1f3; border-radius: 12px; }
.photo-editor legend { font-weight: 800; }
.photo-editor input[type="file"] { width: 100%; }
.saved-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.saved-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f5efff; border-radius: 8px; }

.new-toy { margin-bottom: 16px; }
.new-toy summary { width: fit-content; cursor: pointer; color: var(--purple); font-weight: 800; }
.new-toy[open] summary { margin-bottom: 10px; }
.new-toy form { max-width: 480px; }

.display-shelf {
  position: relative;
  padding: clamp(14px, 2.5vw, 28px) clamp(10px, 2.5vw, 28px) 24px;
  border: 9px solid #b2774d;
  border-bottom-width: 15px;
  border-radius: 16px 16px 10px 10px;
  background: repeating-linear-gradient(0deg, #70452c0c 0 1px, transparent 1px 16px), linear-gradient(#d7ad8e, #f2d9bc 75%, #e8bc95);
  box-shadow: inset 0 7px 18px #60412b50, 0 12px 18px -12px #5a321f90;
}
.display-shelf::after {
  content: "";
  position: absolute;
  inset: auto -13px -14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(#d59b69, #b2774d 62%, #95613f);
  box-shadow: 0 5px 0 #75492930;
}
.shelf-cards .toy-card { box-shadow: 0 5px 0 #764a3326, 0 8px 15px #764a3320; }
.more-toys { margin-top: 28px; }
.more-toys h3 { margin-bottom: 12px; }
.parents-section { padding: clamp(16px, 3vw, 32px); border: 1px solid #bbd9cf; border-radius: 24px; background: #edf6f2; }
.parents-section h2 { color: #234e45; }
@media (max-width: 590px) {
  .display-shelf { border-left-width: 6px; border-right-width: 6px; }
  .display-shelf::after { inset-inline: -9px; }
  .shelf-cards .toy-card .button { padding-inline: 8px; }
}
@media (max-width: 590px) {
  .top .bar { flex-wrap: wrap; gap: 8px 16px; padding-block: 10px; }
  .top .portal-nav { justify-content: flex-start; }
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-account { background: #4820ae; border: 1px solid #bdabf3; }

.admin-group { display: grid; gap: 12px; scroll-margin-top: 16px; }
.admin-group > h2 { margin-bottom: 0; }
.admin-group > .panel { scroll-margin-top: 16px; }
.admin-group > .panel > h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }

.print-made { color: #4b3389; font-size: .875rem; font-weight: 800; margin-block: .4rem; }
.print-expectations, .checkout-pickup { background: #f3edfd; border-radius: 12px; padding: .75rem 1rem; }
.print-expectations { margin-block: .75rem; }
.print-expectations summary { margin: 0; }
.print-expectations p, .checkout-pickup p { margin: .5rem 0 0; }
.checkout-pickup p:first-child { margin-top: 0; }
.policy-wrap { padding-block: 2rem; }
.policy-panel { max-width: 46rem; margin-inline: auto; }
.policy-panel h1 { font-size: clamp(1.85rem, 7vw, 3rem); line-height: 1.1; margin: .4rem 0 1.3rem; }
.policy-panel h2 { font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.policy-kicker { color: #5730bd; font-weight: 800; font-size: .875rem; letter-spacing: .05em; }
.policy-panel .button { margin-top: .75rem; }

.delivery-address { display: grid; gap: .65rem; min-width: 0; padding: .75rem; border: 1px solid #dfd3f0; border-radius: 12px; }
.delivery-address[hidden] { display: none; }
.delivery-address legend { font-weight: 800; padding-inline: .35rem; }
.delivery-address p { margin: 0; }
.delivery-address-local { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.delivery-address-local input { min-width: 0; }
.private-delivery summary { margin-top: .3rem; font-size: .9rem; }
.delivery-quote label, .delivery-quote-result { display: block; margin-block: .45rem; }
.delivery-quote input { display: block; width: 8rem; max-width: 100%; }
.delivery-quote small { display: block; min-width: 10rem; }
