.puzzle-page {
    --puzzle-ink: #483c3a;
    --puzzle-muted: #7e6c68;
    --puzzle-line: #f1ddd2;
    --puzzle-coral: var(--kawaii-pink-600, #db5a47);
    --puzzle-blue: var(--kawaii-blue-600, #0284c7);
    --puzzle-game-height: 720px;
    color: var(--puzzle-ink);
    background: #fffaf7;
}
.puzzle-page [hidden] { display: none !important; }
.puzzle-page button:focus-visible, .puzzle-page a:focus-visible { outline: 3px solid var(--puzzle-blue); outline-offset: 4px; }
.puzzle-hero { overflow: hidden; border-bottom: 1px solid #f3e0d5; background: radial-gradient(ellipse at 8% 25%,#ffe5d8,transparent 50%),radial-gradient(ellipse at 95% 90%,#dcf3ff,transparent 47%),#fffcfa; }
.puzzle-page .tools-breadcrumb { position: relative; max-width: 1180px; margin: auto; padding: 20px 24px 0; color: #88756d; font-size: 12px; }
.puzzle-page .tools-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 9px; align-items: baseline; }
.puzzle-page .tools-breadcrumb li { display: inline-flex; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.puzzle-page .tools-breadcrumb li[aria-current] { color: #8e523e; font-weight: 650; }
.puzzle-page .tools-breadcrumb li > span:first-child { color: #c6a694; }
.puzzle-page .tools-breadcrumb a:hover { color: var(--puzzle-coral); }
.puzzle-hero-inner { max-width: 900px; margin: auto; padding: 30px 24px 36px; text-align: center; }
.puzzle-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #f4cbb9; border-radius: 999px; background: #ffffffb8; color: #a74a35; font-size: 11px; font-weight: 750; }
.puzzle-eyebrow i { color: var(--puzzle-blue); }
.puzzle-hero h1 { margin: 16px 0 13px; font-size: clamp(32px,4vw,47px); font-weight: 900; line-height: 1.2; letter-spacing: -.04em; text-wrap: balance; }
.puzzle-subtitle { max-width: 700px; margin: auto; color: var(--puzzle-muted); font-size: 15px; line-height: 1.85; }
.puzzle-features { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 25px; margin-top: 22px; color: #826c61; font-size: 11px; font-weight: 650; }
.puzzle-features li { display: inline-flex; align-items: center; gap: 7px; }
.puzzle-features i { color: #dd8b6e; }
.puzzle-features li:nth-child(2) i { color: #6ab9d8; }
.puzzle-wrap { max-width: 1100px; margin: auto; }
.puzzle-stage { padding: 27px 24px 32px; background: radial-gradient(ellipse at 100% 100%,#eaf6ff,transparent 58%),#fffaf7; }
.puzzle-tip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; padding: 15px 19px; border: 1px solid #f2dece; border-radius: 17px; background: #fff6ee; }
.puzzle-tip > div { display: flex; align-items: center; gap: 12px; }
.puzzle-tip > div > i { color: #d7815d; font-size: 19px; }
.puzzle-tip p { color: #896952; font-size: 12px; line-height: 1.75; }
.puzzle-tip a { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #c7e8f6; border-radius: 10px; background: #f0faff; color: #0879a5; font-size: 11px; font-weight: 750; }
.puzzle-game-shell { overflow: hidden; border: 1px solid #eeddd3; border-radius: 24px; background: white; box-shadow: 0 10px 35px #b46e4f12; }
.puzzle-game-toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; min-height: 59px; padding: 10px 16px; border-bottom: 1px solid #efdfd6; background: linear-gradient(110deg,#fff3e9,#f0f9ff); }
.puzzle-game-status { display: inline-flex; align-items: center; gap: 8px; color: #8b6c5b; font-size: 11px; font-weight: 650; }
.puzzle-game-status::before { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: #df9878; content: ''; }
.puzzle-game-controls { display: flex; flex-shrink: 0; align-items: center; gap: 7px; }
.puzzle-control { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid #e8dcd3; border-radius: 10px; background: #ffffffde; color: #8c6451; font-size: 11px; font-weight: 700; }
.puzzle-control:last-child { color: #0879a5; border-color: #cce7f3; }
.puzzle-control:hover { background: white; box-shadow: 0 3px 10px #b46e4f10; }
.puzzle-game-viewport { position: relative; height: var(--puzzle-game-height); min-width: 0; overflow: hidden; background: #fff; }
.puzzle-game-frame { position: absolute; top: 50%; left: 50%; display: block; width: 100%; height: 100%; border: 0; transform-origin: center; transition: none; }
.puzzle-game-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; width: 100%; height: 100%; padding: 24px; text-align: center; background: radial-gradient(ellipse at 25% 30%,#fff0e3,transparent 47%),radial-gradient(ellipse at 85% 75%,#e4f5ff,transparent 50%),#fffcfa; }
.puzzle-game-state h2 { max-width: 560px; font-size: 23px; font-weight: 800; line-height: 1.4; }
.puzzle-game-state p { max-width: 440px; color: var(--puzzle-muted); font-size: 13px; line-height: 1.85; }
.puzzle-loading-spinner { width: 42px; height: 42px; margin-bottom: 6px; border: 4px solid #f6ddcc; border-top-color: #e18c68; border-right-color: #71bfdc; border-radius: 50%; animation: puzzle-spin 1s linear infinite; }
.puzzle-error-icon { margin-bottom: 4px; color: #e1a184; font-size: 42px; }
.puzzle-primary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-top: 7px; padding: 11px 18px; border-radius: 12px; background: var(--kawaii-gradient-pink); box-shadow: 0 4px 12px #d8755326; color: white; font-size: 12px; font-weight: 750; }
.puzzle-primary-button:hover { transform: translateY(-2px); }
.puzzle-external-link { display: inline-flex; align-items: center; gap: 7px; color: #528ca2; font-size: 11px; }
.puzzle-credit { margin-top: 15px; color: #a18c80; font-size: 10px; text-align: center; }
.puzzle-noscript { margin-top: 15px; padding: 17px; color: #8b6c5b; font-size: 13px; text-align: center; }
.puzzle-noscript a { color: #0879a5; text-decoration: underline; }
.puzzle-guide { padding: 37px 24px 52px; border-top: 1px solid #f2e3da; background: #fffdfb; scroll-margin-top: 100px; }
.puzzle-guide-heading { max-width: 760px; margin: auto; text-align: center; }
.puzzle-guide-heading h2 { margin: 14px 0 11px; font-size: 29px; font-weight: 850; letter-spacing: -.035em; }
.puzzle-guide-heading > p { color: var(--puzzle-muted); font-size: 13px; line-height: 1.85; }
.puzzle-guide-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 27px; }
.puzzle-guide-steps li { position: relative; padding: 23px 23px 25px; border: 1px solid #f0dfd4; border-radius: 22px; background: linear-gradient(135deg,#fff5ed,#fffdfb); }
.puzzle-guide-steps li:nth-child(2) { border-color: #d8edf7; background: linear-gradient(135deg,#eff9ff,#fffdfb); }
.puzzle-guide-steps li:nth-child(3) { border-color: #ece1f3; background: linear-gradient(135deg,#f7f2ff,#fffdfb); }
.puzzle-step-number { position: absolute; top: 20px; right: 20px; color: #dfc7b7; font-size: 11px; font-weight: 800; }
.puzzle-guide-steps li > i { color: #d98b65; font-size: 21px; }
.puzzle-guide-steps li:nth-child(2) > i { color: #57a7c6; }
.puzzle-guide-steps li:nth-child(3) > i { color: #aa8fc0; }
.puzzle-guide-steps h3 { margin: 16px 0 9px; font-size: 17px; font-weight: 800; line-height: 1.45; }
.puzzle-guide-steps p { color: var(--puzzle-muted); font-size: 12px; line-height: 1.85; }
.puzzle-guide-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px 24px; margin-top: 24px; padding: 19px 0 0; border-top: 1px solid #f2e3da; }
.puzzle-guide-bottom p { max-width: 720px; color: #9c8173; font-size: 12px; line-height: 1.85; }
.puzzle-guide-bottom a { display: inline-flex; align-items: center; gap: 8px; color: #b36b4d; font-size: 12px; font-weight: 750; }
#puzzleGameShell:fullscreen, #puzzleGameShell:-webkit-full-screen, #puzzleGameShell.puzzle-fullscreen-fallback { display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; margin: 0; border: 0; border-radius: 0; background: white; }
#puzzleGameShell.puzzle-fullscreen-fallback { position: fixed; inset: 0; z-index: 9999; }
#puzzleGameShell:fullscreen .puzzle-game-viewport, #puzzleGameShell:-webkit-full-screen .puzzle-game-viewport, #puzzleGameShell.puzzle-fullscreen-fallback .puzzle-game-viewport { flex: 1; min-height: 0; height: auto; }
@keyframes puzzle-spin { to { transform: rotate(360deg); } }
@media(min-width:768px) { .puzzle-page { --puzzle-game-height: 800px; } }
@media(min-width:1024px) { .puzzle-page { --puzzle-game-height: 860px; } }
@media(max-width:640px) {
    .puzzle-page .tools-breadcrumb { padding: 17px 18px 0; font-size: 11px; }
    .puzzle-hero-inner { padding: 24px 20px 29px; }
    .puzzle-hero h1 { font-size: 31px; }
    .puzzle-subtitle { font-size: 13px; }
    .puzzle-features { gap: 9px 17px; font-size: 10px; }
    .puzzle-stage { padding: 20px 12px 27px; }
    .puzzle-tip { gap: 12px; padding: 13px; border-radius: 15px; align-items: flex-start; }
    .puzzle-tip > div { gap: 9px; align-items: flex-start; }
    .puzzle-tip > div > i { padding-top: 3px; font-size: 17px; }
    .puzzle-tip p { font-size: 11px; }
    .puzzle-tip a { padding: 7px 9px; font-size: 10px; }
    .puzzle-game-shell { border-radius: 18px; }
    .puzzle-game-toolbar { min-height: 55px; padding: 10px; gap: 8px; }
    .puzzle-game-status { font-size: 10px; line-height: 1.6; }
    .puzzle-control { gap: 5px; padding: 7px 9px; font-size: 10px; }
    #puzzleReload span { display: none; }
    .puzzle-game-state { padding: 23px; }
    .puzzle-game-state h2 { font-size: 21px; }
    .puzzle-game-state p { font-size: 12px; }
    .puzzle-guide { padding: 30px 18px 36px; }
    .puzzle-guide-heading h2 { font-size: 26px; }
    .puzzle-guide-steps { grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 23px; }
    .puzzle-guide-steps li { padding: 21px; border-radius: 19px; }
    .puzzle-guide-steps h3 { margin-top: 12px; }
}
@media(prefers-reduced-motion:reduce) { .puzzle-page * { transition: none !important; scroll-behavior: auto !important; } .puzzle-loading-spinner { animation: none; } }
