:root { --paper: var(--tools-paper, #f6f5ef); --surface: var(--tools-surface, #fbfaf6); --ink: var(--tools-ink, #30372e); --muted: var(--tools-muted, #858b7d); --line: var(--tools-line, #dedfd5); --accent: var(--tools-accent, #59723b); --tint: var(--tools-tint, #e8edda); --sans: "Jost", "Noto Sans SC", system-ui, sans-serif; --mono: "IntelOne Mono", "Noto Sans SC", monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: wait; opacity: 0.5; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 100; padding: 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }
.dictionary-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr minmax(260px, 520px) 1fr; align-items: center; gap: 2rem; min-height: 88px; padding: 1rem 3.5vw; background: var(--tools-paper, #f6f5eff0); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.dictionary-brand { display: flex; align-items: center; gap: 0.75rem; font-size: 1.05rem; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; padding-bottom: 6px; border: 1px solid var(--tools-line, #bac7a8); border-radius: 50%; font-size: 1.7rem; line-height: 1; color: var(--accent); }
.dictionary-brand small { color: var(--muted); font-size: 0.82rem; margin-left: 0.3rem; }
.header-tools { justify-self: end; font-size: 0.85rem; color: var(--tools-muted, #6b7463); }
.header-tools span { margin-left: 0.7rem; }
.header-actions { display: flex; align-items: center; justify-content: end; gap: 1.2rem; }
.dictionary-theme { position: relative; }
.dictionary-theme summary { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; list-style: none; color: var(--accent); }
.dictionary-theme summary::-webkit-details-marker { display: none; }
.dictionary-theme summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.dictionary-theme .icon { font-size: 1.3rem; line-height: 1; }
.theme-options { position: absolute; right: 0; top: calc(100% + 10px); min-width: 130px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 12px 35px var(--tools-shadow, #25301922); }
.theme-options button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-align: left; font-size: 0.8rem; }
.theme-options button:hover, .theme-options button.active { background: var(--tint); color: var(--accent); }
.search-wrap { position: relative; }
.search-wrap input { width: 100%; height: 44px; padding: 0 3rem 0 2.8rem; background: var(--tools-surface, #edeee6); border: 1px solid transparent; border-radius: 9px; color: var(--ink); font-size: 0.83rem; transition: border-color 180ms, background 180ms; }
.search-wrap input:focus { outline: none; border-color: var(--tools-line, #a5b78c); background: var(--surface); }
.search-wrap input::placeholder { color: var(--tools-muted, #94998c); }
.search-icon { position: absolute; top: 13px; left: 15px; width: 18px; height: 18px; stroke: var(--tools-muted, #8a927e); stroke-width: 1.5; pointer-events: none; }
.search-shortcut { position: absolute; right: 14px; top: 12px; min-width: 21px; border: 1px solid var(--tools-line, #d7dbcd); border-radius: 4px; text-align: center; font: 12px/19px var(--mono); color: var(--tools-muted, #929985); pointer-events: none; }
.search-popover { position: absolute; top: calc(100% + 9px); left: 0; right: 0; max-height: min(480px, 65dvh); overflow: auto; padding: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 60px var(--tools-shadow, #25301922); }
#search-status { padding: 0.3rem 0.5rem; margin: 0; color: var(--muted); font-size: 0.72rem; }
.search-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.8rem; border-radius: 7px; cursor: pointer; }
.search-result:hover, .search-result[aria-selected="true"] { background: var(--tint); }
.search-result strong { display: block; font-size: 1.15rem; font-weight: 500; }
.search-result small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; color: var(--tools-muted, #858b7b); font-size: 0.75rem; }
.search-result > span { color: var(--tools-muted, #8c987a); }
#dictionary-main { min-height: calc(100dvh - 180px); padding: 0 3.5vw; }
.discovery-intro { display: flex; justify-content: space-between; align-items: end; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.eyebrow { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 1rem; color: var(--tools-muted, #818d70); font: 0.63rem/1.5 var(--mono); letter-spacing: 0.12em; }
.status-dot { width: 6px; height: 6px; background: var(--tools-accent, #82965e); border-radius: 50%; }
.discovery-intro h1 { margin: 0; font-size: clamp(2.6rem, 4.4vw, 4.5rem); font-weight: 400; letter-spacing: -0.055em; line-height: 1.15; }
.discovery-intro h1 > span { color: var(--accent); }
.discovery-intro h1 i { display: inline-block; margin-left: 1.4rem; color: var(--accent); font-size: 0.65em; font-style: normal; transition: transform 600ms; }
.discovery-intro h1:hover i { transform: rotate(90deg); }
.intro-description { margin: 0.8rem 0 0; font-size: 0.84rem; color: var(--tools-muted, #858c7b); letter-spacing: 0.05em; }
.discovery-note { flex-shrink: 0; text-align: right; font-size: 0.74rem; color: var(--muted); }
.discovery-note > span { font: 0.63rem var(--mono); letter-spacing: 0.04em; }
.discovery-note p { margin: 0.7rem 0 0; line-height: 1.8; }
.wall-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.filters { display: flex; align-items: center; gap: 0.3rem; overflow-x: auto; padding: 3px; scrollbar-width: none; }
.filters button { flex-shrink: 0; padding: 0.45rem 0.85rem; border: 0; border-radius: 6px; background: transparent; color: var(--tools-muted, #828a76); font-size: 0.75rem; transition: background 180ms, color 180ms; }
.filters button:hover { background: var(--tools-surface, #edeee5); }
.filters button[aria-pressed="true"] { background: var(--tools-featured, #dfe7c9); color: var(--tools-accent, #526b36); }
.shuffle-button { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; padding: 0.45rem 0.1rem 0.45rem 0.6rem; background: none; border: 0; color: var(--tools-muted, #6b775d); font-size: 0.75rem; }
.shuffle-button > span { font-size: 1.5rem; line-height: 1; transition: transform 350ms; }
.shuffle-button:hover > span { transform: rotate(180deg); }
.word-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 174px; grid-auto-flow: dense; gap: 12px; padding: 0.4rem 0; }
.word-tile { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 1.3rem; border: 1px solid var(--tools-line, #e1e2d7); border-radius: 10px; background: var(--tools-surface, #eeeee5); text-align: center; transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms, background 300ms, border-color 300ms; animation: tile-arrive 500ms both; animation-delay: var(--delay, 0ms); }
.word-tile.tone-1 { background: var(--tools-surface, #e9eddf); border-color: var(--tools-line, #dfe5d3); }
.word-tile.tone-2 { background: var(--tools-warm, #f0ece2); border-color: var(--tools-line, #e7e1d5); }
.word-tile.tone-3 { background: var(--tools-surface, #e6e9de); border-color: var(--tools-line, #d9dfce); }
.word-tile.featured { grid-column: span 2; grid-row: span 2; background: var(--tools-featured, #e0e8ca); border-color: var(--tools-line, #d1dcba); }
.tile-number { position: absolute; top: 13px; left: 16px; font: 0.56rem var(--mono); color: var(--tools-muted, #a3a991); }
.tile-arrow { position: absolute; top: 10px; right: 14px; color: var(--tools-muted, #b1baa1); font-size: 1rem; transition: transform 250ms, color 250ms; }
.tile-heading { max-width: 100%; transition: transform 300ms; }
.tile-word { display: block; overflow-wrap: anywhere; font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.2; }
.featured .tile-word { font-size: clamp(2.4rem, 4vw, 4.5rem); }
.tile-phonetic { display: block; margin-top: 0.5rem; font-size: 0.68rem; color: var(--tools-muted, #9aa388); letter-spacing: 0.02em; }
.tile-preview { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 300ms, opacity 250ms, margin 300ms; }
.tile-preview > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.72rem; color: var(--tools-muted, #69745d); line-height: 1.65; }
.tile-preview > .tile-feel { margin-top: 0.5rem; color: var(--tools-muted, #8a947a); font-size: 0.65rem; }
.featured .tile-preview { max-width: 270px; }
.featured .tile-preview > span { font-size: 0.85rem; }
.tile-tag { position: absolute; bottom: 12px; font-size: 0.55rem; color: var(--tools-muted, #9aa38b); letter-spacing: 0.07em; }
.word-tile:not(.featured) .tile-preview > .tile-translation { -webkit-line-clamp: 1; }
.word-tile[data-long]:not(.featured) .tile-word { font-size: 1.25rem; }
.word-tile:hover .tile-tag, .word-tile:focus-visible .tile-tag { opacity: 0; }
.word-tile:hover, .word-tile:focus-visible { z-index: 2; transform: translateY(-6px) scale(1.035); background: var(--tools-hover, #f7f8ed); border-color: var(--tools-line, #a5b88a); box-shadow: 0 16px 35px var(--tools-shadow, #3444261a); }
.word-tile:hover .tile-preview, .word-tile:focus-visible .tile-preview { max-height: 110px; opacity: 1; margin-top: 0.65rem; }
.word-tile:hover .tile-arrow { transform: translate(2px, -2px); color: var(--accent); }
.wall-status { font-size: 0.85rem; color: var(--muted); padding: 1rem 0; }
.wall-status:empty { display: none; }
.error-state { display: grid; place-items: center; min-height: 45vh; padding: 3rem 1rem; text-align: center; }
.error-state h1 { font-size: 2.4rem; font-weight: 400; }
.error-state p { color: var(--muted); }
.error-state button { margin-top: 1rem; padding: 0.6rem 1.5rem; border: 1px solid var(--tools-line, #b6c69d); border-radius: 6px; background: var(--tint); color: var(--accent); }
.wall-bottom { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 2.5rem 0; }
#more-words { padding: 0.65rem 1.5rem; background: transparent; border: 1px solid var(--tools-line, #c6ceba); border-radius: 7px; color: var(--tools-muted, #6c795b); font-size: 0.82rem; }
#more-words:hover { background: var(--tint); }
#more-words span { margin-left: 1rem; }
.wall-bottom > span { font-size: 0.7rem; color: var(--tools-muted, #a2a995); }
.dictionary-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 3.5vw 0; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: 0.65rem; color: var(--tools-muted, #a0a78f); }
.dictionary-footer i { margin-left: 1rem; font-size: 1rem; font-style: normal; }
.entry-navigation { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; color: var(--tools-muted, #8a967b); }
.entry-navigation button { padding: 0.3rem 0; background: none; border: 0; color: var(--tools-muted, #758465); font-size: 0.76rem; }
.entry-navigation > span { font: 0.58rem var(--mono); letter-spacing: 0.1em; }
.entry-hero { position: relative; width: min(1100px, 100%); margin: 1.5rem auto 2rem; padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); animation: view-arrive 400ms both; }
.entry-hero h1 { margin: 0.7rem 0 1rem; font-size: clamp(3rem, 7vw, 6.8rem); font-weight: 400; letter-spacing: -0.065em; line-height: 1.05; overflow-wrap: anywhere; }
.entry-hero h1:focus { outline: none; }
.entry-hero .entry-trans { max-width: 750px; font-size: 1rem; line-height: 1.8; color: var(--tools-muted, #71815d); white-space: pre-line; }
.entry-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.entry-badge { padding: 0.2rem 0.5rem; border: 1px solid var(--tools-line, #d3dcc4); border-radius: 4px; font-size: 0.6rem; color: var(--tools-muted, #869575); }
.entry-phonetics { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin: 1.3rem 0; }
.pronunciation-button { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.7rem; border: 1px solid var(--tools-line, #d8dfce); border-radius: 6px; background: var(--tools-surface, #eef1e5); color: var(--tools-muted, #7e8c6b); transition: background 180ms; font-size: 0.85rem; }
.pronunciation-button:hover, .pronunciation-button.playing { background: var(--tools-featured, #dfe8cb); }
.pronunciation-button > small { color: var(--tools-muted, #a3ad93); font: 0.6rem var(--mono); }
.pronunciation-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.entry-segments { color: var(--tools-muted, #a4ad98); font-size: 0.7rem; }
.entry-layout { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 3rem; width: min(1100px, 100%); margin: auto; }
.entry-toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 0.6rem; align-self: start; padding: 1rem 0; }
.entry-toc > span { margin-bottom: 0.5rem; font: 0.58rem var(--mono); letter-spacing: 0.1em; color: var(--tools-muted, #a1ac93); }
.entry-toc a { padding: 0.2rem 0; font-size: 0.74rem; color: var(--tools-muted, #8e9b7d); transition: color 180ms, transform 180ms; }
.entry-toc a:hover { color: var(--accent); transform: translateX(4px); }
.entry-sections { min-width: 0; }
.entry-section { padding: 1.8rem 0 2rem; border-bottom: 1px solid var(--line); animation: view-arrive 450ms both; }
.entry-section h2 { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 1.3rem; font-size: 1.1rem; font-weight: 500; letter-spacing: 0; }
.section-number { font: 0.6rem var(--mono); color: var(--tools-muted, #a1af8e); }
.entry-section h3 { font-size: 1rem; font-weight: 500; }
.entry-section p { margin: 0 0 1rem; font-size: 0.9rem; line-height: 2; overflow-wrap: anywhere; }
.entry-section p:last-child { margin-bottom: 0; }
.entry-section strong { font-weight: 700; color: var(--tools-accent, #495d34); }
.entry-section code { font: 0.85em/1.6 var(--mono); padding: 0.12rem 0.3rem; border-radius: 4px; background: var(--tools-surface, #e9eddf); color: var(--tools-accent, #67824a); overflow-wrap: anywhere; }
.entry-section ul { padding-left: 1.3rem; font-size: 0.9rem; line-height: 2; }
.feel-section { background: var(--tools-tint, #e8eedb); padding: 1.5rem 1.8rem; border: 1px solid var(--tools-line, #d8e2c5); border-radius: 10px; margin: 1rem 0; }
.feel-section p { font-size: 1.05rem; color: var(--tools-accent, #607b41); line-height: 1.9; }
.sense-row { display: grid; grid-template-columns: 35px 1fr; gap: 0.7rem; padding: 0.8rem 0; }
.sense-row + .sense-row { border-top: 1px solid var(--tools-line, #e8eadf); }
.sense-pos { padding-top: 0.2rem; color: var(--tools-muted, #97a681); font-size: 0.75rem; }
.sense-cn { font-size: 0.95rem; }
.sense-en { color: var(--tools-muted, #96a08b); font-size: 0.85rem; margin-top: 0.2rem; }
.core-marker { display: inline-block; margin-left: 0.6rem; color: var(--tools-muted, #a5b68d); font-size: 0.58rem; }
.example-card { padding: 1.2rem 1.3rem; background: var(--tools-surface, #eeefe7); border-radius: 8px; margin-bottom: 0.7rem; }
.example-card .example-en { font-size: 1.05rem; line-height: 1.65; }
.example-card .example-cn { margin: 0.4rem 0; color: var(--tools-muted, #8a967d); font-size: 0.82rem; line-height: 1.8; }
.example-card .example-tag { color: var(--tools-muted, #a6b197); font-size: 0.6rem; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.related-card { display: block; min-width: 0; padding: 1rem 1.2rem; border: 1px solid var(--tools-line, #dde3d2); border-radius: 8px; transition: background 180ms, transform 180ms; }
a.related-card:hover { background: var(--tools-tint, #e9eedf); transform: translateY(-2px); }
.related-card .related-word { font-size: 1.3rem; overflow-wrap: anywhere; }
.related-card .related-kind { font-size: 0.55rem; color: var(--tools-muted, #a4b193); margin-left: 0.5rem; }
.related-card .related-cn { color: var(--tools-muted, #849472); font-size: 0.8rem; }
.related-card .related-note { color: var(--tools-muted, #9ba68f); font-size: 0.73rem; line-height: 1.8; margin-top: 0.4rem; }
.collocation-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--tools-line, #e5e8dc); }
.collocation-row > span:first-child { color: var(--tools-accent, #607a43); }
.collocation-row > span:last-child { color: var(--tools-muted, #939e85); font-size: 0.82rem; }
.root-row { display: grid; grid-template-columns: 100px 60px 1fr; gap: 1rem; padding: 0.6rem 0; }
.root-row > span:first-child { font-size: 1.2rem; color: var(--tools-accent, #6f8555); }
.root-row > span:nth-child(2) { font-size: 0.65rem; color: var(--tools-muted, #a8b09b); }
.root-row > span:last-child { font-size: 0.82rem; color: var(--tools-muted, #879477); }
.form-list, .entry-metadata { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.8rem; color: var(--tools-muted, #82936e); }
.form-list dt, .entry-metadata dt { color: var(--tools-muted, #a2af94); font-size: 0.65rem; }
.form-list dd, .entry-metadata dd { margin: 0.2rem 0 0; }
.book-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.book-tag { padding: 0.3rem 0.55rem; background: var(--tools-surface, #ecefe3); border-radius: 4px; font-size: 0.67rem; color: var(--tools-muted, #8c9c78); }
.entry-section details { margin-top: 1rem; color: var(--tools-muted, #8a9979); font-size: 0.8rem; }
.entry-section summary { cursor: pointer; }
.entry-section pre { padding: 1rem; white-space: pre-wrap; overflow-wrap: anywhere; font: 0.65rem/1.7 var(--mono); background: var(--tools-surface, #ecefe3); border-radius: 7px; max-height: 500px; overflow: auto; }
.entry-tail { padding: 3rem 0; font-size: 0.75rem; color: var(--tools-muted, #a2ae92); text-align: center; }
.sense-en, .related-card .related-note, .collocation-row > span:last-child { color: var(--tools-muted, #6c7a5f); }
.sense-pos, .tile-phonetic, .tile-tag { color: var(--tools-muted, #78856a); }
.related-card .related-cn, .example-card .example-cn, .root-row > span:last-child { color: var(--tools-muted, #6a7a57); }
.entry-toc a, .form-list, .entry-metadata { color: var(--tools-muted, #6b7b57); }
.form-list dt, .entry-metadata dt { color: var(--tools-muted, #788569); }
#toast { position: fixed; bottom: 2rem; left: 50%; z-index: 50; max-width: calc(100vw - 32px); padding: 0.7rem 1.2rem; background: var(--tools-toast, #34432b); color: #fff4e8; border-radius: 8px; font-size: 0.8rem; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity 200ms, transform 200ms; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-message { position: fixed; inset: 30% 1rem auto; z-index: 60; padding: 2rem; background: var(--surface); border: 1px solid var(--line); text-align: center; }
@keyframes tile-arrive { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes view-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1700px) { .word-wall { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .dictionary-header { grid-template-columns: auto minmax(220px, 1fr) auto; gap: 1.2rem; } .word-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .discovery-intro h1 { font-size: 3.3rem; } .entry-layout { grid-template-columns: 130px minmax(0, 1fr); gap: 2rem; } }
@media (max-width: 700px) {
    html { scroll-padding-top: 140px; }
    .dictionary-header { grid-template-columns: 1fr auto; gap: 0.9rem; padding: 0.8rem 1rem; }
    .dictionary-brand small { font-size: 0.7rem; } .dictionary-brand { font-size: 0.95rem; }
    .search-wrap { grid-column: 1 / -1; grid-row: 2; } .header-actions { grid-column: 2; grid-row: 1; gap: 0.75rem; } .header-tools { font-size: 0.75rem; }
    #dictionary-main { padding: 0 1rem; } .discovery-intro { padding: 2rem 0 1.5rem; }
    .discovery-intro h1 { font-size: clamp(2rem, 7.7vw, 3rem); } .discovery-intro h1 i { margin-left: 0.5rem; }
    .discovery-note { display: none; } .intro-description { font-size: 0.75rem; }
    .wall-toolbar { gap: 0.4rem; } .filters button { padding: 0.45rem 0.65rem; font-size: 0.7rem; }
    .shuffle-button { font-size: 0.68rem; gap: 0.3rem; } .word-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 9px; }
    .word-tile { padding: 1rem 0.7rem; } .tile-word { font-size: 1.5rem; } .featured .tile-word { font-size: 3.2rem; }
    .word-tile.featured { grid-row: span 1; } .tile-preview { max-height: 44px; opacity: 1; margin-top: 0.65rem; } .tile-preview > span { font-size: 0.65rem; } .tile-preview > .tile-feel { display: none; }
    .tile-tag { display: none; } .tile-number { font-size: 0.5rem; left: 11px; } .tile-phonetic { font-size: 0.6rem; }
    .word-tile:not(.featured) .tile-preview > .tile-translation { -webkit-line-clamp: 2; }
    .entry-navigation > span { display: none; } .entry-hero { margin-top: 0; padding: 1.5rem 0; }
    .entry-hero h1 { font-size: clamp(3rem, 14vw, 5rem); } .entry-hero .entry-trans { font-size: 0.9rem; }
    .entry-layout { display: block; } .entry-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.5rem 0 1rem; border-bottom: 1px solid var(--line); }
    .entry-toc > span { display: none; } .entry-toc a { font-size: 0.67rem; }
    .related-grid { grid-template-columns: 1fr; } .feel-section { padding: 1.2rem; } .entry-section p { font-size: 0.85rem; }
    .root-row { grid-template-columns: 75px 45px 1fr; gap: 0.5rem; } .collocation-row { gap: 0.8rem; }
    .dictionary-footer { margin-left: 1rem; margin-right: 1rem; font-size: 0.6rem; } .dictionary-footer > span:last-child { font-size: 0.55rem; }
}
@media (hover: none) { .word-tile:hover { transform: none; box-shadow: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Raised surfaces and readable type shared with the blog and tools collection. */
.dictionary-header { top: 14px; margin: 14px 3.5vw 0; min-height: 76px; padding: 14px 20px; gap: 1.25rem; background: var(--tools-glass); border: 1px solid var(--line); border-radius: var(--tools-radius-large, 20px); box-shadow: var(--tools-floating); }
.dictionary-brand { font-weight: 650; }
.brand-mark, .dictionary-theme summary { border-radius: var(--tools-radius, 14px); background: var(--tint); border-color: var(--line); box-shadow: var(--tools-raised); }
.search-wrap input { border-color: var(--line); background: var(--surface); border-radius: var(--tools-radius, 14px); }
.header-tools { padding: .45rem .7rem; border-radius: var(--tools-radius, 14px); background: var(--tint); font-weight: 600; color: var(--ink); }
.discovery-intro h1 { font-weight: 600; letter-spacing: -.035em; }
.intro-description { font-size: .95rem; color: var(--ink); }
.wall-toolbar { border-top: 0; margin-bottom: .7rem; padding: .65rem; border-radius: var(--tools-radius-large, 20px); background: var(--tools-glass); box-shadow: var(--tools-raised); }
.filters button { font-size: .82rem; font-weight: 500; border-radius: var(--tools-radius, 14px); }
.filters button[aria-pressed="true"] { color: var(--ink); background: var(--tint); font-weight: 650; }
.shuffle-button { padding-right: .5rem; font-size: .82rem; color: var(--ink); }
.word-tile { border-radius: var(--tools-radius-large, 20px); box-shadow: var(--tools-raised); background-image: linear-gradient(145deg, #ffffff18, transparent 65%); }
.word-tile.tone-1 { background-color: var(--tools-tint); }
.word-tile.tone-3 { background-color: color-mix(in srgb, var(--tools-featured) 55%, var(--surface)); }
.tile-word { font-weight: 600; }
.tile-phonetic { font-size: .76rem; }
.entry-section h2, .entry-section h3, .entry-hero h1 { font-weight: 650; }
.feel-section, .example-card, .related-card { border-radius: var(--tools-radius, 14px); box-shadow: var(--tools-raised); }
@media (max-width: 900px) { .dictionary-header { margin: 10px 20px 0; top: 10px; padding: 12px; gap: 12px; } }
@media (max-width: 600px) { .dictionary-header { margin: 8px 12px 0; top: 8px; } .wall-toolbar { padding: .5rem; } .header-tools { background: none; padding: 0; } }
