/* ==========================================================================
   想印 — storefront styles
   Paper, ink and a vermilion seal; CMYK light for the effects.
   ========================================================================== */

:root {
	--paper: #FBFCFE;
	--paper-2: #F2F4F9;
	--paper-3: #E8ECF4;
	--card: #FFFFFF;
	--ink: #0B0E17;
	--ink-2: #2B3142;
	--muted: #6B7385;
	--line: #E7EAF1;
	--line-2: #D3D9E5;
	--seal: #E8462A;
	--seal-d: #C7361C;
	--seal-l: #FFE6DE;
	--c: #00A6D6;
	--m: #E5307E;
	--y: #FFC72C;
	--blue: #2F6BFF;
	--violet: #7A5CFF;
	--night: #0B0E17;
	--night-2: #171C2A;
	--ok: #1E7B4A;
	--radius: 22px;
	--radius-s: 14px;
	--shadow: 0 30px 70px -40px rgba(11, 14, 23, .35);
	--shadow-s: 0 14px 30px -18px rgba(11, 14, 23, .28);
	--glass: rgba(255, 255, 255, .62);
	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--head: 72px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
	--latin: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
	--display: "Syne", "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.75;
	color: var(--ink);
	background: transparent;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--seal); color: #fff; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

.xy-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.xy-skip:focus { left: 12px; }
.xy-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.xy-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xy-latin, .num { font-family: var(--latin); font-feature-settings: "tnum" 1; }
.xy-icon { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.xy-btn {
	--bg: var(--ink); --fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px 24px; border-radius: 999px; border: 0;
	background: var(--bg); color: var(--fg);
	font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: .02em;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
	position: relative; isolation: isolate;
}
.xy-btn .xy-icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.xy-btn:hover .xy-icon { transform: translateX(3px); }
.xy-btn-seal { --bg: var(--seal); box-shadow: 0 16px 34px -16px rgba(232, 70, 42, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.xy-btn-seal:hover { --bg: var(--seal-d); box-shadow: 0 22px 44px -16px rgba(232, 70, 42, .95); }
.xy-btn-ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.xy-btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.xy-btn-glass { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.xy-btn-glass:hover { --bg: rgba(255, 255, 255, .16); }
.xy-btn-sm { padding: 10px 18px; font-size: 14px; }
.xy-btn-lg { padding: 18px 30px; font-size: 17px; }
.xy-btn-block { width: 100%; }
.xy-btn[disabled] { opacity: .5; pointer-events: none; }
.xy-link { color: var(--seal-d); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.xy-link:hover { text-decoration: underline; }

/* ---------- announcement + header ---------- */
.xy-notice { background: var(--ink); color: #F5E9DA; font-size: 13px; letter-spacing: .04em; overflow: hidden; height: 34px; display: flex; align-items: center; position: relative; z-index: 51; }
.xy-notice-track { display: flex; gap: 80px; white-space: nowrap; padding-left: 100%; animation: xy-ticker 28s linear infinite; }
.xy-notice-track span::before { content: "✦"; color: var(--y); margin-right: 12px; }
@keyframes xy-ticker { to { transform: translateX(-100%); } }
@media (min-width: 900px) { .xy-notice-track { padding-left: 0; animation: none; justify-content: center; width: 100%; } .xy-notice-track span + span { display: none; } }

.xy-header { position: sticky; top: 0; z-index: 50; transition: transform .45s var(--ease), background .35s, box-shadow .35s, color .35s; }
.xy-header-in { height: var(--head); display: flex; align-items: center; gap: 24px; max-width: calc(var(--wrap) + 80px); margin: 0 auto; padding: 0 var(--gut); }
.xy-header.is-scrolled { background: rgba(250, 246, 239, .82); backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.xy-header.is-hidden { transform: translateY(-100%); }
/* open mobile menu: solid bar, no backdrop-filter (it would trap the fixed menu inside the header) */
.xy-header.is-menu, .xy-header.is-menu.is-scrolled { background: var(--paper); backdrop-filter: none; box-shadow: 0 1px 0 var(--line); transform: none; }
.xy-header.is-menu .xy-logo-word, .xy-header.is-menu { color: var(--ink); }
.xy-header.is-menu .xy-burger span { background: var(--ink); }
.xy-header.is-dark:not(.is-scrolled) { color: #fff; }
.xy-header.is-dark:not(.is-scrolled) .xy-logo-word { color: #fff; }
.xy-header.is-dark:not(.is-scrolled) .xy-burger span { background: #fff; }
.page-home .xy-header { position: fixed; left: 0; right: 0; top: 34px; }
.page-home .xy-header.is-scrolled { top: 0; }
.xy-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.xy-logo-mark { width: 34px; height: 34px; transition: transform .5s var(--ease); }
.xy-logo:hover .xy-logo-mark { transform: rotate(-8deg) scale(1.06); }
.xy-logo-word { font-weight: 900; font-size: 23px; letter-spacing: .02em; color: var(--ink); }
.xy-nav { display: flex; gap: 4px; margin: 0 auto 0 12px; }
.xy-nav > a, .xy-nav-item > a { display: inline-block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; transition: background .25s; }
.xy-nav > a:hover, .xy-nav-item > a:hover, .xy-nav [aria-current="page"] { background: rgba(28, 24, 20, .06); }
.xy-header.is-dark:not(.is-scrolled) .xy-nav > a:hover, .xy-header.is-dark:not(.is-scrolled) .xy-nav-item > a:hover { background: rgba(255, 255, 255, .12); }
.xy-nav-item { position: relative; }
.xy-mega { position: absolute; left: -20px; top: 100%; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; color: var(--ink); }
.xy-nav-item:hover .xy-mega, .xy-nav-item:focus-within .xy-mega { opacity: 1; visibility: visible; transform: none; }
.xy-mega-in { width: min(720px, 90vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: 0 40px 80px -30px rgba(28, 24, 20, .45), 0 0 0 1px var(--line); }
.xy-mega-item { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; text-decoration: none; transition: background .2s; }
.xy-mega-item:hover { background: var(--paper); }
.xy-mega-img { width: 54px; height: 54px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; overflow: hidden; flex: none; }
.xy-mega-img img { max-width: 86%; max-height: 86%; object-fit: contain; box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.xy-mega-txt { display: flex; flex-direction: column; line-height: 1.35; }
.xy-mega-txt small { color: var(--muted); font-size: 12px; }
.xy-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.xy-nav + .xy-tools { margin-left: 0; }
.xy-tool { display: inline-flex; align-items: center; gap: 6px; padding: 9px 11px; border-radius: 999px; text-decoration: none; font-size: 14px; position: relative; transition: background .25s; }
.xy-tool:hover { background: rgba(28, 24, 20, .06); }
.xy-header.is-dark:not(.is-scrolled) .xy-tool:hover { background: rgba(255, 255, 255, .12); }
.xy-badge { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--seal); color: #fff; font: 700 11px/19px var(--latin); text-align: center; box-shadow: 0 0 0 2px var(--paper); }
.xy-badge.is-bump { animation: xy-bump .6s var(--ease); }
@keyframes xy-bump { 30% { transform: scale(1.45); } }
.xy-burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.xy-burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.xy-burger span:first-child { top: 17px; }
.xy-burger span:last-child { top: 25px; }
.xy-burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.xy-burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.xy-menu { position: fixed; inset: var(--menu-top, var(--head)) 0 0; background: var(--paper); color: var(--ink); overflow-y: auto; z-index: 49; }
.xy-menu-in { padding: 18px var(--gut) 40px; display: flex; flex-direction: column; gap: 4px; }
.xy-menu-label { font-size: 13px; color: var(--muted); margin: 8px 0 6px; }
.xy-menu-products { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.xy-menu-products a { padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; font-size: 15px; }
.xy-menu-big { font-size: 24px; font-weight: 900; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xy-menu .xy-btn { margin-top: 18px; }

@media (max-width: 1080px) {
	.xy-nav { display: none; }
	.xy-burger { display: block; }
	.xy-tool-label { display: none; }
	.xy-nav + .xy-tools { margin-left: auto; }
}
@media (max-width: 560px) {
	.xy-header-cta { display: none; }
	.xy-logo-word { font-size: 21px; }
	:root { --head: 64px; }
}

/* ---------- soft cursor light ---------- */
.xy-cursor { position: fixed; left: 0; top: 0; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0; mix-blend-mode: soft-light; background: radial-gradient(circle, rgba(255, 199, 44, .55), rgba(229, 48, 126, .22) 38%, transparent 68%); transition: opacity .6s, width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease); will-change: transform; }
.xy-cursor.is-on { opacity: 1; }
.xy-cursor.is-big { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .xy-cursor { display: none; } }

/* ---------- reveals ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.xy-split .ch { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(4deg); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 38ms + var(--d, 0s)); }
.xy-split.is-in .ch { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
	[data-reveal], .xy-split .ch { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
	.xy-notice-track { animation: none; }
}

/* ---------- common sections ---------- */
.xy-section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.xy-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--latin); letter-spacing: .16em; text-transform: uppercase; color: var(--seal-d); margin-bottom: 18px; }
.xy-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.xy-h2 { font-size: clamp(32px, 5vw, 60px); font-weight: 900; letter-spacing: -.02em; line-height: 1.12; }
.xy-lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 36em; margin-top: 18px; }
.xy-head { margin-bottom: clamp(36px, 5vw, 64px); }
.xy-head.is-center { text-align: center; }
.xy-head.is-center .xy-lead { margin-inline: auto; }
.xy-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.xy-mark { background: linear-gradient(transparent 62%, rgba(255, 199, 44, .55) 62%, rgba(255, 199, 44, .55) 92%, transparent 92%); padding: 0 .08em; }
.xy-seal-text { color: var(--seal); }

/* crop marks frame (print vibe) */
.xy-crop { position: relative; }
.xy-crop::before, .xy-crop::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid currentColor; opacity: .35; pointer-events: none; }
.xy-crop::before { left: -14px; top: -14px; border-right: 0; border-bottom: 0; }
.xy-crop::after { right: -14px; bottom: -14px; border-left: 0; border-top: 0; }

/* ---------- page heads (inner pages) ---------- */
.xy-pagehead { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 5vw, 56px); position: relative; overflow: hidden; }
.xy-pagehead::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 70, 42, .16), rgba(255, 199, 44, .10) 45%, transparent 70%); filter: blur(10px); pointer-events: none; }
.xy-pagehead h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; letter-spacing: -.02em; }
.xy-pagehead p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-2); max-width: 40em; margin-top: 14px; }
.xy-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.xy-crumbs a { text-decoration: none; }
.xy-crumbs a:hover { color: var(--ink); text-decoration: underline; }
.xy-crumbs span::before { content: "/"; margin-right: 6px; opacity: .5; }

/* ---------- product cards ---------- */
.xy-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.xy-pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); text-decoration: none; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); isolation: isolate; }
.xy-pcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.xy-pcard-media { aspect-ratio: 5 / 4; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #fff, var(--paper-2)); }
.xy-pcard-media::after { content: ""; position: absolute; inset: auto 12% 10% 12%; height: 18%; background: radial-gradient(closest-side, rgba(28, 24, 20, .28), transparent); filter: blur(8px); z-index: 0; transition: transform .6s var(--ease); }
.xy-pcard-media img { position: relative; z-index: 1; max-width: 72%; max-height: 72%; object-fit: contain; border-radius: 3px; box-shadow: 0 18px 30px -16px rgba(28, 24, 20, .55); transition: transform .7s var(--ease); }
.xy-pcard-media img.is-round { border-radius: 50%; }
.xy-pcard:hover .xy-pcard-media img { transform: translateY(-6px) rotate(-2deg) scale(1.04); }
.xy-pcard:hover .xy-pcard-media::after { transform: scaleX(.86); }
.xy-pcard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.xy-pcard-name { font-size: 19px; font-weight: 900; }
.xy-pcard-meta { font-size: 13px; color: var(--muted); }
.xy-pcard-desc { font-size: 14px; color: var(--ink-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xy-pcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.xy-price { font: 700 18px/1 var(--latin); }
.xy-price small { font: 500 12px var(--font); color: var(--muted); margin-left: 4px; }
.xy-pcard-go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); transition: background .3s, color .3s, transform .4s var(--ease); }
.xy-pcard:hover .xy-pcard-go { background: var(--seal); color: #fff; transform: rotate(-45deg); }
.xy-tag { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.xy-tag.is-ai { background: linear-gradient(120deg, var(--m), var(--seal)); }

/* ---------- forms ---------- */
.xy-form { display: grid; gap: 16px; }
.xy-field { display: grid; gap: 7px; }
.xy-field > span, .xy-label { font-weight: 700; font-size: 14px; }
.xy-field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.xy-input, .xy-field input:not([type=checkbox]):not([type=radio]), .xy-field select, .xy-field textarea {
	width: 100%; padding: 13px 15px; border-radius: var(--radius-s); border: 1.5px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
.xy-field input:focus, .xy-field select:focus, .xy-field textarea:focus { outline: none; border-color: var(--seal); box-shadow: 0 0 0 4px rgba(232, 70, 42, .14); }
.xy-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .xy-row2 { grid-template-columns: 1fr; } }
.xy-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.6; }
.xy-check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--seal); flex: none; }
.xy-alert { padding: 13px 16px; border-radius: var(--radius-s); font-size: 15px; }
.xy-alert.is-error { background: #FDECE8; color: #9E2A14; box-shadow: inset 0 0 0 1px #F7C9BD; }
.xy-alert.is-ok { background: #E7F4EC; color: #1B5E3A; box-shadow: inset 0 0 0 1px #BFE2CC; }
.xy-alert.is-info { background: #EAF6FB; color: #0D5470; box-shadow: inset 0 0 0 1px #C2E5F2; }
.xy-hp { position: absolute; left: -5000px; }

.xy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.xy-chip { position: relative; }
.xy-chip input { position: absolute; opacity: 0; pointer-events: none; }
.xy-chip input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.xy-opt-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.xy-chip span { display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 9px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s, background .2s, transform .2s; line-height: 1.3; font-size: 15px; }
.xy-chip span small { font-size: 12px; color: var(--muted); }
.xy-chip:hover span { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.xy-chip input:checked + span { box-shadow: inset 0 0 0 2px var(--seal); background: #FFF6F2; }
.xy-chip input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }

/* ---------- panels ---------- */
.xy-panel { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: clamp(20px, 3vw, 32px); }
.xy-panel + .xy-panel { margin-top: 18px; }
.xy-panel h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }

/* ---------- product page ---------- */
.xy-product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .xy-product { grid-template-columns: 1fr; } }
.xy-gallery { position: sticky; top: calc(var(--head) + 18px); }
.xy-stage { aspect-ratio: 1 / 1; border-radius: 28px; position: relative; overflow: hidden; display: grid; place-items: center; background: radial-gradient(90% 80% at 30% 15%, #fff 0%, var(--paper-2) 70%); box-shadow: inset 0 0 0 1px var(--line); perspective: 1200px; }
.xy-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 35% at 75% 80%, rgba(0, 166, 214, .14), transparent 70%), radial-gradient(35% 30% at 20% 75%, rgba(229, 48, 126, .12), transparent 70%), radial-gradient(40% 30% at 70% 20%, rgba(255, 199, 44, .16), transparent 70%); }
.xy-stage-card { position: relative; width: 74%; height: 74%; display: grid; place-items: center; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.xy-stage-card img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; box-shadow: 0 40px 60px -30px rgba(28, 24, 20, .55), 0 2px 6px rgba(28, 24, 20, .12); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.xy-stage-card img.is-round { border-radius: 50%; }
.xy-stage-card img.is-out { opacity: 0; transform: translateY(14px) scale(.97); }
.xy-stage-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 40% at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 70%); mix-blend-mode: soft-light; }
.xy-stage-dim { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font: 600 12px var(--latin); letter-spacing: .08em; color: var(--muted); background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); padding: 5px 12px; border-radius: 999px; display: flex; gap: 8px; align-items: center; }
.xy-thumbs { display: flex; gap: 10px; margin-top: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.xy-thumb { flex: none; width: 74px; height: 74px; border-radius: 14px; border: 0; background: var(--paper-2); display: grid; place-items: center; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .2s; padding: 6px; }
.xy-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 4px 8px -4px rgba(0, 0, 0, .4); }
.xy-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--seal); }
.xy-thumb:hover { transform: translateY(-2px); }

.xy-buy h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 900; letter-spacing: -.02em; }
.xy-buy-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.xy-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.xy-pill .xy-icon { width: 15px; height: 15px; }
.xy-buy-desc { color: var(--ink-2); margin: 10px 0 22px; }
.xy-opt { margin: 0 0 22px; border: 0; padding: 0; }
.xy-opt legend { font-weight: 900; font-size: 15px; margin-bottom: 10px; padding: 0; display: flex; gap: 8px; align-items: baseline; }
.xy-opt legend small { font-weight: 500; color: var(--muted); font-size: 13px; }
.xy-qty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.xy-qty-grid .xy-chip span { width: 100%; }
.xy-qty-grid .xy-chip b { font: 700 16px var(--latin); }
.xy-fold { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.xy-fold-svg { width: 64px; height: 28px; margin-bottom: 6px; color: var(--ink-2); }
.xy-summary { position: relative; border-radius: var(--radius); background: var(--ink); color: #fff; padding: 22px 24px; overflow: hidden; isolation: isolate; }
.xy-summary::before { content: ""; position: absolute; inset: -60% -30% auto auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 70, 42, .55), transparent 65%); z-index: -1; filter: blur(8px); }
.xy-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .72); padding: 3px 0; }
.xy-summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.xy-summary-total strong { font: 700 clamp(28px, 3vw, 36px)/1 var(--latin); }
.xy-summary-unit { font-size: 13px; color: rgba(255, 255, 255, .6); }
.xy-summary .xy-btn { margin-top: 16px; }
.xy-summary .xy-btn + .xy-btn { margin-top: 10px; }
.xy-summary-note { font-size: 13px; color: rgba(255, 255, 255, .62); margin-top: 14px; display: flex; gap: 8px; }
.xy-summary-note .xy-icon { width: 16px; height: 16px; margin-top: 3px; }
.xy-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.xy-spec th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 16px 12px 0; width: 32%; vertical-align: top; border-bottom: 1px solid var(--line); }
.xy-spec td { padding: 12px 0; border-bottom: 1px solid var(--line); }

/* ---------- template wall ---------- */
.xy-tgrid { columns: 4 240px; column-gap: 18px; }
.xy-tcard { break-inside: avoid; margin: 0 0 18px; display: block; position: relative; border-radius: 18px; overflow: hidden; background: var(--paper-2); padding: 18px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.xy-tcard img { width: 100%; border-radius: 3px; box-shadow: 0 16px 26px -16px rgba(28, 24, 20, .5); transition: transform .6s var(--ease); }
.xy-tcard img.is-round { border-radius: 50%; }
.xy-tcard:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.xy-tcard:hover img { transform: scale(1.03); }
.xy-tcard figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-top: 12px; color: var(--muted); }
.xy-tcard figcaption strong { color: var(--ink); font-size: 14px; }
.xy-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.xy-filter button { border: 0; padding: 9px 16px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-size: 14px; transition: background .2s, color .2s, box-shadow .2s; }
.xy-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }

/* ---------- cart / checkout ---------- */
.xy-cart { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 980px) { .xy-cart { grid-template-columns: 1fr; } }
.xy-items { display: grid; gap: 14px; }
.xy-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px; background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); position: relative; transition: opacity .3s, transform .3s; }
.xy-item.is-busy { opacity: .55; }
.xy-item.is-gone { opacity: 0; transform: translateX(24px); }
.xy-item-img { background: var(--paper-2); border-radius: 14px; display: grid; place-items: center; padding: 14px; aspect-ratio: 1; }
.xy-item-img img { max-height: 100%; object-fit: contain; box-shadow: 0 10px 18px -10px rgba(0, 0, 0, .45); }
.xy-item h3 { font-size: 18px; font-weight: 900; }
.xy-item-meta { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.xy-item-ctrl { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.xy-item-ctrl label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.xy-item-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.xy-item-lines li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.xy-item-ctrl select { padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; min-width: 130px; }
.xy-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; flex-wrap: wrap; }
.xy-item-price { font: 700 20px var(--latin); }
.xy-item-price.is-hold { font: 600 14px var(--font); color: #9A5A00; }
.xy-item-acts { display: flex; gap: 6px; }
.xy-iconbtn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.xy-iconbtn:hover { background: var(--paper-2); color: var(--ink); }
.xy-iconbtn .xy-icon { width: 17px; height: 17px; }
.xy-item-problem { margin-top: 10px; }
@media (max-width: 600px) { .xy-item { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; } .xy-item-ctrl select { min-width: 0; } }
.xy-side { position: sticky; top: calc(var(--head) + 18px); }
.xy-empty { text-align: center; padding: 70px 20px; }
.xy-empty-art { width: 140px; height: 140px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 35%, #fff, var(--paper-2)); box-shadow: inset 0 0 0 1px var(--line); }
.xy-empty-art img { width: 64px; }
.xy-empty h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.xy-empty p { color: var(--muted); margin-bottom: 22px; }
.xy-steps-mini { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.xy-steps-mini b { color: var(--ink); }
.xy-steps-mini i { width: 18px; height: 1px; background: var(--line-2); }
.xy-gw { display: grid; gap: 10px; }
.xy-gw label { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: box-shadow .2s; }
.xy-gw label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--seal); background: #FFF8F5; }
.xy-gw input { accent-color: var(--seal); width: 18px; height: 18px; margin-top: 3px; }
.xy-gw small { display: block; color: var(--muted); font-size: 13px; }
.xy-mini-items { display: grid; gap: 10px; margin-bottom: 14px; }
.xy-mini { display: flex; gap: 12px; align-items: center; font-size: 14px; color: rgba(255, 255, 255, .85); }
.xy-mini img { width: 44px; height: 44px; object-fit: contain; background: rgba(255, 255, 255, .08); border-radius: 8px; padding: 4px; }
.xy-mini span { flex: 1; line-height: 1.35; }
.xy-mini small { display: block; color: rgba(255, 255, 255, .55); font-size: 12px; }

/* ---------- account ---------- */
.xy-acct { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 860px) { .xy-acct { grid-template-columns: 1fr; } }
.xy-acct-nav { display: grid; gap: 4px; position: sticky; top: calc(var(--head) + 18px); }
.xy-acct-nav a, .xy-acct-nav button { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; font-weight: 500; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; font-size: 15px; }
.xy-acct-nav a:hover, .xy-acct-nav button:hover { background: var(--paper-2); }
.xy-acct-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 860px) { .xy-acct-nav { position: static; display: flex; overflow-x: auto; } .xy-acct-nav a, .xy-acct-nav button { white-space: nowrap; width: auto; } }
.xy-olist { display: grid; gap: 12px; }
.xy-orow { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); text-decoration: none; transition: box-shadow .3s, transform .3s var(--ease); }
.xy-orow:hover { box-shadow: 0 0 0 1px var(--line-2), var(--shadow-s); transform: translateY(-2px); }
.xy-orow-imgs { display: flex; }
.xy-orow-imgs img { width: 52px; height: 52px; object-fit: contain; background: var(--paper-2); border-radius: 10px; padding: 4px; box-shadow: 0 0 0 2px var(--card); }
.xy-orow-imgs img + img { margin-left: -16px; }
.xy-orow strong { display: block; font: 700 15px var(--latin); }
.xy-orow small { color: var(--muted); font-size: 13px; }
.xy-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--paper-2); }
.xy-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.xy-status.is-pending, .xy-status.is-balance { color: #9A5A00; background: #FFF1D9; }
.xy-status.is-test { color: #fff; background: #C7361C; }
.xy-status.is-paid, .xy-status.is-review, .xy-status.is-designing { color: #0D5470; background: #E3F3FA; }
.xy-status.is-production { color: #5B2BA8; background: #F0E8FD; }
.xy-status.is-shipped, .xy-status.is-done { color: var(--ok); background: #E4F3EA; }
.xy-status.is-cancelled, .xy-status.is-refunded { color: var(--muted); }
.xy-status.is-partial, .xy-status.is-revise { color: #9E2A14; background: #FDECE8; }
.xy-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.xy-dcard { background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: transform .3s var(--ease), box-shadow .3s; }
.xy-dcard:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-s); }
.xy-dcard-img { background: var(--paper-2); border-radius: 12px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 12px; }
.xy-dcard-img img { max-height: 100%; object-fit: contain; box-shadow: 0 8px 14px -8px rgba(0, 0, 0, .4); }
.xy-dcard strong { font-size: 15px; line-height: 1.4; }
.xy-dcard small { color: var(--muted); font-size: 12px; }
.xy-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.xy-kpi { background: var(--card); border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.xy-kpi strong { font: 700 30px/1 var(--latin); display: block; }
.xy-kpi span { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .xy-kpis { grid-template-columns: 1fr 1fr 1fr; } .xy-kpi { padding: 14px; } .xy-kpi strong { font-size: 24px; } }

/* ---------- auth ---------- */
.xy-auth { min-height: calc(100vh - var(--head) - 34px); display: grid; grid-template-columns: 1fr 1fr; }
.xy-auth-art { position: relative; overflow: hidden; background: var(--night); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 56px); isolation: isolate; }
.xy-auth-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 40% at 20% 20%, rgba(232, 70, 42, .5), transparent 70%), radial-gradient(40% 35% at 80% 30%, rgba(0, 166, 214, .35), transparent 70%), radial-gradient(45% 40% at 60% 85%, rgba(229, 48, 126, .35), transparent 70%); filter: blur(20px); animation: xy-breathe 12s ease-in-out infinite alternate; }
@keyframes xy-breathe { to { transform: scale(1.12) rotate(4deg); } }
.xy-auth-stack { position: absolute; inset: 8% 6% 30% 10%; }
.xy-auth-stack img { position: absolute; width: 46%; border-radius: 4px; box-shadow: 0 40px 60px -26px rgba(0, 0, 0, .8); animation: xy-float 8s ease-in-out infinite; }
.xy-auth-stack img:nth-child(1) { left: 0; top: 8%; transform: rotate(-8deg); }
.xy-auth-stack img:nth-child(2) { left: 30%; top: 0; width: 40%; transform: rotate(5deg); animation-delay: -2s; }
.xy-auth-stack img:nth-child(3) { left: 52%; top: 30%; width: 38%; transform: rotate(-3deg); animation-delay: -4s; }
@keyframes xy-float { 50% { translate: 0 -14px; } }
.xy-auth-art h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 900; }
.xy-auth-art p { color: rgba(255, 255, 255, .7); margin-top: 10px; max-width: 26em; }
.xy-auth-form { display: grid; place-items: center; padding: clamp(32px, 5vw, 64px) var(--gut); }
.xy-auth-box { width: 100%; max-width: 420px; }
.xy-auth-box h1 { font-size: 34px; font-weight: 900; }
.xy-auth-box > p { color: var(--muted); margin: 8px 0 24px; }
.xy-auth-alt { text-align: center; font-size: 14px; color: var(--muted); margin-top: 18px; }
.xy-oauth { display: grid; gap: 10px; margin-bottom: 18px; }
.xy-oauth a { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.xy-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.xy-or::before, .xy-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.xy-pw { position: relative; }
.xy-pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }

/* ---------- prose (legal, faq) ---------- */
.xy-prose { max-width: 760px; }
.xy-prose h2 { font-size: 22px; font-weight: 900; margin: 40px 0 10px; }
.xy-prose h3 { font-size: 17px; margin: 24px 0 6px; }
.xy-prose p, .xy-prose li { color: var(--ink-2); }
.xy-prose p + p { margin-top: 10px; }
.xy-prose ul, .xy-prose ol { padding-left: 1.3em; }
.xy-faq { display: grid; gap: 10px; }
.xy-faq details { background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line); padding: 0 22px; transition: box-shadow .3s; }
.xy-faq details[open] { box-shadow: 0 0 0 1.5px var(--ink); }
.xy-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.xy-faq summary::-webkit-details-marker { display: none; }
.xy-faq summary::after { content: "+"; font: 400 26px/1 var(--latin); transition: transform .3s var(--ease); color: var(--seal); }
.xy-faq details[open] summary::after { transform: rotate(45deg); }
.xy-faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.xy-faq-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.xy-faq-cats a { padding: 8px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; font-size: 14px; background: var(--card); }
.xy-faq h2 { font-size: 22px; font-weight: 900; margin: 34px 0 8px; }

/* ---------- studio page ---------- */
.page-studio .xy-main { background: transparent; }
.xy-studio { padding: 22px 0 80px; min-height: 70vh; }
.xy-studio .tsx-app { --tsx-primary: var(--ink); --tsx-primary-ink: #fff; --tsx-accent: var(--blue); --tsx-text: var(--ink); --tsx-muted: var(--muted); --tsx-soft: #F2F4F9; --tsx-border: var(--line); --tsx-stage: #EEF1F6; --tsx-surface: rgba(255, 255, 255, .86); --tsx-radius: 18px; --tsx-font: var(--font); }
body .tsx-dialog { background: #fff; }
body .tsx-dialog::backdrop { background: rgba(11, 14, 23, .55); backdrop-filter: blur(3px); }

/* ---------- footer ---------- */
.xy-footer { position: relative; overflow: hidden; background: var(--night); color: #D9DEEA; padding: clamp(64px, 8vw, 110px) 0 28px; isolation: isolate; }
.xy-footer-glow { position: absolute; inset: auto -10% -40% -10%; height: 80%; z-index: -1; background: radial-gradient(40% 60% at 20% 60%, rgba(47, 107, 255, .35), transparent 70%), radial-gradient(35% 55% at 55% 70%, rgba(229, 48, 126, .22), transparent 70%), radial-gradient(35% 55% at 85% 55%, rgba(0, 166, 214, .25), transparent 70%); filter: blur(30px); }
.xy-footer a { text-decoration: none; color: inherit; }
.xy-footer a:hover { color: #fff; text-decoration: underline; }
.xy-footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
@media (max-width: 900px) { .xy-footer-top { grid-template-columns: 1fr; } }
.xy-footer-brand p { color: rgba(233, 223, 210, .7); margin: 18px 0 24px; max-width: 24em; }
.xy-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 700px) { .xy-footer-cols { grid-template-columns: 1fr 1fr; } }
.xy-footer-cols div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.xy-footer-cols h3 { font-size: 13px; letter-spacing: .12em; color: rgba(233, 223, 210, .5); font-weight: 700; margin-bottom: 6px; }
.xy-footer-word { font-weight: 900; font-size: clamp(120px, 26vw, 380px); line-height: .9; letter-spacing: -.04em; margin: 50px 0 0; text-align: center; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.xy-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(233, 223, 210, .55); border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; margin-top: 10px; }

/* ---------- misc pages ---------- */
.xy-notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gut); }
.xy-notfound b { font: 700 clamp(100px, 18vw, 220px)/1 var(--latin); background: linear-gradient(120deg, var(--c), var(--m) 50%, var(--y)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.xy-done-hero { text-align: center; padding: clamp(40px, 6vw, 80px) 0 20px; }
.xy-done-icon { width: 86px; height: 86px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--seal); color: #fff; box-shadow: 0 0 0 10px rgba(232, 70, 42, .12), 0 0 0 22px rgba(232, 70, 42, .06); animation: xy-pop .8s var(--ease) both; }
.xy-done-icon .xy-icon { width: 42px; height: 42px; stroke-width: 2.4; }
@keyframes xy-pop { from { transform: scale(.4); opacity: 0; } }
.xy-paybox { white-space: pre-line; background: var(--paper-2); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.xy-kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.xy-kv th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px 8px 0; vertical-align: top; }
.xy-kv td { text-align: right; padding: 8px 0; }
.xy-kv tr.is-total th, .xy-kv tr.is-total td { border-top: 1px solid var(--line); font-weight: 900; color: var(--ink); font-size: 18px; padding-top: 14px; }
.xy-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 900px) { .xy-two { grid-template-columns: 1fr; } }
.xy-doc-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); }
.xy-pcard-doc { display: grid; place-items: center; width: 46%; aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(140deg, #fff, var(--paper-3)); box-shadow: 0 18px 30px -16px rgba(28, 24, 20, .5); color: var(--seal); }
.xy-pcard-doc .xy-icon { width: 42%; height: auto; }
.xy-buyform .xy-panel h2 { font-size: 17px; }
.xy-upload-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.xy-upload-steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; color: var(--ink-2); }
.xy-upload-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 13px var(--latin); flex: none; }

@media (max-width: 900px) { .xy-auth { grid-template-columns: 1fr; } .xy-auth-art { display: none; } }
.xy-product > *, .xy-cart > *, .xy-two > *, .xy-acct > * { min-width: 0; }


/* ==========================================================================
   v1.1 — bright, airy, 3D (closer to 無限網頁設計) + a faint colour aura that follows the pointer
   ========================================================================== */
.xy-aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xy-aura i { position: absolute; left: 0; top: 0; width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; border-radius: 50%; will-change: transform; transform: translate3d(var(--x, 50vw), var(--y, 40vh), 0); }
.xy-aura i:nth-child(1) { background: radial-gradient(closest-side, rgba(0, 166, 214, .17), rgba(0, 166, 214, .07) 45%, rgba(0, 166, 214, 0) 100%); }
.xy-aura i:nth-child(2) { background: radial-gradient(closest-side, rgba(229, 48, 126, .12), rgba(229, 48, 126, .05) 45%, rgba(229, 48, 126, 0) 100%); width: 54vmax; height: 54vmax; margin: -27vmax 0 0 -27vmax; }
.xy-aura i:nth-child(3) { background: radial-gradient(closest-side, rgba(255, 199, 44, .18), rgba(255, 199, 44, .06) 45%, rgba(255, 199, 44, 0) 100%); width: 46vmax; height: 46vmax; margin: -23vmax 0 0 -23vmax; }
.xy-cursor { display: none; }

/* type */
.xy-eyebrow { font: 600 12px/1.4 var(--display); letter-spacing: .38em; color: var(--accent, var(--blue)); gap: 12px; }
.xy-eyebrow::before { display: none; }
.xy-eyebrow b { font-weight: 600; }
.xy-eyebrow small { font: 500 13px/1 var(--font); letter-spacing: .18em; color: var(--muted); text-transform: none; }
.xy-h2 { font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-size: clamp(32px, 5.2vw, 68px); }
.xy-lead { color: var(--muted); }
.xy-head.is-center .xy-eyebrow { justify-content: center; }
.xy-mark { background: linear-gradient(100deg, var(--blue), var(--violet) 45%, var(--m)); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0; }
.xy-pagehead::before { background: radial-gradient(circle, rgba(47, 107, 255, .12), rgba(229, 48, 126, .07) 45%, transparent 70%); }
.xy-pagehead h1 { font-weight: 700; letter-spacing: -.03em; }
.xy-pagehead p { color: var(--muted); }

/* buttons: ink pills and thin outlines */
.xy-btn { font-weight: 600; letter-spacing: .06em; }
.xy-btn-seal { --bg: var(--ink); box-shadow: 0 18px 36px -20px rgba(11, 14, 23, .7); }
.xy-btn-seal::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; z-index: -1; background: linear-gradient(100deg, var(--c), var(--violet), var(--m), var(--y)); opacity: 0; filter: blur(10px); transition: opacity .4s; }
.xy-btn-seal:hover { --bg: #000; box-shadow: 0 22px 44px -20px rgba(11, 14, 23, .8); }
.xy-btn-seal:hover::after { opacity: .55; }
.xy-btn-ghost { box-shadow: inset 0 0 0 1px var(--ink); }
.xy-btn-ghost:hover { --bg: var(--ink); --fg: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.xy-btn-glass { --bg: var(--glass); --fg: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 14, 23, .14); backdrop-filter: blur(12px); }
.xy-btn-glass:hover { --bg: #fff; }
.xy-link { color: var(--blue); }
::selection { background: var(--blue); }
:focus-visible { outline-color: var(--blue); }

/* header on bright pages */
.xy-header.is-scrolled { background: rgba(251, 252, 254, .78); }
.xy-logo-word { font-weight: 700; }
.xy-tag.is-new { background: linear-gradient(120deg, var(--blue), var(--violet)); }
.xy-tag.is-ai { background: linear-gradient(120deg, var(--violet), var(--m)); }
.xy-footer .xy-btn-seal { --bg: #fff; --fg: var(--ink); }
.xy-footer .xy-btn-seal:hover { --bg: #fff; }
.xy-summary-guide { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.xy-summary-guide .xy-icon { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.xy-summary-guide:hover { text-decoration: underline; }
.xy-summary .xy-summary-guide { color: #A9C1FF; }

/* finished-piece photos (ChatGPT mock-ups) fill their frames instead of floating like flat templates */
.xy-pcard-media:has(img[src*="/img/products/"])::after { display: none; }
.xy-pcard-media img[src*="/img/products/"] { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.xy-pcard:hover .xy-pcard-media img[src*="/img/products/"] { transform: scale(1.05); }
.xy-mega-img img[src*="/img/products/"] { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.xy-thumb img[src*="/img/products/"] { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; box-shadow: none; }
.xy-stage-card:has(img[src*="/img/products/"]) { width: 92%; height: 92%; }
.xy-stage-card img[src*="/img/products/"] { border-radius: 20px; }

/* bilingual wordmark: 想印 / THINKINK */
.xy-logo-word { display: inline-flex; flex-direction: column; line-height: 1; gap: 3px; }
.xy-logo-en { font: 600 9.5px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; color: var(--blue); margin-right: -.32em; }
.xy-header.is-dark:not(.is-scrolled) .xy-logo-en { color: #A9C1FF; }
.xy-footer a.xy-btn-seal, .xy-footer a.xy-btn-seal:hover { color: var(--ink); text-decoration: none; }
