:root { --bg: #fbf5e8; --ink: #3a2a18; --soft: #7a6a58; --red: #c8321e; --gold: #d9a400; --ok: #2f8a3a; --bad: #c0392b; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1d3b1f; font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif; color: var(--ink); -webkit-tap-highlight-color: transparent; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; touch-action: none; display: block; }
.hide { display: none !important; }
.jp { font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif; }
#load { position: fixed; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.2rem; text-align: center; padding: 20px; }
#hud { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; pointer-events: none; gap: 8px; }
#hud > div { background: rgba(30, 20, 10, .62); color: #fff; border-radius: 12px; padding: 6px 10px; pointer-events: auto; font-size: .9rem; backdrop-filter: blur(4px); }
.hl { min-width: 120px; }
.xp { height: 5px; background: rgba(255,255,255,.2); border-radius: 3px; margin-top: 4px; overflow: hidden; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #ffd84a, #ff9a3a); width: 0; transition: width .4s; }
.hr { display: flex; align-items: center; gap: 10px; }
#hudDue { color: #ffd0c0; font-weight: 700; }
#menuBtn { background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; padding: 0 2px; }
#act { position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); padding: 14px 20px; font-size: 1.05rem; font-weight: 700; border-radius: 30px; border: 3px solid #fff; background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.4); cursor: pointer; }
#toast { position: fixed; left: 50%; top: calc(122px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; transition: .3s; background: rgba(30,20,10,.85); color: #fff; padding: 10px 16px; border-radius: 12px; max-width: min(92vw, 520px); text-align: center; pointer-events: none; font-size: .95rem; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast .jp { font-size: 1.2rem; }
#dlg { position: fixed; inset: 0; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 8, 4, .35); padding: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
@media (min-height: 700px) { #dlg { align-items: center; } }
.box { background: var(--bg); width: min(560px, 100%); max-height: calc(100vh - 20px); overflow: auto; border-radius: 18px; border: 3px solid #8a5a32; box-shadow: 0 10px 40px rgba(0,0,0,.5); padding: 14px 16px 16px; }
.top { display: flex; align-items: center; gap: 10px; }
#face { width: 52px; height: 52px; border-radius: 50%; background: #e9dcc0; border: 2px solid #8a5a32; image-rendering: pixelated; }
#dlgWho { font-weight: 700; flex: 1; font-size: 1.05rem; }
#dlgWho .jp { color: var(--red); margin-right: 4px; }
#dlgX { background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--soft); }
h2 { margin: 4px 0 10px; font-size: 1.2rem; }
p { margin: 8px 0; line-height: 1.45; }
.say { font-size: 1.5rem; margin: 10px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sub { color: var(--soft); font-size: .92rem; margin-top: 2px; }
.center { text-align: center; }
.big { font-size: 1.6rem; }
button { font: inherit; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btns.col { flex-direction: column; }
.btns button, .btnlink { flex: 1; padding: 12px 14px; border-radius: 12px; border: 2px solid #c9b48e; background: #fff; cursor: pointer; font-weight: 600; color: var(--ink); text-align: center; text-decoration: none; min-width: 120px; }
.btns button.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btns button:hover { filter: brightness(1.05); }
.snd { background: #fff; border: 2px solid #c9b48e; border-radius: 10px; padding: 4px 9px; cursor: pointer; font-size: 1rem; }
.snd.huge { font-size: 2.4rem; padding: 10px 26px; border-radius: 16px; }
.lesson { background: #fff; border-radius: 12px; padding: 10px 12px; margin-top: 12px; border: 1px solid #e2d3b5; }
.bar { height: 8px; background: #eadfca; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #e86a3a, var(--red)); }
.card { text-align: center; background: #fff; border-radius: 14px; padding: 10px; margin: 8px 0; border: 1px solid #e2d3b5; }
.card .emo { font-size: 2.2rem; }
.card .main { font-size: 2rem; font-weight: 700; }
.card.big .main { font-size: 3rem; }
.card .kana { font-size: 1.2rem; color: var(--soft); }
.card .ro { font-style: italic; color: var(--soft); }
.card .de { font-size: 1.15rem; font-weight: 600; margin-top: 4px; }
.card .snds, .snds { display: flex; gap: 6px; justify-content: center; margin-top: 6px; }
.kind { text-align: center; color: var(--soft); font-weight: 600; margin: 6px 0; }
.q { text-align: center; font-size: 2.6rem; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 8px; }
.q.de { font-size: 1.6rem; }
.qk { text-align: center; color: var(--soft); font-size: 1.2rem; }
.ro { text-align: center; font-style: italic; color: var(--soft); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.opts.kana .opt { font-size: 2rem; }
.opt { position: relative; padding: 14px 8px; border-radius: 12px; border: 2px solid #c9b48e; background: #fff; cursor: pointer; font-size: 1.05rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.opt .jp { font-size: 1.4rem; }
.opt small { color: var(--soft); font-weight: 400; }
.opt .num { position: absolute; left: 6px; top: 4px; font-size: .7rem; color: #b8a888; }
.opt.right { background: #dff3df; border-color: var(--ok); }
.opt.wrong { background: #f8dcd8; border-color: var(--bad); }
.opt:disabled { cursor: default; color: var(--ink); }
.solution { margin-top: 12px; padding: 10px; border-radius: 12px; text-align: center; }
.solution.ok { background: #e9f6e6; } .solution.bad { background: #fbe9e5; }
.prog { display: flex; gap: 3px; margin: 6px 0; }
.prog i { flex: 1; height: 5px; border-radius: 3px; background: #e6d9c0; }
.prog i.d { background: var(--ok); } .prog i.c { background: var(--gold); }
.stamp { font-size: 5rem; color: var(--red); text-align: center; border: 6px solid var(--red); border-radius: 50%; width: 130px; height: 130px; line-height: 118px; margin: 10px auto; transform: rotate(-8deg); font-family: "Noto Serif JP", serif; animation: pop .5s; }
.stamp.small { font-size: 3rem; width: 90px; height: 90px; line-height: 80px; border-width: 4px; }
@keyframes pop { from { transform: scale(2) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.list { display: flex; flex-direction: column; gap: 4px; max-height: 55vh; overflow: auto; }
.row { display: grid; grid-template-columns: 4.5em 5.5em 1fr auto auto; gap: 6px; align-items: center; background: #fff; padding: 6px 8px; border-radius: 8px; border: 1px solid #eadfca; }
.row .jp { font-size: 1.15rem; } .row .small { font-size: .85rem; color: var(--soft); }
.row.ok { border-left: 4px solid var(--ok); }
.stars { color: var(--gold); font-size: .75rem; letter-spacing: -1px; }
.heroes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.hero { background: #fff; border: 2px solid #e2d3b5; border-radius: 12px; padding: 4px; cursor: pointer; }
.hero.sel { border-color: var(--red); background: #fde9e2; }
.hero canvas { width: 100%; image-rendering: pixelated; }
input#hName, input#kPw { width: 100%; padding: 12px; border-radius: 10px; border: 2px solid #c9b48e; font: inherit; font-size: 1.05rem; margin-top: 4px; }
.tog { display: flex; align-items: center; gap: 8px; padding: 6px 2px; }
.tog input { width: 20px; height: 20px; }
.help li { margin-bottom: 8px; line-height: 1.4; }
.mapwrap { display: flex; justify-content: center; }
.mapwrap canvas { width: 100%; max-width: 420px; image-rendering: pixelated; border-radius: 8px; border: 2px solid #8a5a32; }
#quest { position: fixed; left: 10px; top: calc(62px + env(safe-area-inset-top)); max-width: min(78vw, 420px); display: flex; gap: 10px; align-items: center; text-align: left; background: rgba(30, 20, 10, .62); color: #fff; border: 1px solid rgba(255, 216, 74, .5); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: .85rem; cursor: pointer; backdrop-filter: blur(4px); }
#questTxt::before { content: "📜 "; }
#questDay { white-space: nowrap; color: #ffd84a; font-weight: 700; }
h3 { margin: 12px 0 6px; font-size: 1rem; }
.qrow { padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid #eadfca; margin-bottom: 4px; }
.qrow.done { color: var(--soft); text-decoration: line-through; background: #f4efe4; }
.qrow.cur { border: 2px solid var(--gold); font-weight: 600; }
.qrow.todo { color: #b0a088; }
.qlist { max-height: 34vh; overflow: auto; }
.time { cursor: pointer; margin-left: 4px; color: #ffe9b0; }
.hr span { white-space: nowrap; }
@media (max-width: 480px) {
  #hud > div { font-size: .8rem; padding: 5px 8px; }
  .hr { gap: 7px; }
  .time .k { display: none; }
  .hl { min-width: 0; }
}
#langBtn { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; }
.flag { width: 26px; height: 17px; border-radius: 3px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.btns button.lang { display: flex; align-items: center; gap: 12px; justify-content: flex-start; font-size: 1.05rem; }
.btns button.lang .flag { width: 36px; height: 24px; }
.btns button.lang.on { border-color: var(--red); background: #fde9e2; }
.lrow { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 9px 10px; border-radius: 10px; border: 1px solid #eadfca; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.lrow.ok { border-left: 4px solid var(--red); } .lrow.ok span:first-child { color: var(--red); font-weight: 700; }
.expl { background: #fff; border-radius: 12px; padding: 8px 12px; border: 1px solid #e2d3b5; max-height: 55vh; overflow: auto; line-height: 1.5; }
.expl table { border-collapse: collapse; margin: 6px 0; } .expl td, .expl th { border: 1px solid #e2d3b5; padding: 3px 6px; }
.card .ex { margin-top: 6px; font-style: italic; color: var(--soft); }
.card.sent .main, .card.big.sent .main { font-size: 1.5rem; }
.q.qs { font-size: 1.5rem; }
.opts.one { grid-template-columns: 1fr; }
.opts.one .opt .jp { font-size: 1.1rem; }
.srow { grid-template-columns: 1fr 1fr auto auto !important; } .srow .small { display: none; }
.card .ex { font-size: .95rem; }
#bugBtn { background: none; border: 0; color: #fff; font-size: 1.05rem; cursor: pointer; padding: 0 2px; }
#rep { position: fixed; inset: 0; background: rgba(10, 8, 4, .45); display: flex; align-items: center; justify-content: center; padding: 10px; z-index: 30; }
#rep textarea { width: 100%; padding: 10px; border-radius: 10px; border: 2px solid #c9b48e; font: inherit; margin-top: 10px; resize: vertical; }
#load { background: #1d3b1f url(assets/jp/titel.jpg) center / cover no-repeat; text-shadow: 0 2px 6px #000; font-weight: 700; font-size: 1.4rem; }
#pic { width: 84px; height: 84px; object-fit: cover; object-position: top; border-radius: 50%; background: linear-gradient(#fff3dc, #e9d7b4); border: 3px solid #8a5a32; flex: none; }
.banner { width: calc(100% + 32px); margin: -14px -16px 6px; border-radius: 15px 15px 0 0; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.vols { display: grid; gap: 6px; padding: 6px 2px; }
.vols label { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 8px; }
.vols input { width: 100%; accent-color: var(--red); }
#hudRank { font-size: .72rem; background: rgba(255, 216, 74, .22); color: #ffe9a0; border-radius: 8px; padding: 1px 6px; }
.stamp.fail { color: #777; border-color: #777; }
.opt .tr { color: var(--soft); font-weight: 400; font-size: .85rem; }
.btns button.story { background: linear-gradient(#e0a020, #c8321e); border-color: #c8321e; font-size: 1.05rem; }
details.again { margin-top: 8px; } details.again summary { cursor: pointer; color: var(--soft); }
details.chap { background: #fff; border: 1px solid #eadfca; border-radius: 12px; margin-bottom: 6px; padding: 8px 10px; }
details.chap summary { cursor: pointer; font-weight: 700; } details.chap.todo summary { color: #b0a088; } details.chap.cur { border: 2px solid var(--gold); }
details.chap .qrow { margin-top: 5px; }
.qlist { max-height: 46vh; }
@media (max-width: 480px) { #hudRank { display: none; } }
.btns.four button { min-width: 0; padding: 12px 4px; font-size: .92rem; }
.tog select { font: inherit; padding: 6px; border-radius: 8px; border: 2px solid #c9b48e; background: #fff; }
#hudYen { color: #ffe28a; font-weight: 700; } #hudLove { color: #ffb3c8; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.lrow:disabled { opacity: .5; cursor: default; }
.toks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 50px; padding: 8px; margin-top: 8px; }
.toks.ans { background: #fff; border: 2px dashed #c9b48e; border-radius: 12px; align-items: center; }
.tok { padding: 9px 12px; border-radius: 10px; border: 2px solid #c9b48e; background: #fff; font: inherit; font-size: 1.15rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.tok.on { background: #fde9e2; border-color: var(--red); }
.gap { color: var(--red); font-weight: 700; }
.big2 { font-size: 1.3rem; }
.mem { margin: 0 0 10px; } .mem img { width: 100%; border-radius: 12px; display: block; } .mem figcaption { text-align: center; font-weight: 600; margin-top: 4px; }
@media (max-width: 480px) { #hudWords { display: none; } }
@media (max-width: 480px) { .hl { white-space: nowrap; } #hudTime { display: none; } .hr { flex-wrap: wrap; justify-content: flex-end; max-width: 64vw; row-gap: 2px; } }
.tbar { height: 8px; background: #eadfca; border-radius: 4px; overflow: hidden; margin: 10px 0; } .tbar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #e86a3a, #ffd84a); }
.pond { background: linear-gradient(#6fb6e8, #2f7fc4); border-radius: 14px; padding: 14px 10px; display: grid; gap: 10px; }
.fish { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 30px; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.88); font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; color: var(--ink); animation: swim 2.4s ease-in-out infinite; }
.fish span { font-size: 1.6rem; } .fish.f1 { animation-delay: -.8s; } .fish.f2 { animation-delay: -1.6s; }
.fish.right { background: #dff3df; border-color: var(--ok); } .fish.wrong { background: #f8dcd8; border-color: var(--bad); } .fish:disabled { animation: none; }
@keyframes swim { 0%, 100% { transform: translateX(-10px); } 50% { transform: translateX(10px); } }
.dline { background: #fff; border-radius: 10px; padding: 8px 10px; border: 1px solid #eadfca; font-size: 1.1rem; margin: 6px 0; }
.dday { margin-bottom: 10px; }
.kbox { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 6px auto; background: #fff; border: 2px solid #c9b48e; border-radius: 14px; touch-action: none; background-image: linear-gradient(#eadfca, #eadfca), linear-gradient(#eadfca, #eadfca); background-size: 100% 1px, 1px 100%; background-position: center; background-repeat: no-repeat; }
.kbox svg, .kbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.kbox canvas { touch-action: none; cursor: crosshair; }
.kbox path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; }
#kGuide path { stroke: #e3d8c4; } #kDone path { stroke: #2a1a10; } #kDone path.kanim { stroke: var(--red); }
.kstart { fill: var(--red); } #kNum text { font-size: 6.5px; fill: #fff; font-weight: 700; font-family: system-ui; }
.kbox.shake { animation: shake .35s; border-color: var(--bad); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; transition: opacity .5s; z-index: 20; } #fade.on { opacity: 1; }
.pond.arc { background: linear-gradient(#ff8ad0, #7a4ad0); }
#hudStreak { color: #ffb347; font-weight: 700; } #hudGoal { color: #c9f2a0; font-weight: 700; }
.combo { display: inline-block; background: linear-gradient(90deg, #ff8a2a, #ffd84a); color: #3a1a00; font-weight: 800; border-radius: 10px; padding: 2px 9px; animation: pop .35s; } .combo.lost { background: #ddd; color: #666; animation: none; }
.ladder { display: flex; gap: 5px; justify-content: center; margin: 8px 0; } .ladder i { font-style: normal; width: 40px; padding: 5px 0; border-radius: 10px; background: #eadfca; text-align: center; opacity: .55; display: flex; flex-direction: column; } .ladder i.on { background: #ffe9a0; opacity: 1; box-shadow: 0 0 0 2px var(--gold) inset; } .ladder small { font-size: .65rem; color: var(--soft); }
.gimg { height: 110px; image-rendering: pixelated; }
.capsule { width: 170px; height: 170px; margin: 4px auto; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, #e8e2d2); border: 5px solid #8a8a8a; animation: pop .5s; } .capsule img { width: 130px; height: 130px; object-fit: contain; }
.capsule.r2 { border-color: #3f7fc4; box-shadow: 0 0 22px rgba(63,127,196,.6); } .capsule.r3 { border-color: #d9a400; box-shadow: 0 0 30px rgba(255,200,40,.9); background: radial-gradient(circle at 35% 30%, #fff, #ffe9a0); }
.rar { color: #fff; border-radius: 8px; padding: 2px 8px; font-size: .8rem; font-weight: 700; } .new { color: var(--red); margin-left: 6px; }
.colgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 50vh; overflow: auto; margin-top: 8px; }
.col { position: relative; background: #fff; border: 2px solid #c9c9c9; border-radius: 12px; padding: 5px 3px; display: flex; flex-direction: column; align-items: center; font: inherit; cursor: pointer; color: var(--ink); min-height: 104px; }
.col img { width: 56px; height: 56px; object-fit: contain; } .col .jp { font-size: .8rem; font-weight: 700; line-height: 1.1; text-align: center; } .col small { font-size: .66rem; color: var(--soft); text-align: center; line-height: 1.1; } .col em { position: absolute; right: 4px; top: 2px; font-size: .65rem; font-style: normal; color: var(--soft); }
.col.r2 { border-color: #3f7fc4; } .col.r3 { border-color: #d9a400; background: #fffbe8; } .col.no { background: #efe9dc; cursor: default; justify-content: center; } .col .q { font-size: 1.8rem; color: #b8ad98; font-weight: 800; } .col.sel { box-shadow: 0 0 0 3px var(--red) inset; }
.pets .col img { image-rendering: pixelated; width: 52px; height: 52px; }
.belt { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: .78rem; font-weight: 700; border: 1px solid rgba(0,0,0,.3); }
.duel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; text-align: center; font-size: .9rem; } .duel span { font-weight: 800; color: var(--red); }
.hp { height: 12px; background: #eadfca; border-radius: 6px; overflow: hidden; margin: 3px 0; } .hp i { display: block; height: 100%; background: linear-gradient(90deg, #c8321e, #ff7a5a); transition: width .3s; } .hp.me i { background: linear-gradient(90deg, #2f8a3a, #7ad06a); }
.hit { font-weight: 700; margin: 8px 0 0; } .hit.ok { color: var(--ok); } .hit.bad { color: var(--bad); }
.omi { width: 110px; margin: 6px auto; background: #fff; border: 3px solid var(--red); border-radius: 8px; padding: 18px 0; text-align: center; font-size: 3rem; font-weight: 800; color: var(--red); writing-mode: vertical-rl; display: grid; place-items: center; animation: pop .5s; }
.hero.lock { opacity: .55; position: relative; cursor: default; } .hero small { display: block; font-size: .62rem; color: var(--soft); }
@media (max-width: 480px) { #hudStamps { display: none; } }
.capsule { margin-top: 16px; }
#auth { position: fixed; inset: 0; display: grid; place-items: center; padding: 12px; background: #1d3b1f url(assets/jp/titel.jpg) center / cover no-repeat; overflow: auto; }
.abox { background: var(--bg); width: min(420px, 100%); border-radius: 18px; border: 3px solid #8a5a32; box-shadow: 0 10px 40px rgba(0,0,0,.5); padding: 14px 16px 16px; }
.abox h1 { margin: 6px 0 2px; font-size: 1.5rem; } .abox label { display: block; font-weight: 600; margin-top: 10px; font-size: .92rem; }
.abox input, #pOld, #pNew { width: 100%; padding: 12px; border-radius: 10px; border: 2px solid #c9b48e; font: inherit; font-size: 1.05rem; margin-top: 4px; }
.pcard { background: #fff; border: 1px solid #eadfca; border-radius: 12px; padding: 10px 12px; } .pcard.me { border-left: 4px solid var(--gold); } .pcard.focus { box-shadow: 0 0 0 2px var(--red) inset; }
.phead { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; } .phead .on { color: var(--ok); font-weight: 700; font-size: .85rem; } .phead .off { color: var(--soft); font-size: .85rem; }
.psum { margin: 6px 0 0; font-size: .9rem; line-height: 1.4; } .plist { max-height: 60vh; }
.prep { max-height: 34vh; } .prep .dline { font-size: 1.05rem; }
#stick { position: fixed; left: calc(env(safe-area-inset-left) + 20px); bottom: calc(env(safe-area-inset-bottom) + 24px); width: 128px; height: 128px; border-radius: 50%; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.28); touch-action: none; z-index: 5; }
#stick i { position: absolute; left: 39px; top: 39px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.45); box-shadow: 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
body.pad #act { width: 92px; height: 92px; border-radius: 50%; padding: 6px; font-size: .82rem; line-height: 1.15; right: calc(env(safe-area-inset-right) + 18px); bottom: calc(env(safe-area-inset-bottom) + 34px); display: grid; place-items: center; text-align: center; overflow: hidden; }
.mprof { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #eadfca; border-radius: 14px; padding: 10px 12px; }
.mprof canvas { width: 56px; height: 56px; image-rendering: pixelated; background: #f1e7d0; border-radius: 12px; flex: none; } .mprof > div { flex: 1; min-width: 0; } .mprof .xp { background: #eadfca; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; border: 2px solid #e2d3b5; background: #fff; font: inherit; color: var(--ink); cursor: pointer; text-align: center; min-height: 86px; }
.tile:active { background: #fde9e2; border-color: var(--red); } .tile .ti { font-size: 1.7rem; line-height: 1.1; } .tile .ti .flag { width: 34px; height: 22px; } .tile b { font-size: .92rem; } .tile small { font-size: .7rem; color: var(--soft); line-height: 1.1; }
.mset { background: #fff; border: 1px solid #eadfca; border-radius: 14px; padding: 10px 12px; margin-top: 12px; } .mset summary { font-weight: 700; cursor: pointer; } .mset .tiles { margin-top: 8px; }
#dlg { z-index: 10; } #toast { z-index: 12; } .tile b { font-size: .84rem; overflow-wrap: anywhere; }
