:root { --page: #fffdf9; --paper: var(--page); --paper2: #f6f2ed; --ink: #1e1a18; --ink2: #5e5650; --red: #c8102e; --red-dark: #a3192a; --line: #e9e1d7; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Noto Sans TC", sans-serif; }
a { color: var(--red-dark); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header img { width: 36px; height: 36px; }
header a.home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
header nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
header nav a { color: var(--ink2); text-decoration: none; }
header nav a:hover { color: var(--red-dark); }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 19px; color: var(--ink2); margin: 0 0 28px; max-width: 620px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 2px solid var(--red); }
.btn.primary { background: var(--red); color: #fff; }
.btn.secondary { color: var(--red-dark); background: transparent; }
.shot { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; margin: 8px 0 40px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 0 0 48px; }
.feature { background: var(--paper2); border-radius: 10px; padding: 18px 20px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink2); font-size: 15px; }
.doc { padding-top: 40px; padding-bottom: 56px; }
.doc h1 { font-size: 34px; margin: 0 0 6px; }
.doc .updated { color: var(--ink2); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc li { margin-bottom: 8px; }
footer { border-top: 1px solid var(--line); color: var(--ink2); font-size: 15px; }
footer .wrap { padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
header nav a { white-space: nowrap; }
.btn { cursor: pointer; font: inherit; font-weight: 600; }
.btn.quiet { border-color: transparent; color: var(--ink2); padding-left: 8px; }
.btn.quiet:hover { color: var(--red-dark); }
.btn.danger { background: transparent; color: var(--red-dark); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: default; }
kbd { font: 600 13px -apple-system, "Segoe UI", sans-serif; background: #fff; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; }
.narrow { max-width: 460px; padding-top: 48px; padding-bottom: 64px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 24px; margin-bottom: 18px; }
.card h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
.card h2 { font-size: 18px; margin: 0 0 12px; }
.card .lead { color: var(--ink2); margin: 0 0 16px; font-size: 15px; }
.card label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.card input { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid #d9cfc3; border-radius: 8px; }
.card input:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.card .btn.primary { width: 100%; }
.card .alt { display: flex; justify-content: space-between; margin: 14px 0 0; font-size: 14px; }
.rowbtn { display: flex; flex-wrap: wrap; gap: 10px; }
.msg { margin: 0 0 12px; font-size: 14px; color: var(--red-dark); }
.msg:empty { display: none; }
.msg.ok { color: #138a3d; }
.try { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 26px; font-size: 26px; line-height: 1.9; margin-bottom: 10px; }
.try p { margin: 0; }
.hint { color: var(--ink2); font-size: 14px; margin: 0 0 32px; }
header a.home { white-space: nowrap; }
@media (max-width: 520px) { header nav { gap: 14px; font-size: 14px; } header a.home { font-size: 17px; } .try { font-size: 22px; padding: 14px 18px; } }
/* What's new */
.topic { border-top: 1px solid var(--line); margin-top: 28px; scroll-margin-top: 16px; }
.topic h2 { margin: 24px 0 2px; }
/* Owner's list of accounts (/admin) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 14px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--ink2); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.tile b { font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.list { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 48px; }
.list:empty { display: none; }
.urow { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr auto; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.urow:first-child { border-top: 0; }
@media (max-width: 640px) { .urow { grid-template-columns: 1fr 1fr; } }
/* Home and How it works */
:root { --fresh: #d11e33; --learning: #a87800; --known: #138a3d; --zh: "Kaiti TC", "BiauKai", "DFKai-SB", "PingFang TC", "Noto Sans TC", serif; }
[lang="zh-Hant"] { font-family: var(--zh); }
[lang="zh-Hant"] [lang="en"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fine { font-size: 14px !important; color: var(--ink2); margin: 14px 0 0 !important; }
.btn[aria-disabled] { opacity: 0.55; cursor: default; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 8px 0 40px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 18px 50px -24px rgba(30, 26, 24, 0.45); }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.video .playicon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--red); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.video .playicon::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent #fff; }
.video:hover .playicon { transform: scale(1.08); }
.video:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.seal { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--c); border-radius: 7px; color: var(--c); font: 600 19px/1 var(--zh); }
.fresh { --c: var(--fresh); } .learning { --c: var(--learning); } .known { --c: var(--known); }
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: center; margin: 0 0 56px; }
.split.flip { grid-template-columns: 1.6fr 1fr; }
.split.flip > div { order: 2; }
.split h2 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.split p { color: var(--ink2); margin: 0; }
.split img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }
.cta { text-align: center; padding: 8px 0 64px; }
.cta h2 { font-size: 28px; margin: 0 0 18px; letter-spacing: -0.01em; }
.doc .video { margin: 0 0 16px; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; gap: 16px; } .split.flip { grid-template-columns: 1fr; } .split.flip > div { order: 0; } .split h2 { font-size: 22px; } .seal { width: 30px; height: 30px; font-size: 17px; } }
.wide header .wrap, .wide footer .wrap { max-width: 1080px; }
footer a.maker { color: inherit; }
.apps { list-style: none; padding: 0; margin: 0; }
.apps li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.apps li:first-child { border-top: 0; }
.apps span { color: var(--ink2); }
/* With or without the extension on the page (the extension marks the page) */
html[data-cb-ext] [data-noext], html:not([data-cb-ext]) [data-ext] { display: none !important; }
.touch { display: none; }
@media (hover: none) { .touch { display: inline; } .mouse { display: none; } [data-q="select"] { display: none !important; } }
/* The try-it box: real Chinese, the demo card without the extension, steps that tick */
.play { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 24px 18px; margin: 0 0 12px; box-shadow: 0 18px 50px -30px rgba(30, 26, 24, 0.35); }
.play .try { border: 0; padding: 4px 0 0; margin: 0; background: none; }
.mode { position: absolute; top: -11px; right: 18px; font: 600 12px/20px -apple-system, "Segoe UI", sans-serif; padding: 0 10px; border-radius: 999px; background: var(--paper2); color: var(--ink2); border: 1px solid var(--line); }
.mode.live { background: #e7f5ec; color: var(--known); border-color: #bfe3cb; }
.mode.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--known); margin-right: 6px; vertical-align: 1px; }
.quests { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 4px 0 10px; }
.quests li { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: var(--paper2); color: var(--ink2); font-size: 14px; transition: background 0.2s, color 0.2s; }
.quests li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfc5ba; background: #fff; flex: none; position: relative; }
.quests li.done { background: #e7f5ec; color: var(--known); }
.quests li.done i { border-color: var(--known); background: var(--known); animation: pop 0.35s; }
.quests li.done i::after { content: ""; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.quests kbd { font-size: 12px; }
@keyframes pop { 0% { transform: scale(0.4); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.bravo { display: none; align-items: center; gap: 14px; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); color: var(--ink2); font-size: 15px; }
.play.all .bravo { display: flex; }
.seal.big { --c: var(--red); width: 52px; height: 52px; font-size: 30px; border-width: 3px; border-radius: 10px; transform: rotate(-8deg); animation: stampin 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes stampin { 0% { transform: rotate(-20deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-8deg) scale(1); opacity: 1; } }
.w { border-radius: 3px; cursor: default; transition: background 0.15s; }
.w.on { box-shadow: inset 0 -2px 0 var(--red); }
.w.st-fresh { background: #ffd3d8; } .w.st-learning { background: #ffe680; } .w.st-known { background: #c9eed5; }
/* The demo card, drawn like the extension's */
.dcard { position: absolute; z-index: 50; width: max-content; min-width: 250px; max-width: min(360px, calc(100vw - 16px)); background: #fffdf9; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font: 14px/1.45 -apple-system, "PingFang TC", "Noto Sans TC", system-ui, sans-serif; box-shadow: 0 8px 28px rgba(30, 26, 24, 0.16), 0 1px 3px rgba(30, 26, 24, 0.08); text-align: left; }
.dcard[hidden] { display: none; }
.dcard.in { animation: cardin 0.14s ease-out; }
@keyframes cardin { from { opacity: 0; transform: translateY(4px); } }
.dcard .top { padding: 10px 16px; }
.dcard .headrow { display: flex; align-items: baseline; gap: 10px; }
.dcard .head { font-size: 30px; font-weight: 600; line-height: 1.15; padding: 0 3px; margin: 0 -3px; border-radius: 4px; }
.dcard .head.long { font-size: 19px; }
.dcard .head.st-fresh { background: #ffd3d8; } .dcard .head.st-learning { background: #ffe680; } .dcard .head.st-known { background: #c9eed5; }
.dcard .py { color: #958c85; font-size: 15px; }
/* 注音 beside each character of the headword (zhuyin.css) */
.dcard .head.zyhead { display: inline-block; padding-top: 2px; --zy: 0.42em; --zy-ink: var(--ink2); }
.dcard .head.long.zyhead { --zy: 0.7em; }
.dcard .parts .zyw { --zy: 0.75em; --zy-ink: var(--ink2); }
.mylist .zyw { --zy: 0.62em; --zy-ink: var(--ink2); }
.dcard .freq { margin-left: auto; padding-left: 12px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--red-dark); white-space: nowrap; align-self: center; }
.dcard .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 11px; }
.dcard .bars i { width: 3px; background: var(--line); border-radius: 1px; }
.dcard .bars i.on { background: var(--red); }
.dcard .bars i:nth-child(1) { height: 30%; } .dcard .bars i:nth-child(2) { height: 45%; } .dcard .bars i:nth-child(3) { height: 60%; } .dcard .bars i:nth-child(4) { height: 80%; } .dcard .bars i:nth-child(5) { height: 100%; }
.dcard .en { margin-top: 2px; }
.dcard .parts { border-top: 1px solid var(--line); padding: 7px 16px; display: grid; gap: 1px; color: var(--ink2); font-size: 13px; }
.dcard .parts div { display: flex; align-items: baseline; gap: 10px; }
.dcard .parts b { font-size: 17px; font-weight: 500; color: var(--ink); }
.dcard .ppy { color: #958c85; min-width: 3.2em; }
.dcard .foot { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--paper2); border-radius: 0 0 10px 10px; }
.dcard .stamps { display: flex; gap: 10px; }
/* 注音 or pinyin, for visitors without the extension (with it, its Settings decide) */
.pron { display: inline-flex; margin-left: auto; padding: 2px; border-radius: 8px; background: #ebe4dc; }
.pron button { border: 0; border-radius: 6px; padding: 3px 9px; background: transparent; color: var(--ink2); font: 500 13px/1.3 -apple-system, BlinkMacSystemFont, "PingFang TC", sans-serif; cursor: pointer; }
.pron button:hover { color: var(--ink); }
.pron button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(30, 26, 24, 0.14); }
.dcard .seal { position: relative; width: 32px; height: 32px; font-size: 16px; border-style: dashed; background: #fff; cursor: pointer; padding: 0; }
.dcard .seal small { position: absolute; right: -7px; bottom: -7px; font: 600 10px/14px -apple-system, sans-serif; min-width: 14px; border-radius: 4px; background: #fff; border: 1px solid var(--line); color: var(--ink2); }
.dcard .seal.on { border-style: solid; background: var(--c); color: #fff; }
.dcard .seal.press { animation: press 0.3s ease-out; }
@keyframes press { 0% { transform: scale(1.35); box-shadow: 0 0 0 0 var(--c); } 100% { transform: scale(1); box-shadow: 0 0 0 10px transparent; } }
/* How it works */
.welcome .guide h1 { font-size: 42px; letter-spacing: -0.01em; }
.guide .topic { border-top: 0; margin-top: 44px; }
.ytsim { margin-top: 12px; }
.screen { position: relative; aspect-ratio: 16 / 6; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 30px; background: radial-gradient(ellipse at 30% 20%, #5a4638, transparent 60%), radial-gradient(ellipse at 80% 70%, #3b2b2a, transparent 55%), #171312; }
.screen .band { background: rgba(255, 253, 249, 0.95); border-radius: 10px; padding: 6px 18px 8px; text-align: center; max-width: 100%; }
.screen .zh { margin: 0; font-size: 26px; line-height: 1.5; }
.screen .en { margin: 0; font-size: 14px; color: var(--ink2); }
.track { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.14); }
.track .bar { height: 100%; width: 0; background: var(--red); }
.track .bar.run { animation: line 4.5s linear forwards; }
.paused .track .bar { animation-play-state: paused; }
@keyframes line { to { width: 100%; } }
.badge { position: absolute; top: 12px; font: 600 12px/22px -apple-system, "Segoe UI", sans-serif; padding: 0 10px; color: #fff; background: rgba(0, 0, 0, 0.5); border-radius: 999px; opacity: 0; transition: opacity 0.15s; }
.badge.pause { left: 12px; } .badge.loopon { right: 12px; }
.paused .badge.pause, .loop .badge.loopon { opacity: 1; }
.script { display: none; list-style: none; margin: 10px 0 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; }
.script-on .script { display: grid; }
.script li { padding: 3px 10px; border-radius: 8px; cursor: pointer; color: var(--ink2); }
.script li.now { background: var(--paper2); color: var(--ink); }
.ytkeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.ytkeys button { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--ink2); cursor: pointer; }
.ytkeys button:hover { border-color: #d6cbbf; color: var(--ink); }
.ytkeys kbd { font-size: 13px; min-width: 24px; text-align: center; padding: 1px 6px; }
.loop [data-k="r"], .script-on [data-k="e"] { border-color: var(--red); color: var(--red-dark); }
.ytkeys button.hit { animation: hit 0.35s; }
@keyframes hit { 0% { background: #fde3e6; transform: translateY(1px); } }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 44px 0 8px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--paper2); border-radius: 12px; color: var(--ink2); text-decoration: none; font-size: 14px; line-height: 1.4; transition: background 0.15s; }
.tile:hover { background: #efe7de; }
.tile strong { display: block; color: var(--ink); font-size: 15px; }
.tile .seal { flex: none; --c: var(--red); }
.guide .cta { padding: 40px 0 8px; }
@media (max-width: 640px) { .play { padding: 14px 16px 16px; } .screen { aspect-ratio: 4 / 3; } .screen .zh { font-size: 22px; } .welcome .guide h1 { font-size: 32px; } }
@media (prefers-reduced-motion: reduce) { .dcard.in, .dcard .seal.press, .seal.big, .quests li.done i, .ytkeys button.hit { animation: none; } }
/* Home */
.hero + .play { margin: 0 0 28px; }
.cue { margin: 6px 0 0; font-size: 14px; color: var(--ink2); }
.maker-card { display: flex; align-items: center; gap: 14px; width: fit-content; margin: 0 auto 48px; padding: 8px 18px 8px 8px; border-radius: 999px; color: var(--ink2); text-decoration: none; font-size: 14px; line-height: 1.35; transition: background 0.15s; }
.maker-card:hover { background: var(--paper2); }
.maker-card img { width: 52px; height: 52px; border-radius: 50%; background: var(--paper2); object-fit: cover; }
.maker-card b { color: var(--ink); font-weight: 600; }
.maker-card small { display: block; font-size: 13px; }
.maker-card i { font-style: normal; transition: transform 0.15s; }
.maker-card:hover i { transform: translateX(3px); color: var(--red-dark); }
/* What's new */
.log { list-style: none; padding: 0; margin: 24px 0 0; }
.log > li { display: grid; grid-template-columns: 72px 1fr; gap: 0 18px; padding: 14px 16px; border-radius: 12px; scroll-margin-top: 16px; }
.log > li + li { margin-top: 2px; }
.log time { color: var(--ink2); font-size: 14px; padding-top: 2px; white-space: nowrap; }
.log .major { background: #fbf3ec; }
.log .major time::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 7px; vertical-align: 2px; }
.log summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.log summary::-webkit-details-marker { display: none; }
.log summary::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 4px 4px 0; border: solid #b3a99f; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.log details[open] summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.doc .log h2 { font-size: 18px; margin: 0; }
.log summary:hover h2 { color: var(--red-dark); }
.log details p { margin: 6px 0 0; color: var(--ink2); max-width: 600px; }
.show { margin: 12px 0 4px; }
.piles { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; display: flex; gap: 20px; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.piles span { display: flex; align-items: center; gap: 8px; }
.fakebtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: var(--paper2); font-size: 14px; font-weight: 600; }
.fakebtn b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }
.log .colored { margin: 0; font-size: 22px; color: var(--ink); }
.sounds { display: flex; gap: 12px; }
.sounds .seal { width: 40px; height: 40px; padding: 0; font-size: 20px; background: #fff; cursor: pointer; transition: transform 0.1s, background 0.1s, color 0.1s; }
.sounds .seal:hover { transform: rotate(-4deg); }
.sounds .seal.press { transform: scale(1.15) rotate(-6deg); background: var(--c); color: #fff; }
@media (max-width: 520px) { .log > li { grid-template-columns: 1fr; padding: 12px; } .log time { padding: 0 0 2px; font-size: 13px; } }
/* Not found */
.lost { text-align: center; padding-top: 96px; padding-bottom: 120px; }
.lost .big { font-size: clamp(56px, 14vw, 104px); line-height: 1.2; margin: 0 0 12px; letter-spacing: 0.04em; }
.lost .cue { font-size: 16px; }
/* Header: signed in or not */
header nav { align-items: center; }
header nav a.signin { color: var(--ink); font-weight: 600; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color 0.15s, background 0.15s; }
header nav a.signin:hover { border-color: #d6cbbf; color: var(--ink); }
header nav a.signin:active { transform: scale(0.97); }
header nav [hidden] { display: none; }
.me { position: relative; }
.me summary { list-style: none; cursor: pointer; display: block; border-radius: 50%; }
.me summary::-webkit-details-marker { display: none; }
.me summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.me .initial { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f7e4e2; color: var(--red-dark); font-weight: 700; font-size: 16px; transition: box-shadow 0.15s; }
.me summary:hover .initial, .me[open] .initial { box-shadow: 0 0 0 3px #f2d3cf; }
.me .menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 230px; max-width: calc(100vw - 32px); padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(30, 26, 24, 0.25); transform-origin: top right; animation: menuin 0.16s ease-out; }
@keyframes menuin { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.me .who { margin: 0; padding: 8px 12px 10px; color: var(--ink2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.me .menu a, .me .menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 16px; color: var(--ink); text-decoration: none; cursor: pointer; }
.me .menu a:hover, .me .menu button:hover { background: var(--paper2); color: var(--ink); }
.me .menu .out { color: var(--ink2); }
@media (max-width: 640px) { header nav a[href="/brain/whats-new"] { display: none; } }
@media (max-width: 420px) { header a.home:has(img) { font-size: 0; gap: 0; } header nav { gap: 14px; } }
/* Chris, wherever the site points to him */
.face { border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 28%, #f4f6ee 0%, #dfe8da 55%, #c9d9d2 100%); }
footer .wrap { align-items: center; }
footer a.maker { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; margin-right: 6px; }
footer a.maker:hover span { color: var(--red-dark); }
footer .face { width: 36px; height: 36px; }
footer .year { margin-left: auto; }
.maker-card img { background: radial-gradient(circle at 50% 28%, #f4f6ee 0%, #dfe8da 55%, #c9d9d2 100%); }
.maker-card small { font-size: 14px; }
/* Store buttons */
.cta .buttons { justify-content: center; }
.cta .fine { text-align: center; }
.rowbtn.stores { margin-top: 12px; }
.dash .fine { font-size: 15px !important; }
.log .show.buttons { margin-top: 14px; }
/* Home: more to try */
.stage { margin: 0 0 72px; }
.intro { max-width: 620px; margin: 0 0 20px; }
.intro h2 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -0.015em; }
.intro p { color: var(--ink2); margin: 0; }
.tv .screen { aspect-ratio: 16 / 7.5; padding-bottom: 34px; background:
  radial-gradient(circle at 12% 22%, rgba(255, 170, 70, 0.55), transparent 9%),
  radial-gradient(circle at 27% 14%, rgba(255, 90, 60, 0.45), transparent 7%),
  radial-gradient(circle at 46% 26%, rgba(255, 200, 90, 0.4), transparent 8%),
  radial-gradient(circle at 68% 12%, rgba(255, 120, 70, 0.5), transparent 9%),
  radial-gradient(circle at 86% 24%, rgba(255, 190, 80, 0.45), transparent 8%),
  radial-gradient(ellipse at 50% 120%, #4a2c22, transparent 60%),
  linear-gradient(#1d1517, #120d0e); }
.tv .band { padding: 8px 22px 10px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6); }
.tv .zh { font-size: 30px; line-height: 2; }
.tv .en { font-size: 17px; }
.tv .w { padding: 0 1px; }
.tv rt { font: 500 15px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #857a72; letter-spacing: 0; }
.tv ruby.zr rt { font-size: 16px; font-weight: 500; color: #5e5650; letter-spacing: 0; padding: 0 0.2em; }
.tv.nopy rt { display: none; }
.tv.noen .band .en { display: none; }
.tv:not(.nopy) [data-k="p"], .tv:not(.noen) [data-k="x"] { border-color: var(--red); color: var(--red-dark); }
.ytsim.held .track .bar { animation-play-state: paused; }
.ytsim.held .badge.pause { opacity: 1; }
.ytkeys button { font-size: 15px; }
.mine { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.page { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 28px 24px; box-shadow: 0 18px 50px -30px rgba(30, 26, 24, 0.35); }
.page h3 { font-size: 28px; font-weight: 600; margin: 0 0 8px; }
.page p { font-size: 24px; line-height: 1.95; margin: 0; }
.yours { background: var(--paper2); border-radius: 16px; padding: 18px 20px; min-height: 100%; }
.yours .piles { margin: 0 0 12px; }
.yours .piles i { font-style: normal; min-width: 1ch; }
.yours .piles .seal { width: 32px; height: 32px; font-size: 18px; }
.mylist { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow-y: auto; }
.mylist li { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--line); animation: landin 0.3s ease-out; }
.mylist .w { font-size: 22px; padding: 0 4px; }
.mylist .py { color: var(--ink2); font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mylist .en { color: var(--ink2); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes landin { from { opacity: 0; transform: translateY(-6px); } }
.yours .empty { margin: 4px 0 0; color: var(--ink2); font-size: 15px; }
.yours.some .empty { display: none; }
@media (max-width: 760px) { .mine { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tv .screen { aspect-ratio: auto; min-height: 250px; } .tv .zh { font-size: 25px; } .page { padding: 18px 20px; } .page p { font-size: 22px; } .intro h2 { font-size: 24px; } }
@media (prefers-reduced-motion: reduce) { .me .menu, .mylist li { animation: none; } }
/* Nothing small */
.feature p, .cue, .hint, .fine { font-size: 16px !important; }
.dcard { font-size: 15px; }
.dcard .py { font-size: 16px; }
.dcard .parts { font-size: 14px; }
.dcard .freq { font-size: 13px; }
.tv .w { margin: 0 2px; }
@media (max-width: 640px) { .tv .screen { padding: 0 10px 22px; } .tv .band { padding: 6px 12px 8px; } .tv .zh { font-size: 23px; } .tv rt { font-size: 14px; } .tv .en { font-size: 16px; } }
.screen .en { font-size: 16px; } .quests li { font-size: 15px; } .log time { font-size: 15px; } .tile { font-size: 15px; } .tile strong { font-size: 16px; }
.doc .updated { font-size: 17px; }
.zydemo { font: 600 44px/1.2 var(--zh, "PingFang TC", serif); color: var(--ink); --zy: 0.4em; --zy-ink: var(--ink2); }
