        body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; background-color: var(--bg-body); color: var(--text-main); margin: 0; padding: 16px 16px calc(90px + max(env(safe-area-inset-bottom, 0px), var(--sa-bottom, 0px))) 16px; padding-top: calc(72px + max(env(safe-area-inset-top, 0px), var(--sa-top, 0px))); line-height: 1.45; -webkit-font-smoothing: antialiased; }
        .container { max-width: 800px; margin: 0 auto; }


        .card { background: var(--surface-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 16px; margin-bottom: 12px; }
        .card > .subhead:first-child { margin-top: 0; }
        .subhead { margin-top: 0; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--border-soft); font-size: 20px; font-weight: 600; color: #fff; letter-spacing: -0.2px; }
        .rule-text { font-size: 14px; color: var(--text-main); line-height: 1.45; margin: 0 0 6px; }
        .rule-text b { color: var(--brand-green); font-weight: 600; }
        .water-notes { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
        .side-box { background: var(--surface-field); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
        .train-row { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 500; color: #fff; cursor: pointer; user-select: none; white-space: nowrap; }
        .train-row input {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            margin: 0;
            flex: 0 0 auto;
            box-sizing: border-box;
            border: none;
            border-radius: 4px;
            background: #fff;
        }
        .train-row input:checked {
            background-color: var(--brand-green);
            border: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230c1c14' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4 L6.6 11.6 L12.8 4.4'/%3E%3C/svg%3E");
            background-size: 12px 12px;
            background-position: center;
            background-repeat: no-repeat;
        }
        .train-row input:disabled { opacity: 1; }
        .train-extra { color: var(--text-sub); font-size: inherit; font-weight: inherit; }
        .stats { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; letter-spacing: -0.2px; }
        .stats span { display: block; white-space: nowrap; }
        .hint { font-size: 13px; color: var(--text-sub); margin-top: 8px; line-height: 1.45; }
        .glasses { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
        .home-glass { width: 40px; height: 48px; display: block; flex: 0 0 auto; cursor: pointer; }
        .home-glass .glass-water { fill: none; }
        .home-glass.filled .glass-water { fill: #5ec8c8; }
        .home-glass .glass-rim { fill: none; stroke: #eef2f6; stroke-width: 2.4; stroke-linejoin: round; }
        .home-glass.bonus .glass-rim { stroke: var(--brand-green); }
        .home-glass .glass-shine { fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 1.6; stroke-linecap: round; }
        .win-title { display: block; color: var(--brand-green); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
        .win-text { font-size: 14px; color: #fff; line-height: 1.4; }
        .empty-state { text-align: center; color: var(--text-sub); padding: 40px 20px; line-height: 1.6; font-size: 15px; }


