/* TOP revision 006 (002 form preserved): restore the approved bright rounded search form.
   Individual-page assets and the background renderer are unchanged.
   History entries are user activity, never fabricated default content. */
:root {
  color-scheme: dark;
  --text: #f4fbff;
  --muted: #d7eaf7;
  --ink: #142c48;
  --line: rgb(204 238 255 / .25);
  --accent: #a5f5ed;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body {
  background: #061c62; color: var(--text);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid #b9fff5; outline-offset: 5px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#world { position: fixed; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; background: radial-gradient(ellipse at 52% 48%,#3bd5df 0%,#066ac0 25%,#123ca3 59%,#061c62 100%); }
/* Preserve the scene. Only the areas directly behind text receive a soft veil. */
.ambient-soften { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse 64% 60% at 50% 40%,transparent 22%,rgb(7 32 86 / .08) 60%,rgb(3 15 58 / .28) 100%); }
.edge-shade { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(180deg,rgb(2 15 45 / .12),transparent 27%,transparent 70%,rgb(2 14 31 / .25)); }
.app-shell { position: relative; z-index: 2; overflow-x: clip; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.search-home { width: min(100%,1020px); margin: 0 auto; flex: 1; padding: clamp(90px,16svh,180px) 32px 64px; }
.brand-heading { position: relative; display: flex; align-items: center; flex-direction: column; isolation: isolate; margin: 0 0 31px; }
.brand-heading::before { content: ""; position: absolute; z-index: -1; width: min(760px,100vw); height: 210px; top: -38px; background: radial-gradient(ellipse,rgb(3 25 65 / .36),transparent 72%); pointer-events: none; }
.brand { display: inline-flex; align-items: center; justify-content: center; gap: 23px; color: inherit; text-decoration: none; }
.brand-character { display: block; width: 99px; height: 118px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 9px rgb(3 22 58 / .38)); }
.brand-type { display: block; }
.brand h1 { margin: 0; font-size: clamp(40px,4.25vw,60px); font-weight: 600; letter-spacing: .13em; white-space: nowrap; line-height: 1.3; text-shadow: 0 2px 6px #062357,0 0 26px rgb(114 219 255 / .45); }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .32em; margin-top: 12px; color: #e4f3fb; text-shadow: 0 1px 6px #061c53; }
.brand-purpose { margin: 19px 0 0; color: #f2fbff; font-size: 16px; font-weight: 500; letter-spacing: .21em; line-height: 1.8; text-shadow: 0 2px 7px #042058,0 0 18px #042058; }
.search-section { width: min(100%,880px); margin: 0 auto; }
.kanji-search {
  display: flex; align-items: center; width: 100%; height: 82px; padding: 6px;
  border: 2px solid #e7fbff; border-radius: 48px;
  background: linear-gradient(180deg,#ffffff 0%,#effaff 64%,#e4f6ff 100%);
  box-shadow: 0 0 0 1px rgb(97 226 255 / .75),0 0 27px rgb(46 201 255 / .5),0 14px 46px rgb(0 25 74 / .25),inset 0 1px 1px #fff;
  color: var(--ink); color-scheme: light; transition: box-shadow .2s,border-color .2s;
}
.kanji-search:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgb(118 235 255 / .65),0 0 38px rgb(72 216 255 / .65),0 14px 46px rgb(0 25 74 / .2); }
.search-leading-icon { display: grid; place-items: center; flex: none; width: 65px; height: 32px; margin-right: 3px; border-right: 1px solid #a8cbdc; color: #376486; }
.search-leading-icon svg { width: 28px; height: 28px; }
.kanji-search input { width: 100%; min-width: 0; height: 100%; padding: 0 21px; border: 0; outline: 0; border-radius: 0; background: transparent; color: #142c48; caret-color: #057bb2; font-size: 22px; font-weight: 600; letter-spacing: .04em; appearance: none; -webkit-appearance: none; }
.kanji-search input::placeholder { color: #7d8b99; opacity: 1; font-weight: 400; }
.kanji-search input::-webkit-search-cancel-button { display: none; }
.search-submit { width: 108px; height: 100%; flex: none; display: flex; gap: 8px; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / .7); border-radius: 36px; background: linear-gradient(140deg,#05b5d4,#077bc2 86%); box-shadow: inset 0 1px 0 rgb(255 255 255 / .35),0 3px 8px rgb(6 125 184 / .22); color: #fff; font-size: 16px; font-weight: 700; }
.search-submit:hover { background: linear-gradient(140deg,#00a6c5,#076baf); }
.search-submit:active { transform: translateY(1px); }
.search-submit svg { width: 25px; height: 25px; }
.search-submit:focus-visible, .clear-input:focus-visible { outline-color: #134b70; outline-offset: 2px; }
.clear-input { width: 38px; height: 44px; display: grid; place-items: center; border: 0; background: none; flex: none; color: #385a73; }
.clear-input svg { width: 23px; height: 23px; }
.clear-input:hover { color: #071f38; background: rgb(104 157 184 / .12); border-radius: 24px; }
.history-area { position: relative; isolation: isolate; width: min(100%,680px); margin: 29px auto 0; padding: 15px 12px 20px; }
.history-area::before { content: ""; pointer-events: none; z-index: -1; position: absolute; inset: -20px -90px -20px; border-radius: 50%; background: radial-gradient(ellipse at center,rgb(3 26 65 / .8) 0%,rgb(3 26 65 / .69) 35%,rgb(3 26 65 / .24) 63%,transparent 77%); filter: blur(13px); }
.history-heading { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 30px; }
.history-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #e3f3fb; font-size: 14px; font-weight: 500; letter-spacing: .09em; text-shadow: 0 1px 4px #041c42; }
.history-heading h2 svg { width: 18px; height: 18px; }
.clear-history { background: transparent; border: 0; color: #d1e5f3; font-size: 12px; padding: 8px 0 8px 12px; min-height: 36px; letter-spacing: .04em; }
.clear-history:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.query-history-list { display: flex; flex-wrap: wrap; column-gap: 25px; row-gap: 3px; margin-top: 5px; }
.query-history-list:empty { display: none; }
.query-item { display: block; max-width: 100%; overflow-wrap: anywhere; padding: 8px 0; min-height: 42px; background: transparent; border: 0; border-bottom: 1px solid rgb(202 237 252 / .2); color: #f4fbff; font-size: 18px; font-weight: 500; letter-spacing: .04em; text-align: left; text-shadow: 0 1px 5px #06204d; }
.query-item:hover { border-bottom-color: #c6fff1; color: #d4fff8; }
.kanji-history { margin-top: 21px; padding-top: 18px; border-top: 1px solid rgb(210 239 255 / .27); }
.kanji-history-list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 9px; min-height: 44px; }
.kanji-history-list:empty { display: none; }
/* Keep the individual-page motif: glyphs on the background, not box-shaped tabs. */
.history-link { display: grid; place-items: center; width: 43px; height: 47px; flex: none; color: #e1f3fb; font-size: 33px; font-weight: 400; line-height: 1; text-decoration: none; text-shadow: 0 1px 5px #051d45; border-bottom: 1px solid transparent; transition: color .15s,border-color .15s; }
.history-link:hover { color: #fff; border-bottom-color: #b6eee6; }
.search-results { margin-top: 21px; padding: 20px 25px 17px; color: #193249; background: #f7fcff; border: 1px solid #d7effa; border-radius: 18px; box-shadow: 0 15px 45px rgb(0 18 45 / .3); }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #cadfeb; }
.result-header h2 { font-size: 17px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.result-header button { display: grid; place-items: center; background: none; border: 0; color: #36566c; width: 40px; height: 40px; font-size: 26px; flex: none; }
.result-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 18px; }
.result-link { display: flex; align-items: center; gap: 15px; min-height: 84px; color: #122f46; text-decoration: none; border-bottom: 1px solid #d5e5ee; padding: 10px 6px; transition: background .15s; }
.result-link:hover { background: #e4f5fa; }
.result-glyph { font-size: 38px; line-height: 1.25; font-weight: 400; flex: none; width: 44px; text-align: center; }
.result-meta { font-size: 14px; line-height: 1.9; color: #37556a; flex: 1; }
.result-arrow { color: #007d9b; font-size: 22px; }
.result-note { margin: 12px 0 0; color: #476075; font-size: 12px; line-height: 1.8; }
.result-empty { font-size: 15px; line-height: 1.8; margin: 18px 0 4px; grid-column: 1/-1; }
.search-results :is(a,button):focus-visible { outline-color: #126b95; }
.site-footer { display: flex; align-items: center; justify-content: center; text-align: center; gap: 24px; margin: 0 clamp(22px,3.1vw,58px); padding: 0 0 max(20px,env(safe-area-inset-bottom)); color: #d7e9f5; text-shadow: 0 1px 6px #041538; }
.site-footer small { display: flex; align-items: center; justify-content: center; min-height: 40px; font-size: 12px; letter-spacing: .04em; }
.noscript-note { padding: 20px; font-size: 14px; line-height: 1.8; background: #0b315d; border-radius: 8px; }
@media (max-width: 800px) {
  .search-home { padding-inline: 26px; }
  .brand h1 { font-size: 43px; }
  .brand-character { width: 81px; height: 96px; }
  .brand { gap: 18px; }
  .kanji-search { height: 73px; }
  .kanji-search input { font-size: 20px; padding-inline: 17px; }
  .search-leading-icon { width: 55px; }
  .search-submit { width: 94px; }
  .history-area { padding-inline: 12px; }
}
@media (max-width: 600px) {
  #world,.ambient-soften,.edge-shade { height: 100lvh; inset: 0 0 auto; }
  .search-home { padding: clamp(77px,14svh,130px) 20px 42px; }
  .brand-heading { margin-bottom: 28px; }
  .brand-heading::before { height: 184px; top: -35px; }
  .brand { gap: 13px; }
  .brand-character { width: 58px; height: 69px; }
  .brand h1 { font-size: clamp(27px,8.2vw,34px); letter-spacing: .1em; }
  .brand small { margin-top: 8px; font-size: 8px; letter-spacing: .27em; }
  .brand-purpose { font-size: 13px; letter-spacing: .17em; margin-top: 18px; }
  .kanji-search { height: 64px; padding: 5px; border-width: 1.5px; border-radius: 36px; box-shadow: 0 0 0 1px rgb(97 226 255 / .7),0 0 22px rgb(46 201 255 / .45),0 10px 30px rgb(0 25 74 / .25); }
  .search-leading-icon { display: none; }
  .kanji-search input { padding: 0 11px 0 14px; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
  .search-submit { width: 58px; gap: 0; }
  .search-submit span { display: none; }
  .search-submit svg { width: 24px; height: 24px; }
  .clear-input { width: 30px; }
  .clear-input svg { width: 20px; height: 20px; }
  .search-hint { margin-top: 13px; font-size: 13px; gap: 10px; }
  .history-area { margin-top: 25px; padding: 12px 10px 20px; }
  .history-area::before { inset: -15px -34px -20px; background: radial-gradient(ellipse,rgb(3 25 62 / .92) 0%,rgb(3 25 62 / .8) 42%,rgb(3 25 62 / .24) 69%,transparent 83%); filter: blur(13px); }
  .history-heading h2 { font-size: 13px; }
  .query-history-list { column-gap: 22px; row-gap: 0; }
  .query-item { font-size: 16px; padding: 10px 0; min-height: 44px; }
  .empty-history { font-size: 13px; }
  .kanji-history { margin-top: 20px; padding-top: 17px; }
  .kanji-history-list { gap: 10px; }
  .history-link { width: 40px; height: 46px; font-size: 30px; }
  .result-items { grid-template-columns: 1fr; }
  .result-link { min-height: 78px; }
  .search-results { padding: 13px 17px; }
  .result-header h2 { font-size: 16px; }
  .site-footer { margin: 0 22px; padding-bottom: max(15px,env(safe-area-inset-bottom)); }
  .site-footer small { font-size: 11px; }
}
@media (max-width: 350px) {
  .search-home { padding-inline: 16px; }
  .brand { gap: 10px; }
  .brand h1 { font-size: 26px; letter-spacing: .08em; }
  .brand-character { width: 49px; height: 59px; }
  .kanji-search input { padding-left: 11px; padding-right: 5px; font-size: 16px; letter-spacing: 0; }
  .search-submit { width: 50px; }
  .clear-input { width: 25px; }
  .history-area { padding-inline: 6px; }
}
@media (max-height: 580px) and (orientation: landscape) {
  .search-home { padding-top: 34px; }
  .brand-heading { margin-bottom: 21px; }
  .brand h1 { font-size: 40px; }
  .brand-character { width: 64px; height: 76px; }
  .brand-purpose { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { button,a,.kanji-search { transition: none; } }

/* Center secondary activity beneath the centered search, with no new navigation tabs. */
.history-heading { justify-content: center; position: relative; padding-inline: 48px; }
.history-heading .clear-history { position: absolute; inset: -3px 0 auto auto; }
.query-history-list { justify-content: center; }
.kanji-history-list { justify-content: center; }
@media (max-width:600px) { .history-area { padding-top: 10px; } }

/* 003 — targeted changes. Keep the white rounded form, blue button and scene. */
.brand-type { display: flex; flex-direction: column; align-items: center; }
.brand small { text-align: center; }
.search-input-wrap { position: relative; display: block; flex: 1 1 auto; min-width: 0; height: 100%; }
.search-input-wrap input { position: relative; display: block; }
.search-input-wrap input::placeholder { color: transparent; }
.search-placeholder { display: none; position: absolute; inset: 0; align-items: center; padding: 0 21px; color: #7d8b99; font-size: 21px; font-weight: 400; letter-spacing: .025em; pointer-events: none; line-height: 1.4; }
.search-input-wrap input:placeholder-shown + .search-placeholder { display: flex; }
.search-placeholder > span { white-space: nowrap; }
/* 006: clear the hint on focus; typed characters keep their original dark color. */
.search-input-wrap input:focus + .search-placeholder { visibility: hidden; }
/* A contained glass surface, not a fog halo. Empty histories occupy no space. */
.history-area { width: min(100%,690px); margin: 30px auto 0; padding: 12px 24px 20px; border: 1px solid rgb(200 233 255 / .28); border-radius: 19px; background: linear-gradient(140deg,rgb(7 34 77 / .86),rgb(4 26 68 / .82)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 34px rgb(0 17 55 / .14),inset 0 1px 0 rgb(255 255 255 / .04); isolation: isolate; }
.history-area::before { display: none; }
.query-heading { min-height: 27px; padding: 0; justify-content: space-between; }
.history-symbol { display: block; width: 18px; height: 18px; color: #c8e7f5; }
.query-heading .clear-history { position: static; min-height: 32px; padding: 5px 0 5px 12px; }
.query-history-list { justify-content: center; gap: 4px 13px; margin-top: 3px; }
.query-item { max-width: 100%; min-height: 44px; padding: 9px 10px; border-bottom-color: rgb(202 237 252 / .18); font-size: 17px; line-height: 1.55; color: #f4fbff; text-shadow: none; word-break: normal; overflow-wrap: anywhere; border-radius: 4px 4px 0 0; }
.query-item:hover { background: rgb(156 226 255 / .07); }
.history-more { display: block; margin: 10px auto 0; padding: 6px 14px; min-height: 36px; background: none; color: #d5eef9; border: 0; font-size: 12px; text-underline-offset: 4px; }
.history-more:hover { text-decoration: underline; }
.kanji-history { margin-top: 17px; padding-top: 14px; border-top-color: rgb(210 239 255 / .22); }
.query-history[hidden] + .kanji-history { border-top: 0; margin-top: 0; padding-top: 0; }
.history-link { text-shadow: none; color: #e1f3fb; }
.result-match { display: block; font-size: 12px; color: #47647b; }
.more-results { display: block; width: 100%; margin-top: 15px; padding: 12px 20px; border: 1px solid #b4d7e7; border-radius: 10px; color: #20546c; background: #eaf6fc; font-size: 14px; }
.more-results:hover { background: #dcedf7; }
@media (max-width:800px) {
  .search-placeholder { padding-inline: 17px; font-size: 18px; }
}
@media (max-width:600px) {
  .search-placeholder { padding: 0 14px; flex-direction: column; align-items: flex-start; justify-content: center; font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
  .history-area { padding: 10px 16px 16px; margin-top: 24px; border-radius: 17px; }
  .query-item { font-size: 16px; padding-inline: 8px; }
  .query-history-list { gap: 3px 10px; }
  .kanji-history { margin-top: 15px; padding-top: 13px; }
  .kanji-history-list { gap: 8px; }
}
@media (max-width:350px) {
  .search-placeholder { font-size: 13px; padding-left: 11px; padding-right: 4px; letter-spacing: 0; }
  .history-area { padding-inline: 12px; }
}

/* 004 — Keep the approved design; only unify the two history headings. */
.history-heading-unified { position: relative; justify-content: space-between; align-items: center; padding: 0; min-height: 40px; gap: 12px; }
.history-heading-unified h2 { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; color: #e3f3fb; font-size: 14px; font-weight: 500; letter-spacing: .04em; text-shadow: none; }
.history-heading-unified .history-symbol { flex: none; width: 18px; height: 18px; color: #c8e7f5; }
.history-heading-unified .clear-history { position: static; padding: 8px 0 8px 12px; min-height: 40px; flex: none; }
.history-index-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 0 8px 12px; font-size: 12px; color: #d9f1fc; text-decoration: none; white-space: nowrap; flex: none; text-underline-offset: 4px; }
.history-index-link:hover { color: #fff; text-decoration: underline; }
.query-history-list { margin-top: 1px; }
@media (max-width:600px) {
  .history-heading-unified { gap: 8px; }
  .history-heading-unified h2 { font-size: 13px; gap: 7px; }
  .history-index-link { font-size: 12px; padding-left: 5px; }
}
@media (max-width:350px) {
  .history-heading-unified h2 { font-size: 12px; gap: 5px; letter-spacing: 0; }
  .history-heading-unified .history-symbol { width: 16px; height: 16px; }
  .history-index-link { font-size: 11px; gap: 3px; }
}

/* Search assistance and current coverage. */
.grade-scope{margin:12px 12px 0;text-align:center;color:#e1f4ff;font-size:14px;line-height:1.6;text-shadow:0 1px 6px #061c53}
.grade-scope span:not(:empty){display:block;font-size:12px;color:#d2e6f3}
.search-suggestions{margin:10px auto 0;padding:6px;width:min(100%,880px);border:1px solid #c1e7f3;border-radius:14px;background:#f8fdff;box-shadow:0 12px 32px #00193877;color:#183c56;max-height:260px;overflow:auto}
.suggestion-item{display:flex;width:100%;align-items:center;gap:12px;text-align:left;padding:9px 12px;background:transparent;border:0;border-radius:8px;color:#173c55;min-height:46px}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{background:#dff4f8;outline:0}.suggestion-glyph{font-size:25px;min-width:32px;font-weight:700}.suggestion-detail{font-size:13px}.suggestion-status{margin-left:auto;color:#647d88;font-size:12px}.suggestion-item:focus-visible{outline:2px solid #137d91;outline-offset:-2px}
@media(max-width:600px){.grade-scope{font-size:12px;margin-top:10px}.suggestion-item{padding:7px 10px}}

/* Compact, luminous search suggestions. */
.search-suggestions{width:min(100%,580px);padding:7px;background:linear-gradient(135deg,rgba(5,29,67,.96),rgba(8,53,91,.97));border:1px solid rgba(137,224,246,.55);border-radius:14px;box-shadow:0 0 0 1px rgba(57,187,224,.12),0 12px 36px rgba(0,14,48,.5),inset 0 1px 0 rgba(213,252,255,.15);color:#eafaff}
.suggestion-item{width:100%;gap:12px;padding:8px 12px;border:1px solid transparent;background:transparent;color:#effcff}
.suggestion-item+.suggestion-item{border-top-color:rgba(169,228,241,.13)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{background:linear-gradient(100deg,rgba(55,171,204,.30),rgba(53,120,178,.12));border-color:rgba(135,235,247,.35)}
.suggestion-glyph{color:#dffbff;text-shadow:0 0 12px rgba(107,227,255,.5)}
.suggestion-detail{flex:0 1 auto;min-width:0;max-width:55%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d1eaf3}
.suggestion-status{margin-left:0;color:#f4d792;background:rgba(228,189,100,.12);border:1px solid rgba(236,211,147,.28);border-radius:12px;padding:2px 8px;white-space:nowrap}
.suggestion-item:focus-visible{outline-color:#9bf5f7}
@media(max-width:600px){.search-suggestions{width:100%}.suggestion-item{gap:9px}.suggestion-status{font-size:11px;padding:2px 6px}}

/* Aligned and brighter candidate list. */
.search-suggestions{background:linear-gradient(125deg,rgba(13,75,119,.97),rgba(18,91,133,.95) 54%,rgba(11,63,108,.97));border-color:rgba(158,232,247,.8);box-shadow:0 0 0 1px rgba(102,216,241,.24),0 9px 28px rgba(1,26,67,.32),inset 0 1px 0 rgba(232,253,255,.24);padding:8px 14px}
.suggestion-item{display:grid;grid-template-columns:42px minmax(72px,1fr) max-content;gap:12px;align-items:center;width:min(100%,460px);margin:0 auto;padding:9px 14px;border-radius:9px}
.suggestion-glyph{min-width:0;text-align:center;font-size:26px;color:#fff}
.suggestion-detail{max-width:none;color:#f0fbff;font-size:14px}
.suggestion-status{justify-self:start;font-size:12px;background:rgba(248,218,147,.15);color:#ffecb0;border-color:rgba(255,229,170,.42)}
.suggestion-item+.suggestion-item{border-top:1px solid rgba(207,244,252,.2)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{background:rgba(133,224,244,.22);border-color:rgba(192,250,255,.5)}
@media(max-width:600px){.search-suggestions{padding:7px 10px}.suggestion-item{grid-template-columns:36px minmax(45px,1fr) max-content;gap:8px;padding:8px 8px}.suggestion-glyph{font-size:24px}.suggestion-detail{font-size:13px}.suggestion-status{font-size:11px}}

/* Subtle light and depth consistent with the top-page scene. */
.search-suggestions{background:radial-gradient(ellipse at 50% -30%,rgba(100,225,247,.35),transparent 62%),linear-gradient(115deg,rgba(13,71,116,.97),rgba(22,103,144,.95) 52%,rgba(10,63,108,.97));box-shadow:0 0 0 1px rgba(110,228,249,.3),0 0 22px rgba(64,205,238,.2),0 12px 28px rgba(0,20,55,.32),inset 0 1px 0 rgba(239,255,255,.35)}
.suggestion-glyph{text-shadow:0 0 12px rgba(105,231,255,.7),0 1px 3px rgba(0,25,53,.5)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{box-shadow:inset 3px 0 0 #9af7ff,inset 0 0 16px rgba(106,229,247,.14)}

.suggestion-item{grid-template-columns:42px minmax(72px,140px) max-content;justify-content:center}
@media(max-width:600px){.suggestion-item{grid-template-columns:36px minmax(45px,125px) max-content}}

/* Quiet scanning light inside the suggestion panel. */
.search-suggestions{position:relative;isolation:isolate}
.search-suggestions::before{content:"";position:absolute;z-index:0;pointer-events:none;inset:0 auto 0 -55%;width:48%;background:linear-gradient(105deg,transparent 8%,rgba(141,240,255,.035) 43%,rgba(176,250,255,.16) 50%,rgba(141,240,255,.035) 57%,transparent 92%);transform:translateX(0);animation:suggestion-scan 5.4s ease-in-out infinite}
.suggestion-item{position:relative;z-index:1}
@keyframes suggestion-scan{0%,12%{transform:translateX(0);opacity:0}25%{opacity:1}70%{opacity:.85}88%,100%{transform:translateX(325%);opacity:0}}
@media(prefers-reduced-motion:reduce){.search-suggestions::before{animation:none;display:none}}

/* Wireframe grid: visual only; it never intercepts candidate selection. */
.search-suggestions{background:radial-gradient(ellipse at 50% -40%,rgba(67,226,251,.35),transparent 68%),linear-gradient(125deg,#0c416d,#115779 55%,#103a70)}
.search-suggestions::after{content:"";position:absolute;z-index:0;pointer-events:none;inset:-35% -20%;background-image:repeating-linear-gradient(0deg,transparent 0 24px,rgba(134,234,255,.16) 25px,transparent 26px),repeating-linear-gradient(90deg,transparent 0 34px,rgba(112,221,255,.15) 35px,transparent 36px);transform:perspective(300px) rotateX(40deg) rotateZ(-5deg) scale(1.25);transform-origin:center;opacity:.48;animation:wireframe-drift 14s linear infinite}
@keyframes wireframe-drift{from{background-position:0 0,0 0}to{background-position:0 26px,36px 0}}
.suggestion-item{background:rgba(4,37,76,.24)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{background:rgba(54,163,201,.38)}
@media(prefers-reduced-motion:reduce){.search-suggestions::after{animation:none}}

/* Symmetric receding wireframe around a central vanishing point. */
.search-suggestions::after{inset:0;background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20144%22%20preserveAspectRatio%3D%22none%22%3E%3Cdefs%3E%3CradialGradient%20id%3D%22g%22%3E%3Cstop%20stop-color%3D%22%2356e8ff%22%20stop-opacity%3D%22.22%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23031b49%22%20stop-opacity%3D%220%22%2F%3E%3C%2FradialGradient%3E%3C%2Fdefs%3E%3Cpath%20fill%3D%22url%28%23g%29%22%20d%3D%22M0%200h600v144H0z%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%239beeff%22%20stroke-width%3D%22.55%22%20opacity%3D%22.50%22%3E%3Cpath%20d%3D%22M300%2072%20L0%200%20M300%2072%20L0%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L600%200%20M300%2072%20L600%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L570%200%20M300%2072%20L570%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L30%200%20M300%2072%20L30%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L60%200%20M300%2072%20L60%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L540%200%20M300%2072%20L540%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L90%200%20M300%2072%20L90%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L510%200%20M300%2072%20L510%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L120%200%20M300%2072%20L120%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L480%200%20M300%2072%20L480%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L450%200%20M300%2072%20L450%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L150%200%20M300%2072%20L150%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L420%200%20M300%2072%20L420%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L180%200%20M300%2072%20L180%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L210%200%20M300%2072%20L210%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L390%200%20M300%2072%20L390%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L240%200%20M300%2072%20L240%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L360%200%20M300%2072%20L360%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L330%200%20M300%2072%20L330%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L270%200%20M300%2072%20L270%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L300%200%20M300%2072%20L300%20144%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%200%20M300%2072%20L600%200%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%2018%20M300%2072%20L600%2018%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%2036%20M300%2072%20L600%2036%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%2054%20M300%2072%20L600%2054%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%2072%20M300%2072%20L600%2072%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%2090%20M300%2072%20L600%2090%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%20108%20M300%2072%20L600%20108%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%20126%20M300%2072%20L600%20126%22%2F%3E%3Cpath%20d%3D%22M300%2072%20L0%20144%20M300%2072%20L600%20144%22%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%22%238aeaff%22%20fill%3D%22none%22%20stroke-width%3D%22.9%22%20opacity%3D%22.42%22%3E%3Cpath%20d%3D%22M24%208%20v7%20M21%2011.5%20h6%20M24%20129%20v7%20M21%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M576%208%20v7%20M573%2011.5%20h6%20M576%20129%20v7%20M573%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M60%208%20v7%20M57%2011.5%20h6%20M60%20129%20v7%20M57%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M540%208%20v7%20M537%2011.5%20h6%20M540%20129%20v7%20M537%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M102%208%20v7%20M99%2011.5%20h6%20M102%20129%20v7%20M99%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M498%208%20v7%20M495%2011.5%20h6%20M498%20129%20v7%20M495%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M150%208%20v7%20M147%2011.5%20h6%20M150%20129%20v7%20M147%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M450%208%20v7%20M447%2011.5%20h6%20M450%20129%20v7%20M447%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M205%208%20v7%20M202%2011.5%20h6%20M205%20129%20v7%20M202%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M395%208%20v7%20M392%2011.5%20h6%20M395%20129%20v7%20M392%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M260%208%20v7%20M257%2011.5%20h6%20M260%20129%20v7%20M257%20132.5%20h6%22%2F%3E%3Cpath%20d%3D%22M340%208%20v7%20M337%2011.5%20h6%20M340%20129%20v7%20M337%20132.5%20h6%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23c9fbff%22%20opacity%3D%22.52%22%3E%3Ccircle%20cx%3D%22300%22%20cy%3D%2272%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%2228%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22520%22%20cy%3D%2228%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22128%22%20cy%3D%22112%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22472%22%20cy%3D%22112%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22205%22%20cy%3D%2245%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22395%22%20cy%3D%2245%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22238%22%20cy%3D%22102%22%20r%3D%221.2%22%2F%3E%3Ccircle%20cx%3D%22362%22%20cy%3D%22102%22%20r%3D%221.2%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");background-size:100% 100%;background-position:center;transform:none;opacity:.72;animation:none}
.suggestion-item{background:rgba(4,40,75,.47)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{background:rgba(22,108,148,.62)}

/* Clear blue glass panels, one consistently framed row per candidate. */
.search-suggestions{background:radial-gradient(ellipse at 50% 50%,rgba(31,157,196,.65),transparent 67%),linear-gradient(135deg,#073d78 0%,#075b88 48%,#103d83 100%);border-color:#8fe6f8;box-shadow:0 0 0 1px rgba(149,242,255,.23),0 0 24px rgba(35,200,255,.24),0 12px 30px rgba(0,18,57,.35),inset 0 1px 0 rgba(226,253,255,.35)}
.search-suggestions::after{opacity:.58}
.suggestion-item,.suggestion-item+.suggestion-item{position:relative;margin:4px auto;padding:8px 14px;border:1px solid rgba(143,223,247,.42);border-radius:9px;background:linear-gradient(100deg,rgba(12,62,113,.80),rgba(8,82,130,.65) 50%,rgba(12,62,113,.80));box-shadow:inset 0 1px 0 rgba(223,255,255,.13),0 2px 6px rgba(0,25,57,.10)}
.suggestion-item:hover,.suggestion-item[aria-selected="true"]{border-color:#a5f8ff;background:linear-gradient(100deg,rgba(15,107,156,.92),rgba(18,142,173,.82) 50%,rgba(15,107,156,.92));box-shadow:0 0 12px rgba(84,228,255,.28),inset 0 1px 0 rgba(255,255,255,.26)}
.suggestion-item:last-child{margin-bottom:4px}
.suggestion-status{background:rgba(255,227,155,.13);color:#fff0bb;border-color:rgba(255,231,169,.55)}
@media(max-width:600px){.suggestion-item,.suggestion-item+.suggestion-item{padding:7px 8px}}

.search-suggestions{scrollbar-width:thin;scrollbar-color:#a1eeff rgba(5,45,89,.5)}
.search-suggestions::-webkit-scrollbar{width:7px}
.search-suggestions::-webkit-scrollbar-track{background:rgba(5,45,89,.35);border-radius:8px}
.search-suggestions::-webkit-scrollbar-thumb{background:rgba(165,240,255,.8);border-radius:8px}

.suggestion-scene{position:absolute;inset:0;z-index:1;width:100%;height:100%;pointer-events:none;border-radius:inherit}
.suggestion-item{z-index:2}

/* Place the animated outlines over the glass but under readable labels. */
.suggestion-item{z-index:auto}
.suggestion-item>span{position:relative;z-index:2}

/* Keep candidates scrollable while hiding the panel outline and scrollbar chrome. */
.search-suggestions{border:0;box-shadow:none;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none}
.search-suggestions::-webkit-scrollbar{display:none;width:0;height:0}

/* Background remains in place while the candidate list scrolls independently. */
.search-suggestions{max-height:none;overflow:hidden;padding:0}
.suggestion-list{position:relative;z-index:2;max-height:260px;overflow-y:auto;overflow-x:hidden;padding:8px 17px 8px 10px;scrollbar-width:none;-ms-overflow-style:none}
.suggestion-list::-webkit-scrollbar{display:none;width:0;height:0}
.suggestion-scroll-indicator{position:absolute;z-index:4;right:5px;top:12px;bottom:12px;width:4px;border-radius:8px;background:rgba(160,233,255,.2);pointer-events:none}
.suggestion-scroll-indicator span{display:block;width:100%;border-radius:8px;background:#b5f5ff;box-shadow:0 0 7px rgba(117,236,255,.8)}

/* Match the detail page scrollbar against the TOP's dark blue scene. */
html{--top-scroll-track:rgb(8,38,92);--top-scroll-thumb:rgb(125,181,204);scrollbar-color:var(--top-scroll-thumb) var(--top-scroll-track)}
html::-webkit-scrollbar{width:12px;height:12px}
html::-webkit-scrollbar-track,html::-webkit-scrollbar-corner{background:var(--top-scroll-track)}
html::-webkit-scrollbar-thumb{border:3px solid var(--top-scroll-track);border-radius:10px;background:var(--top-scroll-thumb)}

.top-language{position:absolute;right:0;top:-55px;display:flex;gap:4px;padding:4px;border:1px solid #87c8e1;border-radius:22px;background:#092b5bd9;z-index:3}
.top-language button{border:0;border-radius:18px;background:transparent;color:#d8f5ff;padding:7px 12px;font-size:13px;cursor:pointer}
.top-language button[aria-pressed="true"]{background:#d7f8ff;color:#082c50;font-weight:700}
@media(max-width:600px){.top-language{top:-50px;right:0}.top-language button{font-size:12px;padding:6px 9px}}

/* Align the language control to the right edge of the search field. */
.brand-heading{width:min(100%,880px);margin-left:auto;margin-right:auto}
.top-language{gap:2px;padding:2px;top:-48px}
.top-language button{font-size:11px;padding:5px 9px;line-height:1.2}
@media(max-width:600px){.top-language{top:-43px}.top-language button{font-size:11px;padding:5px 8px}}

/* JLPT labels are estimates, not official exam lists. */
.jlpt-estimate-note{margin:7px auto 0;color:rgb(226 245 255 / .58);text-align:center;font-size:11px;line-height:1.4;max-width:580px}
.search-section>.search-suggestions[hidden] ~ .jlpt-estimate-note{display:none}
.suggestion-status{white-space:normal;text-align:center;line-height:1.25}
@media(max-width:600px){.suggestion-item{grid-template-columns:36px minmax(38px,125px) minmax(0,max-content);gap:6px}.suggestion-status{font-size:10px;padding:3px 5px;max-width:160px}}

/* Browsing history is drawn directly over the scene, like the detail page. */
.history-area{border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.kanji-history{text-align:right;border-top:0;padding-top:0}
.kanji-history .history-heading-unified{justify-content:flex-end;min-height:30px;gap:10px}
.kanji-history .history-heading-unified h2{flex:0 1 auto;justify-content:flex-end;margin:0;color:#aec7de;font-size:10px;font-weight:400;letter-spacing:.09em;text-shadow:0 1px 10px #031c51}
.kanji-history .history-symbol{display:none}
.kanji-history .history-index-link{min-height:30px;padding:4px 0 4px 8px;color:#aec7de;font-size:10px;font-weight:400}
.kanji-history-list{justify-content:flex-end;gap:4px;margin-top:5px;min-height:40px}
.kanji-history .history-link{width:36px;height:40px;color:#c4dbea;font-size:28px;font-weight:400;text-shadow:0 2px 16px #03173d}
@media(max-width:600px){.kanji-history .history-heading-unified h2{font-size:10px;letter-spacing:.09em}.kanji-history .history-link{font-size:25px}}

/* Anchor suggestions to the search field so the history never moves. */
.search-anchor{position:relative;z-index:5}
.search-anchor .search-suggestions{position:absolute;top:calc(100% + 8px);left:50%;transform:translateX(-50%);margin:0;z-index:5}
.search-section>.kanji-history{margin:16px 0 0;padding:0;border:0;text-align:right;opacity:.72}
.search-section>.kanji-history .history-heading-unified{min-height:0;display:block;padding:0}
.search-section>.kanji-history .history-heading-unified h2{display:block;font-size:10px;font-weight:400;line-height:normal;letter-spacing:.09em;color:#aec7de;margin:0 0 5px;text-shadow:0 1px 10px #031c51}
.search-section>.kanji-history .history-index-link{display:none}
.search-section>.kanji-history .kanji-history-list{display:flex;justify-content:flex-end;gap:4px;margin:0;min-height:40px}
.search-section>.kanji-history .history-link{width:calc((100% - 36px)/10);max-width:36px;height:40px;flex:none;color:#c4dbea;font-size:28px;font-weight:400;line-height:1;text-shadow:0 2px 16px #03173d}
@media(max-width:600px){.search-section>.kanji-history .history-link{font-size:25px}}
@media(max-width:350px){.search-section>.kanji-history .history-link{font-size:22px}}

.search-feedback{margin:10px auto 0;text-align:center;color:#e7faff;font-size:13px;line-height:1.5;text-shadow:0 1px 6px #061c53}

/* Keep the character and reading on the left; align every level on the right. */
.suggestion-item,.suggestion-item+.suggestion-item{width:100%;grid-template-columns:42px minmax(0,1fr) max-content;justify-content:stretch;gap:12px}
.suggestion-glyph{text-align:left}
.suggestion-detail{text-align:left;min-width:0;overflow-wrap:anywhere}
.suggestion-status{justify-self:end;margin-left:0}
@media(max-width:600px){.suggestion-item,.suggestion-item+.suggestion-item{grid-template-columns:36px minmax(0,1fr) max-content;gap:8px}}

/* Predictions follow browsing history and do not cover it. */
.search-section>.search-suggestions{position:relative;left:auto;top:auto;transform:none;margin:10px auto 0;z-index:5}

/* Leave breathing room only when browsing history is visible. */
.search-section>.kanji-history:not([hidden]) + .search-suggestions{margin-top:8px}

/* Add breathing room at both ends of each prediction row. */
.suggestion-item,.suggestion-item+.suggestion-item{padding-left:22px;padding-right:22px}
@media(max-width:600px){.suggestion-item,.suggestion-item+.suggestion-item{padding-left:15px;padding-right:15px}}

/* A quiet downward cue appears only while more candidates remain below. */
.suggestion-scroll-arrow{position:absolute;z-index:4;left:50%;bottom:8px;width:16px;height:16px;pointer-events:none;opacity:.55;filter:drop-shadow(0 1px 3px #00335d);animation:suggestion-arrow-down 1.5s ease-in-out infinite}
.suggestion-scroll-arrow::before{content:"";display:block;width:10px;height:10px;border-right:2px solid #d8fbff;border-bottom:2px solid #d8fbff;transform:rotate(45deg)}
@keyframes suggestion-arrow-down{0%,100%{transform:translate(-50%,-3px);opacity:.35}50%{transform:translate(-50%,3px);opacity:.7}}
@media(prefers-reduced-motion:reduce){.suggestion-scroll-arrow{animation:none;transform:translateX(-50%);opacity:.55}}

/* Sequential chevrons follow the supplied yajirushi.svg. */
.suggestion-scroll-arrow{left:50%;top:50%;bottom:auto;width:min(26%,190px);height:auto;transform:translate(-50%,-50%);filter:none;opacity:1;animation:none;z-index:3}
.suggestion-scroll-arrow::before{display:none}
.suggestion-scroll-arrow svg{display:block;width:100%;height:auto;overflow:visible;border:0;background:transparent}
.suggestion-scroll-arrow polygon{fill:#d5edff;opacity:0;animation:suggestion-chevron-step 2.2s ease-in-out infinite}
@keyframes suggestion-chevron-step{0%,8%{opacity:0}18%,30%{opacity:.32}42%,100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.suggestion-scroll-arrow{transform:translate(-50%,-50%);opacity:1}.suggestion-scroll-arrow polygon{animation:none;opacity:0}.suggestion-scroll-arrow polygon:nth-child(2){opacity:.24}}

.suggestion-reading,.suggestion-meaning{display:block;overflow-wrap:anywhere}
.suggestion-meaning{margin-top:3px;color:#bce7f3;font-size:.86em;font-weight:400;line-height:1.35}

/* Shared heading for searches with multiple matches. */
.suggestion-result-heading{position:relative;z-index:2;margin:0 14px;padding:13px 10px 9px;color:#edfaff;font-size:13px;font-weight:700;line-height:1.45;border-bottom:1px solid rgba(188,237,250,.28);overflow-wrap:anywhere}
.search-suggestions:has(.suggestion-result-heading) .suggestion-scroll-indicator{top:48px}

/* Center the result count and keep the separator fine and well spaced. */
.suggestion-result-heading{display:flex;align-items:center;min-height:58px;padding:0 10px;box-sizing:border-box}
.suggestion-stroke-count{display:inline-block;white-space:nowrap}
.suggestion-stroke-count::before{content:"";display:inline-block;height:.95em;border-left:1px solid rgba(220,248,255,.82);margin:0 1em;vertical-align:-.12em}
.search-suggestions:has(.suggestion-result-heading) .suggestion-scroll-indicator{top:66px}

/* Lower the count slightly while retaining the underline position. */
.suggestion-result-heading{padding-top:8px}

/* Search sort controls; radical labels are reference classifications. */
.suggestion-sort-toolbar{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.25rem 1rem .35rem;color:#e8f8ff;font-size:.8rem}.suggestion-sort-label{display:flex;align-items:center;gap:.2rem;white-space:nowrap}.suggestion-sort-select{max-width:12rem;background:#eaf8ff;color:#12334b;border:1px solid #8bcde4;border-radius:.4rem;padding:.2rem .35rem;font:inherit}.suggestion-sort-note{font-size:.72rem;color:#cbefff;text-align:right}.suggestion-radical{display:block;color:#e0f6ff;font-size:.75rem;line-height:1.3}

.site-footer{flex-direction:column;gap:2px}.site-footer small{display:block;min-height:0}.site-footer a{color:#d7e9f5}.suggestion-sort-note{white-space:nowrap}

html[lang="en"] .search-placeholder > span + span { margin-left: .25em; }
@media (max-width: 600px) { html[lang="en"] .search-placeholder > span + span { margin-left: 0; } }

.grade-navigation { margin: 20px auto 0; max-width: 580px; text-align: center; }
.grade-navigation h2 { margin: 0 0 9px; color: #e5f4fa; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-shadow: 0 1px 5px #062357; }
.grade-navigation-links { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; }
.grade-navigation-links a { display: grid; place-items: center; min-height: 42px; padding: 6px 2px; border: 1px solid rgb(180 230 247 / .48); border-radius: 8px; background: rgb(5 38 78 / .55); color: #f4fbff; font-size: 13px; font-weight: 600; text-decoration: none; }
.grade-navigation-links a:hover { background: rgb(21 101 141 / .8); border-color: #b7f4f0; }
@media(max-width:400px) { .grade-navigation-links { gap: 5px; } .grade-navigation-links a { font-size: 11px; } html[lang="ja"] .grade-navigation-links a { font-size: clamp(9px, 2.6vw, 11px); white-space: nowrap; } }

/* Grade lists are intended for Japanese elementary school learners. */
html[lang="en"] .grade-navigation { display: none; }
