@import url("https://fonts.googleapis.com/css2?family=Kosugi+Maru&family=Montserrat:wght@600;700;800&display=swap");

:root {
    --wine-900: #6e1233;
    --wine-800: #8a1d46;
    --wine-700: #a82d5a;
    --rose-500: #ff5f98;
    --rose-300: #ff92b8;
    --peach-200: #ffe7dd;
    --cream: #fff8f7;
    --paper: rgba(255, 255, 255, 0.82);
    --ink: #412433;
    --muted: #7a6671;
    --shadow: 0 16px 50px rgba(128, 21, 63, 0.15);
    --radius-xl: 28px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Kosugi Maru', 'Noto Sans JP', sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 176, 201, 0.68), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 231, 221, 0.9), transparent 25%),
        linear-gradient(180deg, #fffafd 0%, #fff4f6 44%, #fffaf8 100%);
    text-align: center;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior-y: none;
    touch-action: pan-x;
    position: relative;
}
body.scrollable-page {
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: auto;
}
body.question-body { padding-bottom: 22px; }
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.72), transparent 20%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.5), transparent 18%),
        radial-gradient(circle at 12% 78%, rgba(255, 199, 217, 0.3), transparent 18%);
    z-index: -3;
}
.wine-fill-layer {
    position: fixed;
    inset: auto 0 0 0;
    height: calc(var(--wine-fill, 0) * 1%);
    background: linear-gradient(180deg, rgba(255, 119, 167, 0.44) 0%, rgba(164, 38, 82, 0.72) 100%);
    transition: height 0.85s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    opacity: 0.72;
    z-index: -2;
    overflow: hidden;
}
.wine-fill-layer::before,
.wine-fill-layer::after {
    content: '';
    position: absolute;
    left: -10%;
    right: -10%;
    top: -22px;
    height: 44px;
    border-radius: 50%;
}
.wine-fill-layer::before {
    background: rgba(255,255,255,0.16);
    animation: wineWave 5.2s ease-in-out infinite;
}
.wine-fill-layer::after {
    background: rgba(255,255,255,0.07);
    animation: wineWave 7s ease-in-out infinite reverse;
}
@keyframes wineWave { 0%,100%{transform:translateX(0)} 50%{transform:translateX(5%)} }
.page-shell { width: min(100%, 980px); margin: 0 auto; padding: 0 18px 28px; }
.glass-card {
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-xl);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose-500), var(--wine-800));
    box-shadow: 0 12px 26px rgba(168, 45, 90, 0.28);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(168, 45, 90, 0.32); }
.button:active { transform: translateY(1px) scale(0.99); }
.section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--wine-800);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.muted-text { color: var(--muted); }
