:root {
    --ink: #29264a;
    --muted: #6f6b8d;
    --purple: #6758f3;
    --purple-dark: #5042d8;
    --cream: #fff9ed;
    --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-width: 300px;
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 7% 18%, rgba(255, 212, 94, .25) 0 5px, transparent 6px),
        radial-gradient(circle at 94% 34%, rgba(236, 94, 185, .17) 0 7px, transparent 8px),
        linear-gradient(180deg, #fff9ed 0, #fff 690px, #f8fbff 100%);
    font-family: "Trebuchet MS", Arial, sans-serif;
}

body::before,
body::after {
    position: fixed;
    z-index: -1;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    content: "";
    filter: blur(2px);
    opacity: .23;
}

body::before { top: 350px; left: -230px; background: #80e6d0; }
body::after { top: 620px; right: -250px; background: #ffb4d6; }

a { color: inherit; }
button { font: inherit; }

.sky-decoration {
    position: absolute;
    z-index: -1;
    border: 9px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
}

.sky-decoration-one { width: 42px; height: 42px; top: 180px; left: 3%; }
.sky-decoration-two { width: 24px; height: 24px; top: 535px; right: 4%; }

.site-header {
    position: relative;
    z-index: 20;
    padding: max(14px, env(safe-area-inset-top)) 0 10px;
}

.site-header-inner,
.hero,
.catalog,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.site-brand-mark {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #ff7d87, #ffb35f);
    border: 3px solid #fff;
    border-radius: 15px 15px 15px 6px;
    box-shadow: 0 7px 20px rgba(255, 124, 116, .28);
    font-size: 22px;
    transform: rotate(-4deg);
}

.site-brand strong {
    display: block;
    overflow: hidden;
    max-width: 510px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: 20px;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }

.login-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 17px;
    color: #fff;
    background: var(--purple);
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(103, 88, 243, .25);
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}

.login-button:hover { background: var(--purple-dark); transform: translateY(-2px); }

.hero {
    position: relative;
    display: grid;
    min-height: 405px;
    margin-top: 12px;
    grid-template-columns: minmax(0, 1.12fr) minmax(310px, .88fr);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(255,255,255,.18) 0 80px, transparent 81px),
        linear-gradient(120deg, #6254ed 0%, #7464f5 48%, #956ff0 100%);
    border: 5px solid rgba(255, 255, 255, .95);
    border-radius: 38px;
    box-shadow: 0 24px 60px rgba(87, 69, 201, .22);
}

.hero::before,
.hero::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.hero::before { width: 290px; height: 290px; right: -90px; bottom: -155px; background: rgba(255, 209, 102, .27); }
.hero::after { width: 22px; height: 22px; left: 47%; top: 58px; border: 6px solid rgba(255,255,255,.32); }

.hero-copy {
    position: relative;
    z-index: 3;
    align-self: center;
    padding: 52px 26px 52px 58px;
}

.hero-kicker,
.section-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.hero-kicker {
    padding: 8px 12px;
    color: #fff7d6;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
}

.hero h1 {
    margin: 18px 0 14px;
    font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: .98;
    letter-spacing: -2px;
}

.hero h1 span { color: #ffd66b; text-shadow: 0 3px 0 rgba(76, 56, 174, .35); }
.hero p { max-width: 610px; margin: 0; color: rgba(255,255,255,.88); font-size: 16px; line-height: 1.55; }

.hero-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 0 20px;
    color: #3c356e;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 8px 25px rgba(54, 41, 145, .25);
    font-weight: 900;
    text-decoration: none;
    transition: transform .18s ease;
}

.hero-button:hover { transform: translateY(-3px) scale(1.01); }

.hero-art { position: relative; min-height: 385px; }

.hero-kids {
    position: absolute;
    z-index: 3;
    right: -4%;
    bottom: -2px;
    display: block;
    width: min(128%, 680px);
    max-width: none;
    max-height: 400px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 18px 16px rgba(49, 34, 142, .20));
}

.catalog { padding: 64px 0 54px; }

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-kicker { color: #7566ee; }
.catalog h2 { margin: 7px 0 0; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.08; }

.product-count {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #6d5be9;
    background: #f0edff;
    border: 1px solid #ddd7ff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.category-filter {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
    padding: 3px 1px 7px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-pill {
    flex: 0 0 auto;
    min-height: 39px;
    padding: 0 15px;
    color: #625f78;
    background: #fff;
    border: 1px solid #e5e2ef;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(50, 45, 91, .05);
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.category-pill.is-active { color: #fff; background: var(--purple); border-color: var(--purple); }

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 22px;
}

.product-item { min-width: 0; }
.product-item[hidden] { display: none; }

.product-card {
    position: relative;
    display: block;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--card-a), var(--card-b));
    border: 5px solid #fff;
    border-radius: 27px;
    box-shadow: 0 15px 35px rgba(42, 37, 78, .16);
    text-decoration: none;
    transform: translateZ(0);
    transition: transform .22s ease, box-shadow .22s ease;
}

.product-item:nth-child(3n+1) .product-card { border-radius: 31px 24px 29px 24px; }
.product-item:nth-child(3n+2) .product-card { border-radius: 24px 31px 24px 29px; }
.product-card:hover { z-index: 2; box-shadow: 0 22px 42px rgba(42, 37, 78, .24); transform: translateY(-7px) rotate(-.6deg); }
.product-card:focus-visible { outline: 4px solid #ffd15d; outline-offset: 4px; }

.product-cover,
.product-placeholder,
.product-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-cover { object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-cover { transform: scale(1.045); }

.product-placeholder {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.23) 0 7%, transparent 7.5%),
        radial-gradient(circle at 85% 38%, rgba(255,255,255,.15) 0 12%, transparent 12.5%),
        linear-gradient(145deg, var(--card-a), var(--card-b));
}

.placeholder-icon { position: absolute; top: 20%; font-size: clamp(47px, 5vw, 78px); filter: drop-shadow(0 8px 12px rgba(38,28,79,.17)); }
.placeholder-letter { font-family: "Arial Rounded MT Bold", Arial, sans-serif; font-size: clamp(94px, 11vw, 160px); font-weight: 900; opacity: .20; text-shadow: 0 6px 0 rgba(255,255,255,.35); }
.placeholder-sparkle { position: absolute; color: rgba(255,255,255,.78); }
.sparkle-one { top: 11%; right: 12%; font-size: 30px; }
.sparkle-two { left: 13%; top: 47%; font-size: 17px; }

.product-shade { background: linear-gradient(180deg, transparent 35%, rgba(23,17,53,.08) 53%, rgba(23,17,53,.86) 100%); }

.product-play {
    position: absolute;
    top: 18px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding-left: 3px;
    color: #5545d8;
    background: rgba(255,255,255,.92);
    border: 2px solid rgba(255,255,255,.7);
    border-radius: 50%;
    box-shadow: 0 7px 15px rgba(35,26,80,.18);
    font-size: 14px;
}

.product-info {
    position: absolute;
    right: 17px;
    bottom: 18px;
    left: 17px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.product-info small {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 7px;
    overflow: hidden;
    padding: 5px 8px;
    color: #fff;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-info strong { display: -webkit-box; overflow: hidden; font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-size: clamp(20px, 2vw, 27px); line-height: 1.04; text-shadow: 0 2px 8px rgba(0,0,0,.25); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-info > span { margin-top: 9px; color: rgba(255,255,255,.85); font-size: 11px; font-weight: 800; }
.product-info b { margin-left: 4px; font-size: 15px; }

.public-empty,
.filter-empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
    background: rgba(255,255,255,.78);
    border: 2px dashed #dcd7ef;
    border-radius: 28px;
}

.public-empty > span { display: block; margin-bottom: 12px; font-size: 58px; }
.public-empty h3 { margin: 0 0 7px; color: var(--ink); font-size: 25px; }
.public-empty p { margin: 0; }
.filter-empty { width: 100%; }

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 25px 0 calc(28px + env(safe-area-inset-bottom));
    color: #7e7995;
    border-top: 1px solid #ebe8f1;
    font-size: 12px;
}

.site-footer strong { color: #5d5579; }

@media (max-width: 1050px) {
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
    .hero-kids { right: -14%; width: 145%; max-height: 370px; }
}

@media (max-width: 820px) {
    .hero { min-height: 365px; grid-template-columns: 1fr minmax(230px, .68fr); }
    .hero-copy { padding: 42px 20px 42px 35px; }
    .hero-art { min-height: 355px; }
    .hero-kids { right: -18%; width: 155%; max-height: 345px; }
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .site-header-inner,
    .hero,
    .catalog,
    .site-footer { width: min(100% - 20px, 1180px); }

    .site-header { padding-top: max(10px, env(safe-area-inset-top)); }
    .site-brand { gap: 8px; }
    .site-brand-mark { width: 39px; height: 39px; flex-basis: 39px; border-radius: 13px 13px 13px 5px; font-size: 18px; }
    .site-brand strong { max-width: 190px; font-size: 16px; }
    .site-brand small { display: none; }
    .login-button { min-height: 39px; padding: 0 13px; font-size: 13px; }
    .login-button span { display: none; }

    .hero { min-height: 510px; margin-top: 7px; grid-template-columns: 1fr; border-width: 4px; border-radius: 28px; }
    .hero-copy { align-self: start; padding: 31px 21px 250px; text-align: center; }
    .hero-kicker { font-size: 9px; letter-spacing: 1.1px; }
    .hero h1 { margin-top: 15px; font-size: clamp(35px, 11vw, 50px); letter-spacing: -1.4px; }
    .hero p { font-size: 14px; }
    .hero-button { min-height: 43px; margin-top: 17px; padding: 0 17px; font-size: 13px; }
    .hero-art { position: absolute; inset: auto 0 0; height: 250px; min-height: 0; }
    .hero-kids { right: 50%; bottom: -2px; width: 108%; height: auto; max-width: none; max-height: 255px; transform: translateX(50%); }

    .catalog { padding: 42px 0 40px; }
    .catalog-heading { align-items: flex-start; margin-bottom: 18px; }
    .catalog h2 { font-size: 28px; }
    .product-count { margin-top: 17px; padding: 7px 9px; font-size: 10px; }
    .category-filter { margin-bottom: 16px; }
    .category-pill { min-height: 36px; padding: 0 13px; font-size: 12px; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .product-card { border-width: 3px; border-radius: 19px; box-shadow: 0 10px 23px rgba(42,37,78,.16); }
    .product-item:nth-child(3n+1) .product-card,
    .product-item:nth-child(3n+2) .product-card { border-radius: 19px; }
    .product-card:hover { transform: translateY(-3px); }
    .product-play { top: 10px; right: 9px; width: 34px; height: 34px; font-size: 11px; }
    .product-info { right: 11px; bottom: 13px; left: 11px; }
    .product-info small { margin-bottom: 5px; padding: 4px 7px; font-size: 8px; }
    .product-info strong { font-size: clamp(17px, 6vw, 23px); }
    .product-info > span { margin-top: 6px; font-size: 9px; }
    .placeholder-icon { font-size: 49px; }
    .placeholder-letter { font-size: 96px; }
    .site-footer { padding-top: 20px; }
}

@media (max-width: 370px) {
    .site-brand strong { max-width: 145px; font-size: 14px; }
    .login-button { padding: 0 11px; }
    .hero-copy { padding-inline: 15px; }
    .product-grid { gap: 8px; }
    .product-info strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
