/* Surprise Studio: landing, builder, "my surprises", QR designer and admin. */
body.site, body.admin { background: radial-gradient(1200px 700px at 10% -10%, #3b1458 0%, transparent 60%), radial-gradient(900px 600px at 100% 10%, #5b1243 0%, transparent 55%), var(--bg); min-height: 100vh; }
body.site::before { content: ''; position: fixed; inset: -20%; z-index: -1; background: conic-gradient(from 0deg at 50% 50%, rgba(255, 93, 143, .12), rgba(124, 58, 237, .14), rgba(255, 209, 102, .08), rgba(255, 93, 143, .12)); filter: blur(80px); animation: spin 60s linear infinite; }
body.noscroll { overflow: hidden; }
.viewer { background: #0d0616; overflow: hidden; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); padding-bottom: 140px; }
.center { text-align: center; } .left { text-align: left; }
.muted { color: var(--mute); } .small { font-size: .85rem; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .row.center { justify-content: center; } .row.nowrap { flex-wrap: nowrap; }
.h2 { font-family: var(--serif); font-size: clamp(28px, 5vw, 42px); margin: 0 0 18px; text-align: center; line-height: 1.2; }
.h3 { font-family: var(--serif); font-size: 1.35rem; margin: 36px 0 12px; text-align: center; }
.h3.left { text-align: left; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(16px, calc((100% - 1120px) / 2)); background: rgba(13, 6, 22, .62); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 800 1.15rem var(--serif); text-decoration: none; }
.brand-heart { display: inline-block; animation: heartbeat 1.6s infinite; filter: drop-shadow(0 0 10px var(--accent)); }
.nav nav { display: flex; gap: 14px; align-items: center; font-weight: 600; font-size: .95rem; }
.nav nav a:not(.btn) { text-decoration: none; opacity: .8; transition: opacity .2s; } .nav nav a:not(.btn):hover { opacity: 1; }
@media (max-width: 560px) { .nav nav a:not(.btn) { display: none; } .nav nav a:not(.btn):last-of-type { display: inline; } }

/* ---------- scroll reveal ---------- */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 820px); display: grid; place-items: center; overflow: hidden; padding: 70px 16px 90px; text-align: center; isolation: isolate; }
.hero .fx { z-index: 1; pointer-events: none; }
.hero-in { position: relative; z-index: 3; max-width: 820px; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: .4em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .09); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; backdrop-filter: blur(8px); }
.hero-title { font-family: var(--serif); font-weight: 900; font-size: clamp(36px, 8.2vw, 78px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; background: linear-gradient(100deg, #ff8fb1, #ffd166 40%, #c77dff 75%, #ff5d8f); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s linear infinite; }
.hero-sub { font-size: clamp(1rem, 2.4vw, 1.25rem); color: var(--mute); max-width: 36em; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.trust { list-style: none; display: flex; gap: 10px 18px; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; color: var(--mute); font-size: .92rem; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: 2; pointer-events: none; }

/* ---------- steps / features ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.steps { padding: 20px 0 10px; }
.step, .feat { position: relative; padding: 26px 22px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); overflow: hidden; }
.step b { position: absolute; right: 16px; top: 4px; font: 900 5.2rem/1 var(--serif); opacity: .09; }
.step h3, .feat h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.35rem; } .step p, .feat p { margin: 0; color: var(--mute); }
.feat span { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.why { padding: 40px 0 20px; }

/* ---------- catalog ---------- */
.catalog { padding: 70px 0 10px; scroll-margin-top: 70px; }
.chips, .seg, .themes, .qr-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chips { justify-content: center; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--glass); color: #fff; padding: .55em 1.1em; border-radius: 999px; font-weight: 700; font-size: .92rem; transition: all .25s; }
.chip:hover { background: var(--glass2); transform: translateY(-1px); }
.chip.on { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; box-shadow: 0 8px 22px -8px var(--accent); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.tcard { border-radius: 24px; overflow: hidden; background: var(--glass); border: 1px solid var(--line); transition: transform .25s ease-out, box-shadow .3s, opacity .8s; transition-delay: calc(var(--i) * 40ms); will-change: transform; }
.tcard:hover { box-shadow: 0 30px 60px -24px rgba(255, 93, 143, .55); }
.tc-art { position: relative; height: 150px; display: grid; place-items: center; background: linear-gradient(135deg, var(--a), var(--b)); overflow: hidden; }
.tc-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .35), transparent 55%); }
.tc-emoji { font-size: 62px; z-index: 2; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); animation: float-y 3.6s ease-in-out infinite; }
.tc-spark { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .7; animation: twinkle 2.6s ease-in-out infinite; }
.tc-spark.s1 { left: 18%; top: 26%; } .tc-spark.s2 { right: 20%; top: 40%; animation-delay: -.9s; width: 6px; height: 6px; } .tc-spark.s3 { left: 40%; bottom: 18%; animation-delay: -1.7s; width: 7px; height: 7px; }
@keyframes twinkle { 0%, 100% { transform: scale(.4); opacity: .2; } 50% { transform: scale(1.3); opacity: .95; } }
.tc-body { padding: 16px 16px 18px; }
.tc-body h3 { margin: 0; font-size: 1.2rem; } .tc-en { margin: 0 0 6px; color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.tc-desc { margin: 0 0 14px; color: var(--mute); font-size: .92rem; min-height: 2.9em; }
.tc-actions { display: flex; gap: 8px; }
.soon { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 4px; }
.soon-chip { padding: .5em 1em; border-radius: 999px; border: 1px dashed var(--line); color: var(--mute); font-size: .9rem; }
.foot { padding: 60px 0 40px; text-align: center; color: var(--mute); font-size: .9rem; }

/* ---------- demo / preview overlay ---------- */
.demo { position: fixed; inset: 0; z-index: 200; background: #000; animation: fadein .3s; }
.demo.top { z-index: 400; }
.demo-host { position: absolute; inset: 0; }
.demo-close { position: absolute; z-index: 60; left: 12px; top: 12px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .5); color: #fff; font-size: 18px; backdrop-filter: blur(8px); }
.demo-cta { position: absolute; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 16px; }
.demo-cta:hover { transform: translateX(-50%) translateY(-2px); }
.demo .endbar { bottom: 70px; }

/* ---------- picker ---------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px; border-radius: 18px; text-decoration: none; text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 45%, #1a0b2e), color-mix(in srgb, var(--b) 45%, #1a0b2e)); border: 1px solid var(--line); transition: transform .25s; }
.pick:hover { transform: translateY(-4px) scale(1.02); } .pick span { font-size: 2.2rem; } .pick small { color: var(--mute); }

/* ---------- builder ---------- */
.builder main { padding-top: 22px; }
.tpl-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; margin-bottom: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--a) 55%, #1a0b2e), color-mix(in srgb, var(--b) 55%, #1a0b2e)); border: 1px solid var(--line); }
.tpl-head > div { flex: 1; min-width: 0; } .tpl-head h1 { margin: 0; font-family: var(--serif); font-size: 1.5rem; } .tpl-head p { margin: 0; color: rgba(255, 255, 255, .75); font-size: .88rem; }
.th-emoji { font-size: 2.4rem; }
.card { padding: 20px 18px; margin-bottom: 16px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.12rem; }
.card-h b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); font-size: .9rem; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; } .fld > span:first-child { font-weight: 700; font-size: .95rem; }
.hint { color: var(--mute); font-size: .82rem; } .hint.ok { color: var(--good); } .hint.bad { color: var(--bad); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; margin-top: 8px; } .check input { width: 18px; height: 18px; accent-color: var(--accent); }
.media-panel { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); animation: pop-in .4s both; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ctl { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.thumb-ctl button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; font-size: 11px; } .thumb-ctl button[disabled] { opacity: .3; }
.add { align-self: flex-start; cursor: pointer; }
.letters { display: flex; flex-direction: column; gap: 12px; } .letter { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); border: 1px solid var(--line); } .letter .btn { align-self: flex-end; }
.themes { gap: 10px; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px; border-radius: 14px; border: 2px solid transparent; background: none; color: #fff; transition: all .2s; }
.theme i { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent); }
.theme small { font-size: .72rem; opacity: .85; } .theme.on { border-color: var(--accent); background: var(--glass); transform: translateY(-2px); }
.meter { margin-top: 6px; } .meter-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; margin-bottom: 4px; } .meter-bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--good), var(--warn)); transition: width .4s; } .meter.full .meter-bar i { background: linear-gradient(90deg, var(--warn), var(--bad)); }
.actionbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; justify-content: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(13, 6, 22, .92) 40%); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cf { display: flex; justify-content: center; margin: 10px 0 80px; }
.shake { animation: shakex .5s; } @keyframes shakex { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

/* ---------- done + QR designer ---------- */
.done-head { text-align: center; margin-bottom: 20px; } .done-emoji { font-size: 4rem; animation: float-y 3s ease-in-out infinite; }
.done-fx { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.note { color: var(--mute); font-size: .88rem; max-width: 34em; margin: 22px auto 0; }
.qr-designer { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 24px; align-items: start; margin-bottom: 20px; }
@media (max-width: 760px) { .qr-designer { grid-template-columns: 1fr; } .qr-stage { max-width: 340px; margin-inline: auto; } }
.qr-stage { padding: 10px; border-radius: 22px; background: var(--glass); border: 1px solid var(--line); box-shadow: 0 30px 70px -28px rgba(255, 93, 143, .6); animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.qr-img { display: block; width: 100%; height: auto; border-radius: 14px; }
.qr-side { display: flex; flex-direction: column; gap: 4px; }
.qr-opts { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; } .qr-row { align-items: center; } .lab { min-width: 4.2em; color: var(--mute); font-size: .88rem; font-weight: 700; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(135deg, var(--a), var(--b)); transition: transform .2s; } .swatch.on { border-color: #fff; transform: scale(1.12); }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.print-only { display: none; }
@media print { body.printing > *:not(.print-only) { display: none !important; } body.printing { background: #fff !important; } body.printing .print-only { display: block; width: 100%; max-width: 18cm; margin: 0 auto; } body.printing::before { display: none; } }

/* ---------- my surprises ---------- */
.mine { margin-bottom: 14px; } .mine.gone { opacity: .5; } .mine-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; } .mine-top h3 { margin: 0; font-size: 1.05rem; } .stats { font-size: .88rem; margin-bottom: 12px; }
.empty { text-align: center; padding: 50px 0; } .empty-emoji { font-size: 4rem; animation: float-y 3s infinite; }
.qr-modal { background: rgba(0, 0, 0, .8); overflow: auto; display: grid; place-items: start center; padding: 20px 12px; } .qr-modal-box { width: min(900px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; background: #170a28; border: 1px solid var(--line); margin-block: auto; } .qr-modal-box .qr-designer { width: 100%; }

/* viewer: report box */
.rep { background: #170a28; padding: 20px; border-radius: 20px; border: 1px solid var(--line); color: #fff; } .rep h3 { margin: 0; }
.rep .txt { width: 100%; }

/* ======================= ADMIN ======================= */
body.admin { background: #0b0614; }
.adm-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 20px; background: rgba(11, 6, 20, .85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.adm-brand { display: flex; align-items: center; gap: 8px; margin-right: auto; } .adm-brand small { color: var(--mute); }
.badge { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .72rem; font-weight: 800; font-style: normal; background: var(--glass2); border: 1px solid var(--line); }
.badge.ok { background: rgba(52, 211, 153, .15); color: var(--good); border-color: rgba(52, 211, 153, .4); } .badge.warn { background: rgba(251, 191, 36, .15); color: var(--warn); border-color: rgba(251, 191, 36, .4); } .badge.bad { background: rgba(251, 113, 133, .15); color: var(--bad); border-color: rgba(251, 113, 133, .4); }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: .5em 1em; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: .92rem; color: var(--mute); transition: all .2s; } .tab:hover { color: #fff; background: var(--glass); } .tab.on { color: #fff; background: linear-gradient(135deg, rgba(255, 93, 143, .35), rgba(124, 58, 237, .35)); }
.adm-main { width: min(1200px, 100% - 32px); margin: 22px auto 60px; display: flex; flex-direction: column; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { position: relative; padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; animation: rise .7s both; }
.stat b { display: block; font: 800 2rem/1.1 var(--mono); } .stat small { color: var(--mute); } .stat-i { position: absolute; right: 12px; top: 8px; font-size: 2rem; opacity: .25; }
.stat.alert { border-color: rgba(251, 113, 133, .6); box-shadow: 0 0 0 4px rgba(251, 113, 133, .1); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; } @media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel-card { padding: 18px; border-radius: 18px; background: var(--glass); border: 1px solid var(--line); } .panel-card h3 { margin: 0 0 12px; font-size: 1rem; }
.bars { width: 100%; height: auto; } .bar-r { fill: url(#none); fill: var(--accent); opacity: .9; } .bar-n { fill: #fff; font-size: 12px; font-weight: 700; } .bar-d { fill: var(--mute); font-size: 11px; }
.hbars { display: flex; flex-direction: column; gap: 9px; } .hbar { display: grid; grid-template-columns: 9.5em 1fr 2em; gap: 8px; align-items: center; font-size: .88rem; } .hb-t { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; } .hb-t i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent2)); } .hbar b { text-align: right; }
.events { display: flex; flex-direction: column; } .ev { display: grid; grid-template-columns: 11em 9em 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .88rem; } .ev:last-child { border: 0; } .ev code { color: var(--accent); } @media (max-width: 640px) { .ev { grid-template-columns: 1fr auto; } .ev code { display: none; } }
.filters { display: grid; grid-template-columns: 1fr 160px 190px auto; gap: 10px; } @media (max-width: 760px) { .filters { grid-template-columns: 1fr 1fr; } .filters .inp { grid-column: 1 / -1; } }
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wrow { display: grid; grid-template-columns: 11em 1.4fr 9em 10.5em 5.2em 5em 9em; gap: 10px; align-items: center; padding: 12px 14px; text-align: left; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: #fff; transition: all .2s; font-size: .9rem; }
.wrow:not(.whead):hover { background: var(--glass2); transform: translateX(3px); border-color: rgba(255, 93, 143, .5); }
.wrow.off { opacity: .55; } .whead { background: none; border: 0; color: var(--mute); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding-block: 4px; }
.wrow code { color: var(--accent); } .w-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .flags { display: flex; gap: 4px; flex-wrap: wrap; }
@media (max-width: 980px) { .whead { display: none; } .wrow:not(.whead) { grid-template-columns: 1fr auto; } .wrow .w-d, .wrow .w-s { display: none; } .wrow .flags { grid-column: 1 / -1; } }
.report.handled { opacity: .55; } .rep-top { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; } .rep-top code { color: var(--accent); } .rlist { display: flex; flex-direction: column; gap: 12px; }
.adm-modal { overflow: auto; background: rgba(0, 0, 0, .78); display: grid; place-items: start center; padding: 18px 12px; }
.adm-modal-box { width: min(820px, 100%); padding: 20px; border-radius: 22px; background: #150a25; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(0, 0, 0, .6); animation: rise .5s both; }
.adm-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .adm-modal-head h2 { margin: 0; font-size: 1.2rem; }
.kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 12px 0; } @media (max-width: 600px) { .kvs { grid-template-columns: 1fr; } }
.kv { min-width: 0; } .kv dt { color: var(--mute); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; } .kv dd { margin: 0; word-break: break-word; white-space: pre-wrap; }
.kvs.content { grid-template-columns: 1fr; } .json { margin: 0; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .35); font-size: .8rem; overflow: auto; max-height: 200px; }
.imgs { display: flex; flex-wrap: wrap; gap: 8px; } .thumb-img { max-width: 140px; max-height: 140px; border-radius: 10px; border: 1px solid var(--line); } .av { max-width: 100%; max-height: 260px; border-radius: 10px; }
.row.sticky { position: sticky; bottom: -1px; padding-top: 14px; margin-top: 14px; background: linear-gradient(transparent, #150a25 30%); }
.admin .lock { position: static; min-height: 100vh; }

/* ======================= 4K HOMEPAGE (transplanted from the Codevx_Tashin HTML) =======================
   Same-to-same as index__4__4_maa6.html: VIP banner, aurora, welcome, stats bar,
   2-column category cards, gold/teal buttons, footer. All values copied exactly;
   the source's inline styles became classes here (our CSP forbids style="...").
   The source's inline <script> / localStorage player / ?s= sharing were NOT copied:
   cards link to the studio's own /create.html?t=<template> flow instead. */
body.home { background: #06060c; font-family: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; }
body.home::before { display: none; }
body.home .container { position: relative; z-index: 10; width: 100%; max-width: 960px; margin: 0 auto; padding: 24px 14px; flex: 1; }
body.home footer { padding: 16px; text-align: center; background: #050509; border-top: 1px solid rgba(245, 158, 11, 0.25); color: #fbbf24; font-family: 'Cinzel', Georgia, serif; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }

.vip-banner { position: sticky; top: 0; z-index: 999; height: 46px; background: linear-gradient(90deg, #05050a 0%, #12101e 50%, #05050a 100%); border-bottom: 1px solid rgba(245, 158, 11, 0.38); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 4px 25px rgba(0, 0, 0, 0.85); }
.vip-scan { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 20%, rgba(253, 224, 71, 0.28) 50%, transparent 80%); animation: scanRay 3.6s linear infinite; pointer-events: none; }
.vip-text { font-family: 'Cinzel', Georgia, serif; font-weight: 800; letter-spacing: 0.25em; font-size: 15px; text-transform: uppercase; background: linear-gradient(90deg, #fde68a 0%, #f59e0b 25%, #fffbeb 50%, #d97706 75%, #fde68a 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: goldShine 4s linear infinite; }
@keyframes scanRay { 0% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(220%) skewX(-20deg); } }
@keyframes goldShine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes auroraShift { 0%, 100% { filter: hue-rotate(0deg); transform: scale(1); } 50% { filter: hue-rotate(35deg); transform: scale(1.06); } }

.aurora-bg { position: fixed; top: 46px; left: 0; right: 0; height: 340px; pointer-events: none; z-index: 0; background: radial-gradient(60% 50% at 25% 15%, rgba(20, 184, 166, 0.22), transparent 70%), radial-gradient(55% 50% at 75% 20%, rgba(245, 158, 11, 0.2), transparent 70%), radial-gradient(50% 45% at 50% 35%, rgba(236, 72, 153, 0.16), transparent 75%); animation: auroraShift 9s ease-in-out infinite; }

.welcome { text-align: center; max-width: 640px; margin: 0 auto; }
.welcome-title { font-size: clamp(34px, 7vw, 56px); font-weight: 800; text-align: center; background: linear-gradient(90deg, #2dd4bf, #fde047, #f472b6, #2dd4bf); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: goldShine 5s linear infinite; }
.welcome-sub { color: #5eead4; font-weight: 600; font-size: 15px; margin-top: 6px; }
.welcome-premium { color: #fbbf24; font-weight: 700; font-size: 13px; margin-top: 4px; }

.stats-bar { margin: 22px 0; padding: 14px; border-radius: 20px; background: linear-gradient(90deg, rgba(13, 48, 54, 0.85), rgba(10, 25, 36, 0.92), rgba(13, 48, 54, 0.85)); border: 1px solid rgba(20, 184, 166, 0.4); display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; text-align: center; box-shadow: 0 12px 35px rgba(20, 184, 166, 0.14); }
@media (min-width: 640px) { .stats-bar { grid-template-columns: repeat(4, 1fr); } }
.stat-box { background: rgba(6, 8, 18, 0.65); border: 1px solid rgba(20, 184, 166, 0.22); border-radius: 14px; padding: 10px; }
.stat-label { font-size: 12px; color: #5eead4; display: block; }
.stat-value { font-size: 19px; }
.stat-value.teal { color: #99f6e4; }
.stat-value.gold { color: #fcd34d; }
.stat-admin-cell { display: flex; align-items: center; justify-content: center; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.cat-card { background: linear-gradient(180deg, rgba(16, 20, 38, 0.96), rgba(9, 11, 22, 0.98)); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; padding: 18px; text-align: left; color: #fff; cursor: pointer; transition: all 0.22s ease; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.cat-card:hover { border-color: rgba(245, 158, 11, 0.55); transform: translateY(-3px); }
/* ---- homepage touch + scroll animations, from the earlier maker
   (surprise-website-maker-full.html): its exact fadeUp keyframes, its exact
   card press (translateY(-4px) scale(.97) + gold glow shadow #f5c54244) and
   its button press (scale(.94)). Look/colours/layout unchanged — at rest the
   cards are identical to the 4K file; only press and scroll add motion.
   transform/opacity only, no layout shift. ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.welcome { animation: fadeUp .45s both; }
.stats-bar { animation: fadeUp .6s .08s both; }
body.home button:active { transform: scale(.94); }
body.home .cat-card:active { transform: translateY(-4px) scale(.97); box-shadow: 0 10px 30px rgba(245, 197, 66, .27); }
/* Cards are static HTML in index.html now (JS-independent): they must be
   visible even if JS never runs. Only hide them for the scroll-reveal when
   JS is actually running — home.js adds class "js" to <html> first. */
html.js .cat-card.rv-card { opacity: 0; }
a.cat-card { text-decoration: none; }
.cat-card.rv-card.in { animation: fadeUp .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
/* Row stagger without inline styles (CSP test forbids style=""): in the
   2-column grid, right-column cards (even children) wait 0.12s. */
.cat-card.rv-card:nth-child(even) { --d: .12s; }
.cc-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.cc-emoji { font-size: 26px; }
.cc-badge { font-size: 11px; color: #94a3b8; font-weight: 700; }
.cc-bn { font-size: 20px; font-weight: 800; color: #fcd34d; margin: 0; }
.cc-en { font-size: 13px; font-weight: 700; color: #5eead4; margin: 0; }
.cc-desc { font-size: 12px; color: #94a3b8; margin-top: 4px; line-height: 1.5; margin-bottom: 0; }

.btn-gold { background: linear-gradient(90deg, #f59e0b, #fbbf24, #ea580c); color: #090b14; font-weight: 800; border: none; border-radius: 14px; padding: 13px 20px; font-size: 15px; cursor: pointer; font-family: inherit; box-shadow: 0 8px 25px rgba(245, 158, 11, 0.38); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .25s; }
.btn-gold:active { transform: scale(.94); }
.btn-teal { background: linear-gradient(90deg, #14b8a6, #10b981); color: #060812; font-weight: 800; border: none; border-radius: 14px; padding: 12px 18px; font-size: 14px; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .25s; }
.btn-teal:active { transform: scale(.94); }
.btn-dark { background: #111526; color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); border-radius: 14px; padding: 11px 16px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform .15s ease, box-shadow .25s; }
.btn-dark:active { transform: scale(.94); }
.btn-dark.admin-btn { width: 100%; height: 100%; border-color: rgba(20, 184, 166, 0.5); color: #99f6e4; }
