/* Chrono Critters — styles.  Copyright (C) 2026 Shawn Rapaz — GPL-3.0-or-later */
:root {
  --hour: #ff7a45;
  --minute: #3f8cff;
  --ink: #4a3328;
  --ink-soft: #7a6458;
  --cream: #fffaf0;
  --card: rgba(255, 252, 245, .94);
  --pink: #ff8fa3;
  --green: #4cc970;
  --green-d: #2f9e52;
  --purple: #8a6cd8;
  --yellow: #ffd166;
  --shadow: 0 6px 0 rgba(74, 51, 40, .18), 0 10px 24px rgba(40, 20, 60, .18);
  --font: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #2b2f5e; overflow: hidden; }
body { font-family: var(--font); color: var(--ink); user-select: none; -webkit-user-select: none; }
button { font-family: inherit; color: inherit; cursor: pointer; }

#stage {
  position: absolute; left: 50%; top: 50%;
  width: 1280px; height: 720px;
  transform-origin: 0 0;
  overflow: hidden;
  background: #7fc8f8;
  border-radius: 6px;
}
#scene, #fx { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; }
#fx { pointer-events: none; z-index: 50; }

.screen { position: absolute; inset: 0; display: none; z-index: 2; }
.screen.active { display: block; animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.ico { display: inline-flex; vertical-align: middle; }
.ico svg { display: block; }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 22px; padding: 12px 22px;
  font-size: 22px; font-weight: 800; letter-spacing: .02em;
  background: #fff; color: var(--ink);
  box-shadow: 0 5px 0 rgba(74, 51, 40, .25), 0 8px 18px rgba(40, 20, 60, .15);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s;
}
.btn:hover { transform: translateY(-2px) scale(1.03); filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(74, 51, 40, .25); }
.btn:focus-visible, .icon-btn:focus-visible, .tg button:focus-visible, .sticker:focus-visible { outline: 4px solid #ffd166; outline-offset: 3px; }
.btn-small { font-size: 19px; padding: 10px 18px; border-radius: 18px; }
.btn-go { background: linear-gradient(#5fd884, var(--green)); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.icon-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 4px 0 rgba(74, 51, 40, .25); display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn:active { transform: translateY(3px); }

.panel, .card {
  background: var(--card); border-radius: 26px; box-shadow: var(--shadow);
  border: 3px solid rgba(255, 255, 255, .9);
}

/* ---------- title ---------- */
.logo { position: absolute; left: 0; right: 0; top: 18px; text-align: center; pointer-events: none; }
.logo h1 { margin: 0; font-size: 76px; line-height: 1.05; font-weight: 800; }
.logo-word {
  display: inline-block;
  background: linear-gradient(180deg, #ffe27a 0%, #ffb347 55%, #ff8a5c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 3px #5a3a7a;
  filter: drop-shadow(0 5px 0 rgba(90, 58, 122, .35));
  animation: logoBob 3.2s ease-in-out infinite;
}
html[lang="ja"] .logo h1 { font-size: 66px; }
@keyframes logoBob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
.subtitle {
  margin: 6px auto 0; display: inline-block; padding: 6px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); font-size: 22px; font-weight: 800; color: #5a3a7a;
  box-shadow: 0 4px 0 rgba(90, 58, 122, .2);
}
.age-badge {
  position: absolute; right: 34px; top: 26px; width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe27a, #ffb020); color: #6a3a00;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-weight: 800; font-size: 22px; line-height: 1.05; padding: 8px;
  box-shadow: 0 5px 0 rgba(106, 58, 0, .3); transform: rotate(10deg);
  border: 4px dashed rgba(255, 255, 255, .8);
  animation: wiggle 4s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-4deg) scale(1.05); } }
.title-left { position: absolute; left: 50px; top: 178px; width: 560px; display: flex; flex-direction: column; gap: 16px; }
.btn-play {
  font-size: 44px; padding: 16px 30px; border-radius: 30px;
  background: linear-gradient(#6ee391, var(--green)); color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  box-shadow: 0 8px 0 var(--green-d), 0 14px 26px rgba(40, 20, 60, .25);
  animation: pulse 2.2s ease-in-out infinite;
}
.btn-play .ico svg { width: 40px; height: 40px; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.toggles { padding: 14px 18px; display: flex; flex-direction: column; gap: 9px; }
.tg-row { display: flex; align-items: center; gap: 12px; }
.tg-label { width: 120px; font-weight: 800; font-size: 18px; color: var(--ink-soft); flex: none; }
html[lang="ja"] .tg-label { font-size: 16px; }
.tg { display: flex; gap: 6px; background: rgba(74, 51, 40, .07); padding: 4px; border-radius: 16px; flex-wrap: nowrap; }
.tg button {
  border: 0; background: transparent; padding: 7px 14px; border-radius: 12px;
  font-size: 17px; font-weight: 800; color: var(--ink-soft); transition: all .15s; white-space: nowrap;
}
.tg button:hover { background: rgba(255, 255, 255, .7); }
.tg button.on { background: #fff; color: var(--ink); box-shadow: 0 3px 0 rgba(74, 51, 40, .2); }
#tgMode button.on[data-v="set"] { background: var(--hour); color: #fff; }
#tgMode button.on[data-v="read"] { background: var(--minute); color: #fff; }
#tgDiff button.on[data-v="easy"] { background: #5fd884; color: #fff; }
#tgDiff button.on[data-v="medium"] { background: #ffb347; color: #fff; }
#tgDiff button.on[data-v="hard"] { background: #ff6f8f; color: #fff; }
.title-menu { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 18px; }
.btn-menu { font-size: 20px; padding: 12px 20px; }
.btn-menu.c1 .ico { color: var(--minute); }
.btn-menu.c2 .ico { color: #ffb020; }
.btn-menu.c3 .ico { color: var(--pink); }
.btn-menu.c4 .ico { color: var(--purple); }
.version-tag { position: absolute; right: 14px; bottom: 6px; font-size: 13px; font-weight: 800; color: rgba(255, 255, 255, .85); }

/* ---------- topbar ---------- */
.topbar { position: absolute; left: 24px; right: 24px; top: 18px; display: grid; grid-template-columns: 200px 1fr 200px; align-items: center; z-index: 3; }
.page-title { text-align: center; margin: 0; font-size: 40px; color: #fff; text-shadow: 0 3px 0 rgba(74, 51, 40, .4), 0 0 12px rgba(74, 51, 40, .3); }
.btn-back { justify-self: start; }

/* ---------- map ---------- */
#screen-map .topbar { grid-template-columns: 200px 1fr 330px; }
.map-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.map-title h2 { margin: 0; font-size: 38px; color: #fff; text-shadow: 0 3px 0 rgba(74, 51, 40, .4); }
.chip { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 17px; box-shadow: 0 3px 0 rgba(74, 51, 40, .2); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.chip-soft { background: rgba(255, 255, 255, .8); }
.chip-star .ico { color: #ffb020; }
.map-totals { display: flex; gap: 8px; justify-content: flex-end; }
.map-hint { position: absolute; top: 84px; left: 0; right: 0; text-align: center; margin: 0; font-weight: 800; font-size: 20px; color: #fff; text-shadow: 0 2px 0 rgba(74, 51, 40, .35); }
.map-grid {
  position: absolute; left: 40px; right: 40px; top: 122px; bottom: 18px;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(4, 1fr); gap: 14px;
}
.sticker {
  position: relative; border: 0; border-radius: 22px; background: var(--card); padding: 4px;
  box-shadow: 0 5px 0 rgba(74, 51, 40, .2); display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .15s;
}
.sticker:hover:not(.locked) { transform: translateY(-4px) rotate(-1.5deg) scale(1.04); }
.sticker canvas { width: 120px; height: 82px; }
.sticker .s-name { font-weight: 800; font-size: 15px; margin-top: -2px; }
.sticker .s-num { position: absolute; left: 10px; top: 6px; font-weight: 800; font-size: 15px; color: #fff; background: var(--purple); border-radius: 999px; min-width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.sticker .s-stars { display: flex; gap: 2px; color: #e3dbe8; height: 20px; }
.sticker .s-stars .lit { color: #ffb020; }
.sticker .s-stars svg { width: 20px; height: 20px; }
.sticker.locked { background: rgba(244, 240, 250, .9); cursor: not-allowed; }
.sticker.locked .s-name { color: var(--ink-soft); }
.sticker.next { animation: nextGlow 1.4s ease-in-out infinite; }
@keyframes nextGlow { 0%, 100% { box-shadow: 0 5px 0 rgba(74, 51, 40, .2), 0 0 0 0 rgba(255, 209, 102, .9); } 50% { box-shadow: 0 5px 0 rgba(74, 51, 40, .2), 0 0 0 8px rgba(255, 209, 102, .6); } }
.sticker.sel { outline: 4px solid #ffd166; outline-offset: 2px; }

/* ---------- game HUD ---------- */
.hud-left { position: absolute; left: 20px; top: 18px; display: flex; gap: 12px; align-items: center; z-index: 4; }
.lvl-card { background: var(--card); border-radius: 20px; padding: 6px 16px; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); }
.lvl-num { font-weight: 800; font-size: 20px; color: var(--purple); }
.lvl-animal { font-weight: 800; font-size: 17px; color: var(--ink-soft); }
.hud-right { position: absolute; right: 20px; top: 18px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 4; }
.score-card { background: var(--card); border-radius: 20px; padding: 8px 18px; font-weight: 800; font-size: 28px; display: flex; gap: 8px; align-items: center; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); min-width: 140px; justify-content: center; }
.score-card .ico { color: #ffb020; }
.score-card .ico svg { width: 30px; height: 30px; }
.score-card.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.18); } }

.target-card {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%);
  min-width: 420px; padding: 8px 70px 10px; text-align: center; z-index: 4;
  background: var(--card); border-radius: 28px; box-shadow: var(--shadow); border: 3px solid #fff;
}
.t-prompt { font-weight: 800; font-size: 20px; color: var(--ink-soft); }
.t-main { display: flex; align-items: baseline; justify-content: center; gap: 12px; line-height: 1; margin: 2px 0; }
html[lang="en"] .t-ampm { order: 2; }
.t-digits { font-size: 74px; font-weight: 800; letter-spacing: .02em; }
.t-digits .h { color: var(--hour); }
.t-digits .m { color: var(--minute); }
.t-digits .c { color: var(--ink); animation: blinkColon 1s steps(2) infinite; }
@keyframes blinkColon { 50% { opacity: .35; } }
.t-ampm { font-size: 30px; font-weight: 800; padding: 4px 14px; border-radius: 14px; color: #fff; display: inline-flex; align-items: center; gap: 6px; align-self: center; }
.t-ampm.am { background: linear-gradient(#ffcf5a, #ffa53d); }
.t-ampm.pm { background: linear-gradient(#7c7fe0, #5a4fb8); }
.t-words { font-weight: 800; font-size: 17px; color: var(--ink-soft); }
.t-period { display: none; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 26px; margin-top: 4px; }
.t-period svg { width: 36px; height: 36px; }
.target-card.read .t-main, .target-card.read .t-words, .target-card.read .listen { display: none; }
.target-card.read .t-period { display: flex; }
.target-card.read .t-prompt { font-size: 30px; color: var(--ink); }
.target-card .listen { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; color: var(--minute); }
.target-card.pop { animation: popIn .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes popIn { from { transform: translateX(-50%) scale(.6); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }

.ampm-pill {
  position: absolute; left: 975px; top: 196px; width: 180px; z-index: 4;
  border: 0; border-radius: 20px; padding: 6px 10px 8px; background: var(--card); box-shadow: 0 4px 0 rgba(74, 51, 40, .2);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-weight: 800;
}
.pill-label { font-size: 14px; color: var(--ink-soft); }
.pill-val { font-size: 28px; display: flex; align-items: center; gap: 6px; }
.pill-val svg { width: 30px; height: 30px; }
.ampm-pill kbd { font-family: inherit; font-size: 12px; background: rgba(74, 51, 40, .1); border-radius: 6px; padding: 1px 8px; }
.ampm-pill.flip { animation: flipPill .5s ease; }
@keyframes flipPill { 50% { transform: rotateX(90deg) scale(1.1); } }

.bubble {
  position: absolute; left: 40px; top: 170px; width: 330px; z-index: 5;
  background: #fff; border-radius: 24px; padding: 14px 18px; font-weight: 800; font-size: 19px; line-height: 1.35;
  box-shadow: 0 5px 0 rgba(74, 51, 40, .2); opacity: 0; transform: scale(.7) translateY(10px); transition: all .3s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none;
}
.bubble::after { content: ""; position: absolute; left: 150px; bottom: -18px; border: 12px solid transparent; border-top: 14px solid #fff; }
.bubble.show { opacity: 1; transform: none; }
.bubble.warn { background: #fff4d6; }
.bubble.warn::after { border-top-color: #fff4d6; }

.controls { position: absolute; left: 0; right: 0; bottom: 12px; display: none; justify-content: center; align-items: center; gap: 22px; z-index: 4; }
.controls.show { display: flex; }
.cgroup { display: grid; grid-template-columns: auto auto; gap: 4px 8px; align-items: center; justify-items: center; background: var(--card); padding: 8px 14px 6px; border-radius: 22px; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); }
.cgroup .clabel { grid-column: 1 / -1; font-size: 14px; font-weight: 800; }
.cgroup.ampmc { grid-template-columns: auto; }
.key {
  width: 58px; height: 46px; border: 0; border-radius: 14px; font-size: 22px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25); transition: transform .08s;
}
.key.wide { width: 120px; font-size: 18px; }
.key:active, .key.pressed { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.hourc .key { background: var(--hour); }
.hourc .clabel { color: var(--hour); }
.minc .key { background: var(--minute); }
.minc .clabel { color: var(--minute); }
.ampmc .key { background: linear-gradient(90deg, #ffb347, #6a5fd0); }
.ampmc .clabel { color: var(--purple); }
.btn-check { font-size: 30px; padding: 16px 30px; border-radius: 26px; background: linear-gradient(#6ee391, var(--green)); color: #fff; box-shadow: 0 6px 0 var(--green-d); text-shadow: 0 2px 0 rgba(0, 0, 0, .15); }

.controls.read { flex-direction: column; gap: 10px; }
.read-row { display: flex; align-items: center; gap: 18px; }
.time-input { display: flex; align-items: center; gap: 6px; background: var(--card); padding: 6px 12px; border-radius: 22px; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); }
.tbox {
  width: 92px; height: 64px; border-radius: 16px; background: #fff; border: 4px solid #e8dfe9;
  font-size: 46px; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
#inH { color: var(--hour); }
#inM { color: var(--minute); }
.tbox.focus { border-color: #ffd166; box-shadow: 0 0 0 4px rgba(255, 209, 102, .35); }
.tbox.focus::after { content: ""; width: 3px; height: 40px; background: var(--ink); margin-left: 2px; animation: blinkColon 1s steps(2) infinite; }
.colon { font-size: 46px; font-weight: 800; }
.ampm-choice { background: var(--card); padding: 6px; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); border-radius: 20px; }
.ampm-choice button { font-size: 24px; padding: 12px 18px; }
.ampm-choice button.on[data-ap="am"] { background: linear-gradient(#ffcf5a, #ffa53d); color: #fff; }
.ampm-choice button.on[data-ap="pm"] { background: linear-gradient(#7c7fe0, #5a4fb8); color: #fff; }
.numpad { display: flex; gap: 8px; }
.numpad button { width: 56px; height: 48px; border: 0; border-radius: 14px; background: #fff; font-size: 24px; font-weight: 800; box-shadow: 0 4px 0 rgba(74, 51, 40, .2); }
.numpad button:active { transform: translateY(3px); box-shadow: none; }
.numpad button.bk { width: 76px; background: #ffe3e8; }

/* overlays */
.overlay { position: absolute; inset: 0; display: none; z-index: 20; align-items: center; justify-content: center; }
.overlay.show { display: flex; }
.overlay.dim { background: rgba(30, 20, 50, .45); }
.result-ov { justify-content: flex-end; align-items: flex-end; padding: 0 36px 22px 0; }
.result-card { background: #fffaf0; }
#screen-game.resulting .controls, #screen-game.resulting .ampm-pill { visibility: hidden; }
.result-card { width: 440px; padding: 18px 24px 22px; text-align: center; animation: cardIn .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes cardIn { from { transform: translateY(40px) scale(.8); opacity: 0; } to { transform: none; opacity: 1; } }
.result-card h2 { margin: 0; font-size: 42px; color: var(--purple); }
.res-stars { display: flex; justify-content: center; gap: 8px; margin: 8px 0; height: 70px; }
.res-stars .st { color: #e3dbe8; transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.8, .5, 1); }
.res-stars .st svg { width: 64px; height: 64px; }
.res-stars .st.in { transform: scale(1); }
.res-stars .st.lit { color: #ffb020; filter: drop-shadow(0 3px 0 rgba(200, 120, 0, .35)); }
.res-time { font-size: 52px; font-weight: 800; line-height: 1.1; }
.res-time .h { color: var(--hour); }
.res-time .m { color: var(--minute); }
.res-words { font-size: 19px; font-weight: 800; color: var(--ink-soft); margin-top: 2px; }
.res-msg { font-size: 17px; font-weight: 800; margin-top: 8px; color: var(--ink); min-height: 0; }
.res-points { font-size: 26px; font-weight: 800; color: var(--green-d); margin-top: 6px; }
.res-sticker { display: none; margin: 8px auto 0; background: linear-gradient(90deg, #ffd166, #ff8fa3); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: 999px; width: fit-content; animation: pulse 1s ease-in-out infinite; }
.res-sticker.show { display: block; }
.res-btns { display: flex; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pause-card { padding: 28px 40px; text-align: center; }
.pause-card h2 { margin: 0 0 10px; font-size: 44px; color: var(--purple); }
.keys-help { font-weight: 800; color: var(--ink-soft); font-size: 17px; }

/* ---------- tutorial ---------- */
.tut-head { position: absolute; left: 0; right: 0; top: 16px; text-align: center; z-index: 3; }
.tut-head h2 { display: inline-block; margin: 0; padding: 8px 30px; font-size: 36px; background: var(--card); border-radius: 999px; box-shadow: var(--shadow); color: var(--purple); }
.tut-close { position: absolute; right: 22px; top: 18px; z-index: 4; color: var(--ink); }
.tut-panel { position: absolute; left: 110px; right: 110px; bottom: 14px; padding: 14px 24px 12px; z-index: 3; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); border: 3px solid #fff; }
.tut-panel p { margin: 0 0 10px; font-size: 23px; font-weight: 800; line-height: 1.45; min-height: 66px; }
html[lang="ja"] .tut-panel p { font-size: 21px; }
.tut-nav { display: flex; align-items: center; gap: 14px; }
.tut-dots { flex: 1; display: flex; gap: 8px; justify-content: center; }
.tut-dots i { width: 14px; height: 14px; border-radius: 50%; background: #e3dbe8; transition: all .2s; }
.tut-dots i.on { background: var(--purple); transform: scale(1.3); }
#tutListen { color: var(--minute); width: 48px; height: 48px; }

/* ---------- parents ---------- */
.gate { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 30px 40px; text-align: center; width: 560px; }
.gate p { font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.gate-opts { display: flex; gap: 16px; justify-content: center; }
.gate-opts button { width: 100px; height: 80px; font-size: 36px; }
.gate-msg { color: #d6455d; min-height: 30px; margin-top: 12px !important; font-size: 18px !important; }
.dash { position: absolute; left: 30px; right: 30px; top: 86px; bottom: 16px; overflow-y: auto; display: none; padding: 4px 8px 20px; user-select: text; -webkit-user-select: text; }
.dash.show { display: block; }
.dash::-webkit-scrollbar { width: 12px; }
.dash::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .7); border-radius: 6px; }
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--card); border-radius: 20px; padding: 12px 14px; box-shadow: 0 4px 0 rgba(74, 51, 40, .15); }
.tile .tl { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.tile .tv { font-size: 30px; font-weight: 800; color: var(--purple); margin-top: 2px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.dpanel { background: var(--card); border-radius: 22px; padding: 14px 20px; box-shadow: 0 4px 0 rgba(74, 51, 40, .15); }
.dpanel h3 { margin: 0 0 10px; font-size: 20px; color: var(--ink); }
.bar-row { display: grid; grid-template-columns: 170px 1fr 50px; align-items: center; gap: 10px; margin: 8px 0; font-weight: 800; font-size: 15px; }
.bar { height: 20px; background: rgba(74, 51, 40, .08); border-radius: 10px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 10px; transition: width .8s ease; }
.week { display: flex; gap: 10px; align-items: flex-end; height: 130px; padding-top: 10px; }
.week .day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 800; color: var(--ink-soft); height: 100%; justify-content: flex-end; }
.week .col { width: 100%; border-radius: 8px 8px 4px 4px; background: linear-gradient(#a58cf0, var(--purple)); min-height: 3px; }
.tips { margin: 0; padding-left: 22px; }
.tips li { font-size: 17px; font-weight: 800; line-height: 1.5; margin-bottom: 8px; }
.hist { width: 100%; border-collapse: collapse; font-size: 15px; font-weight: 800; }
.hist th { text-align: left; color: var(--ink-soft); font-size: 13px; padding: 6px 8px; border-bottom: 2px solid rgba(74, 51, 40, .12); }
.hist td { padding: 6px 8px; border-bottom: 1px solid rgba(74, 51, 40, .08); }
.ok { color: var(--green-d); }
.bad { color: #d6455d; }
.reset-btn { background: #ffe3e8; color: #b3334a; margin-top: 4px; }
.empty-note { font-size: 20px; font-weight: 800; text-align: center; padding: 40px; }

/* ---------- credits ---------- */
.credits-card { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); width: 760px; padding: 20px 40px 18px; text-align: center; }
.credits-logo { margin: 0 0 10px; font-size: 46px; color: #ff9d57; -webkit-text-stroke: 1.5px #5a3a7a; }
.credits-list { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6px 18px; text-align: left; font-size: 20px; font-weight: 800; margin: 0 auto 12px; width: 560px; }
.credits-list dt { color: var(--ink-soft); text-align: right; }
.credits-list dd { margin: 0; }
.credits-list a { color: var(--minute); text-decoration: none; border-bottom: 2px dotted; }
.license-text { font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink-soft); margin: 6px 0; text-align: left; }
.font-credit { font-size: 13px; color: var(--ink-soft); margin: 4px 0; }
.thanks { font-size: 24px; font-weight: 800; color: var(--purple); margin: 8px 0 0; }
