/* Lawwin public site */
:root {
  --ink: #1F2A5A;
  --ink-soft: rgba(31, 42, 90, .6);
  --paper: #FFF8EE;
  --coral: #FF6B5B;
  --coral-d: #C9473A;
  --sky: #4CB8F5;
  --blue: #1E88E5;
  --sun: #FFC93C;
  --sun-d: #D49F12;
  --mint: #3DD6A0;
  --radius: 28px;
  --font: "Baloo Bhaijaan 2", ui-rounded, system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  background-image: radial-gradient(rgba(31, 42, 90, .08) 1.6px, transparent 1.7px); background-size: 22px 22px;
  -webkit-tap-highlight-color: transparent; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 780px; }
.muted { color: var(--ink-soft); }
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 238, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 42, 90, .06); }
.header-row { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 8px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 1.6rem; color: var(--ink); }
.brand img { width: 44px; height: 44px; transform: rotate(-12deg); }
.brand.light { color: #fff; }
.search { flex: 1; min-width: 220px; display: flex; background: #fff; border-radius: 999px; box-shadow: 0 0 0 2px rgba(31, 42, 90, .08); overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 10px 18px; font: inherit; color: var(--ink); outline: none; min-width: 0; }
.search button { border: 0; background: var(--ink); color: #fff; width: 48px; display: grid; place-items: center; }
.header-links { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.header-links a { text-decoration: none; font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.hl-art { background: #fff; box-shadow: 0 3px 0 rgba(31, 42, 90, .1); }
.lang-btn { border: 2px solid var(--ink); transition: .2s; }
.lang-btn:hover { background: var(--ink); color: #fff; }
.chips-row { padding-bottom: 10px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; text-decoration: none; font-weight: 800; padding: 6px 18px; border-radius: 999px; background: #fff; color: var(--c); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .15s; }
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--c); color: #fff; box-shadow: 0 4px 0 color-mix(in srgb, var(--c) 45%, transparent); }

@media (max-width: 700px) {
  .header-row { gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .hl-art { display: none; }
  .brand { font-size: 1.35rem; }
}

.site-main { padding: 16px 0 40px; min-height: 60vh; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 36px; background: var(--sky); color: #fff; padding: 34px 28px; display: flex; align-items: center; gap: 16px; }
.hero-splash { position: absolute; bottom: -40px; inset-inline-end: -40px; width: 70%; opacity: .25; pointer-events: none; }
.hero-text { position: relative; flex: 1; min-width: 0; }
.pill { display: inline-block; margin: 0; background: rgba(255, 255, 255, .22); padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-top: 12px; font-weight: 800; }
.lead { font-size: 1.1rem; font-weight: 600; max-width: 520px; opacity: .95; margin: 10px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-mascot { position: relative; width: 220px; flex-shrink: 0; filter: drop-shadow(0 14px 18px rgba(15, 40, 90, .35)); }
@media (max-width: 640px) { .hero { padding: 26px 20px; } .hero-mascot { width: 110px; align-self: flex-start; } .hero-splash { width: 120%; } }

/* buttons */
.btn-sun, .btn-coral, .btn-navy, .btn-mint, .btn-soft, .btn-outline-white, .btn-print, .btn-ghost-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; border: 0; border-radius: 999px; font-weight: 800; font-size: 1.05rem; padding: 12px 24px; transition: transform .12s, box-shadow .12s, background .2s;
}
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 5px 0 var(--sun-d); font-size: 1.15rem; }
.btn-sun:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--sun-d); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral-d); }
.btn-coral:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--coral-d); }
.btn-coral.big { font-size: 1.2rem; padding: 14px 26px; width: 100%; }
.btn-outline-white { border: 3px solid rgba(255, 255, 255, .85); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--blue); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-mint { background: var(--mint); color: #0D3B2C; }
.btn-soft { background: #EEF1F8; color: var(--ink); }
.btn-ghost-white { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-print { flex: 1; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px rgba(31, 42, 90, .15); }
.btn-print:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn-print.alt { background: #FFF0C2; }
.btn-link { font-weight: 700; color: var(--blue); text-align: center; }

/* sections + grid */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 1.7rem; }
.page-head h1 { font-size: 2rem; }
.count { font-weight: 700; color: var(--ink-soft); font-size: .9rem; padding-bottom: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 0; border-radius: var(--radius); padding: 10px 10px 12px; box-shadow: 0 0 0 2px rgba(31, 42, 90, .06); transition: transform .25s cubic-bezier(.2, .9, .3, 1.4), box-shadow .25s; animation: rise .55s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: var(--d, 0ms); text-align: start; color: var(--ink); }
.card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 24px -14px rgba(31, 42, 90, .45); }
.card:active { transform: scale(.96); }
.card-img { display: block; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 0 0 2px rgba(31, 42, 90, .05); }
.card-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 4px 0; }
.card-title { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cat { flex-shrink: 0; font-size: .75rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 14%, #fff); padding: 1px 10px; border-radius: 999px; text-decoration: none; }
.card-cat.big { font-size: .9rem; padding: 3px 14px; display: inline-block; }
.card-date { font-size: .75rem; color: var(--ink-soft); flex-shrink: 0; }
.card.art { rotate: var(--r, 0deg); }
.badge-continue { position: absolute; top: 18px; inset-inline-start: 18px; background: var(--coral); color: #fff; font-weight: 800; font-size: .78rem; padding: 2px 12px; border-radius: 999px; box-shadow: 0 3px 0 var(--coral-d); }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pager a { text-decoration: none; font-weight: 800; min-width: 44px; text-align: center; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 2px rgba(31, 42, 90, .08); }
.pager a.on { background: var(--ink); color: #fff; }

/* ads */
.ad-slot { margin: 22px auto; text-align: center; min-height: 90px; overflow: hidden; }
.ad-slot.in-grid { grid-column: 1 / -1; margin: 4px 0; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }

/* detail page */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--ink-soft); margin: 4px 0 14px; }
.crumbs a { text-decoration: none; color: var(--blue); }
.detail { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .detail { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; } }
.detail-img { background: #fff; border-radius: 32px; padding: 14px; box-shadow: 0 12px 30px -16px rgba(31, 42, 90, .4), 0 0 0 2px rgba(31, 42, 90, .05); }
.detail-img img { width: 100%; height: auto; border-radius: 20px; }
.detail-info h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 10px 0 8px; }
.lead-dark { font-size: 1.08rem; color: rgba(31, 42, 90, .8); margin: 0 0 18px; }
.actions { display: flex; flex-direction: column; gap: 12px; background: #fff; border-radius: 26px; padding: 16px; box-shadow: 0 0 0 2px rgba(31, 42, 90, .06); }
.print-row { display: flex; gap: 10px; }
.stats { font-size: .9rem; color: var(--ink-soft); font-weight: 700; margin: 12px 4px; }

.etsy-banner { display: flex; align-items: center; gap: 14px; margin: 30px 0 10px; text-decoration: none; background: #FFF0C2; border-radius: 26px; padding: 14px 20px; box-shadow: inset 0 0 0 2px rgba(212, 159, 18, .35); }
.etsy-banner img { width: 70px; height: 70px; flex-shrink: 0; }
.etsy-banner span { flex: 1; font-weight: 700; }
.etsy-banner strong { background: #F1641E; color: #fff; padding: 8px 18px; border-radius: 999px; flex-shrink: 0; }
.etsy-banner.small { margin: 16px 0 0; padding: 12px 16px; }

/* static / contact */
.prose-card { background: #fff; border-radius: 32px; padding: 28px; box-shadow: 0 0 0 2px rgba(31, 42, 90, .06); }
.prose-card h1 { font-size: 2rem; margin-bottom: 12px; }
.prose h2 { font-size: 1.3rem; margin: 22px 0 6px; }
.prose p, .prose li { color: rgba(31, 42, 90, .85); }
.prose a { color: var(--blue); }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
.form input, .form textarea { font: inherit; border: 2px solid rgba(31, 42, 90, .14); border-radius: 16px; padding: 10px 14px; color: var(--ink); background: #FFFDF9; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--blue); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { padding: 12px 16px; border-radius: 16px; font-weight: 700; margin: 10px 0; }
.note.ok { background: #DDF8EE; color: #0D5B40; }
.note.bad { background: #FFE3DF; color: #9A2E22; }

.empty { text-align: center; background: #fff; border-radius: 32px; padding: 36px 20px; margin-top: 10px; box-shadow: 0 0 0 2px rgba(31, 42, 90, .05); }
.empty img { margin: 0 auto 10px; }
.empty p { font-weight: 700; font-size: 1.1rem; }
.empty.big h1 { font-size: 3.5rem; }

/* footer */
.site-footer { background: var(--ink); color: #fff; padding: 36px 0 110px; margin-top: 20px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer { padding-bottom: 30px; } }
.site-footer h3 { font-size: 1.1rem; margin-bottom: 8px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .muted { color: rgba(255, 255, 255, .7); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; font-weight: 700; }
.copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .7; }

/* bottom nav (mobile) */
.bottom-nav { position: fixed; z-index: 40; bottom: max(env(safe-area-inset-bottom), 10px); left: 50%; transform: translateX(-50%); width: min(92vw, 420px); display: flex; align-items: center; justify-content: space-around; background: #fff; border-radius: 26px; padding: 8px 12px; box-shadow: 0 10px 30px -8px rgba(31, 42, 90, .35), 0 0 0 1px rgba(31, 42, 90, .05); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; text-decoration: none; font-weight: 800; font-size: .78rem; color: rgba(31, 42, 90, .6); padding: 2px 14px; }
.bottom-nav a.on { color: var(--coral); }
.bottom-nav .fab { width: 64px; height: 64px; margin-top: -30px; border-radius: 50%; background: var(--sun); color: var(--ink); justify-content: center; box-shadow: 0 5px 0 var(--sun-d), 0 0 0 6px var(--paper); padding: 0; }
@media (min-width: 760px) { .bottom-nav { display: none; } }

/* cookie */
.cookie { position: fixed; z-index: 60; inset-inline: 12px; bottom: calc(max(env(safe-area-inset-bottom), 10px) + 96px); max-width: 520px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); }
.cookie p { margin: 0; flex: 1; font-size: .9rem; }
.cookie a { color: var(--sun); }
.cookie button { border: 0; background: var(--sun); color: var(--ink); font-weight: 800; border-radius: 999px; padding: 8px 18px; }
@media (min-width: 760px) { .cookie { bottom: 16px; } }

/* modal */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgba(31, 42, 90, .5); overflow: hidden; }
.modal-card { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 30px; padding: 24px; text-align: center; }
.modal-card p { font-weight: 700; font-size: 1.1rem; margin: 0 0 16px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions > * { flex: 1; }
.modal-actions.grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.span2 { grid-column: span 2; }
.with-mascot { padding-top: 60px; }
.m-mascot { position: absolute; top: -56px; left: 0; right: 0; margin: 0 auto; width: 112px; height: 112px; }
.m-title { font-size: 1.3rem !important; font-weight: 800 !important; }
.m-preview { margin: 0 auto 16px; max-height: 38vh; border-radius: 18px; box-shadow: 0 0 0 3px rgba(31, 42, 90, .08); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti span { position: absolute; top: 0; animation-name: confetti; animation-timing-function: cubic-bezier(.3, .4, .6, 1); animation-fill-mode: both; }
.viewer { background: rgba(31, 42, 90, .92); grid-template-rows: auto 1fr auto; gap: 12px; }
.viewer img { max-height: 70vh; border-radius: 22px; background: #fff; margin: 0 auto; }
.viewer .modal-actions { width: 100%; max-width: 360px; margin: 0 auto; }
.viewer-close { justify-self: end; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.1rem; }

/* coloring board */
.board-body { overflow: hidden; height: 100dvh; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
.board { display: flex; flex-direction: column; height: 100dvh; }
.board-top { display: flex; align-items: center; gap: 8px; padding: max(env(safe-area-inset-top), 10px) 12px 8px; }
.board-top h1 { flex: 1; min-width: 0; font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(31, 42, 90, .12); text-decoration: none; transition: transform .12s, opacity .2s; }
.round-btn:active { transform: scale(.9); }
.round-btn:disabled { opacity: .35; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.save-btn { display: flex; align-items: center; gap: 6px; height: 44px; border: 0; border-radius: 999px; padding: 0 16px; background: var(--coral); color: #fff; font-weight: 800; font-size: 1rem; box-shadow: 0 4px 0 var(--coral-d); }
.save-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--coral-d); }
.save-btn:disabled { opacity: .6; }
.board-area { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; padding: 4px 12px; }
.stage { position: relative; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 10px 30px -10px rgba(31, 42, 90, .25), 0 0 0 3px rgba(31, 42, 90, .07); touch-action: none; visibility: hidden; cursor: pointer; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.board-loading { position: absolute; display: flex; flex-direction: column; align-items: center; font-weight: 700; }
.ripple { position: absolute; width: 110px; height: 110px; border-radius: 50%; border: 6px solid; pointer-events: none; animation: ripple .6s ease-out forwards; }
.dock { width: 100%; max-width: 760px; margin: 0 auto; background: #fff; border-radius: 28px 28px 0 0; padding: 12px 12px max(env(safe-area-inset-bottom), 12px); box-shadow: 0 -8px 24px -12px rgba(31, 42, 90, .25); }
.dock-row { display: flex; align-items: center; gap: 8px; }
.dock-spacer { flex: 1; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 56px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 18px; background: #F2F4FA; color: var(--ink); font-weight: 800; font-size: .72rem; transition: transform .15s, background .15s; }
.tool span { line-height: 1; }
.tool.on { background: var(--a); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 0 color-mix(in srgb, var(--a) 40%, transparent); }
.tool.clear { background: transparent; color: var(--coral); border: 2px dashed rgba(255, 107, 91, .5); }
.sizes { display: flex; gap: 4px; margin-inline-start: auto; }
.sizes button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.sizes button.on { background: #FFF0C2; }
.sizes i { display: block; border-radius: 50%; }
.palette { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 44px); grid-auto-columns: 44px; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: none; }
.palette::-webkit-scrollbar { display: none; }
.sw { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sw); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 0 0 1px rgba(31, 42, 90, .12); transition: transform .15s; }
.sw.on { transform: scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sw); }
.sw[data-color="#FFFFFF"].on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
.sw.custom { position: relative; overflow: hidden; background: conic-gradient(#FF3B30, #FFC93C, #3DD6A0, #4CB8F5, #7E57C2, #FF80AB, #FF3B30); cursor: pointer; }
.sw.custom.on { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ring, var(--ink)); }
.sw.custom span { position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 255, 255, .9); display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; }
.sw.custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }

/* motion */
@keyframes rise { from { transform: translateY(18px) scale(.97); } to { transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }
@keyframes ripple { from { transform: translate(-50%, -50%) scale(.15); opacity: .85; } to { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@keyframes confetti { from { transform: translateY(-12vh) rotate(0); } to { transform: translateY(112vh) rotate(760deg); } }
.rise { animation: rise .55s cubic-bezier(.2, .9, .3, 1.25) backwards; animation-delay: var(--d, 0ms); }
.float { animation: float 4.2s ease-in-out infinite; }
.pop { animation: pop .35s cubic-bezier(.2, .9, .3, 1.4) both; }
@media (prefers-reduced-motion: reduce) {
  .rise, .float, .pop, .card, .ripple { animation: none !important; }
  .confetti { display: none; }
  .card, .card:hover { transition: none; transform: none; }
}
