* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: #07090f; overflow: hidden; overscroll-behavior: none; }
body { font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", system-ui, sans-serif; color: #f3e9dd; user-select: none; -webkit-user-select: none; }
#app { position: fixed; inset: 0; }
#view { width: 100%; height: 100%; display: block; touch-action: none; }

.hud { position: absolute; top: calc(8px + env(safe-area-inset-top)); left: 6px; right: 6px; display: flex; align-items: center; gap: 5px; pointer-events: none; }
.hud > * { pointer-events: auto; background: rgba(10, 8, 6, .55); backdrop-filter: blur(6px); border-radius: 999px; padding: 6px 10px; font-size: 13px; white-space: nowrap; }
.hud .day b { font-size: 15px; letter-spacing: .04em; }
.hud .counts { display: flex; gap: 8px; margin: 0 auto; }
.hud .btns { display: flex; gap: 0; padding: 2px; }
.hud button { background: none; border: 0; color: inherit; font: inherit; font-size: 15px; min-width: 30px; height: 30px; padding: 0 3px; border-radius: 999px; cursor: pointer; }
.hud button:active { background: rgba(255,255,255,.12); }

.toolbar { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 8px; padding: 6px; background: rgba(10, 8, 6, .6); backdrop-filter: blur(8px); border-radius: 22px; }
.toolbar button { position: relative; width: 70px; height: 62px; border-radius: 16px; border: 0; background: rgba(255,255,255,.06); color: #f3e9dd; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.toolbar button i { font-style: normal; font-size: 22px; line-height: 1; }
.toolbar button span { font-size: 12px; font-weight: 700; }
.toolbar button em { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 10px; background: #f2b84b; color: #2a1a05; border-radius: 6px; padding: 0 4px; }
.toolbar button.on { background: rgba(242, 184, 75, .25); box-shadow: inset 0 0 0 2px #f2b84b; }
.toolbar button.cast { background: linear-gradient(180deg, #ff9a3c, #d9480f); }

.toast { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); max-width: min(90vw, 420px); background: rgba(10, 8, 6, .82); padding: 10px 16px; border-radius: 14px; font-size: 14px; text-align: center; pointer-events: none; }

.modal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); padding: 16px; }
.modal .card { width: min(92vw, 380px); max-height: 92vh; overflow: auto; background: #1d1611; border: 1px solid #3a2d22; border-radius: 20px; padding: 22px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal .card.wide { width: min(94vw, 460px); }
.modal h1 { margin: 6px 0; font-size: 30px; line-height: 1.25; }
.modal h2 { margin: 0 0 10px; font-size: 21px; }
.modal p { margin: 8px 0; line-height: 1.7; color: #d9cbbb; font-size: 15px; }
.modal p.small { font-size: 13px; color: #b5a493; }
.modal .actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.btn { display: block; border: 0; border-radius: 999px; padding: 13px 18px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; background: #fff; color: #1a120b; }
.btn.hot { background: linear-gradient(180deg, #ffd27a, #f2b84b); color: #2a1a05; }
.btn.ghost { background: transparent; color: #f3e9dd; border: 1px solid #3a2d22; }
.title .logo { font-size: 54px; }
.title p { color: #f2b84b; font-weight: 700; }
.photo { width: 100%; border-radius: 12px; margin: 6px 0 10px; }
.stats { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.stats th, .stats td { padding: 6px 4px; border-bottom: 1px solid #3a2d22; }
.stats th { color: #b5a493; font-weight: 500; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 8px; }
.gallery figcaption { font-size: 11px; color: #b5a493; }
@media (max-width: 380px) { .toolbar button { width: 62px; } .hud > * { font-size: 12px; padding: 5px 9px; } }
