* { box-sizing: border-box; }
html, body { margin: 0; background: #fbf7ec; color: #222; font-family: Georgia, serif; }
#top { display: flex; justify-content: space-between; align-items: center; background: #2e7d32; color: #fff; padding: 10px; font-size: 22px; }
#clock, #ver { font-size: 14px; }
#screen { padding: 10px 10px 90px; }
#tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; border-top: 3px solid #1b5e20; background: #fff; }
#tabs button { flex: 1; padding: 18px 0; font-size: 18px; border: 0; border-right: 1px solid #ccc; background: #fff; color: #1b5e20; }
#tabs button.on { background: #2e7d32; color: #fff; }
.btn { display: block; width: 100%; padding: 14px; margin: 8px 0; font-size: 16px; border: 2px solid #c0392b; background: #fff; color: #c0392b; border-radius: 8px; }
.card { border: 2px solid #4a90d9; background: #fff; padding: 10px; margin: 8px 0; border-radius: 8px; }
.card h3 { margin: 0 0 4px; color: #1b5e20; }
.card.now { border-color: #e6a23c; background: #fff6e0; }
.grey { color: #666; font-size: 14px; }
.bar { height: 14px; border: 2px solid #888; border-radius: 7px; margin: 2px 0 8px; background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; background: #4caf50; }
.row { display: flex; justify-content: space-between; font-size: 16px; }
#log { font-size: 15px; }
#log div { border-bottom: 1px dotted #aaa; padding: 3px 0; }
canvas { display: block; margin: 0 auto; border: 3px solid #1b5e20; border-radius: 6px; max-width: 100%; }
.dpad { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.dpad button { width: 30%; padding: 18px 0; font-size: 22px; border: 2px solid #2e7d32; border-radius: 8px; background: #e8f5e9; color: #1b5e20; }
.hero { display: flex; gap: 14px; align-items: center; background: #2e7d32; color: #fff; border-radius: 12px; padding: 14px; }
.lvl { flex: none; width: 58px; height: 58px; border: 3px solid #f5c542; border-radius: 50%; text-align: center; }
.lvl small { display: block; font-size: 9px; margin-top: 9px; color: #f5c542; }
.lvl b { font-size: 24px; line-height: 22px; }
.hinfo { flex: 1; }
.hname { font-size: 20px; font-weight: bold; }
.hsub { font-size: 13px; opacity: .9; margin: 2px 0; }
.xp { height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); margin: 6px 0; overflow: hidden; }
.xp i { display: block; height: 100%; background: #f5c542; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pill { border: 2px solid #2e7d32; border-radius: 999px; padding: 8px 16px; font-size: 14px; background: #fff; color: #2e7d32; }
.pill.on { background: #2e7d32; color: #fff; }

/* Fancy style (KoboChat look) */
body.fancy { background: #fff; color: #000; font-family: Roboto, Arial, sans-serif; }
body.fancy #top { background: #fff; color: #000; border-bottom: 1px solid #ccc; }
body.fancy #top b { font-size: 20px; }
body.fancy #tabs { border-top: 1px solid #ccc; }
body.fancy #tabs button { border-right: 0; background: #fff; color: #555; font-size: 14px; }
body.fancy #tabs button.on { background: #fff; color: #000; font-weight: bold; border-top: 3px solid #000; margin-top: -3px; }
body.fancy .hero { background: linear-gradient(90deg, #2d2468, #6d2fb0 60%, #d4547d); border-radius: 20px; }
body.fancy .pill { border: 1.5px solid #000; color: #000; font-weight: bold; font-size: 13px; }
body.fancy .pill.on { background: #000; color: #fff; }
body.fancy .card { border: 1.5px solid #000; border-radius: 16px; }
body.fancy .card h3 { color: #000; }
body.fancy .card.now { background: #fff6e8; border-color: #000; }
body.fancy .bar { border: 0; height: 10px; background: #e3e3e3; border-radius: 5px; }
body.fancy .bar i { background: #6d2fb0; }
body.fancy .btn { border: 1.5px solid #000; border-radius: 999px; color: #000; font-weight: bold; }
body.fancy canvas { border: 1.5px solid #000; border-radius: 16px; }
body.fancy .dpad button { border: 1.5px solid #000; border-radius: 999px; background: #fff; color: #000; }
.in { display: block; width: 100%; padding: 12px; margin: 6px 0; font-size: 16px; border: 1.5px solid #000; border-radius: 10px; }
