:root{--paper-50: #fffdf9;--paper-100: #f5f1ea;--paper-200: #ebe4d9;--paper-300: #ddd4c6;--ink-900: #2b2723;--ink-600: #665e56;--ink-400: #8a8177;--wood-600: #8a5a3b;--wood-700: #6f4529;--wood-300: #c9a987;--wood-100: #efe4d6;--char-800: #26262c;--char-700: #3a3a44;--red-600: #a4443c;--red-200: #e5c8c4;--red-100: #f5e4e1;--lamp: #f3c98b;--color-bg: var(--paper-100);--color-surface: var(--paper-50);--color-ink: var(--ink-900);--color-ink-soft: var(--ink-600);--color-accent: var(--wood-600);--color-accent-soft: var(--wood-100);--color-line: #e2dbd0;--color-night: var(--char-800);--color-sunken: var(--paper-200);--color-ink-faint: var(--ink-400);--color-accent-press: var(--wood-700);--color-accent-line: var(--wood-300);--color-line-strong: #cbbfae;--color-danger: var(--red-600);--color-danger-line: var(--red-200);--color-danger-soft: var(--red-100);--color-band: rgba(248,244,238,.93);--shadow-paper: 0 1px 0 rgba(43, 39, 35, .04), 0 2px 6px rgba(43, 39, 35, .06);--shadow-lift: 0 4px 14px rgba(43, 39, 35, .12);--shadow-sheet: 0 -8px 28px rgba(43, 39, 35, .18);--fs-20: 20px;--fs-17: 17px;--fs-15: 15px;--fs-13: 13px;--fs-12: 12px;--radius-s: 8px;--radius-m: 14px;--radius-l: 22px;--radius-pill: 999px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--safe-left: env(safe-area-inset-left, 0px);--safe-right: env(safe-area-inset-right, 0px);--font-ui: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif}*{box-sizing:border-box;margin:0;padding:0}html{height:100%}body{height:100dvh;overflow:hidden;overscroll-behavior:none;background:var(--color-bg);color:var(--color-ink);font-family:var(--font-ui);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;touch-action:manipulation}#root{height:100%;display:flex;justify-content:center}button{font-family:inherit;font-size:inherit;color:inherit;border:none;background:none;cursor:pointer}.app{position:relative;width:100%;max-width:480px;height:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--color-bg);padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}.home{height:100%;display:grid;grid-template-columns:1fr auto auto 1fr;grid-template-rows:minmax(0,1fr) auto auto auto;background:url(/assets/backgrounds/bedroom.png) center / cover no-repeat}.home>.stage{grid-column:1 / -1;grid-row:1}.home-top{position:absolute;z-index:3;top:calc(12px + var(--safe-top));left:12px}.home-date{position:relative;display:inline-block;padding:4px 10px;font-size:var(--fs-12);letter-spacing:.04em;color:var(--color-ink-soft);background:#fffdf9e0;border-radius:6px;box-shadow:var(--shadow-paper)}.home-date:before{content:"";position:absolute;top:-6px;left:50%;width:28px;height:11px;margin-left:-14px;background:#c9a9878c;border-radius:2px;transform:rotate(-4deg)}.stage{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:14px;padding-bottom:6px}.stage-character{position:relative;width:min(64vw,280px);aspect-ratio:9 / 16;transition:transform .05s ease}.stage-character:active{transform:scale(.985)}.character-canvas{position:absolute;top:0;right:0;bottom:0;left:0;transform-origin:50% 100%;animation:breathe 4s ease-in-out infinite;transition:opacity .18s ease}.character-canvas.is-pending{opacity:0;visibility:hidden;transition:none}.char-layer{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:contain;pointer-events:none}.char-layer-fade{animation:expr-fade .18s ease}.char-blink{opacity:0;transition:opacity .06s linear}.char-blink.is-blinking{opacity:1}@keyframes breathe{0%,to{transform:scaleY(1)}50%{transform:scaleY(1.012)}}@keyframes expr-fade{0%{opacity:0}to{opacity:1}}.stage-bubble{position:relative;max-width:82%;padding:10px 18px;background:#fffdf9f5;border:1px solid var(--color-line);border-radius:18px;box-shadow:var(--shadow-lift);font-size:15px;line-height:1.65;color:var(--color-ink);animation:bubble-in .25s ease}@keyframes bubble-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.action-bar{grid-column:1 / -1;grid-row:4;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;padding:2px 8px 8px;background:var(--color-band);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.action-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:56px;border-radius:var(--radius-m);background:transparent;font-size:var(--fs-13);color:var(--color-ink);transition:background .15s ease}.action-btn svg{flex:none;width:24px;height:24px;color:var(--color-ink-soft)}.action-btn:active{background:var(--color-accent-soft)}.page{height:100%;display:flex;flex-direction:column;background-color:var(--color-bg);background-image:radial-gradient(rgba(70,52,34,.045) .6px,transparent .8px);background-size:4px 4px}.page-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:4px 12px;background:var(--color-band);border-bottom:1px solid var(--color-line)}.back-btn{justify-self:start;min-height:44px;padding:0 12px 0 8px;border-radius:var(--radius-s);font-size:var(--fs-15);color:var(--color-accent)}.back-btn:active{background:var(--color-accent-soft)}.page-header .back-btn:focus-visible{outline-offset:1px}.back-glyph{font-size:22px;line-height:1;vertical-align:-.15em}.page-title{font-size:var(--fs-17);font-weight:600;letter-spacing:.06em}.page-body{flex:1;min-height:0;overflow-y:auto;padding:16px}.placeholder-text{font-size:14px;color:var(--color-ink-soft)}.landscape-hint{display:none;position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;align-items:center;justify-content:center;padding:24px;text-align:center;background:var(--color-bg);color:var(--color-ink-soft);font-size:16px}@media (orientation: landscape) and (max-height: 500px){.landscape-hint{display:flex}}@media (prefers-reduced-motion: reduce){*{transition:none!important;animation:none!important}}.boot{height:100%;display:flex;align-items:center;justify-content:center;color:var(--color-ink-soft);font-size:15px}input,textarea{user-select:text;-webkit-user-select:text;font-family:inherit}.settings-section{margin-bottom:16px;padding:16px;border:1px solid var(--color-line);border-radius:16px;background:var(--color-surface);box-shadow:var(--shadow-paper)}.settings-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:var(--fs-15);font-weight:600}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}.field label{font-size:14px}.field input{min-height:48px;padding:10px 14px;border:1px solid var(--color-line-strong);border-radius:12px;background:var(--color-surface);font-size:var(--fs-15);color:var(--color-ink)}.field input:focus{outline:none;border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-soft)}.btn{display:block;width:100%;min-height:48px;margin-bottom:10px;padding:4px 16px;border:1px solid var(--color-line-strong);border-radius:12px;background:var(--color-surface);box-shadow:var(--shadow-paper);font-size:var(--fs-15);font-weight:500;transition:background .15s ease}.btn:active{background:var(--color-accent-soft)}.btn-danger{color:var(--color-danger);border-color:var(--color-danger-line)}.btn-danger:active{background:var(--color-danger-soft)}.settings-note{font-size:var(--fs-13);line-height:1.7;color:var(--color-ink-soft)}.page-hint,.field-hint{font-size:var(--fs-13);line-height:1.6;color:var(--color-ink-soft)}.page-hint{margin:4px 0 6px}.field-hint{margin:4px 0}.neko-hint{flex:none;margin:6px 12px 0;font-size:13px;line-height:1.5;color:var(--color-ink-soft)}.page-body--plain:has(.neko-feedback>button[aria-disabled=false]) .neko-hint{display:none}.check-row+.field-hint{margin-top:-10px;margin-bottom:16px}.settings-section--danger{margin-top:28px;border-color:var(--color-danger-line)}.btn-primary{background:var(--color-accent);border-color:var(--color-accent);color:#fff}.btn-primary:active{background:var(--color-accent-press)}.btn-primary:disabled{opacity:.5}.restore-preview{margin-top:8px;border-color:var(--color-accent-line);box-shadow:var(--shadow-lift)}.restore-preview p+p{margin-top:6px}.restore-preview-actions{display:flex;gap:10px;margin-top:14px}.restore-preview-actions .btn{flex:1;margin-bottom:0}.backup-hint{margin:-4px 0 14px;font-size:13px;line-height:1.6;color:var(--color-ink-soft)}.backup-hint.is-stale{color:var(--color-danger)}.backup-hint.is-stale:before{content:"";display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:50%;background:currentColor;vertical-align:middle}.about-version{display:flex;align-items:center;gap:12px;margin-bottom:12px;font-size:14px;line-height:1.6}.about-version img{flex:none;width:40px;height:40px;border-radius:10px;box-shadow:var(--shadow-paper)}.about-diagnostics{display:block;width:100%;max-height:50vh;margin-bottom:6px;border-color:var(--color-line-strong);border-radius:12px;background:var(--color-sunken);font-size:12.5px;line-height:1.55;resize:none}.about-status{font-size:13px;line-height:1.6;color:var(--color-ink-soft)}.settings-heading>svg{flex:none;width:18px;height:18px;color:var(--color-accent)}.settings-section--danger .settings-heading>svg{color:var(--color-danger)}.settings-section .btn>svg{width:18px;height:18px;margin-right:8px;vertical-align:-3px;color:var(--color-accent)}.settings-section .btn-primary>svg{color:inherit}.settings-note:has(>svg){display:flex;align-items:flex-start;gap:8px;font-size:14px;color:var(--color-ink)}.settings-note>svg{flex:none;width:18px;height:18px;margin-top:3px;color:var(--color-accent)}.settings-section>:last-child,.settings-section .btn:has(+.about-status:empty){margin-bottom:0}.restore-preview>.settings-heading{color:var(--color-accent-press)}.restore-preview>p{font-size:14px;line-height:1.7}.restore-preview>.settings-heading+p{font-size:var(--fs-15);font-weight:500}.restore-preview:has(.restore-preview-actions .btn-primary:disabled):has(.restore-preview-actions .btn:not(.btn-primary):enabled)>p:nth-of-type(n+3){color:var(--color-danger)}.memory-edit-actions{display:flex;gap:10px}.memory-edit-actions .btn{flex:1;margin-bottom:0}.memory-forget-group{margin-top:28px}.memory-forget-note{margin-bottom:8px;font-size:12px;line-height:1.7;color:var(--color-ink-soft)}.wardrobe-preview{position:relative;height:340px;margin-bottom:20px;border-radius:20px;overflow:hidden;background:url(/assets/backgrounds/bedroom.png) 38% 78% / 170% auto no-repeat var(--color-sunken);box-shadow:var(--shadow-lift)}.wardrobe-preview:before{content:"";position:absolute;left:50%;bottom:12px;width:120px;height:16px;margin-left:-60px;border-radius:50%;background:radial-gradient(closest-side,rgba(43,39,35,.28),transparent)}.wardrobe-preview:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #2b27230f;pointer-events:none}.wardrobe-preview .stage-character{position:absolute;left:50%;bottom:-26px;width:200px;margin-left:-100px}.wardrobe-preview .stage-character:focus-visible{outline:none}.wardrobe-preview:has(>.stage-character:focus-visible){outline:3px solid var(--color-ink);outline-offset:2px}@media (max-width: 340px){.wardrobe-preview{height:280px}.wardrobe-preview .stage-character{bottom:-22px;width:166px;margin-left:-83px}}.wardrobe-heading{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:var(--fs-15);font-weight:600;line-height:1.4}.wardrobe-heading svg{flex:none;width:18px;height:18px;color:var(--color-accent)}.outfit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.outfit-grid:has(>.outfit-card:nth-child(3)){grid-template-columns:repeat(3,minmax(0,1fr))}.outfit-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:20px 6px 12px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-paper);transition:border-color .15s ease,background .15s ease}.outfit-card:before{content:"";position:absolute;top:8px;left:50%;width:40%;margin-left:-20%;border-top:2px solid var(--color-accent-line);border-radius:2px}.outfit-card:active{background:var(--color-accent-soft)}.outfit-card.is-wearing{padding:19px 5px 11px;border:2px solid var(--color-accent)}.outfit-card.is-locked{opacity:.45}.outfit-thumb{height:116px;object-fit:contain;pointer-events:none}.outfit-grid:has(>.outfit-card:nth-child(3)) .outfit-thumb{height:100px}.outfit-name{font-size:14px;font-weight:600;line-height:1.4;text-align:center;overflow-wrap:anywhere}.outfit-meta{padding:1px 8px;border-radius:var(--radius-s);background:var(--color-accent-soft);font-size:var(--fs-12);line-height:1.7;color:var(--color-accent-press)}section.redeem-shelf{margin-top:24px;padding-top:0;border-top:0}.redeem-shelf .redeem-shelf-title{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:var(--fs-15);font-weight:600;line-height:1.4}.redeem-shelf .redeem-shelf-title:before,.redeem-shelf .redeem-offer-price:before{content:"";flex:none;width:18px;height:18px;border-radius:50%;background:linear-gradient(#6f45298c,#6f45298c) 6px 6px / 6px 1.5px no-repeat,linear-gradient(#6f45298c,#6f45298c) 6px 10.5px / 6px 1.5px no-repeat,linear-gradient(#6f45298c,#6f45298c) 6px 6px / 1.5px 6px no-repeat,linear-gradient(#6f45298c,#6f45298c) 10.5px 6px / 1.5px 6px no-repeat,radial-gradient(circle at 35% 30%,#f6dfb5,#d9a760 55%,#b98241);box-shadow:inset 0 0 0 2px #6f452959}.redeem-shelf .redeem-wallet{display:block;margin:-4px 0 10px;font-size:var(--fs-13);line-height:1.5;color:var(--color-ink-soft)}.redeem-shelf .redeem-wallet b{font-size:var(--fs-17);font-weight:600;color:var(--color-ink)}.redeem-shelf .redeem-offers{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}.redeem-shelf .redeem-offer{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-paper);overflow-wrap:anywhere}.redeem-shelf .redeem-offer-thumb{flex:none;width:64px;height:100px;border-radius:10px;background:var(--color-sunken);object-fit:contain;pointer-events:none}.redeem-shelf .redeem-offer-text{flex:1 1 140px;min-width:0;display:flex;flex-direction:column;gap:2px;padding:0}.redeem-shelf .redeem-offer-name{font-size:var(--fs-15);font-weight:600;line-height:1.4;color:var(--color-ink)}.redeem-shelf .redeem-offer-usage{font-size:var(--fs-13);line-height:1.5;color:var(--color-ink-soft)}.redeem-shelf .redeem-offer-price{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:14px;font-weight:600;line-height:1.5;color:var(--color-accent-press)}.redeem-shelf .redeem-offer-btn{flex:1 1 100%;min-height:44px;margin:0;padding:8px 14px;border:0;border-radius:12px;background:var(--color-accent);color:#fff;font-size:var(--fs-15);line-height:1.4}.redeem-shelf .redeem-offer-btn:active{background:var(--color-accent-press)}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.chip{min-height:36px;padding:0 14px;border:1px solid var(--color-line);border-radius:999px;background:var(--color-surface);font-size:13px;color:var(--color-ink-soft);transition:background .15s ease,color .15s ease,border-color .15s ease}.chip.is-active{border-color:var(--color-accent);background:var(--color-accent-soft);color:var(--color-ink)}.memory-filter{gap:2px;margin-bottom:14px;border-bottom:1px solid var(--color-line)}.memory-filter .chip{min-height:44px;margin-bottom:-1px;padding:0 10px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:14px;color:var(--color-ink-soft)}.memory-filter .chip.is-active{border-bottom-color:var(--color-accent);background:none;font-weight:600;color:var(--color-ink)}@media (max-width: 360px){.memory-filter .chip{padding:0 8px}}.memory-list{list-style:none;margin-top:6px}.memory-item{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:14px 40px 14px 16px;margin-bottom:12px;text-align:left;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-paper)}.memory-item:active{background:var(--color-accent-soft)}.memory-chevron{position:absolute;top:50%;right:14px;transform:translateY(-50%);font-size:20px;line-height:1;color:var(--color-ink-soft)}.memory-content{font-size:var(--fs-15);line-height:1.6}.memory-meta{font-size:12px;color:var(--color-ink-soft)}.memory-item.is-template{padding-top:32px;border:1.5px dashed var(--color-line-strong);background:#fffdf98c;box-shadow:none}.memory-item.is-template:active{background:var(--color-accent-soft)}.memory-item.is-template .memory-content{color:var(--color-ink-soft)}.memory-item.is-template:after{content:"待填写" / "";position:absolute;top:8px;right:14px;padding:0 7px;font-size:12px;line-height:18px;color:var(--color-ink-soft);background:var(--color-sunken);border:1px solid var(--color-sunken);border-radius:6px}.memory-preview-subhead{margin-top:12px;font-size:15px;font-weight:600;line-height:1.4}fieldset{min-width:0;margin:0;padding:0;border:0}textarea{padding:10px 12px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);font-size:15px;line-height:1.6;color:var(--color-ink);resize:vertical}textarea:focus{outline:none;border-color:var(--color-accent);box-shadow:0 0 0 3px var(--color-accent-soft)}.field textarea{border-color:var(--color-line-strong);border-radius:12px;background:linear-gradient(to bottom,transparent calc(1.6em - 1px),var(--color-line) 0) 0 0 / 100% 1.6em repeat-y local content-box,var(--color-surface)}.check-row{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 14px;padding:12px 14px;border:1px solid var(--color-line);border-radius:16px;background:var(--color-surface);box-shadow:var(--shadow-paper);font-size:var(--fs-15);font-weight:500}.check-row input[type=checkbox]{flex:none;width:22px;height:22px;accent-color:var(--color-accent)}.memory-new{min-height:52px;margin-bottom:16px;border:1.5px dashed var(--color-line-strong);border-radius:14px;background:#fffdf999;box-shadow:none;color:var(--color-accent)}.memory-new-plus{font-size:18px;line-height:1}.memory-tape{position:absolute;top:-7px;left:22px;width:46px;height:14px;background:#c9a98780;border-radius:2px;transform:rotate(-4deg);pointer-events:none}.memory-stars{letter-spacing:1px;color:var(--color-accent)}.memory-off .memory-content,.memory-off .memory-stars{color:var(--color-ink-soft)}.placeholder-text{display:flex;flex-direction:column;align-items:center;gap:10px;padding:36px 20px;text-align:center;font-size:14px;line-height:1.7;color:var(--color-ink-soft)}.placeholder-text:before{content:"";flex:none;width:40px;height:40px;background:var(--color-accent-line);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2'/%3E%3Cpath d='M8.5 3.5v17'/%3E%3Cpath d='M13.6 10c.9-1 2.7-.6 2.7.9 0 1.5-2.7 3.1-2.7 3.1s-2.7-1.6-2.7-3.1c0-1.5 1.8-1.9 2.7-.9Z'/%3E%3C/svg%3E") center / contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='2'/%3E%3Cpath d='M8.5 3.5v17'/%3E%3Cpath d='M13.6 10c.9-1 2.7-.6 2.7.9 0 1.5-2.7 3.1-2.7 3.1s-2.7-1.6-2.7-3.1c0-1.5 1.8-1.9 2.7-.9Z'/%3E%3C/svg%3E") center / contain no-repeat}.memory-sheet{margin-bottom:0;padding:8px 16px;border:solid var(--color-line);border-width:0 1px;background:var(--color-surface)}.memory-sheet:first-child{padding-top:16px;border-top-width:1px;border-radius:16px 16px 0 0}.memory-sheet:has(+.check-row){margin-bottom:14px;padding-bottom:16px;border-bottom-width:1px;border-radius:0 0 16px 16px;box-shadow:0 1px #2b27230a,0 4px 6px -2px #2b27230f}.memory-seg{gap:4px;padding:4px;border-radius:12px;background:var(--color-sunken)}.memory-seg .chip{flex:1 1 auto;min-height:44px;padding:0 8px;border:0;border-radius:9px;background:none;font-size:14px;color:var(--color-ink-soft)}.memory-seg .chip.is-active{background:var(--color-surface);box-shadow:var(--shadow-paper);font-weight:600;color:var(--color-ink)}.memory-dots{gap:8px}.memory-dots .chip{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--color-line-strong);border-radius:50%;background:var(--color-surface);font-size:var(--fs-15);color:var(--color-ink-soft)}.memory-dots .chip:has(~.chip.is-active){border-color:var(--color-accent-line);background:var(--color-accent-soft);color:var(--color-ink)}.memory-dots .chip.is-active{border-color:var(--color-accent);background:var(--color-accent);font-weight:600;color:#fff}.check-row:has(+.field-hint){margin-bottom:0;padding-bottom:4px;border-bottom:0;border-radius:16px 16px 0 0;box-shadow:none}.check-row+.field-hint{margin:0 0 14px;padding:0 14px 12px 48px;border:1px solid var(--color-line);border-top:0;border-radius:0 0 16px 16px;background:var(--color-surface);box-shadow:0 1px #2b27230a,0 4px 6px -2px #2b27230f}.memory-origin-row{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px;padding:12px 14px;border-radius:16px;background:var(--color-sunken);font-size:var(--fs-13);line-height:1.6;color:var(--color-ink)}.memory-origin-row input[type=checkbox]{flex:none;width:22px;height:22px;accent-color:var(--color-accent)}fieldset[disabled]{opacity:.5}.memory-forget-group{margin-top:28px;padding-top:18px;border-top:1.5px dashed var(--color-line-strong)}.memory-forget-note{font-size:var(--fs-13);line-height:1.6}.memory-forget-group .btn:disabled{opacity:.45;box-shadow:none}.memory-forget-preview{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));column-gap:10px;margin:10px 0 16px;padding:16px 16px 16px 20px;border:1px solid var(--color-danger-line);border-radius:16px;background:var(--color-surface);box-shadow:var(--shadow-lift)}.memory-forget-preview:before{content:"";position:absolute;top:14px;bottom:14px;left:0;width:4px;border-radius:0 3px 3px 0;background:var(--color-danger)}.memory-forget-preview>*{grid-column:1 / -1}.memory-forget-preview>p{margin-bottom:8px;font-size:14px;line-height:1.65}.memory-forget-target{font-size:var(--fs-15);font-weight:600}.memory-forget-preview>.memory-forget-howto{margin:4px 0 0;font-size:var(--fs-13);color:var(--color-ink-soft)}.memory-forget-cand{position:relative;display:block;margin-top:8px;padding:12px 12px 12px 46px;border:1px solid var(--color-line);border-radius:12px;background:var(--color-bg);font-size:var(--fs-12);line-height:1.6;color:var(--color-ink-soft)}.memory-forget-cand>input[type=checkbox]{position:absolute;top:12px;left:12px;width:22px;height:22px;accent-color:var(--color-danger)}.memory-forget-cand:has(>input:checked){border-color:var(--color-danger-line);background:var(--color-danger-soft)}.memory-forget-quote{font-size:var(--fs-15);color:var(--color-ink)}.memory-forget-quote:before,.memory-forget-fine:before{content:"\a";content:"\a" / "";white-space:pre}.memory-forget-quote:before{font-size:var(--fs-12)}.memory-forget-unknown{font-size:14px;color:var(--color-ink)}.memory-forget-choice{display:flex;align-items:center;gap:10px;min-height:44px;margin-top:6px;padding:0 12px;border-radius:12px;font-size:14px;color:var(--color-ink)}.memory-forget-choice>input[type=radio]{flex:none;width:20px;height:20px;accent-color:var(--color-ink)}.memory-forget-choice:has(>input:checked){background:var(--color-sunken)}.memory-forget-preview>.btn{grid-column:auto;margin:12px 0 0;white-space:nowrap}.memory-forget-confirm{border-color:var(--color-danger);background:var(--color-danger);color:#fff}.memory-forget-confirm:active{background:var(--color-danger);box-shadow:none}.memory-forget-confirm:disabled,.memory-forget-cancel:disabled{opacity:.45;box-shadow:none}.page-body--plain{padding:0;overflow:hidden;display:flex;flex-direction:column}.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:12px 14px 16px;display:flex;flex-direction:column;gap:12px}.chat-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding-bottom:60px;text-align:center;font-size:14px;color:var(--color-ink-soft)}.msg-row{display:flex;flex-direction:column;gap:4px}.msg-row.player{align-items:flex-end}.msg-row.character{align-items:flex-start}.msg-bubble{max-width:80%;padding:10px 14px;border-radius:18px;font-size:15px;line-height:1.65;user-select:text;-webkit-user-select:text;white-space:pre-wrap;word-break:break-word}.msg-row.player .msg-bubble{background:var(--color-accent-soft);color:var(--color-ink);border-bottom-right-radius:6px}.msg-row.character .msg-bubble{background:var(--color-surface);border:1px solid var(--color-line);border-bottom-left-radius:6px;box-shadow:var(--shadow-paper)}.msg-note{margin-top:4px;font-size:12px;color:var(--color-ink-soft)}.msg-typing{display:flex;gap:4px;padding:14px 16px}.msg-typing span{width:6px;height:6px;border-radius:50%;background:var(--color-ink-soft);animation:typing 1s ease-in-out infinite}.msg-typing span:nth-child(2){animation-delay:.15s}.msg-typing span:nth-child(3){animation-delay:.3s}@keyframes typing{0%,to{opacity:.3;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.chat-input-row{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--color-accent-line);border-radius:20px 20px 0 0;background:var(--color-band);box-shadow:0 -4px 14px #2b27230f}.chat-input-row input{flex:1;min-width:0;min-height:44px;padding:0 16px;border:1px solid var(--color-line-strong);border-radius:999px;background:var(--color-surface);font-size:15px;color:var(--color-ink)}.chat-input-row input:focus{outline:none;border-color:var(--color-accent)}.chat-send{min-width:64px;min-height:44px;padding:0 16px;border-radius:999px;background:var(--color-accent);color:#fff;font-size:15px}.chat-send:disabled{opacity:.45}.chat-banner{display:flex;align-items:center;gap:8px;margin:8px 12px 0;padding:8px 12px;border-radius:var(--radius-m);font-size:var(--fs-13);line-height:1.5;color:var(--color-ink);background:var(--color-sunken)}.chat-msg-status{flex:none;font-size:var(--fs-13);line-height:1.5;text-align:center;color:var(--color-ink-soft)}.chat-msg-status:not(:empty){margin:6px 12px 0}.chat-banner:before{content:"";flex:none;width:18px;height:18px;background-color:var(--color-ink-soft);-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.chat-banner--offline:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 18h9.2a3.8 3.8 0 0 0 1-7.5A5.6 5.6 0 0 0 8.2 8'/%3E%3Cpath d='M5.6 9.9A4 4 0 0 0 7.5 18'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 18h9.2a3.8 3.8 0 0 0 1-7.5A5.6 5.6 0 0 0 8.2 8'/%3E%3Cpath d='M5.6 9.9A4 4 0 0 0 7.5 18'/%3E%3Cpath d='m4 4 16 16'/%3E%3C/svg%3E")}.chat-banner--noconfig:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.2M12 7.8v.2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5.2M12 7.8v.2'/%3E%3C/svg%3E")}.chat-empty svg{width:40px;height:40px;fill:none;stroke:var(--color-accent-line);stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.msg-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:4px 8px;max-width:100%;font-size:var(--fs-12);line-height:1.5;text-align:right;color:var(--color-ink-soft)}.msg-meta.is-bad{color:var(--color-danger)}.msg-retry{flex:none;min-height:44px;padding:0 14px;border:1px solid var(--color-accent);border-radius:var(--radius-pill);background:var(--color-surface);font-size:var(--fs-13);line-height:1.4;color:var(--color-ink);white-space:nowrap}.msg-retry:active{background:var(--color-accent-soft)}.msg-retry:disabled{opacity:.5}.msg-tag{padding:1px 8px;border-radius:var(--radius-s);background:var(--color-sunken);font-size:var(--fs-12);line-height:1.7;color:var(--color-ink-soft)}.msg-row:has(>.msg-tag)>.msg-bubble{opacity:.62}.msg-row>.msg-note{margin-top:0;padding:3px 10px;border-radius:var(--radius-s);background:var(--color-accent-soft);color:var(--color-accent-press)}.msg-bubble.msg-typing{align-items:center;gap:4px;padding:10px 14px;font-size:var(--fs-13);color:var(--color-ink-soft)}.msg-bubble.msg-typing span{width:auto;height:auto;border-radius:0;background:none;animation:none}.msg-bubble.msg-typing:before,.msg-bubble.msg-typing:after,.msg-bubble.msg-typing span:before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--color-ink-faint);animation:typing 1s ease-in-out infinite}.msg-bubble.msg-typing:before{order:-2}.msg-bubble.msg-typing:after{order:-1;opacity:.7;animation-delay:.15s}.msg-bubble.msg-typing span:before{display:inline-block;margin-right:8px;vertical-align:middle;opacity:.45;animation-delay:.3s}.chat-send:active{background:var(--color-accent-press)}@media (prefers-reduced-motion: reduce){.msg-bubble.msg-typing:before,.msg-bubble.msg-typing:after,.msg-bubble.msg-typing span:before{animation:none}}.story-list{list-style:none}.story-card{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;padding:14px 16px;margin-bottom:12px;text-align:left;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface)}.story-card:active{background:var(--color-accent-soft)}.story-card.is-locked{opacity:.5}.story-card-title{font-size:15px;font-weight:600}.story-card-desc{font-size:13px;color:var(--color-ink-soft);line-height:1.6}.story-card-lock{font-size:12px;color:var(--color-accent)}.story-player{position:absolute;top:0;right:0;bottom:0;left:0;z-index:50;overflow:hidden;background:var(--color-bg)}.story-bg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.story-exit{position:absolute;top:calc(10px + var(--safe-top));right:14px;z-index:60;width:40px;height:40px;border-radius:50%;background:#3b353066;color:#fff;font-size:15px}.story-figure{position:absolute;left:50%;bottom:26%;transform:translate(-50%);width:min(56vw,240px);aspect-ratio:9 / 16}.story-dialog{position:absolute;left:12px;right:12px;bottom:calc(12px + var(--safe-bottom));min-height:116px;padding:14px 16px 18px;background:#fffdf8f0;border:1px solid var(--color-line);border-radius:var(--radius-l)}.story-speaker{margin-bottom:6px;font-size:13px;font-weight:600;color:var(--color-accent)}.story-text{font-size:15px;line-height:1.8;white-space:pre-wrap}.story-next-hint{position:absolute;right:16px;bottom:8px;color:var(--color-ink-soft);animation:hint-bob 1.1s ease-in-out infinite}@keyframes hint-bob{0%,to{transform:translateY(0)}50%{transform:translateY(3px)}}.story-choices{position:absolute;left:28px;right:28px;bottom:36%;z-index:55;display:flex;flex-direction:column;gap:10px}.story-choices .btn{margin-bottom:0;background:#fffdf8f5}.bubble-wrap{display:flex;flex-direction:column;align-items:center;gap:4px;max-width:88%}.stage-bubble{text-align:left}.stage-bubble:active{transform:translateY(1px)}.bubble-note{max-width:100%;text-align:center;background:#efe4d6f5;padding:4px 10px;border-radius:var(--radius-s);box-shadow:var(--shadow-paper);font-size:var(--fs-12);line-height:1.6;color:var(--color-accent-press)}.bubble-history-link{display:inline-flex;align-items:center;gap:2px;min-height:44px;padding:0 12px;border:7px solid transparent;border-radius:999px;background:#fffdf9e6 padding-box;font-size:var(--fs-13);line-height:1.2;color:var(--color-accent)}.bubble-history-link:active{background-color:var(--color-accent-soft)}.home-chat-row{grid-column:1 / -1;grid-row:3;padding:12px 12px 6px;border-top:1px solid var(--color-accent-line);border-radius:20px 20px 0 0;background:var(--color-band);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 -6px 18px #2b27231a}.home-chat-row input{min-width:0;background:var(--color-surface);border-color:var(--color-line-strong)}.home-chat-row .chat-send{min-width:64px;padding:0 16px}.home-chat-row .chat-send:active{background:var(--color-accent-press)}.home-chat-row .chat-send:disabled{opacity:.45}.home-status{grid-column:2;grid-row:2;justify-self:end;align-self:center;font-size:var(--fs-13);line-height:1.5;text-align:center;overflow-wrap:anywhere}.home-status:not(:has(+.home-retry)){grid-column:2 / 4;justify-self:center}.home-status:not(:empty){margin:0 12px 8px;padding:7px 12px;border-radius:10px;background:#fffdf9f2;box-shadow:var(--shadow-paper)}.home-status:not(:empty):has(+.home-retry){margin-right:0}.home-retry{grid-column:3;grid-row:2;align-self:center;min-height:44px;margin:0 12px 8px 8px;padding:0 16px;border:1px solid var(--color-accent);border-radius:999px;background:var(--color-surface);font-size:14px;color:var(--color-ink);white-space:nowrap}.home-status:empty+.home-retry{margin-left:12px}.home-retry:active{background:var(--color-accent-soft)}.home-retry:disabled{opacity:.5}.stage{--figure-w: 160%;--figure-head-top: .0694;--figure-chin: .2;--figure-head-gap: 48px;position:relative;overflow:hidden}.stage .stage-character{position:absolute;top:0;right:0;bottom:0;left:0;width:auto;height:auto;aspect-ratio:auto;z-index:0}.stage .stage-character:focus-visible{outline-offset:-3px}.stage .character-canvas{inset:auto;top:var(--figure-head-gap);left:50%;width:var(--figure-w);height:auto;aspect-ratio:9 / 16;margin-left:calc(var(--figure-w) / -2);margin-top:calc(var(--figure-w) * 16 / 9 * var(--figure-head-top) * -1);animation-name:breathe-home}@keyframes breathe-home{0%,to{transform:scaleY(1)}50%{transform:scaleY(1.005)}}.stage .bubble-wrap{position:absolute;z-index:1;left:6%;right:6%;top:var(--figure-head-gap);bottom:6px;margin-top:calc(var(--figure-w) * 16 / 9 * (var(--figure-chin) - var(--figure-head-top)) + 8px);max-width:none;justify-content:flex-end;pointer-events:none}.stage .bubble-wrap>*{pointer-events:auto}.stage .stage-bubble{min-height:0;overflow:hidden}.stage .stage-bubble:before{content:"";position:absolute;top:-7px;left:50%;width:12px;height:12px;margin-left:-6px;background:inherit;border-left:1px solid var(--color-line);border-top:1px solid var(--color-line);transform:rotate(45deg)}@supports (container-type: size) and (height: 1lh){.stage .stage-bubble{overflow:visible}.stage .stage-bubble-text{max-height:calc(100cqh - 22px)}}.stage .stage-bubble:has(>.stage-bubble-text:empty){visibility:hidden}.stage .bubble-wrap>.bubble-slot{container:bubble-slot / size;flex:1 1 0;min-height:0;align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;font-size:15px;line-height:1.65;pointer-events:none}.stage .bubble-slot>.stage-bubble{pointer-events:auto}.stage .stage-bubble-text{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}@container bubble-slot (height >= calc(1lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:1}}@container bubble-slot (height >= calc(2lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:2}}@container bubble-slot (height >= calc(3lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:3}}@container bubble-slot (height >= calc(4lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:4}}@container bubble-slot (height >= calc(5lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:5}}@container bubble-slot (height >= calc(6lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:6}}@container bubble-slot (height >= calc(7lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:7}}@container bubble-slot (height >= calc(8lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:8}}@container bubble-slot (height >= calc(9lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:9}}@container bubble-slot (height >= calc(10lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:10}}@container bubble-slot (height >= calc(11lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:11}}@container bubble-slot (height >= calc(12lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:12}}@container bubble-slot (height >= calc(13lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:13}}@container bubble-slot (height >= calc(14lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:14}}@container bubble-slot (height >= calc(15lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:15}}@container bubble-slot (height >= calc(16lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:16}}@container bubble-slot (height >= calc(17lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:17}}@container bubble-slot (height >= calc(18lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:18}}@container bubble-slot (height >= calc(19lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:19}}@container bubble-slot (height >= calc(20lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:20}}@container bubble-slot (height >= calc(21lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:21}}@container bubble-slot (height >= calc(22lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:22}}@container bubble-slot (height >= calc(23lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:23}}@container bubble-slot (height >= calc(24lh + 22px)){.stage .stage-bubble-text{-webkit-line-clamp:24}}.neko-frame{flex:1;min-height:0;width:100%;border:none;display:block}.gacha-currency{margin-bottom:14px;font-size:14px;color:var(--color-ink-soft)}.gacha-currency b{font-size:20px;color:var(--color-ink);margin-left:4px}.gacha-pool-card{padding:16px;margin-bottom:14px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface)}.gacha-pool-title{font-size:16px;font-weight:600;margin-bottom:6px}.gacha-pool-desc{font-size:13px;line-height:1.7;color:var(--color-ink-soft);margin-bottom:8px}.gacha-pity{font-size:12px;color:var(--color-accent);margin-bottom:12px}.gacha-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}.gacha-buttons .btn{margin-bottom:0}.gacha-history{list-style:none;margin-top:12px}.gacha-history-item{display:flex;justify-content:space-between;gap:10px;padding:9px 4px;border-bottom:1px solid var(--color-line);font-size:13px}.gacha-history-meta{flex:none;color:var(--color-ink-soft);font-size:12px}.gacha-results{position:absolute;top:0;right:0;bottom:0;left:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px 16px;background:#3b35308c}.gacha-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;width:100%;max-width:380px}.gacha-grid.single{grid-template-columns:1fr;max-width:240px}.gacha-card{display:flex;flex-direction:column;gap:6px;min-height:86px;padding:12px;border:2px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);animation:card-in .35s ease both}@keyframes card-in{0%{opacity:0;transform:rotateY(90deg) scale(.85)}to{opacity:1;transform:rotateY(0) scale(1)}}.gacha-card-rarity{font-size:11px;letter-spacing:.1em;color:var(--color-ink-soft)}.gacha-card.rarity-rare{border-color:var(--color-accent)}.gacha-card.rarity-rare .gacha-card-rarity{color:var(--color-accent)}.gacha-card.rarity-special{border-color:#c9a227;background:#fdf8ea}.gacha-card.rarity-special .gacha-card-rarity{color:#a8871f}.gacha-card-name{font-size:14px;line-height:1.5;font-weight:600}.gacha-card-dup{font-size:12px;color:var(--color-ink-soft)}.gacha-tap-hint{font-size:13px;color:#fffdf8;animation:hint-bob 1.1s ease-in-out infinite}.neko-feedback{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:4px;margin:6px 12px 4px;padding:8px 10px;flex:none;overflow-wrap:anywhere;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-paper)}.neko-balance{flex:none;font-size:13px;line-height:1.42;color:var(--color-ink-soft);white-space:nowrap}.neko-balance b{font-size:17px;font-weight:600;color:var(--color-ink)}.coin{display:inline-block;width:1.4em;height:1.4em;margin-right:6px;vertical-align:-.32em;border-radius:50%;background:radial-gradient(circle at 35% 30%,#f6dfb5,#d9a760 55%,#b98241);box-shadow:inset 0 0 0 2px #6f452959}.coin:after{content:"";display:block;width:.46em;height:.46em;margin:.47em auto 0;border:1.5px solid rgba(111,69,41,.55);border-radius:1px}.neko-feedback-message{flex:1 1 auto;text-align:right;font-size:13px;line-height:1.5;color:var(--color-ink-soft)}.neko-reward-amount{font-weight:600;color:var(--color-accent)}@media (max-width: 360px){.neko-feedback-message{flex-basis:100%;min-height:1.5em;text-align:left}}.neko-feedback:has(>button[aria-disabled=false]) .neko-feedback-message{flex-basis:100%;text-align:left;color:var(--color-danger)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.neko-reward-amount,.neko-saved,.neko-reward-balance{white-space:nowrap}.neko-reward-amount.is-silver{padding:0 6px;border:1px solid #a3abb5;border-radius:999px;color:#5d6570}.neko-reward-amount.is-gold{padding:0 6px;border:1.5px solid #d4a431;border-radius:999px;color:#8a5d00}.neko-feedback button{flex:1 1 100%;min-height:44px;padding:0 12px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);font-size:15px;line-height:1.4}.neko-feedback button[aria-disabled=false]{border-color:var(--color-danger-line);color:var(--color-danger)}.page :focus-visible,.home :focus-visible{outline:3px solid var(--color-ink);outline-offset:2px}.page [role=status]{overflow-wrap:anywhere}.chat-connection-status{flex:none}.neko-feedback-message>span>span+span{margin-left:6px}.neko-feedback-message>span>span:empty{display:none}.redeem-test{padding:16px;max-width:480px;margin:0 auto;color:var(--color-ink)}.redeem-test-title{font-size:18px;line-height:1.4;margin:0 0 8px}.redeem-test-note{font-size:13px;line-height:1.5;margin:0 0 12px;color:var(--color-ink-soft)}.redeem-balance{font-size:15px;line-height:1.4;margin:0 0 12px}.redeem-list{list-style:none;padding:0;margin:0 0 12px;display:flex;flex-direction:column;gap:10px}.redeem-item{display:flex;flex-direction:column;gap:4px;padding:10px;border:1px solid color-mix(in srgb,var(--color-ink) 18%,transparent);border-radius:10px;background:var(--color-surface);overflow-wrap:anywhere}.redeem-item-name{font-size:15px;font-weight:600;line-height:1.4}.redeem-item-usage,.redeem-item-price,.redeem-item-owned{font-size:13px;line-height:1.5}.redeem-item button,.redeem-confirm button{min-height:44px}.redeem-confirm{display:flex;flex-direction:column;gap:6px;padding:12px;margin:0 0 12px;border:1px solid color-mix(in srgb,var(--color-ink) 28%,transparent);border-radius:10px;background:color-mix(in srgb,#f3bd78 18%,var(--color-surface))}.redeem-confirm p{margin:0;font-size:14px;line-height:1.5}.redeem-confirm-item{font-weight:600}.redeem-status{min-height:1.5em;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.redeem-status>span>span{margin-right:6px}.redeem-test :focus-visible{outline:3px solid var(--color-ink);outline-offset:2px}.redeem-shelf{margin-top:24px;padding-top:16px;border-top:1px solid var(--color-line)}.redeem-shelf-title{font-size:16px;font-weight:600;line-height:1.4}.redeem-wallet{margin:4px 0 12px;font-size:13px;line-height:1.5;color:var(--color-ink-soft)}.redeem-wallet b{font-size:17px;font-weight:600;color:var(--color-ink)}.redeem-offers{list-style:none;display:flex;flex-direction:column;gap:10px}.redeem-offer{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;padding:12px;border:1px solid var(--color-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-paper);overflow-wrap:anywhere}.redeem-offer-thumb{flex:none;width:64px;height:96px;object-fit:contain;pointer-events:none}.redeem-offer-text{flex:1 1 140px;min-width:0;display:flex;flex-direction:column;gap:2px}.redeem-offer-name{font-size:15px;font-weight:600;line-height:1.4}.redeem-offer-usage{font-size:13px;line-height:1.5;color:var(--color-ink-soft)}.redeem-offer-owned{display:inline-flex;align-items:center;gap:4px;align-self:flex-start;margin-top:4px;padding:1px 8px;border-radius:var(--radius-s);background:var(--color-accent-soft);font-size:12px;line-height:1.7;color:var(--color-accent-press)}.redeem-offer-price{font-size:14px;font-weight:600;line-height:1.5;color:var(--color-accent-press)}.redeem-offer-btn{flex:1 1 100%;min-height:44px;padding:8px 14px;border-radius:12px;background:var(--color-accent);color:#fff;font-size:15px;line-height:1.4}.redeem-offer-btn:active{background:var(--color-accent-press)}.redeem-offer-btn[aria-disabled=true]{background:var(--color-sunken);color:var(--color-ink-soft)}.redeem-panel{position:relative;margin-top:14px;padding:14px 16px 16px;border:1px solid var(--color-accent-line);border-radius:var(--radius-m);background:var(--color-surface);box-shadow:var(--shadow-lift);overflow-wrap:anywhere}.redeem-panel:before{content:"";position:absolute;top:6px;left:12px;right:12px;border-top:1.5px dashed var(--color-line-strong)}.redeem-panel p{font-size:14px;line-height:1.5}.redeem-panel .redeem-panel-name{margin-top:4px;font-size:15px;font-weight:600}.redeem-panel .redeem-panel-price,.redeem-panel .redeem-panel-balance{display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:12px}.redeem-panel-value{font-variant-numeric:tabular-nums}.redeem-panel .redeem-panel-short{display:flex;align-items:center;gap:6px;font-weight:600;color:var(--color-danger)}.redeem-panel-short-icon{flex:none;width:1.3em;height:1.3em}.redeem-panel .redeem-panel-gap{font-size:14px;line-height:1.5;color:var(--color-ink-soft)}.redeem-panel-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.redeem-panel-actions button{flex:1 1 120px;min-height:44px;white-space:nowrap;padding:8px 12px;border:1px solid var(--color-line-strong);border-radius:12px;background:var(--color-surface);font-size:15px;line-height:1.4}.redeem-panel-actions button:active{background:var(--color-accent-soft)}.redeem-panel-actions .redeem-panel-go{border-color:var(--color-accent);background:var(--color-accent);color:#fff}.redeem-panel-actions .redeem-panel-go:active{border-color:var(--color-accent-press);background:var(--color-accent-press)}.redeem-panel-actions .redeem-panel-go[aria-disabled=true]{opacity:.45}.redeem-result{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.redeem-result>span:not(:empty){display:block;position:relative;margin-top:14px;padding:10px 14px;border-radius:12px;background:var(--color-sunken);color:var(--color-ink)}.redeem-result>span:has(>.redeem-result-icon){padding-left:calc(22px + 1.3em)}.redeem-result-icon{position:absolute;top:calc(10px + .1em);left:14px;width:1.3em;height:1.3em;color:var(--color-accent)}.redeem-result>span>span{margin-right:6px}.redeem-result-hint{color:var(--color-accent-press)}.neko-shop-btn{justify-self:end;min-height:44px;margin-block:-2px;padding:0 10px;border-radius:var(--radius-m);font-size:15px;color:var(--color-accent)}.neko-shop-btn:active,.neko-shop-btn[aria-expanded=true]{background:var(--color-accent-soft)}.page-body--plain:has(>.neko-shop){position:relative}.neko-shop{position:absolute;inset:auto 0 0;z-index:3;max-height:calc(100% - 44px);overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 24px;border-radius:20px 20px 0 0;background-color:var(--color-bg);background-image:radial-gradient(rgba(70,52,34,.045) .6px,transparent .8px);background-size:4px 4px;box-shadow:var(--shadow-sheet)}@media (max-width: 340px){.neko-shop{max-height:calc(100% - 16px)}}.neko-shop:focus-visible{outline-offset:-3px}.neko-shop-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding-bottom:2px}.neko-shop-title{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;line-height:1.4}.neko-shop-close{min-height:44px;padding:0 14px;border:1px solid var(--color-line-strong);border-radius:12px;background:var(--color-surface);font-size:14px;line-height:1.4}.neko-shop-scrim{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;background:#2b272352}.neko-shop-icon{flex:none;width:1.3em;height:1.3em;color:var(--color-accent)}.neko-shop-close:active{background:var(--color-accent-soft)}.neko-shop .redeem-wallet b{font-size:20px}.neko-shop .redeem-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.neko-shop .redeem-offer{flex-direction:column;flex-wrap:nowrap;align-items:stretch;gap:0;padding:0}.neko-shop .redeem-offer-text{flex:1 1 auto;padding:10px 12px 0}.neko-shop .redeem-offer-btn{flex:none;margin:10px 12px 12px;padding:6px 10px;font-size:14px}.redeem-offer-text:has(>.redeem-offer-owned)>.redeem-offer-price{display:none}.redeem-offer-price .coin{width:1.15em;height:1.15em;margin-right:5px;vertical-align:-.2em}.redeem-offer-price .coin:after{width:.38em;height:.38em;margin-top:.385em}.redeem-offer-owned-icon{flex:none;width:1.2em;height:1.2em}.redeem-offer-shelf{position:relative;height:92px;border-radius:13px 13px 0 0;background:linear-gradient(180deg,var(--color-sunken),#e4dbcd)}.redeem-offer-shelf:after{content:"";position:absolute;left:10px;right:10px;bottom:12px;height:6px;border-radius:3px;background:linear-gradient(180deg,var(--color-accent-line),#a97e57);box-shadow:0 3px 4px #2b27232e}.redeem-offer-art{position:absolute;z-index:1;left:50%;bottom:16px;width:calc(var(--w) * var(--s));height:calc(var(--h) * var(--s));margin-left:calc(var(--w) * var(--s) / -2);background:url(/assets/neko/care-atlas.png) no-repeat;background-size:calc(732px * var(--s)) calc(505px * var(--s));background-position:calc(var(--x) * var(--s) * -1) calc(var(--y) * var(--s) * -1)}.redeem-offer-art.is-cat_box{--x: 242px;--y: 213px;--w: 362px;--h: 227px;--s: calc(110 / 362)}.redeem-offer-art.is-catnip_fish{--x: 604px;--y: 213px;--w: 128px;--h: 61px;--s: .65625 ;bottom:18px}
