        /* 전체 리셋 */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
            "Noto Sans KR", "Apple SD Gothic Neo", Roboto, sans-serif;
        }

        :root {
            --font-scale: 1;
        }

        html, body {
            width: 100%;
            height: 100%;
            background: #2f2f2f;
        }

        .screen {
            width: 100vw;
            height: 100vh;
            background: rgb(16, 16, 16);
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 5vh 6vw;
            position: relative;
        }

        /* 상단 텍스트 */
        .header {
            text-align: center;
            line-height: 1.4;
        }

        .header .title {
            font-size: calc(clamp(22px, 4vw, 42px) * var(--font-scale));
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

        .header .subtitle {
            font-size: calc(clamp(16px, 3vw, 30px) * var(--font-scale));
            opacity: 0.9;
        }

        /* 중앙 박스 */
        .main {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .notice-box {
            width: 100%;
            max-width: 900px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 6vh 4vw;
            text-align: center;
        }

        .notice-title {
            font-size: calc(clamp(28px, 6vw, 64px) * var(--font-scale));
            font-weight: 800;
            color: #ffd400;
            margin-bottom: 2vh;
            animation: noticePulse 2s ease-in-out infinite;
        }

        @keyframes noticePulse {
            0%,
            100% {
                opacity: 0.2;
            }
            50% {
                opacity: 1;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            .notice-title {
                animation: none;
                opacity: 1;
            }
        }

        .notice-desc {
            font-size: calc(clamp(18px, 3.5vw, 32px) * var(--font-scale));
            line-height: 1.5;
            color: #ffffff;
        }

        /* 하단 안내 */
        .footer {
            text-align: center;
            font-size: calc(clamp(14px, 2.5vw, 22px) * var(--font-scale));
            opacity: 0.85;
            padding-top: 2vh;
        }

        .gear-button {
            position: absolute;
            top: 3vh;
            right: 4vw;
            width: 36px;
            height: 36px;
            border: none;
            background: transparent;
            color: #fff;
            opacity: 0.3;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0;
        }

        .gear-button svg {
            width: 26px;
            height: 26px;
        }

        /* 초기 설정 모달 */
        .modal {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 4vh 6vw;
            z-index: 10;
        }

        .modal.is-open {
            display: flex;
        }

        .modal-card {
            width: min(520px, 100%);
            background: #111;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 28px;
            color: #fff;
            text-align: left;
        }

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .modal-desc {
            font-size: 14px;
            opacity: 0.8;
            margin-bottom: 18px;
        }

        .modal-field {
            display: flex;
            flex-direction: column;
            gap: 8px;
            margin-bottom: 14px;
        }

        .modal-field label {
            font-size: 13px;
            opacity: 0.85;
        }

        .modal-field input {
            background: #1b1b1b;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 8px;
            color: #fff;
            padding: 10px 12px;
            font-size: 15px;
        }

        .modal-field textarea {
            background: #1b1b1b;
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 8px;
            color: #fff;
            padding: 10px 12px;
            font-size: 15px;
            min-height: 120px;
            resize: vertical;
        }

        .scale-control {
            display: grid;
            grid-template-columns: 40px 1fr 40px;
            align-items: center;
            gap: 10px;
        }

        .scale-control button {
            height: 36px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: #1b1b1b;
            color: #fff;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
        }

        .scale-value {
            text-align: center;
            font-size: 16px;
            font-weight: 700;
        }
        .modal-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            margin-top: 8px;
        }

        .modal-actions button {
            background: #ffd400;
            color: #000;
            border: none;
            border-radius: 10px;
            padding: 10px 16px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
        }

        .modal-actions .danger {
            background: transparent;
            color: #fff;
            border: 1px solid rgba(255, 255, 255, 0.35);
        }

        .pin-input {
            text-align: center;
            letter-spacing: 6px;
        }

        .pin-pad {
            margin-top: 10px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .pin-pad button {
            height: 42px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: #1b1b1b;
            color: #fff;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
        }

        .pin-pad button.action {
            font-size: 14px;
        }

        .pin-error {
            font-size: 12px;
            color: #ff9b9b;
            min-height: 16px;
            margin-top: 6px;
        }
