:root {
    --bg: #050a14; --surface: #0b1424; --surface-2: #101d32; --surface-3: #172842;
    --primary: #3b82f6; --primary-hover: #60a5fa; --primary-dark: #1d4ed8; --primary-ink: #06152f;
    --diamond: #22d3ee; --gold: #60a5fa;
    --danger: #ef5350; --success: #38bdf8; --text: #f5f8ff; --text-muted: #93a4bb; --border: #223653;
    --paper: #eef4fb; --paper-2: #e1ebf7; --ink: #0b172a; --ink-soft: #53657d;
    --font: "Inter", "Noto Sans Thai", system-ui, sans-serif; --display: "Inter", "Noto Sans Thai", system-ui, sans-serif;
    --radius: 12px; --radius-sm: 8px; --shadow-block: 0 6px 0 rgba(0,0,0,.34); --shadow-card: 0 18px 44px rgba(8,30,64,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(82,214,232,.75); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(5,10,20,.93); color: var(--text); border-bottom: 1px solid rgba(96,165,250,.14); backdrop-filter: blur(16px); }
.nav-row { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 18px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; background: var(--primary); color: var(--primary-ink); border-radius: 7px; box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.brand-avatar { overflow: hidden; background: #050a14; border: 1px solid rgba(96,165,250,.55); }
.brand-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; image-rendering: pixelated; transform: scale(1.5); transform-origin: center 58%; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a, .nav-search { display: inline-flex; align-items: center; min-height: 42px; padding: 0 13px; border: 1px solid transparent; border-radius: 7px; color: #d3deee; font-size: 14px; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.site-nav a:hover, .nav-search:hover { background: rgba(59,130,246,.14); color: #ffffff; border-color: rgba(96,165,250,.22); }
.site-nav a.is-active { color: #ffffff; background: linear-gradient(180deg, rgba(59,130,246,.3), rgba(29,78,216,.2)); border-color: rgba(96,165,250,.5); box-shadow: inset 0 -3px 0 var(--primary-hover), 0 6px 18px rgba(37,99,235,.13); }
.site-nav .site-nav-logout { gap: 9px; padding-right: 8px; color: #8497b0; font-size: 12px; font-weight: 600; }
.site-nav .site-nav-logout::before { content: ""; width: 1px; height: 16px; margin-right: 3px; background: rgba(147,164,187,.25); }
.site-nav .site-nav-logout:hover { color: #c5d2e3; background: rgba(255,255,255,.04); border-color: transparent; box-shadow: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-search { font-size: 25px; line-height: 1; }
.menu-toggle { display: none; margin-left: auto; border: 0; color: var(--text); background: transparent; font-size: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--primary); color: #ffffff; box-shadow: 0 5px 0 var(--primary-dark); }
.button-primary:hover { background: var(--primary-hover); }
.button-outline { border-color: #bac7b9; color: var(--ink); background: transparent; }
.button-outline:hover { border-color: var(--ink); background: rgba(255,255,255,.45); }
.hero .button-outline, .product-hero .button-outline, .page-hero .button-outline, .admin-hero .button-outline { color: var(--text); border-color: rgba(255,255,255,.32); }
.hero .button-outline:hover, .product-hero .button-outline:hover, .page-hero .button-outline:hover, .admin-hero .button-outline:hover { color: var(--text); border-color: var(--primary); background: rgba(59,130,246,.14); }
.button-ghost { color: #d1d9cf; border-color: transparent; }
.button-ghost:hover { background: rgba(255,255,255,.08); }
.button-light { background: var(--text); color: var(--ink); box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.button-dark { background: var(--bg); color: var(--text); }
.button-small { min-height: 36px; padding: 0 12px; font-size: 13px; }
.button-large { min-height: 52px; padding: 0 21px; }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.eyebrow { display: inline-block; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.accent { color: var(--primary); }
.muted { color: var(--text-muted); }
.text-link { color: var(--primary-dark); font-weight: 800; }
.text-link:hover { color: #173ea6; }
.text-link-light { color: var(--primary); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero { position: relative; overflow: hidden; background: var(--bg); color: var(--text); padding: 94px 0 88px; }
.hero:before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(59,130,246,.34) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,.34) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(90deg, #000, transparent 72%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: 66px; align-items: center; }
.hero h1, .page-hero h1, .admin-hero h1 { margin: 15px 0 20px; font-size: clamp(48px, 7vw, 92px); line-height: .94; letter-spacing: -.075em; max-width: 680px; }
.hero-lede { max-width: 500px; color: #b4beb2; font-size: 18px; margin: 0 0 30px; }
.hero-stats { display: flex; gap: 0; margin-top: 50px; max-width: 480px; border-top: 1px solid rgba(255,255,255,.13); padding-top: 17px; }
.hero-stats div { flex: 1; display: grid; gap: 2px; border-right: 1px solid rgba(255,255,255,.13); padding-left: 18px; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border: 0; }
.hero-stats strong { color: var(--text); font-size: 20px; }
.hero-stats span { color: var(--text-muted); font-size: 12px; }
.hero-art { position: relative; min-height: 490px; overflow: hidden; isolation: isolate; background: linear-gradient(160deg, #1a3a2a 0%, #21452e 48%, #142019 100%); border: 1px solid rgba(139,212,80,.3); box-shadow: var(--shadow-block), 0 30px 80px rgba(0,0,0,.4); clip-path: polygon(0 4%, 95% 0, 100% 93%, 7% 100%); }
.art-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 28px 28px; }
.art-moon { position: absolute; width: 106px; height: 106px; right: 17%; top: 16%; background: var(--gold); box-shadow: 8px 8px 0 rgba(244,201,93,.18); }
.art-cloud { position: absolute; width: 100px; height: 21px; background: rgba(210,238,218,.26); box-shadow: 30px -13px 0 rgba(210,238,218,.26), 67px 4px 0 rgba(210,238,218,.26); }
.cloud-one { top: 28%; left: 12%; }.cloud-two { top: 40%; right: 10%; transform: scale(.7); }
.art-terrain { position: absolute; left: -4%; width: 110%; transform: skewX(-23deg); }
.terrain-back { bottom: 28%; height: 160px; background: #2a6336; box-shadow: 0 -20px 0 #378046; }.terrain-front { bottom: -9%; height: 190px; background: #152719; box-shadow: 0 -18px 0 #407b36; }
.art-tree { position: absolute; bottom: 34%; width: 36px; height: 145px; background: #473822; box-shadow: 18px 45px 0 #473822; }.art-tree:before { content: ""; position: absolute; width: 122px; height: 100px; left: -43px; top: -52px; background: #245a2d; box-shadow: 35px -26px 0 #2f7335, 66px 6px 0 #245a2d; }.tree-one { left: 20%; }.tree-two { right: 27%; bottom: 25%; transform: scale(.7); }
.art-sign { position: absolute; right: 12%; bottom: 24%; z-index: 2; padding: 13px 18px; background: #c88d4b; color: #2a1d13; font-weight: 800; line-height: 1.1; transform: rotate(-5deg); box-shadow: 5px 5px 0 rgba(0,0,0,.3); }.art-sign small { font-weight: 500; font-size: 10px; }
.section { padding: 105px 0; }.section-dark { background: var(--bg); color: var(--text); }.section-soft { background: var(--paper-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }.section-head h2 { margin: 10px 0 0; font-size: clamp(30px, 4vw, 54px); line-height: 1; letter-spacing: -.06em; }.section-head-light h2 { color: var(--text); }.section-intro { max-width: 390px; color: var(--ink-soft); margin: 0; }.section-dark .section-intro { color: var(--text-muted); }
.feature-strip { display: grid; grid-template-columns: 1fr 1fr; min-height: 360px; background: var(--surface); border: 1px solid #303a31; box-shadow: var(--shadow-block); }.feature-visual { position: relative; overflow: hidden; background: linear-gradient(150deg, #1d4730, #101813); }.feature-visual:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(135deg, transparent 25%, rgba(139,212,80,.18) 25%, rgba(139,212,80,.18) 50%, transparent 50%); background-size: 44px 44px; }.feature-orb { position: absolute; width: 130px; height: 130px; border: 16px solid var(--diamond); left: 30%; top: 24%; transform: rotate(45deg); box-shadow: 0 0 55px rgba(82,214,232,.3); }.feature-block { position: absolute; background: var(--gold); width: 60px; height: 60px; box-shadow: 7px 7px 0 rgba(0,0,0,.25); }.feature-block-one { right: 19%; bottom: 20%; }.feature-block-two { left: 13%; bottom: 10%; transform: scale(.65); background: var(--primary); }.feature-copy { padding: 54px 54px; align-self: center; }.feature-copy h3 { margin: 20px 0 10px; color: var(--text); font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.06em; }.feature-copy p { color: var(--text-muted); max-width: 430px; margin: 0 0 28px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; background: #e1e9de; color: #3c4f3c; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .03em; }.badge-green { background: rgba(139,212,80,.16); color: var(--primary); }.badge-dark { position: absolute; left: 14px; top: 14px; background: rgba(14,17,16,.8); color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }.product-card { overflow: hidden; background: #fff; border: 1px solid #dce4da; border-radius: var(--radius); box-shadow: var(--shadow-card); transition: transform .22s ease, box-shadow .22s ease; }.product-card:hover { transform: translateY(-5px); box-shadow: 0 24px 45px rgba(15,28,18,.17); }.product-cover { position: relative; display: block; height: 218px; overflow: hidden; background: #25372a; }.product-cover img { width: 100%; height: 100%; object-fit: cover; }.product-art--1 { background: linear-gradient(160deg, #1b4f44, #15241e 68%, #0b110d); }.product-art--2 { background: linear-gradient(160deg, #245968, #183c3f 52%, #161e18); }.product-art--3 { background: linear-gradient(160deg, #593d1b, #304022 60%, #172117); }.product-art--4 { background: linear-gradient(160deg, #41336b, #1b273b 55%, #101814); }.voxel-sky { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 26px 26px; }.voxel-mountain { position: absolute; bottom: -25px; left: 10%; width: 80%; height: 150px; background: #315b38; clip-path: polygon(0 100%, 34% 18%, 48% 35%, 68% 0, 100% 100%); }.voxel-sun { position: absolute; width: 54px; height: 54px; right: 18%; top: 21%; background: var(--gold); }.product-body { padding: 20px; }.product-meta, .product-footer { display: flex; justify-content: space-between; gap: 12px; color: #7a897b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }.product-body h3 { margin: 15px 0 5px; font-size: 20px; line-height: 1.2; letter-spacing: -.04em; }.product-body h3 a:hover { color: #497f27; }.product-body p { min-height: 52px; margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }.product-footer { align-items: center; border-top: 1px solid #e7eee5; padding-top: 14px; text-transform: none; letter-spacing: 0; }
.split-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }.split-section h2 { max-width: 510px; font-size: clamp(34px, 4vw, 58px); letter-spacing: -.07em; line-height: .98; margin: 12px 0 18px; }.split-section .section-intro { margin-bottom: 28px; }.project-stack { display: grid; gap: 14px; }.project-card { display: grid; grid-template-columns: 42px 1fr 28px; gap: 14px; align-items: start; padding: 24px; background: rgba(255,255,255,.7); border: 1px solid #d4dfd1; box-shadow: 4px 4px 0 rgba(39,70,37,.12); }.project-index { color: #93a791; font-size: 13px; font-weight: 800; }.project-card h3 { margin: 7px 0 4px; font-size: 20px; line-height: 1.2; }.project-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }.project-arrow { color: #5b8640; font-size: 22px; }
.follow-cta { padding: 70px 0; background: var(--primary); color: #12200f; }.follow-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }.follow-cta .eyebrow { color: #35601d; }.follow-cta h2 { margin: 8px 0 0; font-size: clamp(34px, 5vw, 62px); line-height: .9; letter-spacing: -.07em; }.follow-cta p { margin: 10px 0 0; }.follow-cta .button-outline { border-color: #315d1c; }
.site-footer { background: #101511; color: #dbe4d8; padding: 64px 0 24px; }.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; }.footer-grid h2 { margin: 0 0 12px; color: var(--primary); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }.footer-grid a:not(.brand) { display: block; color: #98a397; font-size: 14px; margin: 7px 0; }.footer-grid a:not(.brand):hover { color: var(--primary); }.footer-copy { max-width: 220px; font-size: 13px; }.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 55px; padding-top: 18px; border-top: 1px solid #283128; color: #718071; font-size: 11px; }
.footer-simple { grid-template-columns: 1fr auto; align-items: end; }.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }.footer-links a { margin: 0 !important; }
.page-hero, .admin-hero { background: var(--bg); color: var(--text); padding: 78px 0 66px; }.page-hero p, .admin-hero p { max-width: 520px; margin: 0; color: #aeb9ad; font-size: 18px; }.page-hero-compact { padding: 70px 0 54px; }.catalog-tools { display: flex; align-items: center; gap: 10px; margin-top: 32px; max-width: 760px; }.search-field { display: flex; align-items: center; flex: 1; gap: 8px; min-height: 48px; padding: 0 14px; color: #92a192; background: var(--surface); border: 1px solid #374239; border-radius: var(--radius-sm); }.search-field input { width: 100%; color: var(--text); background: transparent; border: 0; outline: 0; }.catalog-tools select, .admin-form select, .admin-form input, .admin-form textarea, .stack-form input { min-height: 48px; width: 100%; border: 1px solid #c8d4c6; border-radius: var(--radius-sm); background: #fff; color: var(--ink); padding: 0 13px; }.catalog-tools select { width: auto; min-width: 160px; }.catalog-bar { display: flex; justify-content: space-between; margin-bottom: 22px; color: var(--ink-soft); font-size: 13px; }.catalog-section { padding-top: 54px; }
.product-hero { padding: 78px 0 88px; background: var(--bg); color: var(--text); }.product-detail-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 65px; align-items: center; }.detail-art { position: relative; min-height: 540px; overflow: hidden; box-shadow: var(--shadow-block); clip-path: polygon(0 3%, 97% 0, 100% 96%, 3% 100%); }.detail-art .voxel-mountain { height: 230px; }.detail-art .voxel-sun { width: 94px; height: 94px; }.detail-stamp { position: absolute; left: 9%; bottom: 15%; padding: 15px 20px; background: var(--gold); color: #251d0c; box-shadow: 5px 5px 0 rgba(0,0,0,.3); font-weight: 800; transform: rotate(-4deg); }.detail-stamp small { font-size: 10px; font-weight: 600; }.detail-copy h1 { max-width: 550px; margin: 18px 0 14px; font-size: clamp(42px, 6vw, 76px); line-height: .95; letter-spacing: -.07em; }.detail-copy > p:not(.detail-tagline) { color: #aab6aa; max-width: 500px; }.detail-tagline { color: var(--primary); font-size: 20px; margin: 0 0 12px; }.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 28px 0; }.detail-price strong { font-size: 34px; }.detail-price span { color: var(--text-muted); font-size: 12px; }.notice { margin: 16px 0; padding: 12px 14px; background: rgba(139,212,80,.12); border: 1px solid rgba(139,212,80,.3); border-radius: var(--radius-sm); color: #46702a; font-size: 14px; }.product-hero .notice { color: var(--primary); }.compat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid #d0dbcf; background: #d0dbcf; }.compat-grid div { min-height: 112px; padding: 20px; background: rgba(255,255,255,.7); }.compat-grid span { display: block; color: var(--ink-soft); font-size: 12px; }.compat-grid strong { display: block; margin-top: 8px; font-size: 16px; }.release-list { display: grid; gap: 12px; }.release-row { display: grid; grid-template-columns: 160px 1fr; gap: 26px; padding: 24px; background: #fff; border: 1px solid #dce5da; }.release-row > div:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }.release-row strong { font-size: 13px; }.release-row p { margin: 10px 0 0; color: var(--ink-soft); white-space: pre-line; }
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 70px 24px; background: radial-gradient(circle at 25% 20%, rgba(139,212,80,.18), transparent 30%), var(--paper); }.auth-card { width: min(100%, 470px); padding: 42px; background: #fff; border: 1px solid #d9e3d6; box-shadow: var(--shadow-card); }.auth-card h1 { margin: 11px 0 6px; font-size: 38px; line-height: 1; letter-spacing: -.06em; }.stack-form { display: grid; gap: 16px; margin-top: 28px; }.stack-form label, .admin-form label { display: grid; gap: 6px; color: #425143; font-size: 13px; font-weight: 700; }.stack-form small, .admin-form small { color: #768477; font-weight: 400; }.stack-form input { min-height: 52px; }.form-foot { margin: 22px 0 0; color: var(--ink-soft); font-size: 14px; }.form-foot a { color: #4b7930; font-weight: 700; }
.account-bar { display: flex; align-items: end; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid #d3ded1; }.account-bar strong { display: block; margin-top: 5px; }.library-list { display: grid; gap: 16px; margin-top: 28px; }.library-card { display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center; padding: 18px; background: #fff; border: 1px solid #dce5da; box-shadow: 5px 5px 0 rgba(39,70,37,.08); }.library-art { min-height: 128px; }.library-main h2 { margin: 8px 0 4px; font-size: 25px; line-height: 1.1; letter-spacing: -.05em; }.library-main p { margin: 0 0 18px; color: var(--ink-soft); }.library-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #768477; font-size: 12px; }.library-actions { display: grid; justify-items: end; gap: 10px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.admin-hero h1 { font-size: clamp(40px, 6vw, 72px); }.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.stat-card { padding: 24px; background: #fff; border: 1px solid #dce5da; }.stat-card span, .stat-card small { display: block; color: var(--ink-soft); font-size: 12px; }.stat-card strong { display: block; margin: 12px 0 4px; font-size: 38px; line-height: 1; }.admin-panel { margin-top: 42px; padding: 28px; background: #fff; border: 1px solid #dce5da; }.panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }.panel-heading h2 { margin: 7px 0 0; font-size: 28px; letter-spacing: -.05em; }.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.quick-links a { display: grid; gap: 5px; padding: 18px; background: var(--paper); border: 1px solid #d3ded1; }.quick-links a:hover { border-color: var(--primary); }.quick-links span { color: var(--ink-soft); font-size: 13px; }.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }.admin-table th { color: var(--ink-soft); font-size: 11px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }.admin-table th, .admin-table td { padding: 15px 12px; border-bottom: 1px solid #e5ece3; vertical-align: middle; }.admin-table td strong, .admin-table td small { display: block; }.admin-table td small { color: var(--ink-soft); font-size: 11px; margin-top: 3px; }.table-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; white-space: nowrap; }.text-button { border: 0; padding: 0; background: transparent; color: #4b7930; cursor: pointer; font-weight: 800; }.admin-form { display: grid; gap: 18px; padding: 28px; background: #fff; border: 1px solid #dce5da; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.admin-form textarea { padding: 12px 13px; resize: vertical; }.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }.check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 9px !important; padding: 12px; background: var(--paper); border: 1px solid #dce5da; }.check input { accent-color: var(--primary); }.form-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; }.release-warning { margin-bottom: 18px; padding: 18px; background: rgba(244,201,93,.18); border-left: 4px solid var(--gold); }.release-warning p { margin: 4px 0 0; color: #6e6037; font-size: 14px; }
.empty-state { display: grid; justify-items: center; text-align: center; padding: 70px 24px; border: 1px dashed #bacbb7; background: rgba(255,255,255,.45); }.empty-state.compact { padding: 42px 24px; }.empty-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 13px; background: var(--primary); color: #19320f; font-size: 24px; }.empty-state h2, .empty-state h3 { margin: 0 0 7px; letter-spacing: -.04em; }.empty-state p { margin: 0 0 20px; color: var(--ink-soft); }.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); color: var(--text); }.error-page main { max-width: 540px; text-align: center; }.error-page h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; letter-spacing: -.07em; }.error-page p { color: var(--text-muted); margin-bottom: 26px; }
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }.install-card { padding: 30px; background: #fff; border: 1px solid #dce5da; box-shadow: 4px 4px 0 rgba(39,70,37,.08); }.step-number { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--primary); color: #17300e; font-weight: 800; }.install-card h2 { margin: 20px 0 8px; font-size: 25px; }.install-card p { margin: 0; color: var(--ink-soft); }.install-note { margin-top: 25px; padding: 20px; border: 1px solid #d0dbcf; background: #e9f0e7; }.install-note p { margin: 4px 0 0; color: var(--ink-soft); }
.reveal { animation: reveal .7s ease-out both; }.reveal:nth-child(2) { animation-delay: .1s; }@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023px) { .hero-grid, .product-detail-grid { grid-template-columns: 1fr; }.hero-art { min-height: 380px; }.product-detail-grid { gap: 38px; }.detail-art { min-height: 400px; }.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.split-section { gap: 40px; }.feature-copy { padding: 38px; }.stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .shell { width: min(100% - 32px, 600px); }.nav-row { min-height: 64px; }.menu-toggle { display: block; }.site-nav { display: none; position: absolute; left: 16px; right: 16px; top: 58px; padding: 10px; background: #171b18; border: 1px solid #303831; box-shadow: var(--shadow-block); }.site-nav.is-open { display: grid; }.site-nav a { padding: 12px; }.nav-actions .button-ghost, .nav-search { display: none; }.hero { padding: 68px 0 64px; }.hero h1, .page-hero h1, .admin-hero h1 { font-size: clamp(45px, 14vw, 72px); }.hero-art { min-height: 330px; }.hero-stats { margin-top: 35px; }.section { padding: 70px 0; }.section-head, .follow-inner, .admin-heading { align-items: start; flex-direction: column; }.section-head { margin-bottom: 28px; }.feature-strip, .split-section { grid-template-columns: 1fr; }.feature-visual { min-height: 260px; }.feature-copy { padding: 30px; }.product-grid { grid-template-columns: 1fr; }.catalog-tools { flex-wrap: wrap; }.search-field { flex-basis: 100%; }.catalog-tools select, .catalog-tools .button { flex: 1; }.compat-grid { grid-template-columns: repeat(2, 1fr); }.release-row { grid-template-columns: 1fr; gap: 14px; }.footer-grid, .footer-simple { grid-template-columns: 1fr; gap: 22px; }.footer-bottom { flex-direction: column; margin-top: 35px; }.auth-card { padding: 30px 22px; }.library-card { grid-template-columns: 1fr; }.library-art { min-height: 160px; }.library-actions { justify-items: start; }.quick-links, .install-grid { grid-template-columns: 1fr; }.form-grid, .check-grid { grid-template-columns: 1fr; }.admin-panel { padding: 20px 14px; }.admin-table th, .admin-table td { padding: 12px 8px; }.detail-copy h1 { font-size: clamp(42px, 14vw, 72px); } }
  @media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

  .detail-art .detail-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }.library-art { overflow: hidden; }.library-art img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; }
  .detail-art .detail-cover { object-fit: contain; object-position: center; background: #111813; image-rendering: pixelated; -ms-interpolation-mode: nearest-neighbor; }

/* Focused marketplace presentation */
.hero-marketplace { position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: 0; background: #050a14; }
.hero-marketplace::before { content: ""; position: absolute; z-index: 0; inset: -18px; display: block; background: url("/assets/images/ctxnmo-banner.png") center / cover no-repeat; opacity: .72; filter: blur(10px) saturate(1.08); transform: scale(1.035); mask-image: none; -webkit-mask-image: none; }
.hero-marketplace::after { content: ""; position: absolute; z-index: 1; inset: 0; display: block; pointer-events: none; background: linear-gradient(90deg, rgba(5,10,20,.18), transparent 28%, transparent 72%, rgba(5,10,20,.18)), repeating-linear-gradient(90deg, rgba(96,165,250,.04) 0 1px, transparent 1px 32px); }
.hero-marketplace .hero-banner-bg { position: relative; z-index: 2; width: min(100%, 1500px); height: auto; margin: 0 auto; opacity: 1; filter: none; box-shadow: 0 0 0 1px rgba(96,165,250,.24), 0 0 52px rgba(37,99,235,.2); }
@media (max-width: 1500px) { .hero-marketplace::before, .hero-marketplace::after { display: none; } }
.hero-marketplace-intro { padding: 18px 0 20px; color: var(--text); background: linear-gradient(115deg, var(--bg), var(--surface)); border-top: 1px solid rgba(96,165,250,.2); border-bottom: 1px solid var(--border); }
.hero-marketplace-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.hero-marketplace-intro .hero-copy { min-width: 0; max-width: 720px; }
.hero-marketplace-intro h1 { max-width: 720px; margin: 3px 0 8px; color: var(--text); font-size: clamp(28px, 3vw, 38px); line-height: 1.24; letter-spacing: -.045em; }
.hero-marketplace-intro h1 .accent { color: var(--primary-hover); }
.hero-marketplace-intro .hero-lede { max-width: 700px; margin: 0; color: #b7c5d9; font-size: 14px; }
.hero-actions { flex-wrap: nowrap; justify-content: flex-end; }
.hero-actions .button { white-space: nowrap; }
.hero-marketplace-intro .button-outline { color: var(--text); border-color: rgba(255,255,255,.34); }
.hero-marketplace-intro .button-outline:hover { color: var(--text); border-color: var(--primary-hover); background: rgba(59,130,246,.12); }
.avatar-section { padding: 0 0 72px; background: var(--bg); color: var(--text); }
.avatar-showcase { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.avatar-showcase h2 { margin: 10px 0 8px; color: var(--text); font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.06em; }.avatar-showcase p { max-width: 360px; color: var(--text-muted); }.avatar-stage { min-height: 330px; }.avatar-stage .character-body { height: 100%; bottom: -12px; }.avatar-stage .character-label { right: 10%; bottom: 13%; }
.creator-social { display: grid; gap: 10px; margin-top: 26px; }.creator-social > span { color: #7f94b1; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.creator-social-links { display: flex; flex-wrap: wrap; gap: 9px; }.creator-social-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; color: #dbe8fa; background: rgba(59,130,246,.1); border: 1px solid rgba(96,165,250,.24); border-radius: 8px; font-size: 12px; font-weight: 700; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }.creator-social-links a:hover { color: #fff; background: rgba(59,130,246,.22); border-color: rgba(96,165,250,.56); transform: translateY(-2px); }.creator-social-links svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }
.hero-character { position: relative; min-height: 450px; overflow: hidden; isolation: isolate; background: linear-gradient(155deg, #102b55, #071221 75%); border: 1px solid rgba(59,130,246,.42); box-shadow: var(--shadow-block), 0 25px 70px rgba(0,0,0,.36); clip-path: polygon(0 3%, 96% 0, 100% 94%, 5% 100%); }
.hero-character:before { content: ""; position: absolute; inset: 0; opacity: .17; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 30px 30px; }
.character-glow { position: absolute; width: 240px; height: 240px; top: 50px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(82,214,232,.18); filter: blur(18px); }
.character-body { position: absolute; z-index: 1; left: 50%; bottom: -20px; width: auto; height: 94%; transform: translateX(-50%); object-fit: contain; image-rendering: pixelated; filter: drop-shadow(16px 18px 0 rgba(0,0,0,.28)); }
.character-label { position: absolute; z-index: 2; right: 8%; bottom: 13%; padding: 12px 16px; background: var(--gold); color: #2b220d; font-weight: 800; line-height: 1.1; box-shadow: 5px 5px 0 rgba(0,0,0,.25); transform: rotate(-4deg); }.character-label small { font-size: 10px; font-weight: 600; }
.marketplace-section { padding-top: 52px; }
.member-payment-section { padding-top: 64px; padding-bottom: 64px; }
.member-payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.simple-panel { min-height: 260px; padding: 30px; border: 1px solid #d1ddd0; background: rgba(255,255,255,.75); box-shadow: 5px 5px 0 rgba(39,70,37,.08); }
.simple-panel h2 { margin: 12px 0 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -.06em; }.simple-panel p { max-width: 420px; color: var(--ink-soft); }
.member-panel { background: #091b35; color: var(--text); border-color: #21436e; }.member-panel p { color: #b3c4dc; }.member-panel .eyebrow { color: var(--primary-hover); }.member-panel h2 { color: var(--text); }
.member-avatar { width: 58px; height: 58px; margin-bottom: 13px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(4px 5px 0 rgba(0,0,0,.25)); }
.payment-panel-heading, .payment-card-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }.payment-mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--gold); color: #31250d; font-weight: 800; border-radius: 50%; }.payment-mini { display: grid; gap: 2px; margin: 18px 0; padding: 14px; background: rgba(16,30,20,.07); border-left: 3px solid var(--primary); font-size: 14px; }.payment-mini span { color: var(--ink-soft); font-size: 12px; }.payment-card { padding: 28px; background: #fff; border: 1px solid #d7e2d4; box-shadow: var(--shadow-card); }.payment-page-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: start; }.payment-instructions h2 { margin: 10px 0 24px; font-size: clamp(34px, 5vw, 56px); line-height: .95; letter-spacing: -.07em; }.payment-steps { display: grid; gap: 16px; padding: 0; margin: 0 0 28px; list-style: none; }.payment-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: start; }.payment-steps li > span { display: grid; place-items: center; width: 36px; height: 36px; background: var(--primary); color: #17300e; font-size: 11px; font-weight: 800; }.payment-steps strong { display: block; }.payment-steps p { margin: 3px 0 0; color: var(--ink-soft); font-size: 14px; }.payment-qr { width: min(100%, 250px); aspect-ratio: 1; margin: 22px auto; object-fit: contain; image-rendering: pixelated; }.payment-qr-placeholder { display: grid; place-items: center; gap: 7px; color: #55704f; background: repeating-linear-gradient(45deg, #edf4e9, #edf4e9 8px, #e2ecde 8px, #e2ecde 16px); border: 1px dashed #a6bba1; }.payment-qr-placeholder span { font-size: 46px; font-weight: 800; letter-spacing: .08em; }.payment-qr-placeholder small { text-align: center; font-size: 11px; }.payment-account { display: grid; gap: 4px; padding-top: 18px; border-top: 1px solid #e2e9df; }.payment-account span, .payment-account small { color: var(--ink-soft); font-size: 12px; }.payment-account strong { font-size: 17px; }.payment-account b { font-size: 22px; letter-spacing: .04em; }.payment-footnote { margin: 18px 0 0; color: var(--ink-soft); font-size: 11px; }
@media (max-width: 1023px) { .hero-marketplace-grid, .payment-page-grid { grid-template-columns: 1fr; }.hero-marketplace-grid { gap: 18px; }.hero-actions { justify-content: flex-start; }.avatar-showcase { grid-template-columns: 1fr; }.hero-character { min-height: 390px; }.payment-page-grid { gap: 35px; } }
@media (max-width: 760px) { .hero-marketplace-intro { padding: 20px 0 22px; }.hero-marketplace-intro h1 { font-size: clamp(30px, 9vw, 40px); letter-spacing: -.035em; }.hero-marketplace-grid { gap: 16px; }.hero-actions { flex-wrap: wrap; }.hero-character { min-height: 350px; }.character-body { height: 92%; }.character-label { right: 5%; bottom: 9%; }.member-payment-grid { grid-template-columns: 1fr; }.simple-panel { min-height: auto; padding: 24px; }.payment-card { padding: 22px; }.payment-page-grid { gap: 22px; }.avatar-section { padding-bottom: 48px; }.avatar-showcase { gap: 18px; }.avatar-stage { min-height: 320px; } }

/* Admin product workspace */
.admin-content .admin-product-workspace { width: min(1640px, calc(100% - 48px)); max-width: none; }
.admin-product-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(460px, .85fr); gap: 24px; align-items: start; transition: opacity .16s ease; }
.admin-product-workspace.is-loading { opacity: .55; pointer-events: none; }
.admin-content { transition: opacity .16s ease; }
.admin-content.is-loading { opacity: .55; pointer-events: none; }
.admin-product-browser { position: sticky; top: 22px; min-width: 0; padding: 20px; background: #f5f8f3; border: 1px solid #d5e0d2; box-shadow: 6px 6px 0 rgba(39,70,37,.07); }
.admin-browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.admin-browser-heading h2 { margin: 6px 0 0; font-size: 23px; line-height: 1; letter-spacing: -.05em; }
.admin-browser-count { color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.admin-create-tile { display: flex; align-items: center; gap: 11px; min-height: 60px; margin-bottom: 14px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px dashed #a7bd9e; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.admin-create-tile:hover, .admin-create-tile.is-active { border-color: var(--primary); background: #f0f8e9; transform: translateY(-2px); }
.admin-create-icon { display: grid; place-items: center; width: 34px; height: 34px; color: #17300e; background: var(--primary); font-size: 22px; font-weight: 800; }
.admin-create-tile strong, .admin-create-tile small { display: block; }
.admin-create-tile small { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.admin-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.admin-product-tile { min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dce5da; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.admin-product-tile:hover, .admin-product-tile.is-active { border-color: #7db65b; box-shadow: 0 8px 18px rgba(39,70,37,.11); transform: translateY(-2px); }
.admin-product-tile-main { display: block; color: var(--ink); }
.admin-product-thumb { position: relative; display: block; aspect-ratio: 1.25; overflow: hidden; background: #24362a; }
.admin-product-thumb img, .admin-catalog-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.admin-product-status { position: absolute; top: 8px; right: 8px; max-width: calc(100% - 16px); padding: 4px 7px; color: #eff5eb; background: rgba(14,17,16,.78); border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1; white-space: nowrap; }
.admin-product-status.is-published { color: #17300e; background: var(--primary); }
.admin-product-tile-copy { display: block; padding: 10px 10px 7px; }
.admin-product-tile-copy strong, .admin-product-tile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-product-tile-copy strong { font-size: 13px; }
.admin-product-tile-copy small { margin-top: 4px; color: var(--ink-soft); font-size: 10px; }
.admin-product-tile-actions { display: flex; gap: 9px; padding: 0 10px 10px; border-top: 1px solid #edf2eb; }
.admin-product-tile-actions a { min-height: 30px; padding-top: 8px; color: #4b7930; font-size: 11px; font-weight: 800; }
.admin-product-tile-actions a + a { color: var(--ink-soft); }
.admin-browser-empty { margin: 0; padding: 28px 10px; color: var(--ink-soft); text-align: center; font-size: 13px; }
.admin-editor { min-width: 0; }
.admin-editor-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.admin-editor-heading h2 { margin: 7px 0 5px; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -.06em; }
.admin-editor-heading p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.admin-editor-mode { padding: 7px 9px; color: #4b7930; background: rgba(139,212,80,.15); border: 1px solid rgba(139,212,80,.35); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.admin-editor .admin-form { margin: 0; }
.admin-editor .admin-panel { margin-top: 18px; }
.admin-content .admin-catalog-shell { width: min(1640px, calc(100% - 48px)); max-width: none; }
.admin-catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-catalog-card { overflow: hidden; background: #fff; border: 1px solid #dce5da; box-shadow: 4px 4px 0 rgba(39,70,37,.06); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.admin-catalog-card:hover { border-color: #a9c99b; box-shadow: 0 12px 24px rgba(39,70,37,.11); transform: translateY(-3px); }
.admin-catalog-cover { position: relative; display: block; height: 185px; overflow: hidden; background: #24362a; }
.admin-catalog-body { padding: 16px; }
.admin-catalog-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.admin-catalog-body h3 { margin: 10px 0 5px; font-size: 20px; line-height: 1.1; letter-spacing: -.05em; }
.admin-catalog-body p { min-height: 42px; margin: 0 0 15px; color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.admin-catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid #edf2eb; padding-top: 13px; }
.admin-catalog-actions .text-button { margin-left: auto; font-size: 11px; }
@media (max-width: 1280px) { .admin-product-workspace { grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); }.admin-product-grid, .admin-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .admin-content .admin-product-workspace { width: min(100% - 36px, 920px); }.admin-product-workspace { grid-template-columns: 1fr; }.admin-product-browser { position: static; }.admin-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }.admin-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .admin-product-workspace { gap: 18px; }.admin-product-browser { padding: 15px; }.admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.admin-editor-heading { flex-direction: column; gap: 10px; }.admin-catalog-grid { grid-template-columns: 1fr; }.admin-catalog-cover { height: 210px; }.admin-catalog-actions .text-button { margin-left: 0; } }

/* UX refinements */
.brand, .site-nav a, .nav-search, .text-link { min-height: 40px; align-items: center; }
.text-link { display: inline-flex; }
.button-small { min-height: 40px; }

/* Marketplace grid and navigation emphasis */
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-cover { height: auto; aspect-ratio: 16 / 10; }
@media (max-width: 1023px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .site-nav { background: #081321; border-color: #223653; }.site-nav a { min-height: 46px; }.site-nav .site-nav-logout { margin-top: 5px; padding-top: 13px; border-top: 1px solid rgba(147,164,187,.18); border-radius: 0; color: #8497b0; }.site-nav .site-nav-logout::before { display: none; }.product-grid { grid-template-columns: 1fr; } }
.menu-toggle { place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.site-nav a { display: inline-flex; }
.product-meta { flex-wrap: wrap; }
.product-footer .text-link { flex: 0 0 auto; }
.detail-copy > form { margin-top: 4px; }
.detail-description { max-width: 540px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
.detail-description h2 { margin: 0 0 8px; color: var(--text); font-size: 18px; letter-spacing: -.025em; }
.detail-description p { margin: 0; color: #aab6aa; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-copy { max-width: 320px; }

@media (max-width: 1023px) {
    .product-detail-grid { align-items: start; }
    .detail-art { min-height: min(54vw, 470px); }
}

@media (max-width: 760px) {
    .menu-toggle { display: grid; }
    .site-nav a { min-height: 44px; }
    .hero-marketplace { padding: 0; }
    .hero-marketplace-intro { padding: 20px 0 22px; }
    .marketplace-section { padding: 46px 0 56px; }
    .page-hero, .page-hero-compact { padding: 54px 0 46px; }
    .page-hero h1 { font-size: clamp(40px, 13vw, 62px); }
    .detail-art { min-height: 300px; }
    .product-hero { padding: 42px 0 58px; }
    .product-detail-grid { gap: 30px; }
    .detail-copy h1 { margin-top: 13px; }
    .detail-price { margin: 20px 0; }
    .catalog-bar { align-items: flex-start; flex-direction: column; gap: 4px; }
    .form-grid-three { grid-template-columns: 1fr; }
    .account-bar { align-items: flex-start; flex-direction: column; gap: 16px; }
    .library-actions, .library-actions form, .library-actions .button { width: 100%; }
    .library-actions .text-link { justify-content: center; min-height: 44px; }
    .admin-product-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(145px, 44%); grid-template-columns: none; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 8px; scroll-snap-type: inline proximity; }
    .admin-product-tile { scroll-snap-align: start; }
    .admin-product-tile-actions { gap: 12px; }
    .admin-product-tile-actions a { flex: 1; justify-content: center; }
    .admin-create-tile { min-height: 64px; }
}

@media (max-width: 430px) {
    .nav-row { gap: 8px; }
    .brand { font-size: 16px; }
    .brand-mark { width: 30px; height: 30px; }
    .nav-actions { gap: 4px; }
    .nav-actions .button-primary { min-height: 40px; padding: 0 10px; font-size: 12px; }
    .hero-marketplace-intro h1 { font-size: clamp(29px, 8.8vw, 38px); }
    .hero-marketplace-intro .hero-lede, .page-hero p { font-size: 14px; }
    .button-row .button { width: 100%; }
    .catalog-tools select, .catalog-tools .button { width: 100%; flex-basis: 100%; }
    .compat-grid { grid-template-columns: 1fr; }
    .detail-art { min-height: 265px; }
    .detail-copy h1 { font-size: clamp(38px, 13vw, 56px); }
    .footer-links { align-items: flex-start; flex-direction: column; gap: 6px; }
}

/* Blue-black theme normalization */
.button-outline { border-color: #9fb1c8; }
.hero-lede, .page-hero p, .admin-hero p, .detail-copy > p:not(.detail-tagline), .detail-description p { color: #aebbd0; }
.hero-art { background: linear-gradient(160deg, #102b55 0%, #102341 48%, #07111f 100%); border-color: rgba(59,130,246,.38); }
.feature-strip { border-color: var(--border); }
.feature-visual { background: linear-gradient(150deg, #12396b, #07111f); }
.feature-visual:before { background-image: linear-gradient(135deg, transparent 25%, rgba(59,130,246,.2) 25%, rgba(59,130,246,.2) 50%, transparent 50%); }
.badge { background: #dce8f6; color: #334b68; }
.badge-green { background: rgba(59,130,246,.14); color: var(--primary-dark); }
.badge-dark { background: rgba(5,10,20,.82); color: var(--text); }
.product-card, .release-row, .library-card, .stat-card, .admin-panel, .admin-form, .install-card, .payment-card, .auth-card { border-color: #cad8e9; }
.product-card:hover { box-shadow: 0 24px 45px rgba(8,30,64,.18); }
.product-meta, .product-footer, .library-meta { color: #657892; }
.product-body h3 a:hover, .form-foot a, .text-button, .admin-product-tile-actions a { color: var(--primary-dark); }
.product-footer, .admin-table th, .admin-table td, .payment-account { border-color: #dce6f2; }
.project-card { border-color: #c7d7e9; box-shadow: 4px 4px 0 rgba(15,48,90,.12); }
.project-index { color: #7489a5; }
.project-arrow { color: var(--primary-dark); }
.follow-cta { color: #ffffff; background: linear-gradient(135deg, var(--primary-dark), #2563eb); }
.follow-cta .eyebrow { color: #dbeafe; }
.follow-cta .button-outline { color: #ffffff; border-color: rgba(255,255,255,.6); }
.site-footer { background: #040914; color: #dbe7f7; }
.footer-grid a:not(.brand) { color: #92a4bd; }
.footer-bottom { color: #70849f; border-color: #1d304b; }
.search-field { color: #9cadc4; background: var(--surface); border-color: var(--border); }
.catalog-tools select, .admin-form select, .admin-form input, .admin-form textarea, .stack-form input { border-color: #b9cbe0; }
.notice { color: #1d4ed8; background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.3); }
.compat-grid { border-color: #c5d5e7; background: #c5d5e7; }
.auth-page { background: radial-gradient(circle at 25% 20%, rgba(59,130,246,.2), transparent 30%), var(--paper); }
.stack-form label, .admin-form label { color: #40536d; }
.stack-form small, .admin-form small { color: #71839a; }
.account-bar { border-color: #c7d7e9; }
.library-card, .install-card, .simple-panel { box-shadow: 5px 5px 0 rgba(15,48,90,.09); }
.quick-links a, .check { border-color: #c7d7e9; }
.empty-state { border-color: #9eb5cf; }
.empty-icon, .step-number, .payment-steps li > span, .admin-create-icon, .admin-product-status.is-published { color: #ffffff; }
.install-note { border-color: #bfd1e5; background: #e3edf8; }
.detail-art .detail-cover { background: #050a14; }
.simple-panel { border-color: #c4d5e8; }
.payment-mark { color: #06152f; }
.payment-mini { background: rgba(29,78,216,.07); }
.payment-card { border-color: #cad9ea; }
.payment-qr-placeholder { color: #345b8a; background: repeating-linear-gradient(45deg, #edf5ff, #edf5ff 8px, #e1edfa 8px, #e1edfa 16px); border-color: #91accb; }
.admin-product-browser { background: #f2f7fc; border-color: #cad9ea; box-shadow: 6px 6px 0 rgba(15,48,90,.08); }
.admin-create-tile { border-color: #97b1ce; }
.admin-create-tile:hover, .admin-create-tile.is-active { background: #eaf3ff; }
.admin-product-tile, .admin-catalog-card { border-color: #cbd9e9; }
.admin-product-tile:hover, .admin-product-tile.is-active, .admin-catalog-card:hover { border-color: var(--primary); box-shadow: 0 10px 22px rgba(15,48,90,.14); }
.admin-product-thumb, .admin-catalog-cover { background: #0b1b33; }
.admin-product-status { color: #eff6ff; background: rgba(5,10,20,.82); }
.admin-product-tile-actions, .admin-catalog-actions { border-color: #e0e9f4; }
.admin-editor-mode { color: var(--primary-dark); background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.32); }

@media (max-width: 760px) {
    .site-nav { background: var(--surface); border-color: var(--border); }
}

/* Product card platform and price actions */
.product-card { display: flex; flex-direction: column; }
.product-body { display: flex; flex: 1; flex-direction: column; }
.product-platform-badge { max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(5,10,20,.88); border: 1px solid rgba(147,197,253,.38); box-shadow: 0 4px 14px rgba(0,0,0,.22); }
.product-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 9px; margin-top: auto; }
.product-price-action { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 42px; padding: 7px 10px; border: 1px solid rgba(59,130,246,.32); border-radius: 7px; color: var(--primary-dark); background: rgba(59,130,246,.1); transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.product-price-action:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }
.product-price-action strong, .product-price-action small { display: block; white-space: nowrap; }
.product-price-action strong { font-size: 14px; line-height: 1; }
.product-price-action small { font-size: 9px; font-weight: 700; opacity: .78; }
.product-price-action.is-paid { color: #fff; background: var(--primary); border-color: var(--primary-dark); }
.product-price-action.is-paid:hover { background: var(--primary-dark); }
.product-detail-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 0 9px; border: 1px solid #c4d3e5; border-radius: 7px; color: #40536d; font-size: 11px; font-weight: 800; white-space: nowrap; }
.product-detail-link:hover { color: var(--primary-dark); border-color: var(--primary); background: #eef5ff; }
@media (max-width: 430px) { .product-footer { grid-template-columns: 1fr 1fr; }.product-price-action, .product-detail-link { min-height: 46px; } }

/* Homepage mascot greeting */
.home-greeting[hidden] { display: none; }
.home-greeting { position: fixed; right: clamp(12px, 2.5vw, 36px); bottom: 18px; z-index: 70; width: min(460px, calc(100vw - 24px)); height: 172px; overflow: visible; pointer-events: none; color: var(--text); background: linear-gradient(145deg, rgba(16,29,50,.98), rgba(5,10,20,.98)); border: 1px solid rgba(96,165,250,.62); border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,.42), 5px 5px 0 rgba(29,78,216,.62); opacity: 0; transform: translateY(28px) scale(.97); transition: opacity .28s ease, transform .45s cubic-bezier(.2,.8,.2,1); }
.home-greeting::before { content: ""; position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(96,165,250,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,.2) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, #000, transparent 68%); }
.home-greeting.is-visible { pointer-events: auto; opacity: 1; transform: translateY(0); }
.home-greeting.is-leaving { pointer-events: none; opacity: 0; transform: translateY(28px) scale(.97); }
.home-greeting-avatar { position: absolute; right: 8px; bottom: 0; z-index: 2; width: 136px; height: 218px; overflow: hidden; opacity: 0; transform: translateY(105%); filter: drop-shadow(0 16px 15px rgba(0,0,0,.38)); }
.home-greeting-avatar img { position: absolute; left: 50%; bottom: -2px; z-index: 2; width: 245px; max-width: none; height: auto; image-rendering: pixelated; transform: translateX(-50%); }
.home-greeting-avatar--sitting img { left: 45%; bottom: -5px; width: 232px; }
.home-greeting-avatar--running img { left: 46%; bottom: -4px; width: 236px; }
.home-greeting-glow { position: absolute; left: 50%; bottom: 2px; width: 112px; height: 154px; background: radial-gradient(circle, rgba(59,130,246,.48), transparent 68%); filter: blur(9px); transform: translateX(-50%); }
.home-greeting.is-visible .home-greeting-avatar { animation: home-mascot-rise .82s cubic-bezier(.18,.9,.32,1.2) .05s forwards; }
.home-greeting-bubble { position: relative; z-index: 3; display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: center; padding: 22px 150px 22px 24px; opacity: 0; transform: translateY(10px); }
.home-greeting.is-visible .home-greeting-bubble { animation: home-greeting-bubble-in .42s cubic-bezier(.2,.9,.28,1.18) .48s forwards; }
.home-greeting-status { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 5px; color: #93c5fd; font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.home-greeting-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--diamond); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.home-greeting-bubble strong { display: block; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.home-greeting-bubble p { margin: 6px 0 0; color: #b8c8dc; font-size: 12px; line-height: 1.5; }
.home-greeting-close { position: absolute; top: 10px; right: 132px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: #9fb2ca; background: transparent; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 22px; line-height: 1; }
.home-greeting-close:hover { color: #fff; background: rgba(59,130,246,.16); border-color: rgba(96,165,250,.3); }
@keyframes home-mascot-rise { 0% { opacity: 0; transform: translateY(105%); } 68% { opacity: 1; transform: translateY(-8px); } 84% { transform: translateY(3px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes home-greeting-bubble-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 430px) {
    .home-greeting { right: 8px; left: 8px; bottom: 10px; width: auto; height: 150px; }
    .home-greeting-avatar { right: 2px; width: 108px; height: 184px; }
    .home-greeting-avatar img { width: 206px; bottom: -2px; }
    .home-greeting-avatar--sitting img { left: 45%; bottom: -4px; width: 194px; }
    .home-greeting-avatar--running img { left: 46%; bottom: -3px; width: 198px; }
    .home-greeting-bubble { padding: 20px 112px 16px 17px; }
    .home-greeting-bubble strong { font-size: 16px; }
    .home-greeting-bubble p { margin-top: 4px; font-size: 10.5px; line-height: 1.4; }
    .home-greeting-close { top: 6px; right: 101px; width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-greeting, .home-greeting-avatar, .home-greeting-bubble { animation: none !important; transition: none !important; }
    .home-greeting.is-visible, .home-greeting.is-visible .home-greeting-avatar, .home-greeting.is-visible .home-greeting-bubble { opacity: 1; transform: none; }
}
