.big-total-overlay {
position: fixed;
inset: 0;
z-index: 240;
background: var(--bg2);
color: var(--ink);
overflow-y: auto;
overscroll-behavior-y: contain;
-webkit-overflow-scrolling: touch;
padding: calc(env(safe-area-inset-top, 0px) + 18px) 16px calc(env(safe-area-inset-bottom, 0px) + 18px);
box-sizing: border-box;
}
.big-total-overlay .big-total-panel { animation: big-total-rise 220ms ease-out both; }
.big-total-overlay.big-total-closing { animation: big-total-out 140ms ease-in both; pointer-events: none; }
@keyframes big-total-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes big-total-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
.big-total-overlay .big-total-panel, .big-total-overlay.big-total-closing { animation: none; }
}
.big-total-panel {
max-width: 480px;
min-height: 100%;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 16px;
}
.big-total-head {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.9rem;
font-weight: 800;
letter-spacing: 0.4px;
color: var(--ink-soft);
}
.big-total-close {
width: 44px;
height: 44px;
border-radius: 22px;
border: 0;
background: var(--card);
color: var(--ink);
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
.big-total-card {
background: var(--card);
border-radius: var(--radius-lg);
padding: 22px 18px 20px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
text-align: center;
}
.big-total-card img { width: 64px; height: 64px; }
.big-total-card h2 {
margin: 0;
font-family: 'Baloo 2', sans-serif;
font-weight: 800;
font-size: calc(1.35rem * var(--font-scale, 1));
color: var(--ink);
}
.big-total-number {
font-family: 'Baloo 2', sans-serif;
font-weight: 800;
font-size: calc(clamp(64px, 24vw, 104px) * var(--font-scale, 1));
line-height: 1;
letter-spacing: -1px;
margin: 6px 0 4px;
color: var(--ink);
overflow-wrap: anywhere;
}
.big-total-number span { font-size: 0.45em; margin-left: 4px; }
.big-total-meta { font-size: 1.05rem; font-weight: 800; color: var(--ink-soft); }
.big-total-guess {
display: flex;
gap: 10px;
align-items: flex-start;
background: rgba(255, 201, 60, 0.16);
border: 3px solid var(--sun);
border-radius: 20px;
padding: 12px 14px;
}
.big-total-guess svg { flex: none; margin-top: 2px; color: var(--sun-ink); }
.big-total-guess p { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); }
.big-total-guess strong { font-weight: 900; }
.big-total-guess strong:first-child { color: var(--sun-ink); }
.big-total-items {
background: var(--card);
border-radius: 20px;
padding: 12px 16px;
display: flex;
flex-direction: column;
gap: 8px;
font-size: 1rem;
font-weight: 700;
}
.big-total-row { display: flex; justify-content: space-between; gap: 12px; }
.big-total-row span:first-child { min-width: 0; overflow-wrap: anywhere; }
.big-total-row span:last-child { flex: none; }
.big-total-tag { color: var(--sun-ink); font-weight: 800; }
.big-total-note { margin: -6px 4px 0; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }
.big-total-done {
margin-top: 4px;
min-height: 58px;
border: 0;
border-radius: var(--radius-md);
background: var(--sprout-green);
color: #FFFFFF;
font-family: 'Baloo 2', sans-serif;
font-weight: 800;
font-size: calc(1.35rem * var(--font-scale, 1));
cursor: pointer;
}
.big-total-close:focus-visible,
.big-total-done:focus-visible,
.big-total-open:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.big-total-holder { position: relative; }
.big-total-open {
position: absolute;
left: 0;
height: 44px;
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
