:root {
  --ink: #191814;
  --paper: #fff9ed;
  --surface: #fffdf7;
  --orange: #ff7044;
  --yellow: #ffe068;
  --blue: #6fa8ff;
  --blue-deep: #2867d7;
  --purple: #7c55e7;
  --green: #b8f63e;
  --muted: #69655e;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --motion-fast: 160ms;
  --motion-standard: 260ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .025; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.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; z-index: 100; left: 16px; top: -60px; padding: 12px 18px; border: var(--border); background: #fff; font-weight: 800; transition: top var(--motion-fast); }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 4px solid #2867d7; outline-offset: 3px; }

.site-header { position: sticky; z-index: 15; top: 0; padding-top: env(safe-area-inset-top); background: rgba(255,249,237,.9); border-bottom: 2px solid rgba(25,24,20,.12); backdrop-filter: blur(15px); }
.header-inner { width: min(1240px, calc(100% - 40px)); min-height: 78px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; min-height: 48px; align-items: center; gap: 11px; font-weight: 950; }
.brand-symbol { width: 48px; height: 48px; display: block; flex: 0 0 48px; filter: drop-shadow(3px 4px 0 rgba(25,24,20,.16)); }
.brand > .brand-symbol { animation: brand-float 3.4s ease-in-out infinite; }
.brand-word { font-size: 23px; letter-spacing: -.05em; }
.brand-status { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.brand-status i { width: 8px; height: 8px; border-radius: 50%; background: #34af5d; box-shadow: 0 0 0 4px rgba(52,175,93,.14); }
.desktop-nav { display: flex; align-items: center; gap: 6px; padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.68); }
.nav-link { min-height: 42px; display: grid; place-items: center; padding: 0 19px; border-radius: 999px; font-size: 14px; font-weight: 800; transition: background var(--motion-fast), color var(--motion-fast); }
.nav-link:hover, .nav-link.active { background: var(--ink); color: #fff; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-button, .profile-button { min-width: 48px; min-height: 48px; border: 2px solid var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); cursor: pointer; transition: transform var(--motion-fast), box-shadow var(--motion-fast); }
.icon-button:active, .profile-button:active, .outline-button:active, .round-button:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
.icon-button { display: grid; place-items: center; border-radius: 50%; }
.profile-button { display: flex; align-items: center; gap: 8px; padding: 0 14px 0 7px; border-radius: 999px; font-weight: 850; }
.profile-button .profile-icon { width: 22px; height: 22px; stroke-width: 2; }
.profile-button .profile-chevron { width: 16px; height: 16px; }
.profile-icon-bg { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--yellow); }

.hero { position: relative; min-height: 540px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; padding: 58px 54px; margin-top: 34px; overflow: hidden; border: var(--border); border-radius: 36px; background: radial-gradient(circle at 82% 22%, rgba(111,168,255,.38), transparent 30%), radial-gradient(circle at 72% 78%, rgba(124,85,231,.27), transparent 31%), linear-gradient(135deg, #fff4d1 0%, #fffaf0 54%, #ffeadb 100%); box-shadow: 11px 12px 0 var(--ink); }
.hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: linear-gradient(90deg, var(--orange) 0 33.333%, var(--blue) 33.333% 66.666%, var(--purple) 66.666%); }
.hero::before { content: ""; position: absolute; width: 360px; height: 360px; left: -130px; bottom: -260px; border: 2px solid rgba(25,24,20,.19); border-radius: 50%; box-shadow: 0 0 0 38px rgba(25,24,20,.05), 0 0 0 76px rgba(25,24,20,.05); }
.hero-copy { position: relative; z-index: 3; max-width: 700px; }
.eyebrow, .section-kicker { margin: 0; color: rgba(25,24,20,.7); font-size: 12px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 4px; border-radius: 999px; background: var(--ink); }
.hero h1 { margin: 23px 0 18px; font-size: clamp(45px, 5.2vw, 70px); line-height: 1.06; letter-spacing: -.065em; font-weight: 950; }
.hero-line { display: inline-block; white-space: nowrap; }
.hero h1 em { position: relative; color: var(--purple); font-style: normal; text-shadow: 2px 3px 0 rgba(25,24,20,.16); }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; height: 13px; left: -2px; right: -6px; bottom: 1px; background: var(--yellow); transform: rotate(-1deg); }
.hero-desc { max-width: 590px; margin: 0 0 30px; color: rgba(25,24,20,.77); font-size: 17px; font-weight: 650; line-height: 1.8; }
.hero-search { position: relative; max-width: 640px; min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 19px; border: var(--border); border-radius: 18px; background: #fffdf7; box-shadow: 6px 7px 0 rgba(25,24,20,.92); }
.hero-search > svg { flex: 0 0 23px; }
.hero-search input { min-width: 0; flex: 1; height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.hero-search input::placeholder { color: #777169; opacity: 1; }
.search-hint { padding: 4px 7px; border: 1px solid #bbb2a6; border-radius: 7px; color: #716b64; font-size: 11px; font-weight: 800; }
.hero-search > button { align-self: stretch; min-width: 92px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; font-weight: 850; cursor: pointer; }
.search-results { position: absolute; z-index: 10; top: calc(100% + 11px); left: 0; right: 0; padding: 8px; border: var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.search-result { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 9px 11px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover, .search-result:focus-visible { background: #fff1cd; }
.result-type { min-width: 44px; padding: 4px 7px; border-radius: 6px; background: var(--yellow); text-align: center; font-size: 11px; font-weight: 900; }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 19px; color: rgba(25,24,20,.72); font-size: 12px; font-weight: 750; }
.quick-searches button { min-height: 34px; padding: 5px 11px; border: 1.5px solid rgba(25,24,20,.5); border-radius: 999px; background: rgba(255,255,255,.28); cursor: pointer; }
.quick-searches button:hover { background: rgba(255,255,255,.65); }
.hero-stage { position: relative; align-self: stretch; min-height: 390px; }
.orbit { position: absolute; border: 2px dashed rgba(25,24,20,.27); border-radius: 50%; }
.orbit-a { width: 330px; height: 330px; right: -15px; top: 28px; animation: spin 24s linear infinite; }
.orbit-b { width: 245px; height: 245px; right: 30px; top: 72px; animation: spin 17s linear infinite reverse; }
.spark { position: absolute; color: #fff7c8; font-size: 28px; text-shadow: 2px 2px 0 var(--ink); }
.spark-a { right: 30px; top: 26px; transform: rotate(12deg); }
.spark-b { left: 15px; bottom: 96px; font-size: 18px; }
.universe-core { position: absolute; z-index: 3; width: 158px; height: 158px; right: 79px; top: 116px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 50%; background: rgba(255,253,247,.92); box-shadow: 9px 10px 0 var(--ink); animation: brand-core-float 4.2s ease-in-out infinite; }
.universe-core::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(25,24,20,.14); border-radius: 50%; }
.universe-core img { position: relative; width: 104px; height: 104px; filter: drop-shadow(4px 5px 0 rgba(25,24,20,.15)); }
.product-orbit { position: absolute; z-index: 5; min-width: 118px; min-height: 48px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 13px; box-shadow: 4px 4px 0 var(--ink); font-size: 12px; font-weight: 900; }
.product-orbit svg { width: 24px; height: 24px; stroke-width: 2.2; }
.product-tools { left: -4px; top: 61px; background: #ffd2bf; transform: rotate(-5deg); }
.product-guide { right: -4px; top: 57px; background: #d7e6ff; transform: rotate(5deg); }
.product-games { right: -3px; bottom: 46px; background: #ded4ff; transform: rotate(-4deg); }

.worlds, .continue-section, .recommendations { padding-top: 108px; scroll-margin-top: 90px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading.compact { margin-bottom: 22px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(31px, 4vw, 47px); line-height: 1.15; letter-spacing: -.05em; font-weight: 950; }
.text-link { min-height: 46px; display: inline-flex; align-items: center; gap: 5px; font-weight: 850; }
.text-link svg { width: 19px; transition: transform var(--motion-fast); }
.text-link:hover svg { transform: translateX(4px); }
.world-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; }
.world-card { position: relative; min-height: 470px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 26px; border: var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow); transition: transform var(--motion-standard), box-shadow var(--motion-standard); }
.world-card:hover { transform: translateY(-6px); box-shadow: 10px 13px 0 var(--ink); }
.world-card-head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.world-number { font-size: 13px; font-weight: 950; }
.world-badge { padding: 6px 10px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.74); font-size: 11px; font-weight: 900; }
.world-card-copy { position: relative; z-index: 3; }
.world-card-copy p { margin: 0 0 8px; font-size: 12px; font-weight: 800; }
.world-card-copy h3 { margin: 0 0 22px; font-size: clamp(31px, 3vw, 46px); line-height: 1.02; letter-spacing: -.06em; font-weight: 950; }
.world-action { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 900; }
.world-action i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; }
.world-action svg { width: 16px; }
.toolbox-card { background: var(--orange); }
.toolbox-card .world-card-copy { max-width: 100%; }
.toolbox-art { position: absolute; width: 240px; height: 220px; left: 50%; right: auto; top: 72px; margin-left: -120px; }
.toolbox-art::before { content: ""; position: absolute; z-index: 0; width: 210px; height: 180px; right: 2px; top: 34px; border-radius: 50%; background: radial-gradient(circle, rgba(255,248,139,.96) 0%, rgba(255,218,49,.55) 37%, rgba(255,184,25,.12) 65%, transparent 74%); filter: blur(4px); animation: gold-pulse 2.4s ease-in-out infinite; }
.toolbox-art img { position: absolute; z-index: 1; width: 230px; left: 5px; right: auto; top: 20px; bottom: auto; image-rendering: pixelated; filter: drop-shadow(0 0 9px rgba(255,231,68,.78)) drop-shadow(8px 10px 0 rgba(25,24,20,.15)); animation: chest-float 2.8s ease-in-out infinite; }
.tool-chip { position: absolute; z-index: 2; padding: 7px 9px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; box-shadow: 3px 3px 0 var(--ink); font-size: 10px; font-weight: 950; }
.chip-a { left: 24px; top: 22px; transform: rotate(-8deg); }
.chip-b { right: 40px; top: 2px; background: var(--yellow); transform: rotate(8deg); }
.chip-c { left: 2px; top: 91px; background: var(--green); transform: rotate(4deg); }
.guide-card { background: var(--blue); }
.guide-card .world-card-copy h3, .games-card .world-card-copy h3 { font-size: clamp(29px, 2.6vw, 40px); }
.guide-art { position: absolute; width: 250px; height: 190px; left: 50%; right: auto; top: 80px; margin-left: -125px; transform: rotate(-2deg); filter: drop-shadow(7px 9px 0 rgba(25,24,20,.14)); }
.guide-art::before { content: ""; position: absolute; z-index: 0; inset: 28px 19px 19px; border-radius: 50%; background: radial-gradient(circle, rgba(255,244,168,.78), rgba(215,230,255,.42) 48%, transparent 72%); filter: blur(5px); animation: guide-glow 3.1s ease-in-out infinite; }
.guide-art::after { content: ""; position: absolute; z-index: 2; width: 15px; height: 15px; right: 19px; top: 24px; background: var(--yellow); clip-path: polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%); filter: drop-shadow(1px 2px 0 var(--ink)); animation: guide-spark 2.1s ease-in-out infinite; }
.guide-art img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; animation: guide-float 3.3s ease-in-out infinite; }
.games-card { background: var(--purple); color: #fff; }
.games-card .world-badge { background: var(--green); color: var(--ink); }
.games-card .world-action i { background: #fff; color: var(--ink); }
.arcade { position: absolute; width: 190px; height: 202px; left: 50%; right: auto; top: 70px; margin-left: -95px; border: 3px solid var(--ink); border-radius: 15px 15px 9px 9px; background: #33254f; box-shadow: 7px 7px 0 var(--ink); transform: rotate(-3deg); }
.arcade-screen { position: absolute; inset: 19px 17px 67px; display: grid; place-content: center; border: 3px solid var(--ink); border-radius: 5px; background: #11162b; text-align: center; color: var(--green); box-shadow: inset 0 0 22px rgba(184,246,62,.22); }
.arcade-screen span { font-size: 9px; letter-spacing: .2em; }.arcade-screen strong { font-size: 22px; letter-spacing: .04em; }.arcade-screen i { width: 55px; height: 3px; margin: 7px auto 0; background: var(--orange); animation: blink 1.2s step-end infinite; }
.arcade-controls { position: absolute; inset: auto 17px 17px; height: 35px; display: flex; align-items: center; gap: 13px; padding-left: 14px; border-top: 2px solid #876fc4; }
.arcade-controls b { width: 30px; height: 10px; background: var(--ink); border-radius: 2px; box-shadow: 0 -9px 0 -2px var(--ink); }
.arcade-controls span { width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 50%; background: var(--orange); }.arcade-controls span:last-child { background: var(--yellow); }

.outline-button { min-height: 46px; padding: 0 17px; border: 2px solid var(--ink); border-radius: 999px; background: transparent; box-shadow: 3px 3px 0 var(--ink); font-size: 13px; font-weight: 850; cursor: pointer; }
.continue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.continue-card { min-height: 133px; display: flex; align-items: center; gap: 15px; padding: 18px; border: 2px solid var(--ink); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 4px 5px 0 var(--ink); }
.continue-icon { width: 69px; height: 75px; flex: 0 0 69px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 16px; }
.continue-icon svg { width: 34px; height: 34px; stroke-width: 1.8; }
.continue-icon.orange { background: #ffd1ba; }.continue-icon.blue { background: #d5e6ff; }
.continue-icon.purple { background: #ded2ff; }.continue-icon strong { font-size: 23px; }
.recent-empty { grid-column: 1 / -1; min-height: 133px; border-style: dashed; box-shadow: none; background: rgba(255,255,255,.45); }
.continue-copy { min-width: 0; flex: 1; }
.continue-copy > span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; }
.continue-copy h3 { margin: 5px 0 3px; overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.continue-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.round-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; }
.round-button svg { width: 17px; }
.progress { width: 100%; max-width: 150px; height: 4px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #d9d5cc; }.progress i { display: block; height: 100%; background: var(--blue-deep); }
.game-continue { background: #32214f; color: #fff; }
.game-continue .continue-copy p, .game-continue .continue-copy > span { color: #c9bde6; }
.mini-game-cover { position: relative; width: 69px; height: 75px; flex: 0 0 69px; overflow: hidden; padding: 8px; border: 2px solid #fff; border-radius: 11px; background: linear-gradient(145deg,#c94936 0 48%,#1b1d2b 48%); }
.mini-game-cover span { font-size: 8px; font-weight: 900; }.mini-game-cover strong { display: block; margin-top: 13px; font-size: 11px; transform: rotate(-8deg); }.mini-game-cover i { position: absolute; width: 13px; height: 25px; right: 8px; bottom: 3px; background: var(--green); clip-path: polygon(30% 0,70% 0,100% 35%,70% 100%,30% 100%,0 35%); }

.recommendations { padding-bottom: 110px; }
.filter-tabs { display: flex; gap: 5px; padding: 5px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.filter-tabs button { min-height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; }
.filter-tabs button.active { background: var(--ink); color: #fff; }
.recommend-grid { display: grid; grid-template-columns: 1.06fr .94fr .94fr; grid-template-rows: 332px 190px; gap: 18px; }
.recommend-card { position: relative; overflow: hidden; padding: 22px; border: var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 5px 6px 0 var(--ink); transition: opacity var(--motion-standard), transform var(--motion-standard); }
.recommend-card[hidden] { display: none; }
.recommend-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; font-weight: 850; }
.recommend-top.inverse { color: #d3cce4; }
.content-type { padding: 5px 8px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); }
.content-type.orange { background: #ffd0bc; }.content-type.blue { background: #d3e4ff; }.content-type.green { background: var(--green); }
.recommend-copy { position: relative; z-index: 3; }
.recommend-copy h3 { margin: 12px 0 7px; font-size: 22px; line-height: 1.25; letter-spacing: -.035em; }
.recommend-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.recommend-card > button, .ending-card > button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.recommend-card > button svg, .ending-card > button svg { width: 16px; }
.feature-tool { grid-row: span 2; display: flex; flex-direction: column; background: #ffe8db; }
.feature-tool-art { position: relative; flex: 1; min-height: 245px; margin: 15px 0 4px; }
.paper { position: absolute; width: 188px; height: 238px; top: 9px; left: 50%; border: 2px solid var(--ink); background: #fff; }
.paper.back { transform: translateX(-44%) rotate(7deg); background: var(--yellow); }.paper.front { padding: 24px 20px; transform: translateX(-56%) rotate(-5deg); box-shadow: 7px 8px 0 rgba(25,24,20,.25); }
.paper.front span { font-size: 8px; font-weight: 900; letter-spacing: .1em; }.paper.front b { display: block; margin-top: 59px; color: rgba(255,112,68,.52); font-size: 27px; transform: rotate(-28deg); }.paper.front i { display: block; width: 100%; height: 5px; margin-top: 37px; background: repeating-linear-gradient(90deg,var(--ink) 0 17px,transparent 17px 24px); opacity: .45; }
.feature-tool .recommend-copy h3 { font-size: 25px; }.feature-tool > button { align-self: flex-start; margin-top: 18px; }
.article-card { background: var(--blue); }
.article-index { margin-top: 42px; padding-bottom: 12px; border-bottom: 2px solid rgba(25,24,20,.4); font-size: 11px; font-weight: 950; letter-spacing: .15em; }
.article-card .recommend-copy h3 { max-width: 92%; font-size: 25px; }
.article-card .recommend-copy p { color: rgba(25,24,20,.7); }
.article-meta { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; }
.pixel-card { grid-row: span 2; display: flex; flex-direction: column; background: #302047; color: #fff; }
.pixel-sky { position: relative; min-height: 270px; margin: 16px -22px 12px; overflow: hidden; background: linear-gradient(#17274e 0 60%,#77416c 60% 64%,#20243c 64%); image-rendering: pixelated; }
.moon { position: absolute; width: 53px; height: 53px; right: 34px; top: 25px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 7px rgba(255,224,104,.13); }
.hill { position: absolute; bottom: 36%; background: #434c7c; clip-path: polygon(50% 0,100% 100%,0 100%); }.hill.one { width: 180px; height: 100px; left: -30px; }.hill.two { width: 210px; height: 128px; right: -43px; background: #343a67; }
.runner { position: absolute; width: 20px; height: 47px; left: 42%; bottom: 21px; background: var(--green); clip-path: polygon(30% 0,70% 0,80% 28%,100% 45%,75% 53%,70% 100%,45% 100%,43% 63%,22% 100%,0 89%,27% 47%,12% 34%,26% 26%); }
.pixel-card .recommend-copy p { color: #cfc5df; }.pixel-card > button { align-self: flex-start; margin-top: auto; background: var(--green); color: var(--ink); }
.compact-card { display: flex; align-items: center; gap: 18px; }
.compact-card.purple { background: #dcd0ff; }.compact-card.yellow { background: var(--yellow); }
.compact-symbol { width: 77px; height: 77px; flex: 0 0 77px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 18px; background: rgba(255,255,255,.55); box-shadow: 4px 4px 0 var(--ink); }
.compact-symbol svg { width: 38px; height: 38px; }
.compact-card span { color: var(--muted); font-size: 10px; font-weight: 850; }.compact-card h3 { margin: 5px 0 2px; font-size: 20px; }.compact-card p { margin: 0; font-size: 11px; }

.ending { padding-bottom: 90px; }
.ending-card { position: relative; min-height: 255px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: 45px 54px; border: var(--border); border-radius: var(--radius-xl); background: var(--yellow); box-shadow: 8px 9px 0 var(--ink); }
.ending-card p { margin: 0 0 6px; font-size: 12px; font-weight: 850; }.ending-card h2 { margin: 0; font-size: clamp(29px,4vw,48px); line-height: 1.08; letter-spacing: -.05em; }
.ending-card > button { position: relative; z-index: 2; min-height: 52px; border-radius: 999px; padding-inline: 20px; }
.ending-face { position: absolute; right: 23%; top: -56px; width: 240px; height: 240px; display: flex; align-items: center; justify-content: center; gap: 17px; border: 3px solid rgba(25,24,20,.17); border-radius: 50%; color: rgba(25,24,20,.16); font-size: 45px; transform: rotate(-8deg); }.ending-face b { margin-top: 22px; }
.site-footer { padding: 38px 0 110px; border-top: 2px solid rgba(25,24,20,.16); background: #f5eddf; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }.brand-symbol.small { width: 42px; height: 42px; flex-basis: 42px; }.footer-brand strong { font-size: 18px; }.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 19px; color: var(--muted); font-size: 11px; font-weight: 750; }.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.mobile-nav { display: none; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); min-width: 220px; padding: 13px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--orange); text-align: center; font-size: 13px; font-weight: 800; opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: opacity var(--motion-standard), transform var(--motion-standard); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes brand-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes brand-core-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes chest-float { 0%,100% { transform: translateY(3px); } 50% { transform: translateY(-8px); } }
@keyframes gold-pulse { 0%,100% { opacity: .58; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes guide-float { 0%,100% { transform: translateY(3px) rotate(-.6deg); } 50% { transform: translateY(-7px) rotate(.8deg); } }
@keyframes guide-glow { 0%,100% { opacity: .46; transform: scale(.94); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes guide-spark { 0%,100% { opacity: .35; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.12) rotate(45deg); } }

@media (max-width: 980px) {
  .brand-status { display: none; }
  .hero { min-height: 500px; grid-template-columns: 1.3fr .7fr; padding: 46px 36px; }
  .hero-stage { min-height: 320px; }.universe-core { right: 30px; }.product-tools { left: -15px; }.product-guide { right: -18px; }
  .world-card { min-height: 440px; padding: 21px; }.world-card-copy h3, .guide-card .world-card-copy h3, .games-card .world-card-copy h3 { font-size: 30px; }
  .continue-grid { grid-template-columns: 1fr; }.continue-card { min-height: 112px; }
  .recommend-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 330px 190px 330px; }.feature-tool { grid-row: span 2; }.pixel-card { grid-row: span 2; }.compact-card.yellow { grid-column: 1 / 2; grid-row: 3; }.compact-card.purple { grid-column: 2 / 3; grid-row: 3; }
}

.arcade-game-card { background: #e8f5ff; }
.arcade-game-cover { aspect-ratio: 4 / 3; align-self: center; background: #171321; }
.arcade-game-cover span { font-size: 11px; letter-spacing: .04em; }
.arcade-game-cover img { object-fit: cover; image-rendering: auto; }
.arcade-player-heading { background: linear-gradient(135deg,#2d2142,#50377e 58%,#7149b9); }

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 560px); }
  .site-header { position: relative; }.header-inner { width: calc(100% - 28px); min-height: 70px; }.desktop-nav, .search-trigger, .profile-button > span:not(.profile-icon-bg), .profile-button .profile-chevron { display: none; }.profile-button { width: 48px; padding: 0; justify-content: center; }.profile-button .profile-icon { display: block; width: 22px; height: 22px; }
  .hero { min-height: auto; display: block; padding: 34px 20px 210px; margin-top: 13px; border-radius: 27px; box-shadow: 7px 8px 0 var(--ink); }
  .hero h1 { margin-top: 19px; font-size: clamp(38px, 10.5vw, 48px); }.hero-desc { font-size: 14px; line-height: 1.7; }
  .hero-search { min-height: 58px; padding-left: 14px; border-radius: 15px; box-shadow: 4px 5px 0 var(--ink); }.hero-search > button { min-width: 72px; }.search-hint { display: none; }
  .quick-searches { margin-top: 16px; }.hero-stage { position: absolute; left: 0; right: 0; bottom: 0; min-height: 215px; }.orbit-a { width: 225px; height: 225px; right: 15px; top: 1px; }.orbit-b { width: 160px; height: 160px; right: 48px; top: 34px; }.universe-core { width: 108px; height: 108px; right: calc(50% - 54px); top: 45px; box-shadow: 6px 7px 0 var(--ink); }.universe-core img { width: 72px; height: 72px; }.product-orbit { min-width: 92px; min-height: 42px; padding: 6px 9px; font-size: 10px; }.product-orbit svg { width: 20px; height: 20px; }.product-tools { left: 18px; top: 24px; }.product-guide { right: 15px; top: 15px; }.product-games { right: 20px; bottom: 19px; }.spark-b { left: 25px; bottom: 25px; }
  .worlds, .continue-section, .recommendations { padding-top: 76px; }.section-heading { align-items: flex-start; margin-bottom: 22px; }.section-heading h2 { font-size: 33px; }.text-link { display: none; }
  .world-grid { display: flex; flex-direction: column; gap: 16px; }.world-card, .toolbox-card { min-height: 410px; grid-column: auto; padding: 21px; border-radius: 24px; box-shadow: 5px 6px 0 var(--ink); }.toolbox-card .world-card-copy { max-width: 100%; }.toolbox-art { width: 230px; height: 210px; left: 50%; right: auto; top: 72px; margin-left: -115px; transform: none; }.toolbox-art img { width: 220px; left: 5px; top: 16px; }.guide-art { width: 230px; height: 175px; left: 50%; right: auto; top: 84px; margin-left: -115px; transform: rotate(-2deg); }.arcade { width: 185px; height: 198px; left: 50%; right: auto; top: 72px; margin-left: -92.5px; transform: rotate(-3deg); }.world-card-copy h3, .guide-card .world-card-copy h3, .games-card .world-card-copy h3 { font-size: 32px; }
  .continue-grid { gap: 12px; }.continue-card { padding: 14px; }.continue-icon, .mini-game-cover { width: 58px; height: 64px; flex-basis: 58px; }.continue-icon svg { width: 29px; }.continue-copy h3 { font-size: 14px; }
  .recommendations { padding-bottom: 76px; }.recommendations .section-heading { display: block; }.filter-tabs { width: 100%; margin-top: 20px; }.filter-tabs button { flex: 1; padding-inline: 7px; }
  .recommend-grid { display: flex; flex-direction: column; }.recommend-card { min-height: 190px; }.feature-tool, .pixel-card { min-height: 520px; }.article-card { min-height: 315px; }.compact-card { min-height: 145px; }
  .ending { padding-bottom: 68px; }.ending-card { min-height: 310px; display: block; padding: 34px 24px; }.ending-card > button { margin-top: 27px; }.ending-face { right: -70px; bottom: -70px; top: auto; }
  .footer-inner { align-items: flex-start; flex-direction: column; }.footer-links { justify-content: flex-start; }
  .mobile-nav { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); min-height: 67px; display: grid; grid-template-columns: repeat(5,1fr); padding: 6px; border: 2px solid var(--ink); border-radius: 20px; background: rgba(255,253,247,.96); box-shadow: 4px 5px 0 var(--ink); backdrop-filter: blur(13px); }
  .mobile-nav a, .mobile-nav button { min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; border-radius: 13px; background: transparent; color: #777169; font-size: 9px; font-weight: 800; cursor: pointer; }.mobile-nav svg { width: 21px; height: 21px; }.mobile-nav .active { background: var(--ink); color: #fff; }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 39px; }.hero-search input { font-size: 14px; }.hero-search > svg { display: none; }.quick-searches span { width: 100%; }
  .toolbox-card .world-card-copy { max-width: 70%; }.world-card-copy h3, .guide-card .world-card-copy h3, .games-card .world-card-copy h3 { font-size: 30px; }
  .round-button { width: 42px; height: 42px; flex-basis: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Functional catalog and detail routes */
.route-main { min-height: 70vh; padding-bottom: 96px; }
.route-hero { position: relative; min-height: 325px; margin-top: 34px; padding: 52px; overflow: hidden; border: var(--border); border-radius: 32px; box-shadow: 8px 9px 0 var(--ink); }
.route-hero::after { content: ""; position: absolute; width: 290px; height: 290px; right: -70px; bottom: -145px; border: 3px solid rgba(25,24,20,.18); border-radius: 50%; box-shadow: 0 0 0 32px rgba(25,24,20,.055), 0 0 0 64px rgba(25,24,20,.055); }
.route-hero.tools { background: #ffd3bf; }.route-hero.guide { background: var(--blue); }.route-hero.games { background: var(--purple); color: #fff; }
.route-hero.games .section-kicker, .route-hero.games > p { color: #e8e0ff; }
.back-link { position: relative; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 34px; font-size: 13px; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.route-hero h1, .profile-hero h1 { position: relative; z-index: 2; margin: 9px 0 10px; font-size: clamp(42px,6vw,70px); line-height: 1; letter-spacing: -.065em; }
.route-hero > p { position: relative; z-index: 2; margin: 0; color: rgba(25,24,20,.72); font-weight: 700; }
.route-count { position: absolute; z-index: 2; right: 30px; top: 28px; padding: 9px 13px; border: 2px solid currentColor; border-radius: 999px; font-size: 11px; font-weight: 900; }
.catalog-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; padding-top: 44px; }
.catalog-card { min-height: 300px; display: flex; flex-direction: column; padding: 28px; border: var(--border); border-radius: 24px; background: var(--surface); box-shadow: 5px 6px 0 var(--ink); }
.catalog-card.tool { background: #fff1e9; }.catalog-card.guide { background: #edf4ff; }.catalog-card.game { background: #f0eaff; }
.catalog-card-top, .catalog-card-bottom, .detail-labels, .detail-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.catalog-type, .status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 900; }
.catalog-type { background: #fff; }.status-pill.ready { background: var(--green); }.status-pill.testing { background: var(--yellow); }.status-pill.planned { border-color: #777169; color: #5e5a54; background: #e8e4db; }
.catalog-card h2 { margin: 31px 0 8px; font-size: clamp(26px,3vw,36px); letter-spacing: -.045em; }
.catalog-card > p { max-width: 540px; margin: 0; color: var(--muted); font-weight: 650; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }.tag-row span { padding: 5px 9px; border-radius: 7px; background: rgba(25,24,20,.08); font-size: 10px; font-weight: 800; }
.catalog-card-bottom { margin-top: auto; padding-top: 28px; }.catalog-card-bottom small { color: var(--muted); font-size: 10px; font-weight: 700; }
.primary-link, .favorite-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 3px 3px 0 rgba(25,24,20,.25); font-size: 12px; font-weight: 900; cursor: pointer; }
.primary-link svg { width: 16px; }.primary-link.disabled { border-color: #8b867e; background: #8b867e; box-shadow: none; cursor: not-allowed; }
.route-footer { padding-bottom: 48px; }

.detail-shell { padding-top: 34px; }
.detail-hero { min-height: 360px; display: grid; grid-template-columns: 1fr 240px; align-items: stretch; gap: 35px; padding: 45px 50px; border: var(--border); border-radius: 32px; box-shadow: 9px 10px 0 var(--ink); }
.detail-hero.tool { background: #ffd3bf; }.detail-hero.guide { background: var(--blue); }.detail-hero.game { background: var(--purple); color: #fff; }
.detail-hero.game .catalog-type, .detail-hero.game .status-pill { color: var(--ink); }
.detail-hero .back-link { margin-bottom: 25px; }.detail-labels { justify-content: flex-start; }
.detail-hero h1 { margin: 19px 0 12px; font-size: clamp(44px,6vw,76px); line-height: 1; letter-spacing: -.065em; }
.detail-hero > div > p { max-width: 680px; margin: 0 0 25px; font-size: 17px; font-weight: 650; }
.detail-actions { justify-content: flex-start; }.favorite-button { background: #fff; color: var(--ink); }.favorite-button.saved { background: var(--yellow); }.favorite-button svg { width: 18px; }
.detail-mark { min-height: 230px; display: grid; place-items: center; align-self: center; border: 3px solid var(--ink); border-radius: 25px; background: rgba(255,255,255,.72); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); font-size: 48px; font-weight: 950; transform: rotate(3deg); }
.detail-layout, .article-layout, .game-test-panel { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.7fr); gap: 22px; padding-top: 38px; }
.content-panel, .note-panel, .article-body, .article-toc, .game-test-panel, .compat-grid article, .profile-grid > section { border: var(--border); border-radius: 24px; background: var(--surface); box-shadow: 5px 6px 0 var(--ink); }
.content-panel { padding: 34px; }.content-panel h2, .game-test-panel h2 { margin: 8px 0 24px; font-size: 30px; letter-spacing: -.04em; }
.flow-list { display: grid; gap: 11px; }.flow-list > div { display: flex; align-items: center; gap: 14px; padding: 14px; border: 2px solid var(--ink); border-radius: 15px; background: #fff; }.flow-list b { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border-radius: 50%; background: var(--yellow); }.flow-list span { display: flex; flex-direction: column; }.flow-list small { color: var(--muted); }
.upload-placeholder { width: 100%; min-height: 105px; display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; padding: 20px; border: 3px dashed var(--ink); border-radius: 18px; background: #fff5c9; cursor: pointer; }.upload-placeholder > svg { width: 34px; height: 34px; }.upload-placeholder span { display: flex; flex-direction: column; text-align: left; }.upload-placeholder small { color: var(--muted); font-weight: 650; }
.note-panel { align-self: start; padding: 28px; background: var(--yellow); }.note-panel strong { font-size: 20px; }.note-panel p { color: rgba(25,24,20,.72); }.note-panel > span { display: block; padding-top: 15px; border-top: 2px solid rgba(25,24,20,.2); font-size: 12px; font-weight: 850; }
.article-layout { align-items: start; }.article-body { padding: clamp(28px,5vw,62px); }.article-lead { margin: 0 0 42px; font-size: 22px; line-height: 1.7; font-weight: 800; }.article-body section { padding: 30px 0; border-top: 2px solid rgba(25,24,20,.13); }.article-body h2 { margin: 0 0 13px; font-size: 27px; }.article-body p { margin: 0; color: #49463f; font-size: 17px; line-height: 1.95; }.article-toc { position: sticky; top: 105px; display: grid; gap: 11px; padding: 25px; background: #d8e7ff; }.article-toc strong { font-size: 19px; }.article-toc span { color: var(--muted); font-size: 12px; font-weight: 750; }
.game-route { background: linear-gradient(var(--paper),#f0e9ff); }.game-test-panel { grid-template-columns: 1fr 1fr; padding: 26px; background: #2d2142; color: #fff; }.game-screen-placeholder { min-height: 360px; display: grid; align-content: center; justify-items: center; padding: 25px; border: 3px solid #fff; border-radius: 18px; background: radial-gradient(circle at 50% 30%,rgba(184,246,62,.16),transparent 36%),#101527; text-align: center; }.game-screen-placeholder span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .2em; }.game-screen-placeholder strong { margin-top: 12px; font-size: 28px; }.game-screen-placeholder p { color: #b9b3c7; }.game-test-panel > div:last-child { padding: 20px; }.game-test-panel .section-kicker { color: var(--green); }.game-test-panel > div > p { color: #ccc4dc; }
.game-live-panel { grid-template-columns: 1fr; }.game-runner-frame { width: 100%; height: min(520px,70vh); min-height: 390px; display: block; border: 3px solid #fff; border-radius: 18px; background: #101527; }.game-runtime-copy { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: 10px 40px; }.game-runtime-copy .section-kicker, .game-runtime-copy h2 { grid-column: 1; }.game-runtime-copy > p { grid-column: 1; margin-top: 0; }.game-runtime-copy .diagnostics { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
.diagnostics { display: grid; gap: 8px; margin-top: 24px; }.diagnostics div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid #645873; }.diagnostics dt { color: #c9bfd8; }.diagnostics dd { margin: 0; font-weight: 850; text-align: right; }
.compat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; padding-top: 22px; }.compat-grid article { padding: 25px; }.compat-grid span { color: var(--purple); font-size: 12px; font-weight: 950; }.compat-grid h3 { margin: 10px 0 6px; }.compat-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.profile-hero { display: flex; align-items: center; gap: 25px; padding-top: 65px; padding-bottom: 35px; }.profile-large { width: 105px; height: 105px; display: grid; place-items: center; flex: 0 0 105px; border: var(--border); border-radius: 50%; background: var(--yellow); box-shadow: 5px 6px 0 var(--ink); }.profile-large svg { width: 52px; height: 52px; }.profile-hero h1 { margin: 7px 0; font-size: clamp(38px,5vw,58px); }.profile-hero p { margin: 0; color: var(--muted); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }.profile-grid > section { min-height: 310px; padding: 28px; }.profile-grid .section-heading { margin: 0 0 18px; }.profile-grid h2 { margin: 0; font-size: 25px; }.mini-list { display: grid; gap: 10px; }.mini-list a { min-height: 62px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border: 2px solid var(--ink); border-radius: 13px; background: #fff; }.mini-list svg { width: 17px; }.empty-state { display: grid; place-content: center; min-height: 190px; text-align: center; }.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.route-card { cursor: pointer; }

.fc-catalog-shell { padding-top: 34px; }
.fc-catalog-tools { display: grid; grid-template-columns: minmax(0,1fr); padding: 14px; border: var(--border); border-radius: 18px; background: #fff; box-shadow: 4px 5px 0 var(--ink); }
.fc-search { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 850; }
.fc-search input { width: 100%; min-height: 48px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 12px; background: #fffdf7; color: var(--ink); font: inherit; font-size: 15px; font-weight: 750; }
.fc-result-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 30px 2px 15px; }.fc-result-line strong { font-size: 18px; }.fc-result-line span { color: var(--muted); font-size: 11px; font-weight: 700; }
.fc-game-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; scroll-margin-top: 95px; }
.fc-game-card { position: relative; min-height: 150px; display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 12px; padding: 12px; border: var(--border); border-radius: 16px; background: #f0eaff; box-shadow: 3px 4px 0 var(--ink); }
.fc-favorite-button { position: absolute; z-index: 4; top: 8px; right: 8px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); cursor: pointer; transition: transform var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast); }.fc-favorite-button svg { width: 20px; height: 20px; }.fc-favorite-button.saved { background: var(--yellow); }.fc-favorite-button.saved svg { fill: currentColor; }.fc-favorite-button:active { transform: translate(2px,2px); box-shadow: none; }
.fc-game-cover { position: relative; width: 88px; aspect-ratio: 5 / 7; display: grid; place-items: center; align-self: start; overflow: hidden; border: 2px solid var(--ink); border-radius: 11px; background: #30234d; color: var(--green); box-shadow: 2px 2px 0 var(--ink); }.fc-game-cover::before, .fc-game-cover::after { content: ""; position: absolute; border-radius: 50%; background: var(--purple); }.fc-game-cover::before { width: 46px; height: 46px; right: -18px; top: -16px; }.fc-game-cover::after { width: 30px; height: 30px; left: -11px; bottom: -9px; background: var(--orange); }.fc-game-cover span { position: relative; z-index: 1; font-size: 22px; font-weight: 950; letter-spacing: -.06em; }.fc-game-cover i { position: absolute; z-index: 1; width: 7px; height: 7px; right: 9px; bottom: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(184,246,62,.14); }.fc-game-cover img { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #1c1630; }
.fc-game-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding-right: 38px; }.fc-game-copy h2 { width: 100%; margin: 2px 0 3px; overflow-wrap: anywhere; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; }.fc-game-copy > p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }.fc-game-copy .fc-original-title { margin-bottom: 7px; font-size: 10px; line-height: 1.25; font-weight: 750; }.fc-game-copy .primary-link { min-height: 44px; margin-top: auto; padding-inline: 12px; }.fc-detail-original { margin: -5px 0 10px !important; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 750; }
.fc-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; padding-top: 28px; }.fc-page-list, .fc-page-jump { display: flex; align-items: center; justify-content: center; gap: 8px; }.fc-pagination button, .fc-page-jump input { min-height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font: inherit; font-weight: 850; }.fc-pagination button { min-width: 46px; padding: 0 12px; cursor: pointer; }.fc-pagination .fc-page-step { min-width: 94px; }.fc-pagination button:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }.fc-pagination .fc-page-number.is-current { background: var(--ink); color: #fff; opacity: 1; }.fc-page-ellipsis { min-width: 24px; text-align: center; font-size: 18px; font-weight: 900; }.fc-page-jump { padding: 8px 10px; border: 2px solid var(--ink); border-radius: 14px; background: #fff9ed; }.fc-page-jump label, .fc-page-jump span { white-space: nowrap; font-size: 12px; font-weight: 900; }.fc-page-jump input { width: 62px; padding: 0 8px; text-align: center; box-shadow: none; }.fc-page-jump button { min-width: 64px; }
.fc-empty, .fc-missing { grid-column: 1 / -1; padding: 50px 28px; border: var(--border); border-radius: 22px; background: #fff; text-align: center; }.fc-empty strong, .fc-missing h1 { font-size: 25px; }.fc-empty p, .fc-missing p { color: var(--muted); }.fc-missing { margin-top: 40px; box-shadow: 6px 7px 0 var(--ink); }.fc-missing > span { color: var(--purple); font-size: 13px; font-weight: 950; }.fc-missing .primary-link { margin-top: 14px; }
.fc-player-hero h1 { overflow-wrap: anywhere; font-size: clamp(38px,5vw,66px); }.fc-player-panel { margin-bottom: 30px; }
.fc-player-shell { padding-top: 22px; padding-bottom: 38px; }
.fc-player-heading { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border: var(--border); border-radius: 22px; background: linear-gradient(135deg,#7046e9,#8b5cf6 58%,#a777ff); color: #fff; box-shadow: 6px 7px 0 var(--ink); }
.fc-player-heading .back-link { flex: 0 0 auto; margin: 0; color: #fff; }
.fc-player-title { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 14px; text-align: right; }
.fc-player-title .catalog-type { flex: 0 0 auto; color: var(--ink); }
.fc-player-title h1 { margin: 0; overflow-wrap: anywhere; font-size: clamp(28px,4vw,46px); line-height: 1; letter-spacing: -.055em; }
.fc-player-title .fc-detail-original { margin: 6px 0 0 !important; color: rgba(255,255,255,.76); font-size: 12px; }
.fc-player-shell .fc-player-panel { margin: 16px 0 0; padding: 10px; border-radius: 24px; background: #171321; box-shadow: 7px 8px 0 var(--ink); }
.fc-player-shell .game-runner-frame { height: 880px; min-height: 620px; border: 0; border-radius: 16px; }
.fc-player-shell .fbneo-frame { height: min(680px, calc(100vh - 200px)); min-height: 480px; }

@media (max-width: 720px) {
  .route-main { padding-bottom: 72px; }.route-hero { min-height: 285px; margin-top: 13px; padding: 30px 22px; border-radius: 25px; box-shadow: 6px 7px 0 var(--ink); }.route-hero h1 { font-size: 42px; }.route-count { position: relative; inset: auto; display: inline-flex; margin-top: 27px; }.route-hero .back-link { margin-bottom: 25px; }
  .catalog-grid { grid-template-columns: 1fr; padding-top: 28px; }.catalog-card { min-height: 285px; padding: 23px; }.catalog-card h2 { font-size: 30px; }
  .detail-shell { padding-top: 13px; }.detail-hero { min-height: 370px; display: block; padding: 29px 22px; border-radius: 25px; box-shadow: 6px 7px 0 var(--ink); }.detail-hero h1 { font-size: 45px; }.detail-hero > div > p { font-size: 14px; }.detail-mark { min-height: 90px; margin-top: 25px; font-size: 32px; transform: none; }
  .detail-layout, .article-layout, .game-test-panel { grid-template-columns: 1fr; padding-top: 24px; }.content-panel { padding: 23px; }.article-body { padding: 26px 22px; }.article-lead { font-size: 18px; }.article-body h2 { font-size: 23px; }.article-body p { font-size: 16px; line-height: 1.85; }.article-toc { position: static; grid-row: 1; }.game-test-panel { padding: 15px; }.game-test-panel > div:last-child { padding: 13px 8px; }.game-screen-placeholder { min-height: 270px; }.game-runner-frame { height: 720px; min-height: 620px; }.game-runtime-copy { display: block; }.game-runtime-copy .diagnostics { margin-top: 22px; }.compat-grid { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; padding-top: 35px; }.profile-large { width: 74px; height: 74px; flex-basis: 74px; }.profile-large svg { width: 36px; height: 36px; }.profile-hero h1 { font-size: 36px; }.profile-grid { grid-template-columns: 1fr; }.route-footer { padding-bottom: 105px; }
  .fc-catalog-shell { padding-top: 24px; }.fc-catalog-tools { padding: 12px; }.fc-result-line { align-items: flex-start; flex-direction: column; gap: 5px; padding-top: 22px; }.fc-game-grid { grid-template-columns: 1fr; gap: 12px; }.fc-game-card { min-height: 150px; grid-template-columns: 88px minmax(0,1fr); padding: 12px; }.fc-game-cover { width: 88px; }.fc-pagination { gap: 12px; }.fc-page-list { flex-wrap: wrap; gap: 8px; }.fc-page-list .fc-page-number:not(.is-current):not(.is-edge), .fc-page-list .fc-page-ellipsis { display: none; }.fc-pagination .fc-page-step { min-width: 82px; }.fc-page-jump { width: min(100%,320px); }.fc-player-hero h1 { font-size: 38px; }
  .fc-player-shell { padding-top: 12px; }.fc-player-heading { min-height: 104px; align-items: flex-start; flex-direction: column; gap: 13px; padding: 16px 18px; border-radius: 18px; box-shadow: 4px 5px 0 var(--ink); }.fc-player-title { width: 100%; justify-content: flex-start; text-align: left; }.fc-player-title h1 { font-size: 30px; }.fc-player-shell .fc-player-panel { padding: 6px; border-radius: 18px; box-shadow: 4px 5px 0 var(--ink); }.fc-player-shell .game-runner-frame, .fc-player-shell .fbneo-frame { height: 760px; min-height: 610px; border-radius: 13px; } body[data-page="fc-player"] .mobile-nav, body[data-page="arcade-player"] .mobile-nav { display:none; } body[data-page="fc-player"] .route-main, body[data-page="arcade-player"] .route-main { padding-bottom:24px; }
}

@media (min-width: 721px) and (max-width: 980px) {
  .fc-game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Same approved guidebook artwork as the native mini-program. */
.guide-art img{object-fit:contain}
.route-guide-art{position:absolute;z-index:1;right:45px;top:65px;width:240px;height:240px;object-fit:contain;filter:drop-shadow(0 12px 12px rgba(25,24,20,.18))}
.route-hero.guide{padding-right:310px}
.detail-guide-art{display:block;max-width:100%;width:220px;height:220px;object-fit:contain}
.detail-hero.guide .detail-mark{background:transparent;border:0;box-shadow:none}
@media(max-width:980px){.route-guide-art{right:24px;top:65px;width:170px;height:170px}.route-hero.guide{padding-right:215px}}
@media(max-width:720px){.route-hero.guide{padding-right:22px;padding-bottom:130px}.route-guide-art{top:auto;right:16px;bottom:4px;width:130px;height:130px}.detail-guide-art{margin:auto;width:160px;height:160px}}
/* Website WeChat login: retain the existing warm personal-center design. */
.web-auth-controls{margin-left:auto;display:flex;flex-direction:column;gap:10px;max-width:290px;flex-shrink:0}
.web-auth-button{min-height:46px;padding:10px 20px;border:2px solid #242018;border-radius:14px;background:#ffe269;color:#242018;font:inherit;font-weight:800;cursor:pointer;box-shadow:3px 3px 0 #242018}
.web-auth-button:hover{background:#ffd34e}.web-auth-button:active{transform:translate(2px,2px);box-shadow:1px 1px 0 #242018}
.web-auth-button:focus-visible{outline:3px solid #ff7044;outline-offset:4px}.web-auth-button:disabled{cursor:wait;opacity:.65}
.web-auth-status{margin:0;font-size:13px;line-height:1.65;color:#685d4c;min-height:0}.web-auth-status:empty{display:none}
@media(max-width:640px){.profile-hero{flex-wrap:wrap}.web-auth-controls{width:100%;max-width:none;margin-left:0}.web-auth-button{align-self:flex-start}}
.profile-large img{width:100%;height:100%;object-fit:cover;border-radius:50%}.web-account-panel{margin-top:8px;margin-bottom:32px;padding:28px;border:2px solid #242018;border-radius:22px;background:#fffaf0}.web-account-panel h2{margin:0 0 12px}.web-account-note{line-height:1.7;color:#685d4c}.web-account-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.web-account-stats>div{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #d9bd85;border-radius:14px;background:#fff0cb}.web-account-stats strong{font-size:22px;overflow-wrap:anywhere}.web-account-stats span{font-size:14px;color:#685d4c}.web-service-records>div{display:flex;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #e0d4bc}.web-service-records span{font-size:13px;color:#685d4c}.web-account-panel>.web-auth-button{margin-top:20px}@media(max-width:720px){.web-account-panel{padding:20px}.web-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.web-service-records>div{flex-direction:column;gap:6px}}

/* Pearl surface system, inspired by scaffold-master (MIT).
   Website adaptation: keep public navigation and the existing character artwork. */
:root {
  --ink: #191814; --muted: #69655e; --paper: #fff9ed; --surface: #fffdf7;
  --blue-deep: #2867d7; --green: #b8f63e;
  --border: 1px solid rgba(46,58,62,.11);
  --shadow: 0 8px 28px rgba(24,36,40,.055), inset 0 1px 0 rgba(255,255,255,.9);
  --radius-xl: 24px; --radius-lg: 16px;
  --pearl-line: rgba(46,58,62,.11); --pearl-blue: #236de9;
}
html, body, body[data-page=me] { background: var(--paper); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; }
.noise { display: none; }
:focus-visible { outline: 2px solid var(--pearl-blue); outline-offset: 4px; }
.site-header { background: rgba(250,252,251,.92); border-bottom: 1px solid var(--pearl-line); }
.header-inner { min-height: 76px; }
.brand { font-weight: 700; }
.brand-word { font-size: 21px; letter-spacing: -.02em; }
.brand-symbol { filter: none; }
.brand-status { font-weight: 400; }
.desktop-nav { border: 1px solid var(--pearl-line); background: #eef1f0; padding: 4px; gap: 3px; }
.nav-link { font-weight: 550; min-height: 40px; padding-inline: 20px; color: var(--muted); }
.nav-link:hover { background: rgba(255,255,255,.75); color: var(--ink); }
.nav-link.active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px #1824280c; }
.icon-button, .profile-button { border: var(--border); box-shadow: 0 2px 6px #18242805; min-height: 44px; min-width: 44px; font-weight: 550; }
.profile-icon-bg { border: 0; background: #edf3ff; color: var(--pearl-blue); }
.icon-button:active, .profile-button:active, .outline-button:active, .round-button:active { transform: scale(.97); box-shadow: none; }
.hero { min-height: 490px; padding: 48px; border-radius: 28px; background: radial-gradient(ellipse at 87% 25%,#e6edf8 0,transparent 47%),linear-gradient(130deg,#fff,#f0f4f3); box-shadow: var(--shadow); }
.hero::after, .hero::before, .hero h1 em::after { display: none; }
.hero h1 { font-size: clamp(36px,4.3vw,56px); font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.hero h1 em { color: var(--pearl-blue); text-shadow: none; }
.eyebrow, .section-kicker { color: var(--muted); font-weight: 500; letter-spacing: .06em; }
.eyebrow span { background: var(--pearl-blue); height: 3px; width: 18px; }
.hero-desc { font-size: 15px; font-weight: 400; color: var(--muted); }
.hero-search { min-height: 60px; background: #fff; border: var(--border); box-shadow: 0 4px 16px #18242806; border-radius: 16px; }
.hero-search > button { border: 0; background: var(--pearl-blue); font-weight: 550; }
.quick-searches { font-weight: 400; }
.quick-searches button { border: 1px solid var(--pearl-line); background: #fff9; color: var(--muted); }
.universe-core { border: var(--border); box-shadow: 0 18px 50px #1d365014,inset 0 1px 0 #fff; background: #ffffffd9; }
.universe-core::before { border: 1px solid var(--pearl-line); }
.universe-core img { filter: none; }
.orbit { border: 1px dashed #becad8; }
.spark { text-shadow: none; color: #8ca9d6; }
.product-orbit { border: 1px solid #ffffffc4; box-shadow: 0 8px 24px #1824280c; font-weight: 550; background: #fff9; backdrop-filter: blur(12px); }
.worlds, .continue-section, .recommendations { padding-top: 64px; }
.section-heading { margin-bottom: 22px; }
.section-heading h2 { font-size: clamp(25px,3vw,34px); font-weight: 650; letter-spacing: -.035em; }
.text-link { color: var(--pearl-blue); font-weight: 550; font-size: 14px; }
.world-card { min-height: 414px; padding: 26px; border-radius: 24px; box-shadow: var(--shadow); }
.world-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px #18242812; }
.toolbox-card { background: linear-gradient(150deg,#fff,#fff4eb); }
.guide-card { background: linear-gradient(150deg,#fff,#edf3ff); }
.games-card { color: var(--ink); background: linear-gradient(150deg,#fff,#f1ecfc); }
.world-card-copy h3, .guide-card .world-card-copy h3, .games-card .world-card-copy h3 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; margin-bottom: 15px; }
.world-card-copy p, .world-number { color: var(--muted); font-weight: 500; }
.world-badge, .games-card .world-badge { border: var(--border); background: #ffffffb3; color: var(--muted); font-weight: 500; }
.world-action { font-weight: 550; color: var(--pearl-blue); }
.world-action i, .games-card .world-action i { background: #edf3ff; color: var(--pearl-blue); }
.tool-chip { border: var(--border); box-shadow: 0 4px 12px #1824280d; font-weight: 550; }
.continue-card, .recommend-card, .ending-card, .catalog-card, .content-panel, .note-panel, .article-body, .article-toc, .compat-grid article, .profile-grid > section { border: var(--border); box-shadow: var(--shadow); border-radius: 20px; }
.continue-card, .catalog-card.tool, .catalog-card.guide, .catalog-card.game { background: #fff; }
.continue-card:hover { box-shadow: 0 10px 30px #18242812; }
.continue-copy h3 { font-weight: 600; }
.continue-icon, .compact-symbol { border: var(--border); box-shadow: none; background: #f0f4f9; }
.round-button, .outline-button { border: var(--border); box-shadow: none; font-weight: 550; background: #fff; }
.feature-tool { background: #eef4ff; }
.guide-recommend { background: #f5f7fb; }
.compact-card.purple { background: #f3effb; }
.compact-card.yellow, .ending-card { background: #eef3f2; }
.ending-card h2 { font-weight: 650; font-size: clamp(26px,3.3vw,40px); }
.recommend-copy h3, .compact-card h3 { font-weight: 600; }
.site-footer { border-top: 1px solid var(--pearl-line); background: #edf1ef; }
.footer-links { font-weight: 400; font-size: 12px; }
.toast { border: 0; box-shadow: 0 8px 30px #10141826; font-weight: 500; }
.search-results { box-shadow: 0 12px 36px #18242816; }
.search-result:hover, .search-result:focus-visible { background: #edf3ff; }
.route-hero, .detail-hero { border: var(--border); box-shadow: var(--shadow); border-radius: 24px; }
.route-hero.tools, .route-hero.guide, .route-hero.games, .detail-hero.tool, .detail-hero.guide { background: linear-gradient(120deg,#fff,#edf2f6); }
.route-hero h1, .detail-hero h1 { font-weight: 650; font-size: clamp(32px,4vw,48px); letter-spacing: -.035em; line-height: 1.2; }
.route-hero > p, .detail-hero > div > p { font-weight: 400; color: var(--muted); font-size: 15px; }
.route-count { font-weight: 500; }
.catalog-card h2 { font-size: 24px; font-weight: 600; }
.catalog-card > p { font-weight: 400; font-size: 14px; }
.catalog-type, .status-pill { border: 0; font-size: 12px; font-weight: 500; padding: 5px 10px; }
.catalog-type { background: #eef2f7; color: #526272; }
.status-pill.ready { color: #39741d; background: #edf7e6; }
.status-pill.planned { background: #f0f2f1; color: var(--muted); }
.tag-row span { background: #f4f6f5; color: var(--muted); font-size: 12px; font-weight: 400; }
.catalog-card-bottom small { font-size: 12px; font-weight: 400; }
.primary-link, .favorite-button { border: 1px solid transparent; background: var(--pearl-blue); box-shadow: none; font-size: 14px; font-weight: 550; }
.favorite-button { background: #fff; border: var(--border); color: var(--muted); }
.favorite-button.saved { background: #edf3ff; color: var(--pearl-blue); }
.primary-link.disabled { background: #eef1f0; color: #65706a; border: 0; }
.detail-mark, .flow-list > div, .mini-list a { border: var(--border); box-shadow: none; }
.note-panel, .article-toc { background: #edf3ff; }
.upload-placeholder { border: 1px dashed #afbed0; background: #f5f8fc; }
.article-lead { font-weight: 500; }
/* Account content uses the existing mini-program data and markup. */
.web-profile-page { padding-top: 28px; background: transparent; }
.web-profile-page .header-title { font-weight: 650; }
.web-profile-page .identity-card { background: #fff; border: var(--border); border-radius: 24px; box-shadow: var(--shadow); }
.web-profile-page .profile-hero { margin-bottom: 24px; }
.web-profile-page .profile-large { border: 1px solid #dde5ec; background: #edf3ff; box-shadow: 0 4px 14px #18242808; color: var(--pearl-blue); }
.web-profile-page .web-profile-nickname { font-size: 28px; font-weight: 600; color: var(--ink); }
.web-profile-page .identity-tip, .web-profile-page .input-label { color: var(--muted); }
.web-profile-page .id-strip { background: #f5f7f8; border: 1px solid #e8edef; border-radius: 12px; box-shadow: none; padding: 12px 16px; }
.web-profile-page .id-label, .web-profile-page .id-value { color: var(--muted); font-weight: 400; }
.web-profile-page .web-auth-button, .web-auth-button { border: 0; background: var(--pearl-blue); color: #fff; box-shadow: none; font-weight: 550; }
.web-profile-page .web-auth-button:hover, .web-auth-button:hover { background: #1d5fcc; }
.web-profile-page .web-auth-button:active { transform: scale(.98); }
.web-auth-status, .web-account-note { color: var(--muted); font-weight: 400; }
.web-account-panel h2, .web-account-panel h3 { font-weight: 600; }
.web-account-stats>div.checkin-card { background: #fff; border: var(--border); box-shadow: var(--shadow); padding: 22px; }
.web-account-stats strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.web-account-stats span { color: var(--muted); }
.web-service-records>div.record-card { background: #fff; border: var(--border); box-shadow: var(--shadow); border-radius: 16px; }
.web-service-records .record-title { color: var(--ink); font-weight: 550; }
/* Native tool pages retain their behavior while sharing the surface system. */
body[data-page=currency], body[data-page=lookup] { background: var(--paper); }
#native-app .currency-page, #native-app .lookup-page { background: transparent; }
#native-app :is(.hero-card,.query-card,.result-card,.currency-card,.board-card,.section-card,.search-card,.lookup-card) { border: var(--border); background: #fff; box-shadow: var(--shadow); border-radius: 20px; }
.article-card { background: #eef3fb; }
.article-meta, .article-index { border-color: var(--pearl-line); font-weight: 500; }
.filter-tabs { border: var(--border); background: #eef1f0; }
.filter-tabs button { min-height: 44px; font-weight: 500; }
.filter-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px #1824280a; }
.content-type { border: 0; font-weight: 500; }
.recommend-card > button, .ending-card > button { background: var(--pearl-blue); border: 0; font-size: 14px; font-weight: 550; }
.pixel-card { background: #202a3a; }
.pixel-card > button { background: #fff; color: #202a3a; }
#native-app { box-shadow: none; }
#native-app :is(.currency-converter,.currency-board,.editor-card,.preview-card) { background: #fff; border: var(--border); box-shadow: var(--shadow); border-radius: 24px; }
#native-app .guide-card { background: #edf3ff; border: 1px solid #e1e9f5; box-shadow: none; }
#native-app .guide-mark { background: #dce8ff; color: #235ba4; }
#native-app :is(.header-title,.section-title,.lookup-query-value) { color: var(--ink); font-weight: 600; }
#native-app :is(.guide-copy,.field-hint,.header-subtitle) { color: var(--muted); }
#native-app :is(.lookup-query,.primary-button) { background: var(--pearl-blue); color: #fff; border: 0; box-shadow: none; }
#native-app :is(.lookup-my-ip,.lookup-copy) { background: #edf3ff; border: 1px solid #dae5f5; color: #235ba4; }
#native-app .lookup-input { background: #f8fafc; border-color: #dce3e9; color: var(--ink); }
#native-app :is(.country-select,.picker-search) { background: #f7f9fc; border-color: #dce5ef; box-shadow: none; }
#native-app .country-select-copy { border-color: #8daee2; }
#native-app .country-select-code { background: #fff; border-color: #dae4f1; color: #426693; font-weight: 500; }
#native-app :is(.country-name,.amount-input) { font-weight: 600; }
#native-app :is(.result-number,.result-symbol,.mode-tab-active,.board-filter-active) { color: var(--pearl-blue); }
#native-app .swap-button { background: #edf3ff; color: var(--pearl-blue); box-shadow: 0 4px 16px #236de915; }
#native-app .mode-tab-active::before, #native-app .board-filter-active::before { background: var(--pearl-blue); }
#native-app :is(.currency-label,.amount-code,.result-code,.amount-prefix) { color: var(--muted); font-weight: 500; }
#native-app :is(.back-button,.back-btn) { background: #fff; color: var(--muted); border: var(--border); box-shadow: none; }
@media(max-width:720px) {
  .header-inner { min-height: 66px; }
  .hero { padding: 28px 22px 230px; min-height: 0; margin-top: 20px; border-radius: 22px; }
  .hero h1 { font-size: clamp(28px,7.2vw,40px); }
  .hero-desc { font-size: 14px; }
  .worlds, .continue-section, .recommendations { padding-top: 40px; }
  .world-card { min-height: 380px; }
  .route-hero h1, .detail-hero h1 { font-size: 32px; }
  .mobile-nav { background: #ffffffed; border: 1px solid var(--pearl-line); box-shadow: 0 -4px 24px #18242806; }
  .mobile-nav a { color: var(--muted); font-weight: 500; }
  .mobile-nav a.active { color: var(--pearl-blue); background: #edf3ff; }
  .web-profile-page { padding-top: 16px; }
  .web-profile-page .web-profile-nickname { font-size: 23px; }
  .web-profile-page .profile-hero { padding: 22px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* Original Qiguai palette and cover treatments, with the lighter layout above. */
.site-header { background: rgba(255,249,237,.94); }
.desktop-nav, .filter-tabs { background: #f4eddf; }
.profile-icon-bg { background: var(--yellow); color: var(--ink); }
.hero { background: radial-gradient(circle at 82% 22%,rgba(111,168,255,.38),transparent 30%),radial-gradient(circle at 72% 78%,rgba(124,85,231,.27),transparent 31%),linear-gradient(135deg,#fff4d1 0%,#fffaf0 54%,#ffeadb 100%); }
.hero h1 em { color: var(--purple); }
.hero-search > button { background: var(--ink); }
.spark { color: #f0b63a; }
.product-tools { background: #ffd2bf; }
.product-guide { background: #d7e6ff; }
.product-games { background: #ded4ff; }
.toolbox-card { background: radial-gradient(ellipse at 85% 12%,rgba(255,235,137,.85),transparent 65%),linear-gradient(155deg,#ffae6e 0%,#ff874e 40%,#ff654b 75%,#f95255 100%); }
.world-card.guide-card { background: radial-gradient(ellipse at 52% 35%,rgba(255,231,177,.72),transparent 58%),linear-gradient(155deg,#f1d4a3 0%,#dfb27c 40%,#c49160 75%,#ae784e 100%); }
.games-card { background: radial-gradient(ellipse at 85% 12%,rgba(255,254,226,.88),transparent 62%),linear-gradient(180deg,#fff4d6 0%,#f7dcaa 35%,#eab978 70%,#d8934f 100%); color: #49351f; }
.world-card-copy p, .world-number { color: inherit; }
.world-action { color: var(--ink); }
.world-action i { background: var(--ink); color: #fff; }
.games-card .world-action { color: #49351f; }
.games-card .world-action i { background: #49351f; color: #fff; }
.games-card .world-badge { background: #ffffffb3; color: #49351f; }
.catalog-card.tool { background: #fff1e9; }
.catalog-card.guide { background: #edf4ff; }
.catalog-card.game { background: #f0eaff; }
.route-hero.tools { background: radial-gradient(ellipse at 85% 12%,rgba(255,235,137,.85),transparent 65%),linear-gradient(155deg,#ffae6e 0%,#ff874e 40%,#ff654b 75%,#f95255 100%); }
.route-hero.guide { background: radial-gradient(ellipse at 52% 35%,rgba(255,231,177,.72),transparent 58%),linear-gradient(155deg,#f1d4a3 0%,#dfb27c 40%,#c49160 75%,#ae784e 100%); }
.route-hero.games { background: radial-gradient(ellipse at 85% 12%,rgba(255,254,226,.88),transparent 62%),linear-gradient(180deg,#fff4d6 0%,#f7dcaa 35%,#eab978 70%,#d8934f 100%); color: #49351f; }
.route-hero > p, .route-hero .section-kicker { color: #49351f; }
.route-hero.games > p, .route-hero.games .section-kicker { color: #49351f; }
.feature-tool { background: #ffe8db; }
.article-card { background: var(--blue); }
.pixel-card { background: #302047; }
.pixel-card > button { background: var(--green); color: var(--ink); }
.compact-card.purple { background: #dcd0ff; }
.compact-card.yellow, .ending-card { background: var(--yellow); }
.compact-symbol { background: #ffffff8c; }
.recommend-card > button, .ending-card > button, .primary-link { background: var(--ink); }
.primary-link.disabled { background: #e8e4db; color: #5e5a54; }
.site-footer { background: #f5eddf; }
.note-panel { background: var(--yellow); }
.article-toc { background: #d8e7ff; }
.web-profile-page .identity-card { background: linear-gradient(135deg,#ff7044,#ff9662); }
.web-profile-page .profile-large { background: var(--yellow); color: var(--ink); border-color: #ffffff80; }
.web-profile-page .identity-tip, .web-profile-page .input-label { color: #4a281b; }
.web-profile-page .id-strip { background: #fff6e8b8; border-color: #fff3; }
.web-profile-page .id-label, .web-profile-page .id-value { color: #684a2d; }
.web-profile-page .web-auth-button { background: #fff8eb; color: #744323; }
.web-profile-page .web-auth-button:hover { background: #fff0d6; }
.web-account-stats>div.checkin-card, .web-service-records>div.record-card { background: #fffaf0; }

/* Reuse the mini-game home sprite: pad source rect [0,0,850,724]. */
.games-card .arcade {
  width: 260px; height: 221.46px; left: 50%; top: 70px; margin-left: -130px;
  border: 0; border-radius: 0; box-shadow: none;
  background: url('./gamebox-home-art.webp') left top / 255.5294118% 100% no-repeat;
  transform: rotate(-4deg);
  filter: drop-shadow(0 14px 12px rgba(32,20,72,.20));
  animation: gamepad-float 3.4s ease-in-out infinite;
}
.games-card:hover .arcade { animation-duration: 2.8s; }
@keyframes gamepad-float {
  0%,100% { transform: translateY(3px) rotate(-4deg); }
  50% { transform: translateY(-7px) rotate(-1deg); }
}
.games-card .arcade > * { display: none; }
@media(max-width:720px) {
  .games-card .arcade { width: 230px; height: 195.91px; margin-left: -115px; top: 52px; }
}
@media(prefers-reduced-motion:reduce) { .games-card .arcade { animation: none; } }

/* Match each section header to its homepage character. */
.route-hero.tools, .route-hero.games { padding-right: 310px; }
.route-hero.tools::before, .route-hero.games::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none;
  width: 240px; height: 240px; right: 45px; top: 65px;
  filter: drop-shadow(0 12px 12px rgba(73,42,20,.18));
}
.route-hero.tools::before { background: url('./toolbox-chest-v3.png') center / contain no-repeat; animation: chest-float 2.8s ease-in-out infinite; }
.route-hero.games::before { width: 260px; height: 221.46px; right: 35px; top: 78px; background: url('./gamebox-home-art.webp') left top / 255.5294118% 100% no-repeat; animation: gamepad-float 3.4s ease-in-out infinite; }
.route-guide-art { animation: guide-float 3.3s ease-in-out infinite; }
@media(max-width:980px) {
  .route-hero.tools, .route-hero.games { padding-right: 215px; }
  .route-hero.tools::before { width: 170px; height: 170px; right: 24px; }
  .route-hero.games::before { width: 180px; height: 153.32px; right: 20px; }
}
@media(max-width:720px) {
  .route-hero.tools, .route-hero.games { padding-right: 22px; padding-bottom: 150px; }
  .route-hero.tools::before { width: 140px; height: 140px; top: auto; bottom: 4px; right: 16px; }
  .route-hero.games::before { width: 160px; height: 136.28px; top: auto; bottom: 8px; right: 12px; }
}
@media(prefers-reduced-motion:reduce) { .route-hero::before, .route-guide-art { animation: none; } }

/* Tighter section banners: balance the title block against larger artwork. */
@media(min-width:981px) {
  .route-hero { min-height: 280px; padding: 36px 390px 36px 44px; }
  .route-hero.tools, .route-hero.guide, .route-hero.games { padding-right: 390px; }
  .route-hero .back-link { margin-bottom: 26px; }
  .route-hero h1 { margin: 10px 0 12px; font-size: 52px; }
  .route-hero.tools::before { width: 330px; height: 280px; right: 65px; top: 2px; }
  .route-guide-art { width: 260px; height: 260px; right: 85px; top: 18px; }
  .route-hero.games::before { width: 300px; height: 255.53px; right: 70px; top: 16px; }
}
.continue-icon.approved-recent-icon { position:relative; overflow:hidden; background:#fff8ef; border:1px solid #efe0cd; }
.approved-recent-icon img { width:100%; height:100%; object-fit:contain; padding:5px; visibility:hidden; }
.approved-recent-icon[data-art-state="ready"] img { visibility:visible; }
.approved-recent-icon.controller-crop img { position:absolute; width:300%; max-width:none; height:100%; padding:0; object-fit:fill; left:0; top:0; }
.recent-art-loading { width:22px; height:22px; border:2px solid #ead9c4; border-top-color:#ad7144; border-radius:50%; animation:recent-art-spin .8s linear infinite; position:absolute; }
.recent-art-loading[hidden],.recent-art-retry[hidden] { display:none; }
.recent-art-retry { position:absolute; inset:0; background:#fff8ef; color:#795138; font-size:12px; border:0; cursor:pointer; min-height:44px; }
@keyframes recent-art-spin { to { transform:rotate(360deg); } }
:root { --qiguai-approved-theme: approved-game-gradient-3; }

/* Keep primary navigation centered independently of either action column. */
html { scrollbar-gutter: stable; }
@media (min-width:721px) {
  .site-header .header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .site-header .header-inner > .brand { justify-self:start; }
  .site-header .header-inner > .desktop-nav { justify-self:center; }
  .site-header .header-inner > .header-actions,
  .site-header .header-inner > .profile-button { justify-self:end; }
}
@media (min-width:721px) and (max-width:860px) {
  .site-header .desktop-nav .nav-link { padding-inline:14px; }
}

/* Approved warm website system: desktop tools and curated recommendations. */
.curated-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;gap:20px; }
.curated-card { display:flex;flex-direction:column;min-height:320px;padding:30px;border:var(--border);border-radius:24px;box-shadow:var(--shadow);transition:transform .22s,box-shadow .22s; }
.curated-card:hover { transform:translateY(-4px);box-shadow:0 14px 32px #49351f14; }
.curated-card[hidden] { display:none; }
.curated-card h3 { font-size:28px;letter-spacing:-.035em;font-weight:650;margin:0 0 10px; }
.curated-card p { max-width:430px;font-size:15px;line-height:1.75;color:#665746;margin:0; }
.curated-top { display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#665746; }
.curated-label { padding:5px 10px;background:#ffffff9c;border-radius:999px; }
.curated-currency { background:radial-gradient(ellipse at 85% 10%,#ffebaa,transparent 65%),linear-gradient(135deg,#fff1dc,#ffd9bf); }
.curated-lookup { background:radial-gradient(ellipse at 90% 10%,#f5ffef,transparent 60%),linear-gradient(135deg,#e6efe4,#c7ded4); }
.curated-guide { background:linear-gradient(135deg,#f4e5ce,#e6c79e); }
.curated-games { background:linear-gradient(135deg,#fff4d6,#ebc181); }
.curated-visual { flex:1;display:flex;align-items:center;justify-content:center;gap:20px;min-height:120px;margin:12px 0 24px; }
.curated-visual.resource-visual { position:relative;min-height:180px;height:180px;margin:10px 0 18px; }
.resource-visual>img { display:block;width:100%;height:100%;max-width:460px;object-fit:contain;opacity:0; }
.resource-visual[data-resource-state=ready]>img { opacity:1; }
.artwork-loading { position:absolute;width:30px;height:30px;border:3px solid #806c4925;border-top-color:#a48154;border-radius:50%;animation:resource-spin .8s linear infinite; }
.resource-visual[data-resource-state=ready] .artwork-loading { display:none; }
.resource-visual[data-resource-state=error] .artwork-loading { width:auto;height:auto;border:0;border-radius:12px;background:#fff9;padding:12px;animation:none;font-size:13px;color:#79644a;cursor:pointer; }
.currency-token { display:flex;align-items:center;gap:14px;padding:20px 26px;background:#fff9;border:1px solid #ffffffa8;border-radius:18px;box-shadow:0 8px 22px #91652b0b;transform:rotate(-4deg);font-size:24px;font-weight:650; }
.currency-token:last-child { transform:rotate(4deg); }
.currency-token b { color:#9b623c;font-weight:500; }
.curated-swap { width:34px;height:34px;flex-shrink:0; }
.lookup-token { padding:18px 20px;border:1px solid #fff9;border-radius:16px;background:#fff8;font-size:18px;font-weight:550;color:#35594b; }
.curated-footer { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:22px;font-size:12px;color:#665746; }
.curated-action { display:inline-flex;align-items:center;gap:12px;font-size:14px;color:#191814;font-weight:550; }
.curated-action svg { width:30px;height:30px;padding:7px;border-radius:50%;background:#191814;color:#fff; }
.curated-card.compact-curated { min-height:240px; }
.compact-curated h3 { margin-top:24px; }
.curated-heading h2 { font-size:32px; }
/* Native logic stays intact; its browser presentation follows the public site. */
body[data-page=currency],body[data-page=lookup] { background:#fff9ed; }
.tool-site-header .header-inner { width:min(1180px,calc(100% - 40px)); }
.tool-site-header .brand-symbol { animation:none; }
.tool-site-footer { padding:28px 0;border-top:1px solid #49351f12;color:#796b5b;font-size:12px;margin-top:40px; }
.tool-site-footer>div { display:flex;justify-content:space-between;gap:20px; }
body[data-page=currency] #native-app,body[data-page=lookup] #native-app { width:min(1180px,calc(100% - 40px));max-width:1180px;margin:30px auto;min-height:calc(100vh - 210px);border-radius:0;box-shadow:none;overflow:visible; }
#native-app :is(.currency-page,.lookup-page) { padding:0;background:transparent;min-height:0; }
#native-app .native-safe { display:none; }
#native-app .page-header { padding:0 0 24px!important;min-height:100px; }
#native-app .header-title,#native-app .lookup-page .header-title { font-size:38px;line-height:1.25;letter-spacing:-.04em;font-weight:650; }
#native-app .header-eyebrow { font-size:12px;font-weight:400;color:#796b5b; }
#native-app :is(.back-button,.back-btn) { background:#fffdf7;border:1px solid #49351f18;color:#49351f;box-shadow:none;border-radius:12px; }
#native-app .quota-badge { border:1px solid #d9cbae;background:#f5eddb;font-size:12px;font-weight:500; }
#native-app .guide-card { background:#fff4e1;border:1px solid #ebd9b8;border-radius:14px;padding:16px 20px;margin-bottom:22px; }
#native-app .guide-mark { background:#f4dfb6;color:#744323;font-size:12px;font-weight:550; }
#native-app .guide-copy { color:#6d5b47;font-size:14px;line-height:1.6; }
#native-app :is(.mode-tabs,.lookup-tabs) { border:1px solid #e7ddce;background:#f3ecdf;border-radius:14px;padding:4px;gap:4px;max-width:none;width:max-content;min-width:440px;margin:0 0 24px; }
#native-app :is(.mode-tab,.lookup-tab) { min-height:44px;line-height:1.4;border:0;border-radius:10px;background:transparent;color:#7a6b5c;font-size:15px;font-weight:500; }
#native-app :is(.mode-tab-active,.lookup-tab-selected) { background:#fffdf7;color:#49351f;box-shadow:0 2px 8px #49351f09; }
#native-app .mode-tab-active::before { display:none; }
#native-app :is(.currency-converter,.currency-board,.lookup-editor,.lookup-result) { border:1px solid #e8dfd2;border-radius:24px;background:#fffdf7;box-shadow:0 8px 28px #49351f07; }
#native-app .currency-section-label { font-size:13px;color:#8c7054;font-weight:500;letter-spacing:.03em; }
#native-app .country-select { background:#f9f3e9;border:1px solid #e6d8c4;border-radius:16px;box-shadow:none;min-height:80px; }
#native-app .country-select-copy { border-left:3px solid #d9a55e; }
#native-app .country-select-code { background:#fffdf7;border:1px solid #e6d8c4;color:#84633f; }
#native-app .country-name { font-size:20px;font-weight:550; }
#native-app .currency-name { font-size:13px; }
#native-app .swap-button { background:#ffdfa1;color:#744323;box-shadow:0 4px 14px #d9a55e25;border:3px solid #fffdf7; }
#native-app :is(.result-symbol,.result-number) { color:#a4662e;font-weight:600; }
#native-app :is(.amount-input,.result-number) { font-size:44px; }
#native-app :is(.amount-prefix,.amount-code,.result-code) { font-weight:500;color:#8c7054; }
#native-app .lookup-page .lookup-input { background:#f9f4eb;border:1px solid #e5d8c5;border-radius:14px;color:#49351f; }
#native-app .lookup-page .lookup-query { background:#49351f;border:0;border-radius:12px;color:#fffdf7;font-size:16px;font-weight:550;min-height:48px; }
#native-app .lookup-page :is(.lookup-my-ip,.lookup-copy) { min-height:44px;background:#f5e6c9;border:1px solid #e5cda3;color:#744323;border-radius:10px;font-size:13px; }
#native-app :is(.section-title,.lookup-query-value) { font-weight:600;color:#49351f; }
#native-app .lookup-page .lookup-result { background:linear-gradient(145deg,#fffdf7,#f9f0df); }
#native-app .lookup-row { padding:14px 0;border-color:#e5d8c5;font-size:15px; }
#native-app .lookup-note { color:#796b5b;font-size:13px;line-height:1.7; }
.tool-site-header .mobile-tool-nav { display:none; }
.lookup-empty-panel { display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:28px;border:1px dashed #dacbb6;border-radius:24px;background:linear-gradient(145deg,#fffaf0,#f7efde);text-align:center; }
.lookup-empty-symbol { display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#efe1c9;color:#a48154;margin-bottom:18px; }
.lookup-empty-symbol svg { width:28px;height:28px;stroke-width:1.5; }
.lookup-empty-panel h2 { font-size:18px;font-weight:550;color:#79644a;margin:0 0 8px; }
.lookup-empty-panel p,.lookup-empty-note { font-size:13px;color:#8a7860;line-height:1.7;margin:0; }
.lookup-empty-note { margin-top:18px;font-size:12px; }
/* Never swap an alternate artwork into an approved character slot. */
.header-character[data-resource-state=loading] .character-float,.header-character[data-resource-state=error] .character-float { visibility:hidden; }
.header-character[data-resource-state=loading]::after { content:"";position:absolute;left:calc(50% - 17px);top:calc(50% - 17px);width:30px;height:30px;border:3px solid #49351f25;border-top-color:#744323;border-radius:50%;animation:resource-spin .8s linear infinite; }
.header-character[data-resource-state=error]::after { content:"加载失败，点击重试";display:grid;place-items:center;position:absolute;inset:20px;font-size:14px;color:#49351f;background:#fff4e1e8;border-radius:16px; }
@keyframes resource-spin { to { transform:rotate(360deg); } }
@media(min-width:768px) {
 #native-app .lookup-page { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0 24px; }
 #native-app .lookup-editor { padding:28px; }
 #native-app .lookup-result { padding:28px; }
 #native-app .lookup-page>.lookup-result { grid-column:2;grid-row:4; }
 .lookup-empty-panel { grid-column:2;grid-row:4;align-self:start; }
}
@media(max-width:767px) {
 body[data-page=currency] #native-app,body[data-page=lookup] #native-app { width:calc(100% - 28px);margin:24px auto; }
 .tool-site-header .header-inner { width:calc(100% - 28px);min-height:66px; }
 .tool-site-header .mobile-tool-nav { display:flex;gap:20px;padding:0 14px 12px;font-size:13px;color:#796b5b; }
 .mobile-tool-nav a.active { color:#49351f;font-weight:600; }
 #native-app .header-title,#native-app .lookup-page .header-title { font-size:30px; }
 #native-app .page-header { min-height:80px; }
 #native-app .guide-card { padding:14px; }
 #native-app .guide-copy { font-size:13px; }
 #native-app :is(.mode-tabs,.lookup-tabs) { width:100%;min-width:0; }
 #native-app :is(.mode-tab,.lookup-tab) { font-size:13px; }
 #native-app .country-name { font-size:18px; }
 #native-app :is(.amount-input,.result-number) { font-size:36px; }
 .tool-site-footer>div { flex-direction:column;gap:8px; }
 .curated-grid { grid-template-columns:1fr;gap:16px; }
 .curated-card { min-height:300px;padding:24px; }
 .curated-card h3 { font-size:25px; }
 .currency-token { padding:16px;font-size:20px; }
 .curated-visual { gap:12px; }
 .lookup-token { padding:16px;font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { .curated-card { transition:none; }.header-character[data-resource-state=loading]::after { animation:resource-spin 1.8s linear infinite; } }

body[data-page=mini-tool] { background:#fff9ed; }
body[data-page=mini-tool] #native-app { width:min(1180px,calc(100% - 40px));max-width:1180px;margin:30px auto;min-height:calc(100vh - 250px);border-radius:0;overflow:visible;box-shadow:none;background:transparent; }
#native-app .native-safe { display:none; }
body[data-page=mini-tool] #native-app>div { background:transparent; }
body[data-tool=dice] #native-app { width:min(750px,calc(100% - 28px));max-width:750px; }
body[data-tool=dice] #native-app .dice-page { width:100%;height:calc(100vh - 120px);min-height:600px;overflow:hidden; }
body[data-page=mini-tool] #native-app .page-header { padding-bottom:24px; }
body[data-page=mini-tool] #native-app .header-title { font-size:36px;line-height:1.3;font-weight:650;letter-spacing:-.035em; }
body[data-page=mini-tool] #native-app .header-eyebrow { font-size:12px;color:#8c7054; }
body[data-page=mini-tool] #native-app :is(.editor-card,.preview-card,.result-card,.content-card,.control-card,.result-panel,.section-card) { border:1px solid #e8dfd2;background:#fffdf7;border-radius:20px;box-shadow:0 8px 26px #49351f06; }
body[data-page=mini-tool] #native-app .guide-card { background:#fff1d6;border:1px solid #e8d4ae;border-radius:14px;color:#684626; }
body[data-page=mini-tool] #native-app .guide-copy { font-size:14px;line-height:1.7; }
body[data-page=mini-tool] #native-app .primary-button { background:#49351f;color:#fffdf7;border:0;border-radius:12px;box-shadow:none;font-size:16px;min-height:48px; }
#native-app textarea { display:block;width:100%;font:inherit;resize:vertical;border:1px solid #e3d5be;border-radius:12px;padding:12px;background:#f9f3e8;color:#49351f; }
.web-picker { position:relative; }
.web-picker>select,.web-picker>input { width:100%;min-height:42px;font:inherit;color:#684626;background:#faf1df;border:1px solid #dfc9a4;border-radius:10px;padding:8px;margin-top:6px; }
.web-scroll-view { max-width:100%;overflow:auto; }
.web-date-wheels { display:flex;gap:8px;height:auto!important;padding:14px; }.web-date-wheels select { min-width:0;flex:1;min-height:48px;padding:8px;border:1px solid #dfc9a4;border-radius:10px;background:#fff3dc;font:inherit;color:#684626; }
.web-user-avatar { width:44px;height:44px;display:grid;place-items:center;background:#f4dfb6;border-radius:50%;overflow:hidden; }.web-user-avatar img { width:100%;height:100%;object-fit:cover; }
.mini-asset-loader { position:absolute;left:calc(50% - 11px);top:calc(50% - 11px);width:20px;height:20px;border:2px solid #dfc9a4;border-top-color:#a4743b;border-radius:50%;animation:resource-spin .8s linear infinite; }
.mini-page-loading { min-height:260px;display:flex;align-items:center;justify-content:center;gap:14px;color:#8c7054;font-size:14px; }.mini-page-loading>span { width:24px;height:24px;border:2px solid #dfc9a4;border-top-color:#a4743b;border-radius:50%;animation:resource-spin .8s linear infinite; }
.mini-asset-error { position:absolute;left:10%;right:10%;top:40%;padding:10px;background:#fff3dc;border-radius:10px;font-size:12px;color:#8c7054;cursor:pointer; }
.tool-directory-controls { margin-top:28px;display:flex;flex-wrap:wrap;gap:18px;justify-content:space-between;align-items:center; }
.tool-directory-controls input { min-height:48px;width:300px;max-width:100%;border:1px solid #e5d4b7;border-radius:14px;background:#fffdf7;padding:0 16px;font:inherit;font-size:14px; }
.tool-directory-controls nav { display:flex;flex-wrap:wrap;gap:8px; }.tool-directory-controls button { min-height:44px;border:1px solid #e5d4b7;border-radius:999px;background:#fffdf7;color:#8c7054;padding:8px 14px;font:inherit;font-size:13px;cursor:pointer; }.tool-directory-controls button[aria-pressed=true] { background:#49351f;border-color:#49351f;color:#fff9ed; }
.catalog-grid.all-tools-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-top:24px; }
.all-tools-grid .catalog-card { position:relative;padding:22px;min-height:280px; }.all-tools-grid .catalog-card[hidden] { display:none; }.all-tools-grid .catalog-card h2 { font-size:22px;margin-top:16px; }.all-tools-grid .catalog-card>p { font-size:14px;line-height:1.7; }.all-tools-grid .tag-row { margin-top:16px; }.all-tools-grid .tag-row span { font-size:11px; }.all-tools-grid .catalog-card-bottom { padding-top:18px; }.all-tools-grid .catalog-card-bottom small { font-size:11px; }
.directory-icon { position:relative;display:block;width:60px;height:60px;border-radius:16px;overflow:hidden;margin-top:18px; }.directory-icon img { width:100%;height:100%;object-fit:contain; }.tool-directory-empty { text-align:center;color:#8c7054;padding:40px; }
@media(max-width:980px) { .catalog-grid.all-tools-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .catalog-grid.all-tools-grid { grid-template-columns:1fr; }.tool-directory-controls input { width:100%; } }
body[data-page=mini-tool] #native-app input[type=range] { accent-color:#b88040; }
#mini-auth-banner { width:min(1180px,calc(100% - 40px));margin:20px auto 0;padding:14px 18px;border:1px solid #e5c895;border-radius:12px;background:#fff0d1;color:#744323;font-size:14px; }
#mini-auth-banner a { float:right;text-decoration:underline; }
.mini-modal { min-width:300px;max-width:min(90vw,520px);padding:26px;border:1px solid #e5d4b7;border-radius:20px;background:#fff9ed;color:#49351f;box-shadow:0 25px 80px #24170730; }
.mini-modal::backdrop,.mini-image-dialog::backdrop { background:#21180a70; }
.mini-modal h2 { font-size:20px;margin:0 0 16px; }.mini-modal p { line-height:1.8;font-size:15px; }
.mini-modal input { min-height:44px;border:1px solid #dfc9a4;border-radius:10px;padding:10px;width:100%; }
.mini-modal button { display:block;min-height:44px;width:100%;border:1px solid #dfc9a4;border-radius:10px;padding:10px 16px;background:#f5e5c5;color:#744323;cursor:pointer;margin-top:12px; }
.mini-modal>div { display:flex;gap:12px; }.mini-modal>div button:last-child { background:#49351f;color:#fff9ed; }
.mini-image-dialog { border:0;border-radius:20px;padding:18px;background:#fff9ed;max-width:90vw; }.mini-image-dialog img { max-width:85vw;max-height:75vh;object-fit:contain;display:block; }.mini-image-dialog button { min-height:44px;padding:10px 22px;border:0;background:#49351f;color:#fff9ed;border-radius:10px;margin-top:12px; }
@media(min-width:900px) { body[data-page=mini-tool] #native-app :is(.signature-page,.handwriting-page) { display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:0 24px;align-items:start; }body[data-page=mini-tool] #native-app :is(.signature-page,.handwriting-page)>.page-header,body[data-page=mini-tool] #native-app :is(.signature-page,.handwriting-page)>.guide-card { grid-column:1/-1; }body[data-page=mini-tool] #native-app :is(.signature-page,.handwriting-page)>.preview-card { grid-column:2;grid-row:3; } }
@media(max-width:767px) { body[data-page=mini-tool] #native-app { width:calc(100% - 28px);margin:24px auto; }body[data-page=mini-tool] #native-app .header-title { font-size:28px; }#mini-auth-banner { width:calc(100% - 28px);font-size:13px; }#mini-auth-banner a { float:none;display:block;margin-top:6px; } }

.route-hero h1 { font-size: clamp(40px,5.6vw,76px); font-weight: 750; letter-spacing: -.04em; }
.route-hero > p { font-size: 20px; line-height: 1.65; }
.route-hero .section-kicker { font-size: 16px; letter-spacing: .04em; }
.route-hero .back-link { font-size: 14px; }
.route-hero.has-character::before { display: none; }
.header-character { position:absolute;z-index:4;right:45px;top:65px;width:240px;height:240px;padding:0;border:0;background:transparent;cursor:pointer;overflow:visible;-webkit-tap-highlight-color:transparent; }
.header-character:focus-visible { outline:2px solid #49351f;outline-offset:4px;border-radius:16px; }
.character-float,.character-content { display:block;position:relative;width:100%;height:100%; }
.character-float { animation:chest-float 3.2s ease-in-out infinite; }
.character-chest img { position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;image-rendering:pixelated; }
.character-chest .chest-body { z-index:2; }.character-chest .chest-body[hidden] { display:none; }
.character-controller { width:260px;height:221.46px;right:35px;top:78px;touch-action:none;user-select:none;cursor:grab; }
.character-controller:active { cursor:grabbing; }
.character-controller .character-float { animation:gamepad-float 3.4s ease-in-out infinite; }
.web-controller-sprite { background:url('./gamebox-home-art.webp') left top / 255.5294118% 100% no-repeat;filter:drop-shadow(0 12px 12px #492a1430); }
.character-book .character-float { animation:guide-float 3.3s ease-in-out infinite; }
.web-book-rig { position:absolute;inset:0;transform:rotate(-4deg);perspective:900px;perspective-origin:26% 50%;transform-style:preserve-3d; }
.web-book-right { position:absolute;left:26%;top:-9%;width:59%;height:118%;overflow:hidden;transform:translateZ(0); }
.web-book-hinge { position:absolute;left:26%;top:-9%;width:59%;height:118%;transform-origin:0% 50%;transform-style:preserve-3d;transition:transform 32ms linear;will-change:transform; }
.web-book-front,.web-book-back { position:absolute;inset:0;width:100%;height:100%;overflow:hidden;backface-visibility:hidden;-webkit-backface-visibility:hidden; }
.web-book-front { top:7.627119%;height:84.745763%;overflow:visible;transform:translateZ(.2px); }
.web-book-back { transform:rotateY(180deg) translateZ(.2px); }
.web-book-front-texture { position:absolute;left:-44.067797%;top:0;width:169.491525%;height:100%;max-width:none;object-fit:fill;pointer-events:none; }
.web-book-left-texture,.web-book-right-texture { position:absolute;top:0;width:200%;height:100%;max-width:none;object-fit:fill;pointer-events:none; }
.web-book-left-texture { left:0; }.web-book-right-texture { left:-100%; }
@media(min-width:981px) {
 .character-chest { width:330px;height:280px;right:205px;top:2px; }
 .character-book { width:260px;height:260px;right:265px;top:18px; }
 .character-controller { width:300px;height:255.53px;right:210px;top:16px; }
 .route-hero { min-height:300px; padding-left:44px; padding-top:28px; padding-bottom:28px; }
 .route-hero .back-link { margin-bottom:22px; }
 .route-hero h1 { margin:10px 0 14px; }
}
@media(min-width:721px) and (max-width:980px) {
 .header-character { width:170px;height:170px;right:74px; }
 .character-controller { width:180px;height:153.32px;right:70px; }
 .character-book { right:94px; }
}
@media(max-width:720px) {
 .route-hero h1 { font-size:40px; }
 .route-hero > p { font-size:16px; }
 .character-chest { width:140px;height:140px;top:auto;bottom:4px;right:56px; }
 .character-book { width:130px;height:130px;top:auto;bottom:4px;right:72px; }
 .character-controller { width:160px;height:136.28px;top:auto;bottom:8px;right:52px; }
}
@media(prefers-reduced-motion:reduce) { .character-float { animation:none!important; }.web-book-hinge { transition:none; } }

/* Phone-only ergonomics; approved colors/artwork and desktop layout stay shared. */
@media (max-width:767px) {
  html { scroll-padding-top:20px; scroll-padding-bottom:96px; }
  body { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
  .hero-search input, .tool-directory-controls input,
  #native-app input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=file]):not(.amount-input),
  #native-app textarea, #native-app select, .mini-modal input, .mini-modal select {
    font-size:16px; min-height:44px; line-height:1.5;
  }
  #native-app textarea { min-height:112px; }
  #native-app :is(input,textarea,select) { scroll-margin-block:24px 96px; }
  #native-app :is(.page-header,.header-copy,.guide-copy,.field-row,.control-row,.preview-card) { min-width:0; }
  #native-app .guide-copy { font-size:14px; }
  #native-app button { min-height:44px; min-width:44px; touch-action:manipulation; }
  #native-app :is(.back,.back-button) {
    width:44px; min-width:44px; max-width:44px; height:44px;
    min-height:44px; max-height:44px; flex:0 0 44px;
    margin-left:0; margin-right:12px;
  }
  #native-app :is(.month-label,.notice,.ledger-entry,.product-category) { min-height:44px; display:flex; align-items:center; }
  #native-app input[type=range] { min-height:44px; touch-action:pan-y; }
  #native-app input[type=checkbox] { min-width:24px; min-height:24px; }
  .tool-site-header .mobile-tool-nav { gap:8px; padding:0 14px 8px; }
  .mobile-tool-nav a { min-height:44px; display:flex; align-items:center; justify-content:center; flex:1; white-space:nowrap; }
  .tool-site-footer a, .site-footer .footer-links a { min-height:44px; display:inline-flex; align-items:center; }
  .quick-searches button { min-height:44px; padding-block:10px; }
  .tool-directory-controls { gap:12px; margin-top:20px; }
  .tool-directory-controls input { width:100%; }
  .tool-directory-controls nav {
    width:100%; min-width:0; flex-wrap:nowrap; overflow-x:auto;
    padding:2px 0 8px; scroll-padding-inline:12px; overscroll-behavior-inline:contain;
  }
  .tool-directory-controls nav button { flex:0 0 auto; white-space:nowrap; }
  .mini-modal, .mini-image-dialog {
    box-sizing:border-box; width:min(440px,calc(100% - 24px)); max-width:calc(100% - 24px);
    max-height:calc(var(--web-visual-height,100dvh) - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow:auto; overscroll-behavior:contain; padding:20px; border-radius:18px;
  }
  .mini-modal button, .mini-image-dialog button { min-height:44px; }
  .mini-modal p { overflow-wrap:anywhere; line-height:1.7; }
  .mini-modal > div { display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end; }
  .mini-modal input { width:100%; min-width:0; }
  body[data-web-keyboard=open] .mini-modal[open] {
    top:calc(var(--web-visual-offset,0px) + 12px + env(safe-area-inset-top));
    bottom:auto; margin-top:0; margin-bottom:0;
  }
  .mini-image-dialog img { width:auto; max-width:100%; max-height:calc(var(--web-visual-height,100dvh) - 160px); }
  .web-date-wheels { padding:10px; gap:6px; }
  .web-date-wheels select { font-size:16px; min-height:48px; padding:6px; }
  #native-toast, .toast { bottom:calc(84px + env(safe-area-inset-bottom)); line-height:1.5; }
  .mobile-nav { padding-bottom:env(safe-area-inset-bottom); }
  .site-footer, .tool-site-footer { padding-bottom:calc(88px + env(safe-area-inset-bottom)); }
  .country-overlay { padding-bottom:env(safe-area-inset-bottom); }
  .country-picker, .date-picker-panel { max-height:calc(var(--web-visual-height,100dvh) - 100px); overflow:auto; }
  .picker-list .picker-row { min-height:48px; }
  .compress-fields { min-width:0; }
  .compress-fields select { max-width:100%; }
  .compress-page .file-drop { padding:18px 12px; }
}
@media (max-width:720px) {
  html { scrollbar-gutter:auto; }
  body[data-web-keyboard=open] .mobile-nav { display:none; }
}
@media (max-width:720px) {
  .site-header .profile-button {
    width:44px; min-width:44px; height:44px; min-height:44px;
    padding:0; gap:0; display:grid; place-items:center; flex:0 0 44px;
  }
  .site-header .profile-button > svg, .site-header .profile-button > span:not(.profile-icon-bg) { display:none; }
  .site-header .profile-button .profile-icon-bg { width:34px; height:34px; min-width:34px; display:grid; place-items:center; }
  .site-header .profile-icon-bg svg { width:22px; height:22px; display:block; }
  .route-hero.tools, .route-hero.guide, .route-hero.games {
    min-height:0; margin-top:16px; padding:24px 22px 116px; border-radius:24px;
  }
  .route-hero .back-link { margin-bottom:22px; }
  .route-hero .section-kicker { margin:0; font-size:14px; }
  .route-hero h1 { margin:8px 0 10px; font-size:clamp(28px,8.2vw,34px); line-height:1.2; }
  .route-hero > p { margin:0 0 16px; font-size:15px; line-height:1.65; }
  .route-hero .hero-pill { font-size:12px; }
  .route-hero .character-chest { width:200px; height:170px; top:auto; bottom:8px; right:14px; }
  .route-hero .character-book { width:142px; height:142px; top:auto; bottom:10px; right:38px; }
  .route-hero .character-controller { width:180px; height:153.32px; top:auto; bottom:4px; right:26px; }
}
/* Suppress double-tap zoom; keep panning and pinch zoom available. */
@media (max-width:767px) {
  html { touch-action:manipulation; }
}
.mobile-menu-toggle,.mobile-side-drawer{display:none}
@media (max-width:720px) {
  html[data-mobile-navigation=drawer] .mobile-nav,html[data-mobile-navigation=drawer] .mobile-tool-nav{display:none!important}
  .mobile-menu-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:44px;min-height:44px;padding:8px;border:1px solid #e6d7be;border-radius:13px;background:#fffaf0;color:#49351f;cursor:pointer}
  .mobile-menu-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  html[data-mobile-navigation=drawer] .header-inner{gap:10px;display:flex}
  html[data-mobile-navigation=drawer] .header-inner .brand{margin-right:auto}
  .mobile-side-drawer[open]{display:block;position:fixed;inset:0 auto 0 0;margin:0;width:min(300px,82vw);max-width:82vw;height:100dvh;max-height:100dvh;padding:calc(22px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));box-sizing:border-box;border:0;border-right:1px solid #e7d8c1;border-radius:0 24px 24px 0;background:#fff9ed;color:#181714;overflow-y:auto;box-shadow:12px 0 40px #49351f24}
  .mobile-side-drawer::backdrop{background:#2c201c38;backdrop-filter:blur(5px)}
  .mobile-drawer-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}
  .mobile-drawer-heading strong{font-size:25px}.mobile-drawer-heading button{width:44px;height:44px;border:1px solid #e7d8c1;border-radius:14px;background:#fffdf7;color:#49351f;font-size:28px;cursor:pointer}
  .mobile-side-drawer nav{display:grid;gap:10px}.mobile-side-drawer nav a{display:flex;align-items:center;gap:16px;min-height:56px;padding:14px 18px;box-sizing:border-box;border:1px solid transparent;border-radius:17px;font-size:17px;font-weight:600;color:#49351f;text-decoration:none}
  .mobile-side-drawer nav a.active{background:#ffe4a0;border-color:#e9c96e;color:#352517}.mobile-side-drawer nav svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8}.mobile-side-drawer nav a:active{background:#fff0c9}
  body.mobile-drawer-open{overflow:hidden}
  html[data-mobile-navigation=drawer] .site-footer,html[data-mobile-navigation=drawer] .tool-site-footer{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
  html[data-mobile-navigation=drawer] body{padding-bottom:0}
}

:root{--mobile-drawer-styles-ready:1}

/* User-approved profile artwork; never flash the previous yellow icon. */
.site-header .profile-icon-bg{background:transparent;border:0;position:relative;width:40px;height:40px;flex-basis:40px}
.site-header .profile-icon-bg svg{display:none!important}
.site-header .profile-icon-bg:not([data-approved-avatar=ready])::before{content:"";width:16px;height:16px;border:2px solid #e8d4bc;border-top-color:#bd694b;border-radius:50%;animation:approved-avatar-spin .8s linear infinite}
.site-header .profile-icon-bg[data-approved-avatar=error]::before{content:"!";animation:none;border:1px solid #bc6a49;display:grid;place-items:center;color:#87482f;font-size:12px}
.site-header .profile-icon-bg .approved-profile-avatar{display:block;width:44px;height:44px;max-width:none;object-fit:contain}
@keyframes approved-avatar-spin{to{transform:rotate(360deg)}}
@media(max-width:720px){.site-header .profile-button .profile-icon-bg{width:40px;height:40px;min-width:40px}.site-header .profile-button{border:0;background:transparent;box-shadow:none}.site-header .profile-icon-bg .approved-profile-avatar{width:44px;height:44px}}
/* Center the artwork canvas inside its slot, including its transparent margin. */
.site-header .profile-icon-bg .approved-profile-avatar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}

/* Match the approved artwork silhouette; exclude stray alpha pixels outside its rim. */
.site-header .profile-icon-bg .approved-profile-avatar{clip-path:ellipse(42.3% 43% at 50% 50%);image-rendering:auto}

.route-hero.tools::before{display:none!important}
