* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #1f2937; background: #0f172a; }
.verify-bg {
	position: fixed; inset: 0;
	background: #1f2937 center/cover no-repeat;
	z-index: 0;
}
.verify-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(15,23,42,.15), rgba(15,23,42,.35));
}
.verify-card {
	position: relative; z-index: 1;
	margin: max(31vh, 32px) auto;
	width: min(420px, calc(100vw - 24px));
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
	padding: 22px;
	overflow: hidden;
}
.verify-card h2 { margin: 0 0 14px; font-size: 16px; color: #b91c1c; text-align: center; font-weight: 700; letter-spacing: 1px; }
.verify-card .tip { font-size: 13px; color: #475569; text-align: center; margin: 0 0 14px; line-height: 1.55; }
.verify-loading { padding: 28px 0; text-align: center; color: #475569; font-size: 14px; }

.row { display: flex; gap: 10px; align-items: center; margin-top: 8px; min-width: 0; }
.row .input {
	flex: 1 1 0; min-width: 0; width: 0; height: 42px; padding: 0 14px;
	border: 1px solid #e2e8f0; border-radius: 10px;
	background: #fff; font-size: 15px; outline: none;
}
.row .input:focus { border-color: #2563eb; }
.row .captcha {
	flex: 0 1 140px; max-width: 46%;
	border: 1px solid #e2e8f0; border-radius: 10px;
	background: #fff; padding: 4px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; user-select: none; overflow: hidden;
}
.row .captcha svg { display: block; width: 100%; height: auto; max-height: 42px; }
@media (max-width: 360px) {
	.row { flex-wrap: wrap; }
	.row .input { flex: 1 1 100%; width: 100%; }
	.row .captcha { flex: 0 0 auto; max-width: 100%; width: 100%; justify-content: center; }
	.row .captcha svg { max-width: 140px; }
}
.btn-primary {
	display: block; width: 100%; margin-top: 14px;
	height: 44px; border: 0; border-radius: 10px;
	background: #2563eb; color: #fff; font: inherit; font-size: 15px; font-weight: 600;
	cursor: pointer;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-primary[disabled] { background: #94a3b8; cursor: not-allowed; }
.err { color: #dc2626; font-size: 12px; margin-top: 8px; min-height: 16px; text-align: center; }

.arith-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.arith-icon {
	flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px;
	background: #eff6ff; color: #2563eb;
	display: inline-flex; align-items: center; justify-content: center;
}
.arith-title { font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.arith-sub { font-size: 13px; color: #64748b; margin-top: 4px; }
.arith-expr-box {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
	margin-bottom: 12px;
}
.arith-expr {
	flex: 1; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: .12em;
	font-family: ui-monospace, "SF Mono", Consolas, monospace; color: #1e293b;
}
.arith-refresh {
	flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 10px;
	background: #eff6ff; color: #2563eb; font-size: 18px; cursor: pointer; line-height: 1;
}
.arith-refresh:hover { background: #dbeafe; }
.arith-row { margin-top: 0; }
.arith-row .input { flex: 1 1 auto; width: auto; }
.arith-submit {
	flex: 0 0 auto; height: 42px; padding: 0 20px; border: 0; border-radius: 10px;
	background: #2563eb; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.arith-submit:hover { background: #1d4ed8; }

/* puzzle scene */
.puzzle-scene {
	position: relative;
	margin-top: 8px;
	height: 140px;
	border-radius: 12px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	box-shadow: 0 6px 20px rgba(15, 23, 42, .18);
}
.puzzle-scene > svg {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	display: block;
}
.puzzle-scene .puzzle-svg { z-index: 2; }
.slide-scene-status {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 6px 12px;
	color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55));
	font-size: 13px;
	letter-spacing: 1px;
	text-shadow: 0 1px 2px rgba(0,0,0,.35);
	z-index: 3;
}
.slide-scene-status.is-ok {
	background: linear-gradient(180deg, rgba(22,163,74,0), rgba(22,163,74,.85));
	color: #fff; font-weight: 600;
}
.slide-scene-status.is-err {
	background: linear-gradient(180deg, rgba(220,38,38,0), rgba(220,38,38,.85));
	color: #fff; font-weight: 600;
}
.puzzle-refresh {
	position: absolute; top: 8px; right: 8px;
	width: 28px; height: 28px; border-radius: 50%;
	background: rgba(255,255,255,.9); color: #1f2937;
	display: flex; align-items: center; justify-content: center;
	font-size: 16px; cursor: pointer; z-index: 4;
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
	user-select: none;
}
.puzzle-refresh:hover { background: #fff; }

/* slide track */
.slide-track {
	position: relative;
	height: 44px; margin-top: 10px;
	background: #e5edf7; border-radius: 22px;
	overflow: hidden;
	user-select: none;
}
.slide-track .track-text {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: #64748b; font-size: 14px;
	pointer-events: none;
}
.slide-track .track-fill {
	position: absolute; top: 0; left: 0; height: 100%;
	background: linear-gradient(90deg, #86efac, #16a34a);
	width: 0;
}
.slide-track .track-handle {
	position: absolute; top: 2px; left: 2px;
	width: 40px; height: 40px; border-radius: 50%;
	background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
	display: flex; align-items: center; justify-content: center;
	color: #16a34a; font-size: 20px; font-weight: 700;
	cursor: grab; touch-action: none;
}
.slide-track.is-done .track-handle { background: #16a34a; color: #fff; }
.slide-track.is-done .track-text   { color: #fff; }

/* click */
.click-area {
	position: relative;
	margin-top: 8px;
	height: 180px;
	background: #fff7ed center/cover no-repeat;
	border-radius: 10px;
	overflow: hidden;
	user-select: none;
}
.click-area .ch {
	position: absolute;
	font-size: 22px; font-weight: 600;
	color: #6d28d9;
	text-shadow: 0 1px 2px rgba(255,255,255,.6);
	cursor: pointer;
}
.click-area .pick {
	position: absolute;
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(37,99,235,.85); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; pointer-events: none;
}
.click-hint { margin-top: 10px; text-align: center; font-size: 14px; color: #334155; }
.click-hint b { color: #dc2626; }

/* qa */
.qa-list { margin-top: 6px; display: flex; flex-direction: column; gap: 12px; }
.qa-item { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; }
.qa-item .q { font-size: 14px; color: #1f2937; margin-bottom: 8px; }
.qa-item .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.qa-item .opt {
	border: 1px solid #e2e8f0; background: #fff;
	color: #334155; padding: 6px 16px; border-radius: 20px;
	cursor: pointer; font: inherit; font-size: 13px;
}
.qa-item .opt.is-on { background: #2563eb; color: #fff; border-color: #2563eb; }

/* ai intro */
.ai-intro { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; line-height: 1.6; }
.ai-actions { background: transparent; border: 0; padding: 0; }
.ai-actions .opts { justify-content: center; }
.opt.opt-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.opt.opt-primary:hover { background: #1d4ed8; }
.ai-step { font-size: 12px; color: #64748b; text-align: center; margin: 0 0 8px; letter-spacing: 1px; }
.ai-step-card { background: #f8fafc; }
.ai-step-card .opts { justify-content: center; margin-top: 12px; }
.ai-step-card .opt { padding: 8px 24px; font-size: 14px; }
.step-tip { margin-top: 10px; text-align: center; font-size: 12px; color: #94a3b8; }

/* refresh */
.refresh { color: #64748b; font-size: 12px; text-align: center; margin-top: 8px; cursor: pointer; }
.refresh:hover { color: #2563eb; }

/* chat verify flow */
.chat-verify {
	position: relative; z-index: 2;
	min-height: 100vh;
	padding: 16px 12px 40px;
	max-width: 640px;
	margin: 0 auto;
	display: block;
	-webkit-overflow-scrolling: touch;
}
.chat-verify-body { display: block; }
.chat-verify-body > .cv-row { margin-bottom: 14px; }
.cv-row {
	display: flex; align-items: flex-end; gap: 8px; max-width: 100%;
	opacity: 1;
}
@supports (animation: cvIn) {
	.cv-row { animation: cvIn .28s ease-out forwards; -webkit-animation: cvIn .28s ease-out forwards; }
}
.cv-row[style*="opacity:1"] { animation: none !important; -webkit-animation: none !important; opacity: 1 !important; }
.cv-row-bot { justify-content: flex-start; }
.cv-row-user { justify-content: flex-end; }
.cv-avatar {
	flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
	background: #3b82f6; color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 15px; font-weight: 700; overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cv-bubble-wrap { max-width: 78%; display: flex; flex-direction: column; gap: 8px; }
.cv-bubble {
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 15px;
	line-height: 1.55;
	word-break: break-word;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}
.cv-bubble-bot {
	background: rgba(255, 255, 255, .96);
	color: #1f2937;
	border-top-left-radius: 4px;
}
.cv-bubble-user {
	background: #95ec69;
	color: #1f2937;
	border-top-right-radius: 4px;
	max-width: 78%;
}
.cv-opts { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.cv-opt {
	appearance: none; -webkit-appearance: none;
	border: 0;
	background: linear-gradient(90deg, #ff8a80, #ff5252);
	color: #fff;
	font: inherit; font-size: 15px; font-weight: 500;
	padding: 10px 22px;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 2px 6px rgba(255, 82, 82, .3);
	transition: transform .1s ease, opacity .2s ease;
}
.cv-opt:hover { transform: translateY(-1px); }
.cv-opt:active { transform: translateY(0); }
.cv-opt.is-on { background: linear-gradient(90deg, #22c55e, #16a34a); }
.cv-opt.is-off { opacity: .35; cursor: not-allowed; }
.cv-opt[disabled] { pointer-events: none; }
.cv-tip { align-self: center; color: #fca5a5; font-size: 13px; padding: 6px 12px; background: rgba(0,0,0,.35); border-radius: 999px; }
.cv-tip-err { color: #fecaca; }

.cv-retry {
	align-self: center;
	background: rgba(255,255,255,.94);
	color: #1f2937;
	padding: 16px 20px;
	border-radius: 14px;
	box-shadow: 0 4px 14px rgba(0,0,0,.15);
	text-align: center;
	max-width: 78%;
	animation: cvIn .28s ease-out forwards;
	-webkit-animation: cvIn .28s ease-out forwards;
}
.cv-retry-msg { font-size: 14px; color: #b91c1c; margin-bottom: 12px; font-weight: 500; }
.cv-retry-btn {
	appearance: none; -webkit-appearance: none;
	border: 0;
	background: linear-gradient(90deg, #2563eb, #3b82f6);
	color: #fff;
	font: inherit; font-size: 14px; font-weight: 600;
	padding: 9px 26px;
	border-radius: 999px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}
.cv-retry-btn:hover { background: linear-gradient(90deg, #1d4ed8, #2563eb); }
.cv-retry-btn:active { transform: translateY(1px); }

@keyframes cvIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ai verify flow */
.ai-verify {
	position: relative; z-index: 1;
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
	padding: 32px 20px;
}
.ai-verify-inner {
	width: min(520px, 100%);
	opacity: 1;
	animation: cvIn .28s ease-out forwards;
	-webkit-animation: cvIn .28s ease-out forwards;
}
.ai-panel {
	text-align: center;
	background: rgba(255, 255, 255, .88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 28px 22px 32px;
	box-shadow: 0 8px 32px rgba(15, 23, 42, .12);
}
.ai-title {
	margin: 0 0 22px;
	font-size: clamp(24px, 6vw, 32px);
	font-weight: 700;
	color: #ec4899;
	letter-spacing: 2px;
}
.ai-intro-text {
	margin: 0 0 18px;
	font-size: clamp(15px, 4vw, 17px);
	line-height: 1.75;
	color: #1f2937;
	font-weight: 600;
}
.ai-intro-text:last-of-type { margin-bottom: 32px; }
.ai-q {
	margin: 0 0 36px;
	font-size: clamp(16px, 4.2vw, 20px);
	line-height: 1.65;
	color: #1f2937;
	font-weight: 700;
}
.ai-btns {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.ai-btn {
	flex: 1 1 120px;
	max-width: 168px;
	height: 44px;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid transparent;
	transition: opacity .2s ease;
}
.ai-btn-primary {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}
.ai-btn-primary:hover { background: #1d4ed8; }
.ai-btn-ghost {
	background: #fff;
	color: #374151;
	border-color: #d1d5db;
}
.ai-btn-ghost:hover { background: #f9fafb; }
.ai-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ai-pick-panel .ai-q { text-align: center; margin: 0 0 16px; font-size: 16px; font-weight: 600; color: #111827; }
.ai-pick-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-bottom: 14px;
}
.ai-pick-item {
	appearance: none; -webkit-appearance: none;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	background: #f3f4f6;
	padding: 0;
	overflow: hidden;
	aspect-ratio: 3 / 4;
	cursor: pointer;
	transition: border-color .15s ease, transform .15s ease;
}
.ai-pick-item:hover { border-color: #2563eb; transform: translateY(-2px); }
.ai-pick-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-pick-skip {
	display: block;
	width: 100%;
	margin-top: 6px;
}
.ai-retry {
	margin-top: 28px;
	text-align: center;
}
.ai-retry-msg {
	margin: 0 0 14px;
	font-size: 15px;
	color: #b91c1c;
	font-weight: 600;
}
.ai-retry-btn {
	appearance: none; -webkit-appearance: none;
	border: 0;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	padding: 10px 28px;
	border-radius: 8px;
	cursor: pointer;
}

.ai-loading-label {
	margin: 0 0 18px;
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 700;
	line-height: 1.55;
	color: #ea4c89;
}
.ai-progress {
	position: relative;
	height: 26px;
	background: #e2e8f0;
	border-radius: 13px;
	overflow: hidden;
	margin-bottom: 24px;
}
.ai-progress-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #4ade80, #22c55e);
	border-radius: 13px;
	transition: width .12s linear;
}
.ai-progress-pct {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 13px;
	font-weight: 600;
	color: #475569;
}
.ai-continue { text-align: center; animation: cvIn .28s ease-out forwards; -webkit-animation: cvIn .28s ease-out forwards; }
.ai-btn-continue {
	appearance: none; -webkit-appearance: none;
	display: block;
	width: 100%;
	height: 48px;
	border: 0;
	border-radius: 24px;
	background: linear-gradient(90deg, #ea4c89, #fc6565);
	color: #fff;
	font: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 8px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(37, 99, 235, .35);
	margin-top: 20px;
}
.ai-btn-continue:hover { background: linear-gradient(90deg, #2563eb, #1d4ed8); }
.ai-continue .ai-btn-continue { background: #ea4c89; box-shadow: 0 4px 16px rgba(234, 76, 137, .35); }
.ai-continue .ai-btn-continue:hover { background: #d63f7a; }
.ai-panel .dl-link {
	width: 100%;
	border-radius: 8px;
}

/* download page */
.dl-page {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 100vh; padding: 32px 16px;
}
.dl-banner {
	width: min(520px, 100%);
	background: linear-gradient(90deg, #fda4af, #fb7185);
	color: #fff;
	font-size: clamp(14px, 4vw, 17px);
	font-weight: 700;
	text-align: center;
	padding: 12px 20px;
	border-radius: 8px 8px 0 0;
}
.dl-link {
	width: min(520px, 100%);
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(8px);
	padding: 20px;
	border-radius: 0 0 8px 8px;
	text-align: center;
}
.dl-link a {
	color: #2563eb;
	font-size: clamp(14px, 3.5vw, 16px);
	word-break: break-all;
	text-decoration: underline;
}
.dl-link a:hover { color: #1d4ed8; }
.dl-link-name {
	display: block;
	margin-bottom: 6px;
	color: #374151;
	font-size: clamp(13px, 3.2vw, 15px);
	font-weight: 600;
}
.dl-open-wrap {
	width: min(520px, 100%);
	margin: 0 auto;
	padding: 0 4px;
}
.bomb-rotate{margin:8px 0 4px}
.bomb-rotate .rotate-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px}
.bomb-rotate .rotate-title{font-size:15px;font-weight:600;color:#334155;text-align:left;flex:1}
.bomb-rotate .rotate-refresh{flex:0 0 32px;width:32px;height:32px;border:0;border-radius:50%;background:#f1f5f9;color:#64748b;font-size:18px;line-height:1;cursor:pointer;-webkit-appearance:none;box-shadow:inset 0 0 0 1px #e2e8f0}
.bomb-rotate .rotate-stage{display:flex;justify-content:center;padding:4px 0 14px}
.bomb-rotate .rotate-disk{position:relative;width:240px;height:240px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #fff,0 0 0 3px rgba(15,23,42,.08),0 8px 24px rgba(15,23,42,.12)}
.bomb-rotate .rotate-plate{position:absolute;inset:0;background-size:cover;background-position:center}
.bomb-rotate .rotate-core{position:absolute;left:50%;top:50%;width:46%;height:46%;transform:translate(-50%,-50%);border-radius:50%;overflow:hidden;z-index:2;box-shadow:0 0 0 2px rgba(255,255,255,.95),0 0 0 3px rgba(15,23,42,.12)}
.bomb-rotate .rotate-core-plate{position:absolute;left:50%;top:50%;width:240px;height:240px;margin:-120px 0 0 -120px;background-size:cover;background-position:center;transform-origin:50% 50%;will-change:transform}
.bomb-rotate .rotate-track{margin-top:6px}
.rotate-wrap{position:relative;margin:12px 0}
.rotate-scene{position:relative;width:100%;max-width:320px;height:180px;margin:0 auto;border-radius:12px;background:center/cover no-repeat #e2e8f0;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}
.rotate-inner{position:absolute;inset:12px;border-radius:50%;background:center/cover no-repeat;border:3px solid rgba(255,255,255,.85);box-shadow:0 4px 16px rgba(15,23,42,.2);transition:transform .05s linear}
.rotate-track{margin-top:14px}
.shape-area .shape-mark{position:absolute;width:42px;height:42px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;padding:0;text-shadow:0 1px 2px rgba(255,255,255,.8)}
.shape-confirm{margin-top:12px;width:100%}
