:root {
  --ink: #2d2a32; --soft: #6d6877; --line: #e6e1ee; --bg: #f6f3fb;
  --purple: #7C5CE0; --pink: #E0559A; --blue: #2F8FD8; --green: #2FA36B; --amber: #E08A1E;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 Nunito, "Segoe UI", system-ui, sans-serif; }
#app { max-width: 620px; margin: 0 auto; padding: 12px 14px 112px; }
body.previewing #app { max-width: 860px; padding-bottom: 24px; }
h2, h3, .brand, .num { font-family: Fredoka, Nunito, "Segoe UI", sans-serif; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.top { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px; margin-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 700; line-height: 1; padding: 2px 4px 10px; }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand i { font-style: normal; color: var(--purple); } .brand b { color: var(--pink); font-weight: 700; }
.tabs { display: flex; gap: 6px; }
.tab { flex: 1; min-height: 44px; border: 0; border-radius: 14px; background: transparent; font-weight: 800; font-size: 14.5px; color: var(--soft); padding: 8px 4px; }
.tab.on { background: #ece6fd; color: #5a3fc4; }
body.previewing .top, body.locked .tabs { display: none; }
body.locked .brand { padding-bottom: 2px; }
.err { margin: 0 2px 10px; color: #b42318; font-weight: 800; font-size: 14.5px; } .err:empty { display: none; }
.buy { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.note a { color: #5a3fc4; font-weight: 800; }
#v-lock .advice { margin: 0 0 12px; }

.hero { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 12px 14px; margin-bottom: 12px; text-align: center; }
#heroArt, .art-row { display: flex; justify-content: center; gap: 4px; }
#heroArt span, .art-row span { width: 15%; max-width: 62px; }
#heroArt svg, .art-row svg, .pk-art svg { display: block; width: 100%; height: auto; }
.hero p { margin: 6px 0 0; font-weight: 800; }

.card { --c: var(--purple); --t: #f3effe; background: linear-gradient(180deg, var(--t), #fff 120px); border: 1.5px solid color-mix(in srgb, var(--c) 28%, #fff); border-radius: 24px; padding: 16px; margin-bottom: 14px; }
.c-pink { --c: var(--pink); --t: #fdeef6; } .c-blue { --c: var(--blue); --t: #e9f4fd; }
.c-green { --c: var(--green); --t: #e7f7ef; } .c-amber { --c: var(--amber); --t: #fef3e2; }
.head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.num { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.head h2 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 600; }
.head p { margin: 2px 0 0; color: var(--soft); font-size: 14px; line-height: 1.3; }

label { display: block; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
select, input:not([type=checkbox]) { display: block; width: 100%; min-height: 48px; margin-top: 5px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; font-weight: 700; font-size: 16px; }
select:focus, input:focus, button:focus-visible { outline: 3px solid color-mix(in srgb, var(--c, var(--purple)) 45%, #fff); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 700; }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--green); }
.advice { background: #fff; border: 1.5px dashed color-mix(in srgb, var(--c) 40%, #fff); border-radius: 14px; padding: 10px 12px; font-size: 14px; }
.link { border: 0; background: none; padding: 2px 0; color: #5a3fc4; font-weight: 800; text-decoration: underline; }

.acts { display: grid; gap: 8px; }
.act { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; text-align: left; font-weight: 800; }
.act .nm { flex: 1; min-width: 0; }
.act.on { border-color: var(--c); background: #f1f8fe; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; font-size: 15px; line-height: 1; }
.act.on .tick { background: var(--c); border-color: var(--c); }
.star { flex: none; font-size: 12px; font-weight: 800; color: #9a5b00; background: #fff1d6; border-radius: 99px; padding: 3px 8px; white-space: nowrap; }
.note { margin: 8px 2px 0; font-size: 13.5px; color: var(--soft); } .note:empty { display: none; }

.ghost { min-height: 44px; margin-top: 10px; padding: 8px 14px; width: 100%; border: 1.5px solid color-mix(in srgb, var(--c, var(--purple)) 45%, #fff); border-radius: 14px; background: #fff; font-weight: 800; color: var(--ink); }
.primary { width: 100%; min-height: 56px; border: 0; border-radius: 18px; background: var(--purple); color: #fff; font: 600 19px Fredoka, Nunito, sans-serif; padding: 10px 16px; }
.primary:disabled { background: #b9b4c2; cursor: not-allowed; }
.primary.small { width: auto; min-height: 44px; font-size: 16px; border-radius: 14px; white-space: nowrap; }
.cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 5; }
.cta button { display: block; max-width: 592px; margin: 0 auto; }

.packs { display: grid; gap: 8px; }
.packs h3 { margin: 10px 2px 0; font-size: 18px; font-weight: 600; }
.packs h3:first-child { margin-top: 0; }
.pack { display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border: 1.5px solid #f4dcb4; border-radius: 16px; background: #fff; text-align: left; }
.pk-art { flex: none; width: 54px; }
.pk-txt { min-width: 0; display: block; }
.pk-txt b { display: block; font: 600 17px/1.2 Fredoka, Nunito, sans-serif; }
.pk-txt small { display: block; font-size: 13.5px; line-height: 1.3; color: var(--soft); margin: 2px 0 3px; }
.pk-txt i { display: block; font-style: normal; font-size: 12.5px; font-weight: 800; color: #9a5b00; }
.pk-txt i.pk-acts { color: var(--soft); font-weight: 700; }

.guide h2 { font-size: 20px; font-weight: 600; margin: 16px 0 6px; } .guide h2:first-child { margin-top: 0; }
.guide p { margin: 0; } .guide ol, .guide ul { margin: 0; padding-left: 22px; } .guide li { margin-bottom: 4px; }

.ptools { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; background: var(--bg); padding: 4px 0 10px; }
.ptools .ghost { width: auto; margin: 0; white-space: nowrap; padding: 8px 12px; }
.ptools span { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 800; color: var(--soft); }
@media (max-width: 460px) { .ptools span { display: none; } .ptools #print { flex: 1; } }
