:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dbe3ee;
  --main: #2f6fb5;
  --main-weak: #e3eefa;
  --ok: #1f9d55;
  --ng: #d64545;
  --warn: #e8a317;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}
#app { max-width: 520px; margin: 0 auto; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); }
.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }
.center { text-align: center; }

h1, h2 { margin: 0; }
.logo { font-size: 34px; text-align: center; color: var(--main); margin: 28px 0 8px; letter-spacing: .08em; }
.logo small { font-size: 14px; color: var(--muted); letter-spacing: 0; }
.logo.small { font-size: 22px; margin: 0; text-align: left; }
.lead { text-align: center; }
.bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; min-height: 44px; }
.bar h2 { font-size: 19px; }
.icon-btn { border: none; background: none; font-size: 24px; width: 44px; height: 44px; cursor: pointer; color: var(--text); }

.card { background: var(--card); border-radius: 14px; padding: 14px 16px; margin: 12px 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.note { font-size: 12.5px; color: var(--muted); }
.who { margin: 0; color: var(--muted); font-size: 14px; }

.field { display: block; margin: 0 0 12px; font-weight: bold; }
.field select, .field input { display: block; width: 100%; margin-top: 4px; font-size: 18px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

.btn {
  display: block; width: 100%; margin: 10px 0; padding: 12px; font-size: 17px; font-family: inherit;
  border: 2px solid var(--main); color: var(--main); background: #fff; border-radius: 14px; cursor: pointer;
  line-height: 1.4;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--main); color: #fff; }
.btn.big { padding: 16px 12px; font-size: 20px; font-weight: bold; }
.btn .sub { display: block; font-size: 12.5px; font-weight: normal; opacity: .85; margin-top: 4px; }
.btn.ghost { border-color: transparent; color: var(--muted); }
.btn.danger { border-color: var(--ng); color: var(--ng); }
.btn:disabled { opacity: .4; }

.today { display: flex; gap: 12px; align-items: center; }
.today .t-score { font-size: 40px; font-weight: bold; color: var(--main); line-height: 1; }
.today .t-score small { font-size: 15px; }
.today .t-text { font-size: 14px; }
.streak { display: inline-block; background: #fff4e0; color: #b45309; border-radius: 99px; padding: 0 10px; font-size: 13px; margin-top: 4px; }

.game-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.game-card { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 14px 8px; text-align: center; cursor: pointer; font-family: inherit; font-size: 15px; color: var(--text); }
.game-card .gi { font-size: 34px; display: block; }
.game-card small { display: block; color: var(--muted); font-size: 12px; }
.game-card:disabled { opacity: .35; }

.step { text-align: center; color: var(--muted); margin: 8px 0 0; }
.intro { text-align: center; }
.intro-icon { font-size: 56px; }
.intro h2 { font-size: 24px; margin-bottom: 6px; }

.play-head { display: flex; justify-content: space-between; align-items: center; font-weight: bold; margin-top: 4px; }
.play-score b { font-size: 22px; color: var(--main); }
.play-right { display: flex; align-items: center; gap: 10px; }
.quit-btn { font-family: inherit; font-size: 13px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
#radar svg { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto; }
.radar-legend { display: flex; justify-content: center; gap: 14px; font-size: 13px; color: var(--muted); }
.radar-legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--main); vertical-align: middle; margin-right: 4px; }
.radar-legend i.old { border-top: 2px dashed #9ca3af; }
.timer { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 8px 0 12px; }
#timerBar { height: 100%; width: 100%; background: var(--main); transition: width .25s linear; }
#timerBar.low { background: var(--ng); }
#playArea { position: relative; }

.question { text-align: center; font-size: 40px; font-weight: bold; margin: 12px 0; min-height: 60px; }
.answer-box { text-align: center; font-size: 36px; min-height: 56px; border-bottom: 3px solid var(--main); margin: 0 auto 12px; width: 70%; letter-spacing: .1em; }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.numpad button { font-size: 26px; padding: 12px 0; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-family: inherit; cursor: pointer; }
.numpad button.ok { background: var(--main); color: #fff; border-color: var(--main); }
.numpad button:active { background: var(--main-weak); }

.flash { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 120px; font-weight: bold; pointer-events: none; opacity: 0; transition: opacity .15s; }
.flash.show { opacity: .9; }
.flash.ok { color: var(--ok); }
.flash.ng { color: var(--ng); }

/* 漢字 */
.kanji-q { text-align: center; font-size: 22px; margin: 6px 0 10px; }
.kanji-q .target { color: var(--main); font-weight: bold; border-bottom: 3px solid var(--main); padding: 0 2px; }
.kanji-q .hint { display: block; font-size: 13px; color: var(--muted); }
.kanji-wrap { display: flex; gap: 10px; justify-content: center; align-items: stretch; }
.kanji-canvas { width: 240px; height: 240px; background: #fff; border: 2px solid var(--line); border-radius: 12px; touch-action: none;
  background-image: linear-gradient(to right, transparent 49.5%, #eef2f7 49.5%, #eef2f7 50.5%, transparent 50.5%),
                    linear-gradient(to bottom, transparent 49.5%, #eef2f7 49.5%, #eef2f7 50.5%, transparent 50.5%); }
.kanji-answer { width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: 12px; }
.kanji-answer .ans { font-size: 80px; line-height: 1; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; }
.kanji-answer .cap { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 8px; }
.row .btn { margin: 8px 0; }
.btn.ok-btn { border-color: var(--ok); color: var(--ok); }
.btn.ng-btn { border-color: var(--ng); color: var(--ng); }

/* 天秤 */
.scales { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.scales svg { width: 100%; max-width: 360px; height: auto; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }
.choices button { font-size: 30px; padding: 10px 0; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-family: inherit; }
.choices button.txt { font-size: 18px; }
.q-text { text-align: center; font-weight: bold; font-size: 19px; margin: 4px 0; }

/* 数字の並び記憶 */
.digits { text-align: center; font-size: 46px; font-weight: bold; letter-spacing: .25em; min-height: 70px; margin: 18px 0 8px; color: var(--main); }
.digits.hide { color: transparent; }

/* 絵の位置記憶 */
.grid { display: grid; gap: 6px; margin: 8px auto; max-width: 340px; }
.grid .cell { aspect-ratio: 1; border-radius: 10px; background: #fff; border: 2px solid var(--line); font-size: 58px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.grid .cell.cover { background: var(--main-weak); }
.grid .cell.right { border-color: var(--ok); background: #e7f7ee; }
.grid .cell.wrong { border-color: var(--ng); background: #fdeaea; }
.grid.size4 .cell { font-size: 44px; }
#pMsg { font-size: 22px; }

/* 色と文字 */
.color-word { text-align: center; font-size: 72px; font-weight: bold; margin: 26px 0 20px; min-height: 100px; }
.color-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.color-btns button { font-size: 24px; padding: 16px 0; border-radius: 14px; border: 2px solid var(--line); background: #fff; color: var(--text); font-family: inherit; cursor: pointer; }

/* タイトル */
.title-screen.active { display: flex; min-height: 90vh; align-items: center; justify-content: center; }
.title-box { text-align: center; width: 100%; }
.title-logo { font-size: 44px; margin-top: 4px; }
/* タイトル文字：1文字ずつ色ちがいの丸いブロックにして、順番にぴょこぴょこはねる */
.fun-title { margin: 6px 0 10px; display: flex; justify-content: center; align-items: flex-end; gap: 6px; }
.fun-title span { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px;
  color: #fff; font-size: 40px; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.15); animation: pop 2.4s ease-in-out infinite; }
.fun-title span:nth-child(1) { background: #2f6fb5; --r: -6deg; animation-delay: 0s; }
.fun-title span:nth-child(2) { background: #f08a24; --r: 4deg; animation-delay: .15s; }
.fun-title span:nth-child(3) { background: #2b9a3e; --r: -3deg; animation-delay: .3s; }
.fun-title span:nth-child(4) { background: #e05656; --r: 6deg; animation-delay: .45s; }
.fun-title small { font-size: 13px; color: var(--muted); margin-left: 2px; }
@keyframes pop { 0%, 60%, 100% { transform: translateY(0) rotate(var(--r)); } 70% { transform: translateY(-12px) rotate(var(--r)); } 80% { transform: translateY(0) rotate(var(--r)); } }
.title-copy { font-size: 18px; margin: 0 0 6px; }
.title-chara { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 4px 0 14px; }
.title-chara img { height: 170px; width: auto; animation: bounce 1.6s ease-in-out infinite; }
.title-chara .tc-joshu { height: 150px; animation-delay: .4s; }
.title-screen.go .title-chara img { animation: hop .45s ease-in-out 3; }
.menu { display: flex; flex-direction: column; gap: 10px; max-width: 320px; margin: 0 auto; }
.menu-btn { position: relative; font-family: inherit; font-size: 21px; font-weight: bold; padding: 13px; border-radius: 14px;
  border: 2px solid var(--line); background: #fff; color: var(--text); cursor: pointer; }
.menu-btn.selected { border-color: var(--main); background: var(--main); color: #fff; }
.menu-btn.selected::before { content: '▶'; position: absolute; left: 18px; font-size: 16px; top: 50%; transform: translateY(-50%); animation: blink 1.2s ease-in-out infinite; }
.menu-btn:disabled { opacity: .35; cursor: default; }
.sound-sel { display: inline-flex; margin-top: 18px; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; background: #fff; }
.sound-sel button { font-family: inherit; font-size: 15px; padding: 8px 16px; border: none; background: none; color: var(--muted); cursor: pointer; }
.sound-sel button[aria-checked="true"] { background: var(--main-weak); color: var(--main); font-weight: bold; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-22px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* キャラクターのふきだし */
.talk { display: flex; align-items: flex-end; gap: 6px; margin: 10px 0; }
.talk-img { width: 64px; height: 83px; flex: none; }
.bubble { position: relative; flex: 1; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px 12px; font-size: 15px; }
.bubble::before { content: ''; position: absolute; left: -9px; bottom: 16px; border: 8px solid transparent; border-right-color: var(--line); border-left: 0; }
.bubble b { display: block; font-size: 12px; color: var(--main); }
.check { display: flex; gap: 8px; align-items: center; font-size: 16px; margin: 4px 0; }
.check input { width: 22px; height: 22px; }

/* まちがえた問題のふりかえり */
.rv { border-top: 1px solid var(--line); padding: 10px 0; }
.rv:first-of-type { border-top: none; }
.rv-q { font-weight: bold; font-size: 17px; }
.rv-no { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%;
  background: var(--ng); color: #fff; font-size: 13px; margin-right: 6px; vertical-align: 2px; }
.rv-fig svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 2px auto; }
.rv-a { font-size: 14px; margin: 4px 0; }
.rv-your { color: var(--ng); text-decoration: line-through; }
.rv-ans { color: var(--ok); font-weight: bold; font-size: 16px; }
.rv-a.plain .rv-your, .rv-a.plain .rv-ans { color: var(--text); }
.rv-e { font-size: 14px; background: #fff8e6; border-radius: 8px; padding: 6px 8px; }
.rv-none { font-weight: bold; color: var(--ok); margin: 4px 0; }
.advice { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }

/* ---- 楽しくする仕組み（fun.js） ---- */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.home-grid .btn { margin: 4px 0; font-size: 15px; }
.challenge-btn { border-color: #b45309; color: #92400e; background: #fff7e6; font-weight: bold; animation: wiggle 2.5s ease-in-out infinite; }
@keyframes wiggle { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-1.5deg); } 96% { transform: rotate(1.5deg); } }
.grow-mini { display: flex; align-items: center; gap: 10px; font-size: 14px; }

/* ポンタの持ち物（絵の上に重ねる） */
.ponta-wrap { position: relative; display: inline-block; flex: none; }
.ponta-wrap > img, .ponta-wrap > .ponta-items, .ponta-wrap > .ponta-items svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ponta-wrap > img { animation: none !important; }
.title-chara .ponta-wrap { width: 115px; height: 150px; animation: bounce 1.6s ease-in-out .4s infinite; }
.title-screen.go .title-chara .ponta-wrap { animation: hop .45s ease-in-out 3; }
.grow-ponta { width: 54px; height: 70px; }
.grow-big { width: 110px; height: 143px; }

/* 正解で育つ花と花火 */
.garden { position: relative; margin-top: 10px; height: 120px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(#e0f2fe, #f0fdf4); transition: background 1s; }
.garden.night { background: linear-gradient(#1e1b4b, #312e81 70%, #3b3486); }
.garden::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: #86efac; z-index: 0; }
.garden-svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; z-index: 1; }
.garden-msg { position: absolute; left: 0; right: 0; top: 6px; text-align: center; font-size: 13px; color: var(--muted); z-index: 2; font-weight: bold; }
.garden.night .garden-msg { color: #fde68a; }
.fw { position: absolute; width: 0; height: 0; z-index: 0; }
.fw i { position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%;
  transform: rotate(var(--a)) translateY(0); animation: fw 1.1s ease-out forwards; }
@keyframes fw { 70% { opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-40px); opacity: 0; } }

/* 満開のあとの演出（問題の種類ごと） */
.garden.rainbow { background: linear-gradient(#bae6fd, #ecfeff); }
.garden.sky { background: linear-gradient(#7dd3fc, #e0f2fe); }
.garden.spring { background: linear-gradient(#fdf2f8, #fef9c3); }
.garden.party { background: linear-gradient(#fef3c7, #fce7f3); }
.garden .fx { position: absolute; z-index: 0; pointer-events: none; }
.rainbow-arc { left: 0; bottom: 0; width: 100%; height: 100%; animation: arcIn 1.2s ease-out; transform-origin: 50% 100%; }
@keyframes arcIn { from { transform: scaleY(.2); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.bfly { font-size: 20px; left: calc(50% - var(--dir) * 55%); animation: flutter 5s linear forwards; z-index: 2 !important; }
@keyframes flutter { 25% { transform: translate(calc(var(--dir) * 90px), -14px) scaleX(-1); } 50% { transform: translate(calc(var(--dir) * 180px), 8px); }
  75% { transform: translate(calc(var(--dir) * 270px), -10px) scaleX(-1); } 100% { transform: translate(calc(var(--dir) * 380px), 0); } }
.balloon { bottom: -30px; font-size: 26px; animation: rise 3.4s ease-in forwards; }
@keyframes rise { 30% { transform: translate(8px, -50px); } 60% { transform: translate(-8px, -100px); } 100% { transform: translate(4px, -170px); } }
.star { color: #fde68a; font-size: 11px; animation: twinkle 1.6s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6); } }
.shoot { width: 70px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
  transform: rotate(-25deg); animation: shoot 1.1s ease-out forwards; }
@keyframes shoot { from { opacity: 0; } 15% { opacity: 1; } to { transform: rotate(-25deg) translateX(-160px); opacity: 0; } }
.petal { top: -12px; width: 10px; height: 14px; border-radius: 60% 0 60% 0; animation: petal 3.2s linear forwards; }
@keyframes petal { 50% { transform: translate(var(--sway), 70px) rotate(200deg); } 100% { transform: translate(0, 150px) rotate(420deg); } }
.dancer { bottom: 4px; width: 52px; height: 68px; z-index: 2 !important; animation: dance .6s ease-in-out infinite alternate; }
.dancer.left { left: 4px; }
.dancer.right { right: 4px; animation-delay: .3s; }
.dancer.ponta-wrap { position: absolute; }
@keyframes dance { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(10deg) translateY(-10px); } }
.garden .music-note { bottom: 10px; font-size: 22px; font-weight: bold; animation: noteUp 2.2s ease-out forwards; }
@keyframes noteUp { to { transform: translate(14px, -100px) rotate(20deg); opacity: 0; } }

/* 連続正解 */
.combo { position: fixed; left: 50%; top: 18%; transform: translateX(-50%); font-size: 26px; font-weight: 900; color: #f97316;
  text-shadow: 0 2px 0 #fff, 0 0 8px #fff; pointer-events: none; opacity: 0; z-index: 5; }
.combo.show { animation: comboPop 1s ease-out forwards; }
@keyframes comboPop { 0% { opacity: 0; transform: translateX(-50%) scale(.6); } 15% { opacity: 1; transform: translateX(-50%) scale(1.15); }
  30% { transform: translateX(-50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-14px); } }
.color-word.swap { animation: swapIn .18s ease-out; }
@keyframes swapIn { from { transform: scale(.8); opacity: .3; } to { transform: scale(1); opacity: 1; } }

/* お知らせ・紙ふぶき */
.toast { position: fixed; left: 50%; top: -80px; transform: translateX(-50%); width: min(92vw, 420px); background: #fff; border: 2px solid #f6c445;
  border-radius: 14px; padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-size: 15px; text-align: center; z-index: 20; transition: top .35s; }
.toast.show { top: 12px; }
.toast b { display: block; font-size: 18px; color: #b45309; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 15; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; animation: fall 2.6s linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(720deg); } }
.perfect { display: inline-block; margin-top: 4px; font-weight: bold; color: #b45309; background: #fff4e0; border-radius: 99px; padding: 2px 12px; }
.res-best { font-size: 20px; font-weight: 900; color: #b45309; margin: 0 0 4px; animation: pulse 1s ease-in-out 3; }
@keyframes pulse { 50% { transform: scale(1.12); } }
.result.challenge .res-agebox { display: none; }

/* 復習 */
.rv-fb.ok { color: var(--ok); font-weight: bold; }
.rv-fb.ng b { color: var(--ok); font-size: 20px; }
.rv-fb .rv-e { margin-top: 6px; color: var(--text); font-weight: normal; }

/* スタンプカレンダー・バッジ・成長 */
.grow-row { display: flex; gap: 12px; align-items: center; }
.grow-list { list-style: none; padding: 0; margin: 0; font-size: 14px; flex: 1; }
.grow-list li { padding: 3px 0; color: var(--muted); }
.grow-list li.got { color: var(--text); font-weight: bold; }
.grow-list small { margin-left: 6px; font-weight: normal; color: var(--muted); }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-w { font-size: 12px; color: var(--muted); }
.cal-d { position: relative; aspect-ratio: 1; border-radius: 8px; background: #f8fafc; font-size: 12px; }
.cal-d i { position: absolute; left: 4px; top: 2px; font-style: normal; color: var(--muted); }
.cal-d.stamp { background: #fdf2f8; }
.cal-d.stamp b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; padding-top: 6px; }
.cal-d.today { outline: 2px solid var(--main); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { border: 2px solid var(--line); border-radius: 12px; padding: 8px; text-align: center; color: var(--muted); }
.badge .bi { display: block; font-size: 30px; filter: grayscale(1); opacity: .5; }
.badge b { display: block; font-size: 14px; }
.badge small { font-size: 11px; }
.badge.got { border-color: #f6c445; background: #fffbeb; color: var(--text); }
.badge.got .bi { filter: none; opacity: 1; }

/* 結果 */
.done-name { font-size: 18px; margin: 4px 0; }
.done-num { font-size: 54px; font-weight: bold; color: var(--main); margin: 0; }
.done-num small, .big-score small, .age small { font-size: 18px; }
.result .big-score { font-size: 64px; font-weight: bold; color: var(--main); margin: 0; line-height: 1.2; }
.result .age { font-size: 36px; font-weight: bold; margin: 0; }
.res-diff { margin: 0 0 10px; font-weight: bold; }
.res-diff.up { color: var(--ok); }
.res-diff.down { color: var(--ng); }
.res-official { font-size: 13px; background: #fff4e0; border-radius: 8px; padding: 4px 8px; }
.res-official:empty { display: none; }
.res-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.res-table td, .res-table th { padding: 6px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.res-table td.num { text-align: right; font-weight: bold; }
#chart svg { width: 100%; height: auto; display: block; }
