/* Memora Q 社会：科目ごとのレベルと偉人の称号（js/mq_level.js）。98回目の答え（①A 記録の画面の上・①B 記録のボタンの輪と上がった時の知らせ・②A 称号の画面）。2026-11-25。
   手本＝デザイン案_1026/98回目/作り方/www_mock/css/lv98.css（黒い地・金・白）。値は手本のまま、名前だけ mql- に。 */
.mql-up, .mql-root {
  --mq-bg: #0A0B0E; --mq-w: #F2F3F5; --mq-sub: rgba(255,255,255,.6); --mq-dim: rgba(255,255,255,.42); --mq-ln: rgba(255,255,255,.14);
  --mq-g: #FFD46A; --mq-g2: #E3B35C; --mq-ink: #1A1406; --mq-blue: #8DB4EC; --mq-card: #17181C;
  color-scheme: dark;
}
.mql-bar { position: relative; display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.13); overflow: hidden; }
.mql-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #E3B35C, #FFD46A); }

/* ---------- 偉人の丸い絵（絵がないうち・これからの人は人の形の影。顔は描かない） ---------- */
.mql-face { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; display: block; color: rgba(255,255,255,.34);
  background: radial-gradient(circle at 50% 36%, #2A2C33, #17181D 72%); box-shadow: inset 0 0 0 1.4px rgba(255,212,106,.55); }
.mql-face svg { position: absolute; left: 6px; top: 7px; width: 34px; height: 34px; display: block; }
.mql-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.mql-face.now { color: rgba(255,226,150,.78); background: radial-gradient(circle at 50% 36%, #4A3C1C, #241D0E 74%);
  box-shadow: 0 0 0 2px #FFD46A, 0 0 0 6px rgba(255,212,106,.16), 0 0 22px rgba(255,212,106,.55); }
.mql-face.fut { color: rgba(255,255,255,.1); background: #111216; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* ---------- ①B 右上の記録のボタンの輪（次の Lv までの進み・まん中に Lv） ---------- */
.mqh-rb.mql-rb svg { display: block; }
.mqh-rb.mql-rb.hot { box-shadow: 0 0 0 2px rgba(255,212,106,.55), 0 0 18px rgba(255,212,106,.45); animation: mqlhot 1.8s ease-in-out infinite; }
@keyframes mqlhot { 50% { box-shadow: 0 0 0 2px rgba(255,212,106,.3), 0 0 10px rgba(255,212,106,.25); } }

/* 上がった時だけ、画面のまん中に大きく知らせる */
.mql-up { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--mq-w);
  background: rgba(6,7,9,.74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mqlfade .22s ease-out; }
.mql-up.out { animation: mqlfadeout .18s ease-in forwards; }
@keyframes mqlfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mqlfadeout { from { opacity: 1; } to { opacity: 0; } }
.mql-up .cd { width: 300px; max-width: 100%; padding: 26px 22px 20px; border-radius: 30px; background: #15171C; text-align: center;
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.14), 0 20px 60px rgba(0,0,0,.6); animation: mqlpop .38s cubic-bezier(.2,1.3,.4,1); }
@keyframes mqlpop { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
.mql-up .k { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--mq-g); }
.mql-up .rg { position: relative; width: 168px; height: 168px; margin: 14px auto 10px; filter: drop-shadow(0 0 16px rgba(255,212,106,.35)); }
.mql-up .rg svg { display: block; }
.mql-up .rg .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mql-up .rg small { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.62); }
.mql-up .rg b { font-size: 64px; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: #fff; }
.mql-up .nm { font-size: 22px; font-weight: 800; letter-spacing: .04em; color: #fff; }
.mql-up .nm small { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: rgba(255,255,255,.55); }
.mql-up .nm em { font-style: normal; height: 18px; padding: 0 7px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 10.5px; letter-spacing: .06em; color: var(--mq-g);
  background: rgba(255,212,106,.1); box-shadow: inset 0 0 0 .6px rgba(255,212,106,.5); }
.mql-up .sub { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,.62); }
.mql-up .pk { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 12px; }
.mql-up .pk span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 13px; font-size: 12.5px; font-weight: 700; color: #FFE6A6;
  background: rgba(255,212,106,.08); box-shadow: inset 0 0 0 .6px rgba(255,212,106,.4); }
.mql-up .pk i { display: flex; color: var(--mq-g); }
.mql-up .bt { display: flex; gap: 10px; margin-top: 18px; }
.mql-up .bt .mq-lb { flex: 1; height: 48px; padding: 0 12px; color: #fff; }
.mql-up .bt .mq-wb.big { height: 48px; }

/* ---------- ①A 記録の画面の上：称号の偉人・Lv・細い金の棒 ---------- */
.mql-ra { flex: none; display: block; width: auto; margin: 2px 20px 6px; padding: 12px 0 14px; text-align: left;
  border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.mql-ra:active { opacity: .78; }
.mql-ra > span { display: flex; }
.mql-ra .k { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; color: var(--mq-g); }
.mql-ra .r1 { align-items: baseline; gap: 10px; margin: 4px 0 10px; }
.mql-ra .nm { min-width: 0; font-size: 24px; font-weight: 800; letter-spacing: .04em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mql-ra .lv { flex: none; margin-left: auto; font-size: 26px; font-weight: 300; letter-spacing: -.02em; color: #fff; }
.mql-ra .lv small { font-size: 13px; font-weight: 500; color: var(--mq-sub); margin-right: 4px; letter-spacing: 0; }
.mql-ra .cv { flex: none; align-self: center; display: flex; color: rgba(255,255,255,.4); margin-left: 2px; }
.mql-ra .r3 { justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 12.5px; color: var(--mq-sub); white-space: nowrap; }
.mql-ra .r3 > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mql-ra .r3 b { color: #fff; font-weight: 700; }
/* 年表の上の印（今の偉人の年） */
.mql-flagrow { position: relative; height: 28px; margin-top: 4px; }
.mql-flagrow .fl { position: absolute; left: 0; bottom: 4px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px 0 7px; border-radius: 11px;
  font-size: 11.5px; font-weight: 800; color: #1A1406; background: linear-gradient(180deg, #FFD46A, #E3B35C); white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mql-flagrow .fm { display: flex; color: #1A1406; }
.mql-flagrow .tip { position: absolute; bottom: 0; width: 0; height: 0; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #E3B35C; }
.mq-yc .mql-vl { position: absolute; top: 0; height: 0; width: 0; border-left: 1.5px dashed rgba(255,212,106,.7); pointer-events: none; }

/* ---------- ②A 称号の画面 ---------- */
.mql-root { position: fixed; inset: 0; z-index: 36; overflow: hidden; }
.mql-pg .mql-body { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; padding-bottom: calc(var(--sab, 0px) + 24px); }
.mql-hd { flex: none; margin: 4px 20px 0; }
.mql-hd .r1 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 9px; }
.mql-hd .lv { font-size: 30px; font-weight: 300; letter-spacing: -.02em; color: #fff; line-height: 1; }
.mql-hd .lv small { font-size: 13px; font-weight: 500; color: var(--mq-sub); margin-right: 4px; letter-spacing: 0; }
.mql-hd .nx { margin-left: auto; font-size: 12.5px; color: var(--mq-sub); white-space: nowrap; }

/* 時代の帯の上に偉人が並ぶ（横にすべる） */
.mql-tlw { position: relative; flex: none; margin-top: 18px; }
.mql-tl { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.mql-tl::-webkit-scrollbar { display: none; }
.mql-tl .in { position: relative; height: 318px; padding: 0 20px; }
.mql-tl .mk { position: absolute; left: 20px; top: 0; height: 116px; }
.mql-tl .m { position: absolute; top: 0; height: 116px; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); padding: 0 4px; }
.mql-tl .m .nm { height: 20px; font-size: 12px; font-weight: 700; line-height: 20px; color: rgba(255,255,255,.82); white-space: nowrap; letter-spacing: -.01em; }
.mql-tl .m .mql-face { margin-top: 6px; }
.mql-tl .m .lvp { position: relative; z-index: 1; margin-top: -9px; height: 17px; padding: 0 7px; border-radius: 9px; display: flex; align-items: center; font-size: 11px; font-weight: 700; white-space: nowrap;
  color: var(--mq-g); background: #121318; box-shadow: inset 0 0 0 1px rgba(255,212,106,.55); }
.mql-tl .m .stem { flex: 1; width: 1.5px; background: rgba(255,212,106,.5); }
.mql-tl .m.now .nm { color: var(--mq-g); font-size: 13px; font-weight: 800; }
.mql-tl .m.now .lvp { color: #1A1406; font-weight: 800; background: linear-gradient(180deg, #FFE08C, #E3B35C); box-shadow: none; }
.mql-tl .m.now .stem { background: #FFD46A; width: 2px; }
.mql-tl .m.fut .nm { color: rgba(255,255,255,.34); }
.mql-tl .m.fut .lvp { color: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.mql-tl .m.fut .stem { background: rgba(255,255,255,.12); }
.mql-tl .m.sel:not(.now) .mql-face { box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.mql-tl .m.sel.fut .mql-face { box-shadow: 0 0 0 1.5px rgba(255,255,255,.6); }
.mql-tl .m:active .mql-face { transform: scale(.95); }
.mql-tl .pg { position: absolute; left: 20px; right: 20px; top: 116px; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; }
.mql-tl .pg i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, #E3B35C, #FFD46A); }
.mql-tl .sp { position: absolute; left: 20px; top: 123px; height: 156px; }
.mql-tl .sg { position: absolute; top: 0; height: 156px; background-color: #1A1B20; background-size: auto 280%; background-repeat: no-repeat; border-radius: 3px; overflow: hidden; }
.mql-tl .sg.plain { background-image: linear-gradient(180deg, #2A2620, #17181C 70%); }
.mql-tl .sg::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; background: linear-gradient(to bottom, rgba(10,11,14,0), rgba(10,11,14,.88)); }
.mql-tl .sg span { position: absolute; z-index: 1; left: 2px; right: 2px; bottom: 8px; text-align: center; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.mql-tl .sg.past { filter: brightness(.72) saturate(.85); }
.mql-tl .sg.now { filter: brightness(1.02); box-shadow: inset 0 0 0 2px #FFD46A; }
.mql-tl .sg.now span { color: var(--mq-g); }
.mql-tl .sg.fut { filter: grayscale(1) brightness(.34); }
.mql-tl .sg.fut span { color: rgba(255,255,255,.75); }
.mql-tl .here { position: absolute; top: 284px; transform: translateX(-50%); margin-left: 20px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.mql-tl .here::before { content: ''; border: 6px solid transparent; border-top: 0; border-bottom: 8px solid #FFD46A; }
.mql-tl .here span { margin-top: 3px; padding: 3px 8px; border-radius: 9px; font-size: 11.5px; font-weight: 800; color: #1A1406; background: #FFD46A; white-space: nowrap; }
.mql-tlw .fl, .mql-tlw .fr { position: absolute; top: 0; bottom: 0; width: 26px; pointer-events: none; }
.mql-tlw .fl { left: 0; background: linear-gradient(90deg, #0B0C0F, rgba(11,12,15,0)); }
.mql-tlw .fr { right: 0; background: linear-gradient(270deg, #0B0C0F, rgba(11,12,15,0)); }
.mql-hint { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; font-size: 11.5px; color: var(--mq-dim); }
.mql-hint span { display: flex; }

/* 押した人の説明（吹き出しの先は押した人の印へ） */
.mql-call { position: relative; flex: none; margin: 16px 20px 0; padding: 13px 16px 14px; border-radius: 18px; background: #17181C; box-shadow: inset 0 0 0 .7px rgba(255,212,106,.4); }
.mql-call::before { content: ''; position: absolute; top: -7px; left: var(--ax, 80px); margin-left: -7px; width: 12px; height: 12px; background: #17181C; transform: rotate(45deg);
  box-shadow: inset .7px .7px 0 rgba(255,212,106,.4); }
.mql-call.noax::before { display: none; }
.mql-call.fut { box-shadow: inset 0 0 0 .7px rgba(255,255,255,.18); }
.mql-call.fut::before { box-shadow: inset .7px .7px 0 rgba(255,255,255,.18); }
.mql-call .cl1 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.mql-call .cl1 b { font-size: 18px; font-weight: 800; color: #fff; }
.mql-call .ch { height: 20px; padding: 0 8px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); white-space: nowrap; }
.mql-call .ch.g { color: var(--mq-g); background: rgba(255,212,106,.1); box-shadow: inset 0 0 0 .6px rgba(255,212,106,.5); }
.mql-call .ch.f { color: rgba(255,255,255,.5); }
.mql-call .ch.d { color: var(--mq-g); background: rgba(255,212,106,.06); }
.mql-call p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.86); }

/* Lv で ふえる物 */
.mql-perks { flex: none; margin: 18px 20px 0; }
.mql-perks .k { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--mq-sub); }
.mql-perks .ps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.mql-perks .pk { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; row-gap: 2px; align-items: center; padding: 9px 11px; border-radius: 14px; background: rgba(255,255,255,.05); }
.mql-perks .pk .pi { display: flex; color: rgba(255,255,255,.4); }
.mql-perks .pk b { font-size: 12.5px; font-weight: 700; color: rgba(255,255,255,.55); }
.mql-perks .pk .tx { grid-column: 1 / -1; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.5); }
.mql-perks .pk.got { background: rgba(255,212,106,.08); box-shadow: inset 0 0 0 .6px rgba(255,212,106,.4); }
.mql-perks .pk.got .pi, .mql-perks .pk.got b { color: var(--mq-g); }
.mql-perks .pk.got .tx { color: #FFE6A6; }

@media (prefers-reduced-motion: reduce) {
  .mql-up, .mql-up .cd, .mqh-rb.mql-rb.hot { animation: none; }
}
