        @font-face {
            font-family: 'Pretendard Variable';
            font-weight: 45 920;
            font-style: normal;
            font-display: swap;
            src: url(Pretendard.woff2) format('woff2-variations'),
                 url(Pretendard.woff2) format('woff2');
        }

        @keyframes tiTubeFlow {
            0%   { transform: translate3d(0, 0, 0) rotate(-18deg) }
            50%  { transform: translate3d(-12px, 14px, 0) rotate(-6deg) scale(1.03) }
            100% { transform: translate3d(8px, -8px, 0) rotate(-28deg) }
        }
        @keyframes tiRise {
            from { opacity: 0; transform: translate3d(0, 18px, 0) }
            to   { opacity: 1; transform: none }
        }

        /* ※ 각 화면의 display 는 기존 .screen / .screen.on 규칙이 제어하므로 건드리지 않습니다 */
        .screen.ti-screen {
            padding: 0;
            background: #0A0A0B;
            overflow-x: hidden;
            overflow-y: auto;
        }

        .ti-wrap, .ti-overlay {
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            color: #FFFFFF;
            -webkit-font-smoothing: antialiased;
        }
        .ti-wrap *, .ti-overlay * { box-sizing: border-box; }
        .ti-wrap button, .ti-overlay button,
        .ti-wrap input, .ti-overlay input { font-family: inherit; cursor: pointer; }
        .ti-wrap img, .ti-overlay img { max-width: none; }
        .ti-mono { font-family: 'Space Mono', monospace; }
        .ti-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

        /* ---------- 인트로 ---------- */
        .ti-wrap {
            position: relative;
            min-height: 100%;
            padding: 16px 16px 28px;
            background: #0A0A0B;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .ti-tube {
            position: absolute;
            width: 380px;
            right: -170px;
            top: 40px;
            transform: rotate(-18deg);
            animation: tiTubeFlow 16s cubic-bezier(.45, 0, .55, 1) infinite alternate;
            pointer-events: none;
            z-index: 0;
        }
        .ti-wrap > *:not(.ti-tube) { position: relative; z-index: 1; }

        .ti-notice {
            width: 100%;
            height: 52px;
            flex-shrink: 0;
            border-radius: 16px;
            border: none;
            background: #FD155E;
            color: #0A0A0B;
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 0 14px 0 16px;
            text-align: left;
            margin: 0;
        }
        .ti-notice svg { flex-shrink: 0; }
        .ti-notice-text {
            flex-grow: 1;
            min-width: 0;
            font-size: 15px;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ti-hero {
            position: relative;
            min-height: 234px;
            padding: 32px 0 0 4px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .ti-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.14em;
            color: #F5FB20;
        }
        .ti-eyebrow-bar {
            width: 18px; height: 4px; border-radius: 2px;
            background: linear-gradient(100deg, #FA52B0, #FD155E, #FF6628, #FEA92D, #1EBD7B);
        }
        .ti-hero h1 {
            margin: 0;
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            font-weight: 900;
            font-size: 44px;
            line-height: 1.12;
            letter-spacing: -0.05em;
            color: #FFFFFF;
        }
        .ti-grad-text {
            background: linear-gradient(100deg, #FA52B0 0%, #FD155E 22%, #FD4B46 42%, #FF6628 62%, #FEA92D 82%, #1EBD7B 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        .ti-date { font-size: 12px; font-weight: 700; color: #D6D6DE; }
        .ti-mascot {
            position: absolute;
            right: 2px;
            top: 100px;
            width: 104px;
            pointer-events: none;
        }

        .ti-nav {
            display: flex;
            flex-direction: column;
            gap: 12px;
            animation: tiRise .9s .15s cubic-bezier(.22, 1, .36, 1) both;
        }
        .ti-card {
            width: 100%;
            margin: 0;
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 20px;
            border-radius: 22px;
            background: #141417;
            border: 1px solid #26262C;
            color: #FFFFFF;
            text-align: left;
            text-decoration: none;
            font: inherit;
            cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .ti-card:active { background: #1B1B1F; }
        .ti-card:focus-visible, .ti-notice:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        .ti-card-top { display: flex; justify-content: space-between; align-items: center; }
        .ti-card-num { font-weight: 900; letter-spacing: -0.03em; font-size: 22px; color: var(--ti-accent); }
        .ti-card-icon {
            width: 40px; height: 40px; border-radius: 12px;
            background: var(--ti-accent); color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-card strong { font-size: 18px; line-height: 1.4; font-weight: 700; }
        .ti-card-sub {
            display: flex; justify-content: space-between; align-items: center;
            font-size: 14px; color: #C9C9D1;
        }
        .ti-card-sub b { font-weight: 700; color: var(--ti-accent); }

        /* ---------- 공통 오버레이 (기존 card-enlarge-modal 과 같은 방식으로 .screenwin 위에 겹침) ---------- */
        .ti-overlay {
            position: absolute;
            inset: 0;
            z-index: 100000;
            display: none;
        }
        .ti-overlay.on { display: block; }

        /* ---------- 본부 실시간 통신 팝업 ---------- */
        .ti-brief {
            background: rgba(4, 4, 6, 0.82);
            overflow-y: auto;
            padding: 70px 16px 28px;
        }
        .ti-brief-card {
            background: #F5FB20;
            color: #0A0A0B;
            border-radius: 26px;
            padding: 22px;
            display: flex;
            flex-direction: column;
            gap: 14px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
        }
        .ti-brief-head { display: flex; align-items: center; justify-content: space-between; }
        .ti-live {
            display: inline-flex; align-items: center; gap: 8px;
            font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
        }
        .ti-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #FD155E; }
        .ti-icon-btn {
            width: 44px; height: 44px; border-radius: 50%;
            border: none; background: transparent; padding: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-brief-card .ti-icon-btn { margin: -10px -10px -10px 0; color: #0A0A0B; }
        .ti-brief-main { display: flex; gap: 14px; align-items: center; }
        .ti-brief-main img { width: 56px; flex-shrink: 0; }
        .ti-brief-main > div { display: flex; flex-direction: column; gap: 6px; }
        .ti-brief-main span { font-size: 13px; font-weight: 700; }
        .ti-brief-main h2 {
            margin: 0; font-weight: 900; letter-spacing: -0.04em;
            font-size: 26px; line-height: 1.2; color: #0A0A0B;
        }
        .ti-brief-card p { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 500; color: #0A0A0B; }
        .ti-brief-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
        .ti-brief-actions a, .ti-brief-actions button {
            height: 52px; border-radius: 14px;
            display: flex; align-items: center; justify-content: center;
            font-size: 15px; font-weight: 700; text-decoration: none;
        }
        .ti-brief-actions a { background: #0A0A0B; color: #F5FB20; }
        .ti-brief-actions button { border: 2px solid #0A0A0B; background: transparent; color: #0A0A0B; }

        .ti-today { margin-top: 40px; display: flex; flex-direction: column; gap: 10px; }
        .ti-today-head { display: flex; justify-content: space-between; align-items: baseline; }
        .ti-today-head h3 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 22px; color: #FFFFFF; }
        .ti-today-head span { font-size: 12px; color: #C9C9D1; }
        .ti-urgent {
            background: #2A0F1E; border: 1.5px solid #FD155E; border-radius: 18px;
            padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start;
        }
        .ti-urgent-tag {
            flex-shrink: 0; font-size: 11px; font-weight: 700;
            padding: 4px 8px; border-radius: 6px; background: #FD155E; color: #0A0A0B;
        }
        .ti-urgent > div { display: flex; flex-direction: column; gap: 4px; }
        .ti-urgent strong { font-size: 15px; }
        .ti-urgent div span { font-size: 13px; line-height: 1.5; color: #F0D7E3; }
        .ti-schedule { background: rgba(23, 23, 26, 0.95); border-radius: 18px; padding: 4px 16px; }
        .ti-schedule-row {
            display: flex; gap: 14px; align-items: center;
            padding: 12px 0; border-bottom: 1px solid #2A2A30;
        }
        .ti-schedule-row:last-child { border-bottom: none; }
        .ti-schedule-time { font-size: 14px; font-weight: 700; color: #F5FB20; width: 52px; flex-shrink: 0; }
        .ti-schedule-time.is-secret { color: #FA52B0; }
        .ti-schedule-row > div { display: flex; flex-direction: column; gap: 2px; }
        .ti-schedule-row strong { font-size: 15px; }
        .ti-schedule-row div span { font-size: 12px; color: #B4B4BE; }
        #ti-brief-schedule:empty { display: none; }
        #ti-brief-schedule .ti-schedule-row:last-child { border-bottom: 1px solid #2A2A30; }
        .ti-schedule-row.is-now .ti-schedule-time { color: #1EBD7B; }
        .ti-schedule-row.is-now strong::after {
            content: "진행 중"; margin-left: 6px; padding: 2px 6px; border-radius: 6px; vertical-align: 2px;
            font-size: 10px; font-weight: 700; background: #1EBD7B; color: #0A0A0B;
        }
        .ti-schedule-empty { padding: 14px 0; font-size: 13px; color: #8A8A94; border-bottom: 1px solid #2A2A30; }
        .ti-urgent-list { display: flex; flex-direction: column; gap: 10px; }
        .ti-urgent-list:empty { display: none; }
        .ti-urgent-time { display: block; margin-top: 2px; font-size: 11px; color: #F0A6C4; }
        .ti-log { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
        .ti-log[hidden] { display: none; }
        .ti-log h4 { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8A8A94; }
        .ti-log .ti-schedule-time { color: #FA52B0; font-size: 13px; }
        .ti-log .ti-schedule-row div span { line-height: 1.45; }

        /* ---------- 글로벌 AI 도슨트 ---------- */
        .ti-docent { background: #0A0A0B; }
        .ti-docent.on { display: flex; flex-direction: column; }
        .ti-docent-header {
            padding: 16px 16px 12px;
            display: flex; flex-direction: column; gap: 14px;
            border-bottom: 1px solid #1F1F24;
            flex-shrink: 0;
        }
        .ti-docent-bar { display: flex; align-items: center; gap: 12px; }
        .ti-back {
            width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
            background: #17171A; color: #FFFFFF;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .ti-docent-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
        .ti-docent-title span { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: #1EBD7B; }
        .ti-docent-title h1 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 22px; color: #FFFFFF; white-space: nowrap; }
        .ti-guide-btn {
            margin-left: auto; flex-shrink: 0; height: 44px;
            padding: 0 14px 0 12px; border-radius: 999px;
            background: #FD155E; color: #0A0A0B;
            display: flex; align-items: center; gap: 6px;
            text-decoration: none; font-size: 14px; font-weight: 700;
        }
        .ti-langs { display: flex; gap: 6px; flex-wrap: wrap; }
        .ti-lang {
            height: 34px; padding: 0 12px; border-radius: 999px;
            border: 1px solid #33333B; background: transparent; color: #E4E4EA;
            font-size: 13px;
        }
        .ti-lang[aria-pressed="true"] { border-color: #1EBD7B; background: #1EBD7B; color: #0A0A0B; font-weight: 700; }

        .ti-chat {
            flex-grow: 1; min-height: 0; overflow-y: auto;
            padding: 18px 16px; display: flex; flex-direction: column; gap: 14px;
        }
        .ti-msg-bot { display: flex; gap: 10px; align-items: flex-end; }
        .ti-avatar {
            width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
            background: #F5FB20; overflow: hidden;
            display: flex; align-items: flex-end; justify-content: center;
        }
        .ti-avatar img { width: 40px; margin-bottom: -28px; }
        .ti-bubble {
            max-width: 270px; background: #17171A; border-radius: 18px 18px 18px 6px;
            padding: 12px 14px; font-size: 15px; line-height: 1.6;
        }
        .ti-bubble.is-rich { max-width: 284px; display: flex; flex-direction: column; gap: 10px; }
        .ti-bubble p { margin: 0; font-size: 15px; line-height: 1.6; color: #FFFFFF; }
        .ti-chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 50px; }
        .ti-chip {
            height: 36px; padding: 0 12px; border-radius: 999px;
            border: 1px solid #F5FB20; background: transparent; color: #F5FB20;
            font-size: 13px; font-weight: 700;
        }
        .ti-msg-user {
            align-self: flex-end; max-width: 260px;
            background: #F5FB20; color: #0A0A0B;
            border-radius: 18px 18px 6px 18px; padding: 12px 14px;
            font-size: 15px; font-weight: 500; line-height: 1.55;
        }
        .ti-place { background: #0A0A0B; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
        .ti-place strong { font-size: 15px; }
        .ti-place span { font-size: 12px; color: #B4B4BE; }
        .ti-msg-actions { display: flex; gap: 6px; }
        .ti-msg-actions button, .ti-msg-actions a {
            height: 36px; padding: 0 12px; border-radius: 10px; border: none;
            background: #232329; color: #FFFFFF; text-decoration: none;
            font-size: 13px; font-weight: 700;
            display: flex; align-items: center; gap: 6px;
        }
        .ti-msg-actions a { color: #F5FB20; }

        .ti-input-bar {
            margin: 0; padding: 12px 16px 22px;
            display: flex; gap: 8px; align-items: center;
            border-top: 1px solid #1F1F24; flex-shrink: 0;
        }
        .ti-round-btn {
            width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%; border: none; padding: 0;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-mic-btn { background: #17171A; color: #1EBD7B; }
        .ti-send-btn { background: #F5FB20; color: #0A0A0B; }
        .ti-input-bar input {
            flex-grow: 1; min-width: 0; height: 48px;
            border-radius: 999px; border: 1px solid #2E2E35;
            background: #121215; color: #FFFFFF;
            padding: 0 16px; font-size: 16px; cursor: text;
        }
        .ti-input-bar input::placeholder { color: #8A8A94; }

        /* 음성 입력 팝업 */
        .ti-voice { background: rgba(0, 0, 0, 0.75); overflow-y: auto; }
        .ti-voice-card {
            position: relative;
            margin: 132px 20px 24px;
            background: #141417; border: 1px solid #2A2A30; border-radius: 30px;
            padding: 30px 22px 26px;
            display: flex; flex-direction: column; align-items: center; gap: 12px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
        }
        .ti-voice-card .ti-icon-btn { position: absolute; right: 12px; top: 12px; color: #B4B4BE; }
        .ti-voice-ring { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
        .ti-voice-ring .r1 { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(253, 21, 94, 0.18); }
        .ti-voice-ring .r2 { position: absolute; inset: 22px; border-radius: 50%; border: 3px solid rgba(253, 21, 94, 0.35); }
        .ti-voice-ring .core {
            width: 116px; height: 116px; border-radius: 50%;
            background: #FD155E; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 14px 34px rgba(253, 21, 94, 0.45);
        }
        .ti-voice-lang {
            margin-top: -28px; position: relative;
            padding: 6px 16px; border-radius: 999px;
            background: #0F2E2B; color: #1EBD7B; font-size: 14px; font-weight: 700;
        }
        .ti-voice-card h2 { margin: 6px 0 0; font-weight: 900; letter-spacing: -0.04em; font-size: 26px; color: #FFFFFF; }
        .ti-voice-card p { margin: 0; font-size: 14px; color: #B4B4BE; }
        .ti-wave {
            width: 100%; height: 96px; margin-top: 8px; border-radius: 18px;
            background: #0A0A0B; border: 1px solid #2A2A30;
            display: flex; align-items: center; justify-content: center; gap: 6px;
        }
        .ti-wave span { width: 8px; border-radius: 4px; background: #F5FB20; }
        .ti-voice-actions {
            width: 100%; margin-top: 10px;
            display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px;
        }
        .ti-voice-actions button { height: 56px; border-radius: 16px; font-size: 15px; font-weight: 700; }
        .ti-voice-cancel { border: 1.5px solid #3A3A42; background: transparent; color: #FFFFFF; }
        .ti-voice-send { border: none; background: #F5FB20; color: #0A0A0B; }

        /* ---------- 화면 2: AR 스탬프투어 메인 ---------- */
        @keyframes tiTubeFlowMain {
            0%   { transform: translate3d(0, 0, 0) rotate(-14deg) }
            50%  { transform: translate3d(-14px, 16px, 0) rotate(-2deg) scale(1.04) }
            100% { transform: translate3d(10px, -10px, 0) rotate(-26deg) }
        }
        .ti-wrap { flex: 1 0 auto; box-sizing: border-box; }
        .ti-main { padding-bottom: 22px; }
        .ti-main .ti-tube {
            width: 250px; right: -60px; top: 150px;
            transform: rotate(-14deg);
            animation-name: tiTubeFlowMain;
        }
        .ti-main .ti-notice { padding: 0 14px; }
        .ti-main .ti-notice-text { font-size: 14px; }
        .ti-live-tag {
            flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
            font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px;
            background: #0A0A0B; color: #FA52B0;
        }
        .ti-live-tag i { width: 7px; height: 7px; border-radius: 50%; background: #FD155E; }

        .ti-main-head { margin-top: 10px; padding-left: 4px; display: flex; justify-content: space-between; align-items: center; }
        .ti-main-home {
            font-size: 11px; letter-spacing: 0.14em; color: #F5FB20;
            min-height: 44px; display: flex; align-items: center;
            background: none; border: none; padding: 0;
        }
        .ti-guide-open {
            height: 44px; padding: 0 14px 0 12px; border-radius: 999px;
            border: 1.5px solid #F5FB20; background: rgba(10, 10, 11, 0.85); color: #F5FB20;
            font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px;
        }
        .ti-main-hero {
            margin-top: 12px; padding-left: 4px;
            display: flex; flex-direction: column; gap: 6px;
            animation: tiRise .9s cubic-bezier(.22, 1, .36, 1) both;
        }
        .ti-main-tag {
            font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
            color: #0A0A0B; background: #F5FB20; padding: 4px 10px; align-self: flex-start;
        }
        .ti-main-hero h1 {
            margin: 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            font-weight: 900; font-size: 84px; line-height: 0.98; letter-spacing: -0.05em; color: #F5FB20;
        }
        .ti-zone {
            margin: 12px 0 0 4px; align-self: flex-start;
            display: inline-flex; align-items: center; gap: 8px;
            padding: 10px 16px 10px 12px; border-radius: 999px;
            background: #0A0A0B; border: 1.5px solid #F5FB20; color: #F5FB20;
            font-size: 14px; font-weight: 700;
        }
        .ti-mission {
            margin-top: 16px; padding: 0 150px 0 4px; min-height: 170px;
            display: flex; flex-direction: column; gap: 8px;
        }
        .ti-mission-title { margin: 0; font-weight: 900; letter-spacing: -0.03em; font-size: 23px; line-height: 1.25; color: #FFFFFF; }
        .ti-mission-desc { margin: 0; font-size: 14px; line-height: 1.6; color: #D2D2DA; }
        .ti-agent { position: absolute; right: -22px; top: 10px; width: 176px; pointer-events: none; }
        .ti-main-dates {
            margin-top: 12px; padding: 0 4px;
            display: flex; justify-content: space-between;
            font-size: 13px; font-weight: 700; color: #F5FB20;
        }
        .ti-main-cta { margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
        .ti-cta-scan {
            width: 100%; height: 60px; border-radius: 18px; border: none;
            background: #F5FB20; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            font-weight: 900; letter-spacing: -0.03em; font-size: 21px;
        }
        .ti-cta-docent {
            width: 100%; height: 54px; border-radius: 16px;
            border: 1.5px solid #1EBD7B; background: rgba(10, 10, 11, 0.85); color: #1EBD7B;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            font-size: 16px; font-weight: 700;
        }
        /* 스탬프북 확인 버튼 (화면 2 · 길안내 화면 공통) */
        .ti-cta-book {
            width: 100%; height: 58px; border-radius: 16px; border: none;
            background: #1EBD7B; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            font-weight: 900; letter-spacing: -0.03em; font-size: 20px;
        }
        .ti-cta-book:focus-visible,
        .ti-cta-scan:focus-visible, .ti-cta-docent:focus-visible,
        .ti-guide-open:focus-visible, .ti-main-home:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }

        /* ---------- 스탬프투어 이용안내 시트 ---------- */
        .ti-guide { background: rgba(0, 0, 0, 0.72); }
        .ti-guide-sheet {
            position: absolute; left: 0; right: 0; top: 44px; bottom: 0;
            background: #0A0A0B; border-radius: 28px 28px 0 0; border-top: 1.5px solid #F5FB20;
            display: flex; flex-direction: column;
        }
        .ti-guide-head {
            flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
            padding: 14px 12px 12px 20px; border-bottom: 1px solid #1F1F24;
        }
        .ti-guide-head h2 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 22px; color: #FFFFFF; }
        .ti-guide-body {
            flex-grow: 1; min-height: 0; overflow-y: auto;
            padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 48px;
        }
        .ti-boot {
            background: #F5FB20; color: #0A0A0B; border-radius: 26px; padding: 26px 22px;
            display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
        }
        .ti-boot > span { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
        .ti-boot h3 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 27px; line-height: 1.22; color: #0A0A0B; }
        .ti-boot-arrow {
            width: 40px; height: 40px; border-radius: 50%; background: #0A0A0B; color: #F5FB20;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-boot-scan {
            width: 100%; height: 60px; border-radius: 16px; border: none;
            background: #0A0A0B; color: #F5FB20;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            font-weight: 900; letter-spacing: -0.03em; font-size: 21px;
        }
        .ti-boot p { margin: 0; font-size: 13px; line-height: 1.55; color: #33330A; }

        .ti-gsec { display: flex; flex-direction: column; gap: 12px; }
        .ti-gsec-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--ti-accent); }
        .ti-gsec h3 { margin: 0 0 8px; font-weight: 900; letter-spacing: -0.04em; font-size: 30px; line-height: 1.15; color: #FFFFFF; }
        .ti-gsec h3.is-roomy { margin-bottom: 14px; }
        .ti-sys {
            background: #141417; border: 1px solid #26262C; border-radius: 22px; padding: 20px;
            display: flex; flex-direction: column; gap: 10px;
        }
        .ti-sys-top { display: flex; justify-content: space-between; align-items: center; }
        .ti-sys-icon {
            width: 46px; height: 46px; border-radius: 14px; background: var(--ti-accent); color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-sys-code { font-size: 12px; color: #8F8F99; }
        .ti-sys h4 { margin: 0; font-size: 19px; font-weight: 700; color: #FFFFFF; }
        .ti-sys h4 span { color: #1EBD7B; }
        .ti-sys p { margin: 0; font-size: 15px; line-height: 1.65; color: #BDBDC6; }
        .ti-pills { display: flex; flex-wrap: wrap; gap: 6px; }
        .ti-pills span { font-size: 12px; padding: 5px 10px; border-radius: 999px; border: 1px solid #33333B; color: #E4E4EA; }

        .ti-steps { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 14px; }
        .ti-step-rail { display: flex; flex-direction: column; align-items: center; }
        .ti-step-num {
            width: 52px; height: 52px; border-radius: 50%; background: #F5FB20; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
            font-weight: 900; letter-spacing: -0.03em; font-size: 22px;
        }
        .ti-step-num.is-last { background: #FD155E; }
        .ti-step-line { flex-grow: 1; width: 2px; background: #2C2C33; margin: 6px 0; }
        .ti-step-body { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 30px; }
        .ti-step-body.is-last { padding-bottom: 0; }
        .ti-step-body > span { font-size: 12px; font-weight: 700; color: #FD155E; }
        .ti-step-body h4 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 23px; color: #FFFFFF; }
        .ti-step-body p { margin: 0; font-size: 15px; line-height: 1.65; color: #C4C4CC; }
        .ti-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
        .ti-tags span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #2A0F1E; color: #FA52B0; }

        .ti-info { background: #141417; border: 1px solid #26262C; border-radius: 24px; padding: 6px 20px; }
        .ti-info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #26262C; }
        .ti-info-row:last-child { border-bottom: none; }
        .ti-info-icon {
            width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--ti-accent); color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-info-text { display: flex; flex-direction: column; gap: 4px; }
        .ti-info-text.is-loose { gap: 6px; }
        .ti-info-label { font-size: 13px; color: #9A9AA5; }
        .ti-info-zone { font-weight: 900; letter-spacing: -0.04em; font-size: 22px; color: #F5FB20; }
        .ti-info-prize { font-size: 16px; line-height: 1.5; color: #FFFFFF; }
        .ti-info-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #2A0F1E; color: #FA52B0; }
        .ti-caution {
            background: #170D12; border: 1.5px solid #5A1F3C; border-radius: 24px; padding: 20px;
            display: flex; flex-direction: column; gap: 10px;
        }
        .ti-caution-head { display: flex; align-items: center; gap: 10px; color: #FA52B0; }
        .ti-caution-head strong { font-size: 17px; color: #FFFFFF; }
        .ti-caution p { margin: 0; font-size: 14px; line-height: 1.7; color: #E2CFD8; }
        .ti-credits { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 4px 0; font-size: 12px; color: #A8A8B2; }
        .ti-credits strong { color: #FFFFFF; }

        /* ---------- 화면 7: QR 스캔 (TACTICAL SCAN) ----------
           프레임 중심(--fc)과 카메라 영상 중심을 맞춰, 사용자가 맞춘 위치를 스캐너가 그대로 인식하도록 합니다. */
        #screen-scanner.ti-screen { overflow: hidden; }
        .ti-scan {
            --fs: 280px;                                   /* 프레임 크기 */
            --fc: max(calc(50% - 86px), 270px);           /* 프레임 중심 높이 (844px 기준 336px = 시안 위치) */
            position: relative; height: 100%; min-height: 600px; overflow: hidden;
            background: #0A0A0B; color: #FFFFFF;
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        .ti-scan * { box-sizing: border-box; }
        .ti-scan button { font-family: inherit; cursor: pointer; }

        /* 카메라 영상 영역: 화면을 꽉 채우고, 영역 중심 = 프레임 중심
           ※ 영상(video) 자체의 크기·위치는 index.html 하단 스크립트(tiScanFit)가 계산해 지정합니다.
             (left:50% + transform 이나 flex 정렬은 iOS Safari 에서 영상이 옆으로 밀려 그려지는 문제가 있어 사용하지 않음) */
        .ti-scan #qr-reader {
            position: absolute !important; left: 0; right: 0;     /* 라이브러리가 넣는 inline position 무시 */
            top: calc(2 * var(--fc) - 100%); bottom: 0;           /* 영역 중심 = 프레임 중심, 화면 하단까지 꽉 채움 */
            width: 100% !important; border: none !important; padding: 0 !important; margin: 0 !important;
            overflow: hidden; background: #0A0A0B;
            -webkit-transform: translateZ(0); transform: translateZ(0);   /* iOS: 영상 레이어를 이 영역 안에 고정 */
        }
        /* 스크립트가 동작하기 전 기본값 (영상이 영역 밖으로 나가지 않게) */
        .ti-scan #qr-reader video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; display: block; }
        .ti-scan #qr-reader canvas { position: absolute; left: 0; top: 0; }

        /* 라이브러리 기본 음영 박스는 숨기고 디자인 프레임으로 대체 */
        .ti-scan #qr-reader #qr-shaded-region { display: none !important; }

        .ti-scan-frame {
            position: absolute; left: 50%; top: var(--fc);
            width: var(--fs); height: var(--fs);
            transform: translate(-50%, -50%);
            border-radius: 22px; pointer-events: none;
            box-shadow: 0 0 0 9999px rgba(6, 6, 8, 0.55);   /* 프레임 바깥만 어둡게 */
        }
        .ti-scan-frame .c { position: absolute; width: 56px; height: 56px; border: 0 solid #F5FB20; }
        .ti-scan-frame .tl { left: 0; top: 0; border-left-width: 6px; border-top-width: 6px; border-top-left-radius: 22px; }
        .ti-scan-frame .tr { right: 0; top: 0; border-right-width: 6px; border-top-width: 6px; border-top-right-radius: 22px; }
        .ti-scan-frame .bl { left: 0; bottom: 0; border-left-width: 6px; border-bottom-width: 6px; border-bottom-left-radius: 22px; }
        .ti-scan-frame .br { right: 0; bottom: 0; border-right-width: 6px; border-bottom-width: 6px; border-bottom-right-radius: 22px; }
        .ti-scan-line {
            position: absolute; left: 20px; right: 20px; top: 20px; height: 3px; border-radius: 2px;
            background: #F5FB20; box-shadow: 0 0 18px 4px rgba(245, 251, 32, 0.55);
            animation: tiScanSweep 2.4s ease-in-out infinite alternate;
        }
        @keyframes tiScanSweep { from { top: 20px } to { top: calc(100% - 23px) } }

        .ti-scan-top {
            position: absolute; left: 16px; right: 16px; top: 16px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .ti-scan-round {
            width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
            background: rgba(0, 0, 0, 0.55); color: #FFFFFF;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-scan-label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #F5FB20; }

        .ti-scan-status {
            position: absolute; left: 0; right: 0;
            top: max(76px, calc(var(--fc) - var(--fs) / 2 - 104px));   /* 844px 기준 92px */
            display: flex; justify-content: center; pointer-events: none;
        }
        .ti-scan-status > span {
            display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
            border-radius: 999px; background: rgba(0, 0, 0, 0.6); font-size: 13px; color: #E6E6EC;
        }
        .ti-scan-status i { width: 8px; height: 8px; border-radius: 50%; background: #1EBD7B; }

        .ti-scan-copy {
            position: absolute; left: 24px; right: 24px;
            top: calc(var(--fc) + var(--fs) / 2 + 30px);              /* 844px 기준 506px */
            display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
        }
        .ti-scan-title { margin: 0; font-weight: 900; letter-spacing: -0.03em; font-size: 24px; line-height: 1.3; color: #FFFFFF; }
        .ti-scan-desc { margin: 0; font-size: 13px; line-height: 1.6; color: #D6D6DE; }
        .ti-scan-tip {
            margin-top: 26px;
            display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
            border-radius: 14px; background: rgba(245, 251, 32, 0.12);
            border: 1px solid rgba(245, 251, 32, 0.4); font-size: 13px; color: #F4FF8A;
        }
        .ti-scan-tip svg { flex-shrink: 0; }

        .ti-scan-tools {
            position: absolute; left: 0; right: 0; bottom: 40px;
            display: flex; justify-content: center; gap: 48px;
        }
        .ti-scan-tool {
            width: 56px; height: 56px; border-radius: 50%; border: none; padding: 0;
            background: rgba(255, 255, 255, 0.14); color: #FFFFFF;
            display: flex; align-items: center; justify-content: center;
            backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
        }
        .ti-scan-tool[aria-pressed="true"] { background: #F5FB20; color: #0A0A0B; }
        .ti-scan-round:focus-visible, .ti-scan-tool:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }

        /* 낮은 화면(구형 소형폰): 안내팁을 숨겨 하단 버튼과 겹치지 않게 */
        @media (max-height: 700px) { .ti-scan-tip { display: none; } }
        @media (prefers-reduced-motion: reduce) { .ti-scan-line { animation: none; top: 50%; } }

        /* ---------- 화면 4: 비밀카드 발급 ---------- */
        .ti-secret { padding: 20px 20px 28px; }
        .ti-secret .ti-tube {
            width: 520px; left: -60px; right: auto; top: 150px;
            transform: rotate(24deg); opacity: 0.9; animation: none;
        }
        .ti-secret-head { display: flex; flex-direction: column; gap: 14px; }
        .ti-secret-step { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
        .ti-secret-step span:first-child { color: #F5FB20; }
        .ti-secret-step span:last-child { color: #A8A8B2; }
        .ti-secret-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
        .ti-secret-bar span { height: 4px; border-radius: 2px; background: #2C2C33; }
        .ti-secret-bar span.is-on { background: #F5FB20; }
        .ti-secret-head h1 {
            margin: 8px 0 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            font-weight: 900; letter-spacing: -0.04em; font-size: 32px; line-height: 1.2; color: #FFFFFF;
        }
        .ti-secret-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
        .ti-secret-card {
            width: min(318px, 100%); max-height: 100%;
            border-radius: 26px; background: #F5FB20; color: #0A0A0B;
            padding: 18px; display: flex; flex-direction: column; gap: 12px;
            transform: rotate(-3deg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
            animation: tiCardIn .7s cubic-bezier(.22, 1, .36, 1) both;
        }
        @keyframes tiCardIn {
            from { opacity: 0; transform: translateY(40px) rotate(-12deg) scale(.9); }
            to   { opacity: 1; transform: rotate(-3deg); }
        }
        .ti-secret-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; }
        .ti-secret-card-top .tag { background: #0A0A0B; color: #F5FB20; padding: 4px 8px; }
        .ti-secret-card-img { min-height: 0; border-radius: 16px; overflow: hidden; background: #0A0A0B; }
        .ti-secret-card-img img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; transition: opacity .2s; }
        .ti-secret-card-name {
            font-weight: 900; letter-spacing: -0.04em; font-size: 24px; line-height: 1.2; text-align: center;
        }

        /* 작전 개시 버튼 = 이동 중 표시 (2초 진행 바 · 기존 자동 이동 시간과 동일) */
        .ti-secret-cta { padding-top: 4px; }
        .ti-go {
            position: relative; overflow: hidden;
            height: 60px; border-radius: 18px; background: #9EA21E; color: #0A0A0B;
        }
        .ti-go-fill {
            position: absolute; inset: 0; background: #F5FB20;
            transform-origin: left center; transform: scaleX(0);
        }
        #screen-card.on .ti-go-fill { animation: tiGoFill 2s linear forwards; }
        @keyframes tiGoFill { to { transform: scaleX(1); } }
        .ti-go-label {
            position: relative; height: 100%;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
        }
        .ti-go-label strong { font-weight: 900; letter-spacing: -0.03em; font-size: 21px; line-height: 1.1; }
        .ti-go-label > span { font-size: 12px; font-weight: 700; opacity: 0.8; }
        .ti-go-dots::after { content: '…'; display: inline-block; animation: tiDots 1s steps(4) infinite; width: 1em; text-align: left; overflow: hidden; vertical-align: bottom; }
        @keyframes tiDots { from { width: 0; } to { width: 1em; } }
        @media (max-height: 700px) { .ti-secret-head h1 { font-size: 26px; } .ti-secret-card-img img { max-height: 40vh; } }
        @media (prefers-reduced-motion: reduce) { .ti-secret-card, .ti-go-dots::after { animation: none; } }

        /* ---------- AR 안전 브리핑 팝업 (AR 화면 진입 시 첫 화면) ----------
           [2026-10-14] 스크롤 없이 한 화면에 들어오도록 정리
           - 아이콘을 제목 왼쪽으로(가로 배치), 제목 한 줄, 간격·글자 크기를 화면 높이에 맞춰 자동 축소 */
        .ti-safety { z-index: 2000000; background: #0A0A0B; overflow-y: auto; }
        .ti-safety.on { display: flex; flex-direction: column; }
        .ti-safety-in {
            flex: 1 0 auto; min-height: 100%;
            display: flex; flex-direction: column;
            gap: clamp(10px, 2.2vh, 18px);
            padding: clamp(10px, 2vh, 18px) 18px clamp(12px, 2.2vh, 20px);
        }
        .ti-safety-top { display: flex; align-items: center; justify-content: space-between; }
        .ti-safety-top .ti-mono { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #FA52B0; }
        .ti-safety-hero {
            display: grid; grid-template-columns: auto 1fr; align-items: center;
            column-gap: 12px; row-gap: 6px;
        }
        .ti-safety-icon {
            width: 46px; height: 46px; border-radius: 14px; background: #FD155E; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
        }
        .ti-safety-hero h2 {
            margin: 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            font-weight: 900; letter-spacing: -0.04em; font-size: clamp(22px, 6.4vw, 27px); line-height: 1.2; color: #FFFFFF;
            word-break: keep-all;
        }
        .ti-safety-hero p { grid-column: 1 / -1; margin: 0; font-size: 14px; line-height: 1.5; color: #BDBDC6; word-break: keep-all; }
        .ti-safety-rules { display: flex; flex-direction: column; gap: 8px; }
        .ti-safety-rule {
            background: #141417; border: 1px solid #26262C; border-radius: 18px;
            padding: clamp(11px, 1.8vh, 15px) 15px; display: flex; gap: 12px;
        }
        .ti-safety-rule.is-alert { background: #170D12; border: 1.5px solid #5A1F3C; }
        .ti-safety-rule > span { font-weight: 900; letter-spacing: -0.03em; font-size: 19px; color: #F5FB20; line-height: 1.3; flex-shrink: 0; }
        .ti-safety-rule.is-alert > span { color: #FA52B0; }
        .ti-safety-rule p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #D6D6DE; word-break: keep-all; }
        .ti-safety-rule.is-alert p { color: #F0E2E8; }
        .ti-safety-rule strong { color: #FFFFFF; }
        .ti-safety-perm { display: flex; flex-direction: column; gap: 6px; }
        .ti-safety-perm > span { font-size: 12.5px; font-weight: 700; color: #A8A8B2; }
        .ti-safety-perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        .ti-safety-perm-grid div {
            background: #141417; border-radius: 14px; padding: 10px 12px;
            display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700;
        }
        .ti-safety-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
        .ti-safety-check {
            display: flex; align-items: center; gap: 12px; min-height: 44px;
            font-size: 15px; font-weight: 500; cursor: pointer;
        }
        .ti-safety-check input { width: 22px; height: 22px; margin: 0; accent-color: #F5FB20; flex-shrink: 0; }
        .ti-safety-go {
            width: 100%; height: 56px; border-radius: 18px; border: none;
            background: #F5FB20; color: #0A0A0B;
            font-weight: 900; letter-spacing: -0.03em; font-size: 20px;
            transition: background .2s, color .2s;
        }
        .ti-safety-go:disabled { background: #2C2C33; color: #77777F; cursor: not-allowed; }
        .ti-safety-go:focus-visible, .ti-safety-check input:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        /* 화면이 낮은 폰(아이폰 SE 등): 부제목 숨기고 더 촘촘하게 */
        @media (max-height: 640px) {
            .ti-safety-hero p { display: none; }
            .ti-safety-icon { width: 40px; height: 40px; border-radius: 12px; }
            .ti-safety-rule p { font-size: 13.5px; line-height: 1.5; }
            .ti-safety-perm-grid div { padding: 8px 12px; }
            .ti-safety-go { height: 52px; }
        }

        /* ---------- AR 포토존 사용법 팝업 (AR 화면 우측 상단 info 버튼) ---------- */
        .ti-manual {
            position: fixed; inset: 0; z-index: 2000001;
            display: flex; align-items: center; justify-content: center;
            padding: 20px; background: rgba(0, 0, 0, 0.6);
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
        }
        .ti-manual[hidden] { display: none; }
        .ti-manual-card {
            position: relative; width: 100%; max-width: 420px;
            background: #FFFFFF; border-radius: 22px; padding: 16px 16px 16px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
            display: flex; flex-direction: column; gap: 12px;
        }
        .ti-manual-card img { display: block; width: 100%; height: auto; max-width: 100%; border-radius: 12px; }
        .ti-manual-x {
            position: absolute; top: -14px; right: -10px;
            width: 40px; height: 40px; border-radius: 50%; border: none;
            background: #0A0A0B; color: #FFFFFF; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
        }
        .ti-manual-close {
            width: 100%; height: 52px; border: none; border-radius: 16px; cursor: pointer;
            background: #0A0A0B; color: #F5FB20; font-family: inherit;
            font-size: 18px; font-weight: 900; letter-spacing: -0.03em;
        }
        .ti-manual-x:focus-visible, .ti-manual-close:focus-visible { outline: 3px solid #FD155E; outline-offset: 2px; }

        /* ---------- 화면 9: AR 접선 촬영 (오버레이 + 촬영 버튼) ---------- */
        .ti-ar-overlay {
            /* 프레임 크기: 가로(화면-48px) 4:5 비율, 단 낮은 화면에서는 위(208px)·아래(150px, 촬영버튼 영역) 여백 안에 맞춤 */
            --ar-frame-h: min(calc((100vw - 48px) * 1.25), calc(100vh - 358px), calc(100dvh - 358px));
            position: fixed; inset: 0; z-index: 998; pointer-events: none;
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif; color: #FFFFFF;
        }
        .ti-ar-overlay * { box-sizing: border-box; }
        .ti-ar-overlay::before {          /* 상단 문구 가독성을 위한 은은한 그라데이션 */
            content: ''; position: absolute; left: 0; right: 0; top: 0; height: 220px;
            background: linear-gradient(to bottom, rgba(6, 6, 8, 0.55), rgba(6, 6, 8, 0));
        }
        .ti-ar-head { position: absolute; left: 20px; right: 20px; top: 80px; display: flex; flex-direction: column; gap: 8px; }
        .ti-ar-head h2 {
            margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 32px; line-height: 1.15;
            color: #F5FB20; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
        }
        .ti-ar-head p { margin: 0; font-size: 15px; line-height: 1.55; color: #F0F0F4; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
        .ti-ar-frame {
            position: absolute; left: 50%; top: 208px;
            height: var(--ar-frame-h); aspect-ratio: 4 / 5; transform: translateX(-50%);
            border: 2px dashed rgba(255, 255, 255, 0.45); border-radius: 26px;
        }
        .ti-ar-frame-bar {
            position: absolute; left: -2px; right: -2px; bottom: -2px; height: 46px;
            border-radius: 0 0 26px 26px; background: #F5FB20; color: #0A0A0B;
            display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
        }
        .ti-ar-frame-bar { gap: 8px; }
        .ti-ar-frame-bar strong { font-size: clamp(11px, calc(var(--ar-frame-h) * 0.033), 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ti-ar-frame-bar span { font-size: clamp(9px, calc(var(--ar-frame-h) * 0.026), 11px); font-weight: 700; white-space: nowrap; flex-shrink: 0; }

        /* 8th Wall 촬영 버튼(xrextras-capture-button) → 노란 링 셔터 디자인 */
        #recorder {
            top: auto !important; bottom: 38px !important; left: 50% !important; right: auto !important;
            width: 84px !important; height: 84px !important; margin: 0 !important;
            transform: translateX(-50%) !important;
        }
        #recorder .progress-container { display: none !important; }
        #recorder-button {
            position: absolute !important; left: 0 !important; top: 0 !important;
            width: 84px !important; height: 84px !important; margin: 0 !important; padding: 0 !important;
            border-radius: 50% !important; border: 5px solid #F5FB20 !important;
            background: #F5FB20 !important; box-shadow: inset 0 0 0 5px #0A0A0B !important;
            font-size: 0 !important; color: transparent !important;
            transition: transform .12s ease !important;
        }
        #recorder-button:active { transform: scale(0.92) !important; }

        /* ---------- AR 촬영 후 미리보기: SNS 보고 및 스탬프 획득 (#custom-ui-layer, stechart-photo-spa.js 에서 생성) ---------- */
        .ti-share {
            position: fixed; inset: 0; z-index: 1000001;
            background: #0A0A0B; color: #FFFFFF; overflow-y: auto;
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif; -webkit-font-smoothing: antialiased;
            flex-direction: column;
        }
        .ti-share * { box-sizing: border-box; }
        .ti-share button { font-family: inherit; cursor: pointer; }
        .ti-share button:disabled { opacity: .55; cursor: wait; }
        .ti-share-in { flex: 1 0 auto; min-height: 100%; display: flex; flex-direction: column; padding: 16px 20px 28px; }
        .ti-share-top { display: flex; align-items: center; justify-content: space-between; margin: 0 -4px; }
        .ti-share-top .ti-mono { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #FA52B0; }
        .ti-share-back {
            width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
            background: #17171A; color: #FFFFFF; display: flex; align-items: center; justify-content: center;
        }
        .ti-share-stage { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 22px 0 26px; }
        .ti-share-photo {
            position: relative;
            width: min(290px, calc((100vh - 470px) * 0.8 + 20px), calc((100dvh - 470px) * 0.8 + 20px));
            min-width: 180px;
            padding: 10px 10px 16px; background: #FFFFFF; border-radius: 14px;
            transform: rotate(-2.5deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
        }
        .ti-share-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: #111; }
        .ti-share-badge {
            position: absolute; right: -34px; bottom: -34px;
            width: 116px; height: 116px; border-radius: 50%;
            border: 4px solid #FD155E; color: #FD155E; background: rgba(10, 10, 11, 0.85);
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            transform: rotate(16.5deg);
            animation: tiStampIn .5s .25s cubic-bezier(.2, 1.4, .4, 1) both;
        }
        .ti-share-badge .ti-mono { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
        .ti-share-badge strong { font-weight: 900; letter-spacing: -0.03em; font-size: 26px; line-height: 1.1; }
        @keyframes tiStampIn { from { opacity: 0; transform: rotate(16.5deg) scale(1.8); } to { opacity: 1; transform: rotate(16.5deg) scale(1); } }
        .ti-share-body { display: flex; flex-direction: column; gap: 14px; }
        .ti-share-body h2 { margin: 0; font-weight: 900; letter-spacing: -0.04em; font-size: 28px; line-height: 1.2; color: #FFFFFF; }
        .ti-share-tags {
            display: flex; align-items: center; justify-content: space-between; gap: 8px;
            background: #17171A; border-radius: 14px; padding: 6px 6px 6px 16px;
        }
        .ti-share-tags span { font-size: 15px; font-weight: 700; color: #FA52B0; }
        .ti-share-tags button {
            flex-shrink: 0; height: 44px; padding: 0 14px; border-radius: 10px; border: none;
            background: #2A2A30; color: #FFFFFF; font-size: 13px; font-weight: 700;
        }
        .ti-share-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
        .ti-share-btns button {
            height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700;
            display: flex; align-items: center; justify-content: center; gap: 8px;
        }
        .ti-share-btns .is-save { border: 1.5px solid #3A3A42; background: transparent; color: #FFFFFF; }
        .ti-share-btns .is-sns { border: none; background: #FD155E; color: #0A0A0B; }
        .ti-share-main {
            margin-top: 22px; width: 100%; height: 60px; border-radius: 18px; border: none;
            background: #F5FB20; color: #0A0A0B; font-weight: 900; letter-spacing: -0.03em; font-size: 21px;
        }
        .ti-share button:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        @media (prefers-reduced-motion: reduce) { .ti-share-badge { animation: none; } }

        /* ---------- 화면 8: 스탬프북 · 작전 지도 ---------- */
        .ti-book { padding: 18px 16px 24px; gap: 16px; }   /* 하단 메뉴는 공통 영역(.ti-tabbar)으로 이동 */
        .ti-book-head { display: flex; flex-direction: column; gap: 10px; }
        .ti-book-top { display: flex; justify-content: space-between; align-items: center; }
        .ti-book-step { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: #F5FB20; }
        .ti-book-count { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; background: #F5FB20; color: #0A0A0B; }
        .ti-book-head h1 { margin: 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -0.04em; font-size: 32px; line-height: 1.15; color: #FFFFFF; }
        .ti-book-bar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
        .ti-book-bar span { height: 6px; border-radius: 3px; background: #2C2C33; }
        .ti-book-bar span.is-on { background: #F5FB20; }

        /* ---------- 스탬프북 지도 [2026-10-15] 가로로 긴 새 지도 (2164 x 726) ----------
           - 기본: 지도 높이를 키워 글자가 읽히게 하고 좌우 스와이프 (열면 다음 임무 구역이 가운데로)
           - '전체 보기': 지도 전체를 칸 너비에 맞춰 축소
           - 핀 x·y(%)는 index.html 의 STAMP_ZONES (지도에 인쇄된 빨간 점 위치) */
        .ti-book-map {
            --map-h: clamp(220px, 34vh, 290px);
            position: relative; width: 100%; border-radius: 22px; overflow: hidden;
            background: #F3E9CF; flex-shrink: 0;
        }
        .ti-book-map-scroll {
            height: var(--map-h); overflow-x: auto; overflow-y: hidden;
            -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
            scrollbar-width: none; touch-action: pan-x;
        }
        .ti-book-map-scroll::-webkit-scrollbar { display: none; }
        .ti-book-map-canvas { position: relative; height: 100%; aspect-ratio: 2164 / 726; }
        .ti-book-map-canvas > img {
            position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
            user-select: none; -webkit-user-drag: none; pointer-events: none;
        }
        /* 전체 보기: 칸 너비에 맞춰 전체 지도 */
        .ti-book-map.is-fit .ti-book-map-scroll { height: auto; overflow: hidden; }
        .ti-book-map.is-fit .ti-book-map-canvas { width: 100%; height: auto; }
        .ti-book-map.is-fit .ti-book-pin { transform: translate(-50%, -50%) scale(0.72); }
        .ti-book-map.is-fit .ti-book-legend, .ti-book-map.is-fit .ti-book-map-hint { display: none; }

        /* 좌우 끝 그림자 (밀어서 더 볼 수 있다는 힌트) */
        .ti-book-map::before, .ti-book-map::after {
            content: ""; position: absolute; top: 0; bottom: 0; width: 22px; z-index: 2; pointer-events: none;
        }
        .ti-book-map::before { left: 0; background: linear-gradient(90deg, rgba(10,10,11,.35), transparent); }
        .ti-book-map::after { right: 0; background: linear-gradient(-90deg, rgba(10,10,11,.35), transparent); }
        .ti-book-map.is-fit::before, .ti-book-map.is-fit::after { display: none; }

        .ti-book-legend {
            position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; gap: 8px; padding: 6px 10px;
            border-radius: 10px; background: rgba(10, 10, 11, 0.85); font-size: 11px; font-weight: 700; pointer-events: none;
        }
        .ti-book-legend span { display: flex; align-items: center; gap: 4px; }
        .ti-book-legend span[hidden] { display: none; }
        .ti-book-legend i { width: 10px; height: 10px; border-radius: 50%; background: #3A3A42; border: 1px solid #8F8F99; }
        .ti-book-legend i.is-done { background: #F5FB20; border: none; }
        .ti-book-legend i.is-next { background: #FD155E; border: none; }
        .ti-book-map-fit {
            position: absolute; right: 10px; top: 10px; z-index: 3;
            height: 32px; padding: 0 12px; border-radius: 10px; border: none;
            background: rgba(10, 10, 11, 0.85); color: #F5FB20; font-size: 12px; font-weight: 800;
        }
        .ti-book-map-hint {
            position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%);
            display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
            background: rgba(10, 10, 11, 0.8); color: #FFFFFF; font-size: 12px; font-weight: 700; white-space: nowrap;
            pointer-events: none; transition: opacity .4s;
        }
        .ti-book-map-hint.is-hide { opacity: 0; }

        /* 핀: 지도에 인쇄된 빨간 점 바로 위 */
        .ti-book-pin {
            position: absolute; width: 30px; height: 30px; transform: translate(-50%, -50%);
            border-radius: 50%; background: #2A2A30; color: #FFFFFF; border: 2.5px solid #FFFFFF;
            display: flex; align-items: center; justify-content: center;
            font-weight: 900; letter-spacing: -0.03em; font-size: 13px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35); z-index: 1;
        }
        .ti-book-pin.is-done { background: #F5FB20; color: #0A0A0B; border-color: #0A0A0B; font-size: 16px; }
        .ti-book-pin.is-next {
            width: 36px; height: 36px; font-size: 14px; z-index: 2;
            background: #FD155E; color: #FFFFFF; border: 3px solid #FFFFFF;
            box-shadow: 0 0 0 7px rgba(253, 21, 94, 0.35);
            animation: tiPinPulse 1.6s ease-in-out infinite;
        }
        @keyframes tiPinPulse { 50% { box-shadow: 0 0 0 11px rgba(253, 21, 94, 0.15); } }

        /* 구역 목록: 지도 아래 (누르면 지도가 그 구역으로 이동) */
        .ti-book-list {
            margin: 0; padding: 0; list-style: none;
            display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
        }
        .ti-book-list li {
            display: flex; align-items: center; gap: 6px; min-width: 0;
            padding: 8px 9px; border-radius: 12px; background: #141417; border: 1px solid #26262C;
            color: #C9C9D1; font-size: 12px; line-height: 1.25; cursor: pointer;
        }
        .ti-book-list li b { flex-shrink: 0; font-family: 'Space Mono', monospace; font-size: 12px; color: #8F8F99; }
        .ti-book-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ti-book-list li.is-done { border-color: #5C5F12; color: #F5FB20; font-weight: 700; }
        .ti-book-list li.is-done b { color: #F5FB20; }
        .ti-book-list li.is-next { border-color: #7A1236; color: #FFFFFF; font-weight: 700; background: #23101A; }
        .ti-book-list li.is-next b { color: #FD155E; }

        .ti-book-code { background: #17171A; border: 1px solid #2A2A30; border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
        .ti-book-code-head { display: flex; align-items: center; gap: 10px; }
        .ti-book-code-head strong { font-size: 16px; }
        .ti-book-code-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
        .ti-book-code-slots span {
            height: 48px; border-radius: 12px; border: 1.5px dashed #44444C; color: #8F8F99;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Space Mono', monospace; font-size: 20px;
        }
        .ti-book-code-slots span.is-open { border: none; background: #F5FB20; color: #0A0A0B; font-size: 22px; font-weight: 700; }
        .ti-book-code p { margin: 0; font-size: 13px; line-height: 1.5; color: #B4B4BE; }

        .ti-book-cards { display: flex; flex-direction: column; gap: 10px; }
        .ti-book-cards > strong { font-size: 15px; }
        .ti-book-card-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
        .ti-book-card-row::-webkit-scrollbar { display: none; }
        .ti-book-card {
            flex: 0 0 76px; height: 104px; border-radius: 12px; overflow: hidden; padding: 0; border: none;
            background: #141417; cursor: pointer;
        }
        .ti-book-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .ti-book-card.is-empty {
            border: 1.5px dashed #44444C; color: #6A6A73; cursor: default;
            display: flex; align-items: center; justify-content: center; font-family: 'Space Mono', monospace; font-size: 18px;
        }

        .ti-book-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
        .ti-book-actions button { height: 52px; border-radius: 14px; font-size: 15px; font-weight: 700; }
        .ti-book-actions .is-guide { border: none; background: #F5FB20; color: #0A0A0B; }
        .ti-book-actions.is-single { grid-template-columns: minmax(0, 1fr); }
        .ti-book-actions.is-single button { height: 56px; font-size: 17px; font-weight: 800; }
        .ti-book-actions .is-done { border: 1.5px solid #3A3A42; background: transparent; color: #FFFFFF; }
        .ti-book-actions .is-done.is-ready { border: none; background: #FD155E; color: #0A0A0B; }

        .ti-book button:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        @media (prefers-reduced-motion: reduce) { .ti-book-pin.is-next { animation: none; } }

        /* ---------- 화면 5: 완주 · 비밀 발사 코드 해제 ---------- */
        .ti-done { padding: 16px 0 0; }
        .ti-done .ti-tube { width: 470px; left: -40px; right: auto; top: -40px; transform: rotate(8deg); animation: none; }
        .ti-done-top { padding: 0 16px; display: flex; justify-content: space-between; align-items: center; }
        .ti-done-back {
            width: 44px; height: 44px; border-radius: 50%; border: none; padding: 0;
            background: rgba(0, 0, 0, 0.6); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
        }
        .ti-done-count { font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 999px; background: #F5FB20; color: #0A0A0B; }
        .ti-done-sheet {
            margin-top: auto; min-height: 472px;
            background: #0A0A0B; border-radius: 30px 30px 0 0; padding: 26px 20px 28px;
            display: flex; flex-direction: column; gap: 16px;
            animation: tiRise .8s cubic-bezier(.22, 1, .36, 1) both;
        }
        .ti-done-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: #FA52B0; }
        .ti-done-sheet h1 { margin: 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif; font-weight: 900; letter-spacing: -0.04em; font-size: 34px; line-height: 1.15; color: #F5FB20; }
        .ti-done-code { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
        .ti-done-code span {
            height: 60px; border-radius: 14px; background: #F5FB20; color: #0A0A0B;
            display: flex; align-items: center; justify-content: center;
            font-family: 'Space Mono', monospace; font-size: 28px; font-weight: 700;
            animation: tiCodeFlip .5s cubic-bezier(.2, 1.3, .4, 1) both;
        }
        .ti-done-code span:last-child { background: #FD155E; }
        @keyframes tiCodeFlip { from { opacity: 0; transform: rotateX(90deg); } to { opacity: 1; transform: none; } }
        .ti-done-show { background: #17171A; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
        .ti-done-show strong { font-size: 15px; }
        .ti-done-show span { font-size: 13px; color: #B4B4BE; }
        .ti-done-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
        .ti-done-main {
            width: 100%; height: 60px; border-radius: 18px; border: none;
            background: #F5FB20; color: #0A0A0B; font-weight: 900; letter-spacing: -0.03em; font-size: 21px;
        }
        .ti-done-actions p { margin: 0; text-align: center; font-size: 13px; line-height: 1.5; color: #B4B4BE; }
        .ti-done-actions b { color: #FFFFFF; }
        .ti-done button:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        @media (max-height: 700px) { .ti-done-sheet { min-height: 0; } .ti-done-sheet h1 { font-size: 28px; } }
        @media (prefers-reduced-motion: reduce) { .ti-done-sheet, .ti-done-code span { animation: none; } }

        /* ---------- 화면 10: 행사 장소 길안내 ---------- */
        .ti-venue { padding-bottom: 22px; }
        .ti-venue-head { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
        .ti-venue-head h1 {
            margin: 0; font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            font-weight: 900; letter-spacing: -0.04em; font-size: 26px; color: #FFFFFF;
        }
        .ti-route-form { margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
        .ti-route-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 10px; }
        .ti-route-row.has-btn { grid-template-columns: 76px minmax(0, 1fr) 64px; }
        .ti-route-row label { font-size: 14px; font-weight: 700; color: #D6D6DE; }
        .ti-select { position: relative; }
        .ti-select select {
            width: 100%; height: 46px; margin: 0;
            appearance: none; -webkit-appearance: none;
            border-radius: 12px; border: 1px solid #2E2E35; background: #17171A; color: #FFFFFF;
            padding: 0 40px 0 14px; font-family: inherit; font-size: 16px; cursor: pointer;
        }
        .ti-select svg { position: absolute; right: 14px; top: 15px; pointer-events: none; }
        .ti-route-search {
            height: 46px; border-radius: 12px; border: none; padding: 0;
            background: #FFFFFF; color: #0A0A0B; font-size: 14px; font-weight: 700;
        }
        .ti-venue-map {
            position: relative; margin-top: 16px; height: 270px;
            border-radius: 22px; overflow: hidden; background: #E9EEE6;
        }
        .ti-venue-map img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .ti-route-badge {
            position: absolute; left: 12px; top: 12px; max-width: calc(100% - 24px);
            font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 8px;
            background: #0A0A0B; color: #F5FB20;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .ti-locate-btn {
            position: absolute; right: 12px; bottom: 12px; height: 44px;
            padding: 0 14px 0 12px; border-radius: 999px; border: none;
            background: #0A0A0B; color: #FFFFFF;
            display: flex; align-items: center; gap: 8px;
            font-size: 14px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }
        .ti-venue-actions { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
        .ti-cta-ar {
            width: 100%; height: 58px; border-radius: 16px;
            background: #FD155E; color: #0A0A0B; text-decoration: none;
            display: flex; align-items: center; justify-content: center; gap: 10px;
            font-weight: 900; letter-spacing: -0.03em; font-size: 20px;
        }
        .ti-venue .ti-cta-scan { height: 58px; border-radius: 16px; font-size: 20px; }
        .ti-venue .ti-cta-docent { background: #0A0A0B; }
        .ti-venue-bottom { margin-top: auto; padding-top: 16px; }
        .ti-cta-ar:focus-visible, .ti-route-search:focus-visible,
        .ti-locate-btn:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }

        @media (prefers-reduced-motion: reduce) {
            .ti-tube, .ti-nav, .ti-main-hero { animation: none !important; }
        }
        /* ---------- [공통] 하단 메뉴 (모든 화면) ----------
           .app-container(세로 flex) 안에서 .screenwin 바로 아래에 놓여 항상 화면 맨 아래에 고정됩니다.
           각 화면은 남은 높이 안에서 스크롤되므로 내용이 메뉴에 가려지지 않습니다. */
        .ti-tabbar {
            flex: 0 0 auto; position: relative; z-index: 10;
            height: calc(70px + env(safe-area-inset-bottom, 0px));
            padding-bottom: env(safe-area-inset-bottom, 0px);
            background: #0A0A0B; border-top: 1px solid #1F1F24;
            display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
            font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
            -webkit-font-smoothing: antialiased;
        }
        .ti-tabbar[hidden] { display: none; }
        .ti-tabbar button {
            margin: 0; padding: 0;
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
            border: none; background: transparent; color: #A8A8B2;
            font-family: inherit; font-size: 11px; line-height: 1.2; cursor: pointer;
            -webkit-tap-highlight-color: transparent;
        }
        .ti-tabbar button.is-on { color: #F5FB20; font-weight: 700; }
        .ti-tabbar button:focus-visible { outline: 3px solid #F5FB20; outline-offset: -3px; border-radius: 10px; }

        /* ---------- 글로벌 AI 도슨트 화면 (DOCENT_URL 을 앱 안에 띄움 · 하단 메뉴 유지) ---------- */
        #screen-docent.ti-screen { overflow: hidden; }
        .ti-docent-frame { flex: 1; width: 100%; height: 100%; border: 0; display: block; background: #0A0A0B; }

        /* ---------- 화면 1: 인트로 — 카드 3개가 스크롤 없이 한 화면에 들어오도록 ----------
           · 화면 높이(svh = 주소창·툴바가 보이는 상태의 높이)에 비례해 공지바·제목·카드 크기를 자동 조절
           · 카드 3개가 남은 높이를 똑같이 나눠 가짐 (큰 화면에서는 최대 높이 제한)
           · 높이가 낮은 폰(760px 미만)은 카드를 가로형(아이콘 왼쪽)으로 바꿔 높이를 절약 */
        #screen-intro .ti-wrap {
            min-height: 100%;
            padding: clamp(10px, 1.8vh, 16px) 16px clamp(10px, 1.8vh, 18px);
            padding: clamp(10px, 1.8svh, 16px) 16px clamp(10px, 1.8svh, 18px);
        }
        #screen-intro .ti-notice {
            height: clamp(40px, 6vh, 52px); height: clamp(40px, 6svh, 52px);
            border-radius: 14px;
        }
        #screen-intro .ti-notice-text { font-size: clamp(13px, 2vh, 15px); font-size: clamp(13px, 2svh, 15px); }
        #screen-intro .ti-hero {
            flex-shrink: 0; min-height: 0;
            padding: clamp(10px, 3vh, 32px) 120px 0 4px;   /* 오른쪽은 마스코트 자리 */
            padding: clamp(10px, 3svh, 32px) 120px 0 4px;
            gap: clamp(4px, 1vh, 10px); gap: clamp(4px, 1svh, 10px);
        }
        #screen-intro .ti-hero h1 { font-size: clamp(28px, 5.4vh, 44px); font-size: clamp(28px, 5.4svh, 44px); white-space: nowrap; }
        #screen-intro .ti-mascot {
            top: auto; bottom: -6px; right: 0;
            width: clamp(70px, 13vh, 112px); width: clamp(70px, 13svh, 112px);
        }
        #screen-intro .ti-nav {
            flex: 1 1 auto; min-height: 0; justify-content: flex-end;
            margin-top: clamp(10px, 2.4vh, 24px); margin-top: clamp(10px, 2.4svh, 24px);
            gap: clamp(8px, 1.4vh, 12px); gap: clamp(8px, 1.4svh, 12px);
        }

        /* 카드: 그리드로 배치 (번호·아이콘 줄 / 제목 / 설명) */
        #screen-intro .ti-card {
            flex: 1 1 0; min-height: 0; max-height: 170px;
            display: grid; align-content: center;
            grid-template-columns: minmax(0, 1fr) auto;
            grid-template-areas: "num icon" "title title" "sub sub";
            row-gap: clamp(4px, 1vh, 10px); row-gap: clamp(4px, 1svh, 10px);
            padding: clamp(12px, 2vh, 20px) 18px; padding: clamp(12px, 2svh, 20px) 18px;
            border-radius: 20px;
        }
        #screen-intro .ti-card-top { display: contents; }
        #screen-intro .ti-card-num { grid-area: num; align-self: center; font-size: clamp(16px, 2.6vh, 22px); font-size: clamp(16px, 2.6svh, 22px); line-height: 1.1; }
        #screen-intro .ti-card-icon {
            grid-area: icon; align-self: center;
            width: clamp(34px, 5vh, 40px); height: clamp(34px, 5vh, 40px);
            width: clamp(34px, 5svh, 40px); height: clamp(34px, 5svh, 40px);
        }
        #screen-intro .ti-card strong { grid-area: title; font-size: clamp(15px, 2.3vh, 18px); font-size: clamp(15px, 2.3svh, 18px); line-height: 1.35; }
        #screen-intro .ti-card-sub { grid-area: sub; font-size: clamp(12px, 1.8vh, 14px); font-size: clamp(12px, 1.8svh, 14px); line-height: 1.35; }

        /* 높이가 낮은 화면: 가로형 카드 (아이콘 | 번호 · 제목 · 설명) */
        @media (max-height: 759px) {
            #screen-intro .ti-card {
                grid-template-columns: auto minmax(0, 1fr);
                grid-template-areas: "icon num" "icon title" "icon sub";
                column-gap: 14px; row-gap: 2px;
                padding: clamp(10px, 1.8vh, 16px) 16px; padding: clamp(10px, 1.8svh, 16px) 16px;
            }
            #screen-intro .ti-card-icon {
                width: clamp(40px, 7vh, 52px); height: clamp(40px, 7vh, 52px);
                width: clamp(40px, 7svh, 52px); height: clamp(40px, 7svh, 52px);
                border-radius: 14px;
            }
            #screen-intro .ti-card-num { font-size: 13px; letter-spacing: 0; }
            #screen-intro .ti-card strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        }
        /* 아주 낮은 화면(구형 소형폰): 공지바·제목을 한 번 더 줄임 */
        @media (max-height: 600px) {
            #screen-intro .ti-eyebrow, #screen-intro .ti-date { font-size: 10px; }
            #screen-intro .ti-hero h1 { line-height: 1.05; }
        }

        /* 아주 좁거나 낮은 화면(폭 340px 이하 · 높이 520px 이하): 카드 글씨가 겹치지 않게 한 줄씩만
           (카드 전체가 버튼이라 '바로가기' 글자는 숨김) */
        @media (max-width: 340px), (max-height: 520px) {
            #screen-intro .ti-card { row-gap: 0; column-gap: 12px; padding-left: 12px; padding-right: 12px; }
            #screen-intro .ti-card-num { font-size: 11px; line-height: 1.2; }
            #screen-intro .ti-card strong { font-size: 14px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
            #screen-intro .ti-card-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
            #screen-intro .ti-card-sub b { display: none; }
            #screen-intro .ti-card-icon { width: 40px; height: 40px; }
            #screen-intro .ti-hero { padding-right: 96px; }
        }

        /* ---------- 화면 10: 행사 장소 길안내 — 버튼 1개 + 큰 지도, 한 화면에 표시 ----------
           · 지도가 남은 높이를 모두 차지 (화면이 클수록 지도가 커짐)
           · 지도 전체가 잘리지 않고 보이도록 contain (빈 곳은 지도 바탕색) */
        #screen-venue .ti-wrap {
            min-height: 100%;
            padding: clamp(10px, 1.8vh, 16px) 18px clamp(14px, 2.4vh, 22px);
            padding: clamp(10px, 1.8svh, 16px) 18px clamp(14px, 2.4svh, 22px);
        }
        #screen-venue .ti-notice { height: clamp(40px, 6vh, 52px); height: clamp(40px, 6svh, 52px); border-radius: 14px; }
        #screen-venue .ti-notice-text { font-size: clamp(13px, 2vh, 15px); font-size: clamp(13px, 2svh, 15px); }
        #screen-venue .ti-venue-head { margin-top: clamp(12px, 2.6vh, 24px); margin-top: clamp(12px, 2.6svh, 24px); }
        #screen-venue .ti-venue-head h1 { font-size: clamp(22px, 3.4vh, 26px); font-size: clamp(22px, 3.4svh, 26px); }
        #screen-venue .ti-back { width: clamp(38px, 5.6vh, 44px); height: clamp(38px, 5.6vh, 44px); width: clamp(38px, 5.6svh, 44px); height: clamp(38px, 5.6svh, 44px); }
        #screen-venue .ti-route-form {
            margin-top: clamp(12px, 2.4vh, 22px); margin-top: clamp(12px, 2.4svh, 22px);
            gap: clamp(8px, 1.4vh, 12px); gap: clamp(8px, 1.4svh, 12px);
        }
        #screen-venue .ti-select select, #screen-venue .ti-route-search { height: clamp(42px, 6vh, 50px); height: clamp(42px, 6svh, 50px); }
        #screen-venue .ti-select svg { top: 50%; transform: translateY(-50%); }
        #screen-venue .ti-venue-map {
            flex: 1 1 auto; height: auto; min-height: 150px;
            margin-top: clamp(14px, 2.6vh, 24px); margin-top: clamp(14px, 2.6svh, 24px);
            background: #E9EEE6;
        }
        #screen-venue .ti-venue-map img {
            position: absolute; inset: 0; width: 100%; height: 100%;
            object-fit: contain; object-position: center;
        }
        #screen-venue .ti-venue-actions { margin-top: clamp(14px, 2.6vh, 24px); margin-top: clamp(14px, 2.6svh, 24px); }
        #screen-venue .ti-cta-ar { height: clamp(52px, 7.4vh, 60px); height: clamp(52px, 7.4svh, 60px); border-radius: 18px; }

        /* ---------- [2026-10-15] 길안내 2D 지도 (js/ti-route.js) ---------- */
        #screen-venue .ti-venue-map { touch-action: manipulation; }
        #ti-rt-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
        .ti-rt-line { fill: none; stroke: #FD155E; stroke-linecap: round; stroke-linejoin: round; }
        .ti-rt-casing { fill: none; stroke: #0A0A0B; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
        .ti-rt-walker { fill: #FFFFFF; stroke: #FD155E; }
        .ti-rt-poi { cursor: pointer; }
        .ti-rt-poi circle.dot { fill: #FFFFFF; stroke: #0A0A0B; }
        .ti-rt-poi.is-mission circle.dot { fill: #F5FB20; }
        .ti-rt-poi:hover circle.dot, .ti-rt-poi:focus-visible circle.dot { fill: #FD155E; }
        .ti-rt-poi circle.hit { fill: transparent; }
        .ti-rt-start circle { fill: #F5FB20; stroke: #0A0A0B; }
        .ti-rt-end path { fill: #FD155E; stroke: #0A0A0B; }
        .ti-rt-start text, .ti-rt-end text { font: 700 11px 'Pretendard Variable', 'Noto Sans KR', sans-serif; fill: #0A0A0B; text-anchor: middle; }
        .ti-rt-me .halo { fill: rgba(30, 189, 123, .25); }
        .ti-rt-me .dot { fill: #1EBD7B; stroke: #FFFFFF; }
        #screen-venue .ti-route-badge {
            display: flex; gap: 6px; max-width: calc(100% - 76px); font-size: 12px; padding: 7px 11px; border-radius: 10px;
        }
        #screen-venue .ti-route-badge .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
        #screen-venue .ti-route-badge .tm { flex: none; }
        #screen-venue .ti-route-badge b { color: #FFFFFF; }
        .ti-rt-fit {
            position: absolute; right: 12px; top: 10px; width: 40px; height: 40px; border-radius: 12px; border: none;
            background: rgba(10, 10, 11, .86); color: #FFFFFF; display: grid; place-items: center;
        }
        .ti-route-search.is-swap { background: #2A2A30; color: #FFFFFF; display: grid; place-items: center; }
        .ti-rt-sum {
            margin: 8px 2px 0; font-size: 13px; line-height: 1.45; color: #C9C9D1; min-height: 1.45em;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all;
        }
        .ti-rt-fit:focus-visible, .ti-route-search.is-swap:focus-visible { outline: 3px solid #F5FB20; outline-offset: 2px; }
        #screen-venue .ti-venue-actions { margin-top: clamp(8px, 1.6vh, 16px); margin-top: clamp(8px, 1.6svh, 16px); }

        /* ---------- 화면 2: AR 스탬프투어 메인 — 한 화면에 표시 ----------
           · 큰 제목(탄천 오리 대작전)·요원 이미지·미션 영역을 화면 높이에 비례해 조절 */
        #screen-map .ti-wrap {
            min-height: 100%;
            padding: clamp(10px, 1.8vh, 16px) 16px clamp(12px, 2.2vh, 22px);
            padding: clamp(10px, 1.8svh, 16px) 16px clamp(12px, 2.2svh, 22px);
        }
        #screen-map .ti-notice { height: clamp(40px, 6vh, 52px); height: clamp(40px, 6svh, 52px); border-radius: 14px; }
        #screen-map .ti-main-head { margin-top: clamp(2px, 1vh, 10px); margin-top: clamp(2px, 1svh, 10px); }
        #screen-map .ti-main-home, #screen-map .ti-guide-open { min-height: 40px; height: 40px; }
        #screen-map .ti-main-hero { margin-top: clamp(4px, 1.4vh, 12px); margin-top: clamp(4px, 1.4svh, 12px); }
        #screen-map .ti-main-hero h1 { font-size: clamp(44px, 9vh, 78px); font-size: clamp(44px, 9svh, 78px); }
        /* 오리대리: 제목 오른쪽 (제목은 글자 폭이 좁아 오른쪽이 비어 있음) */
        #screen-map .ti-main-hero .ti-agent {
            position: absolute; top: auto; right: -16px; bottom: -4px;
            width: clamp(110px, 19vh, 170px); width: clamp(110px, 19svh, 170px); max-width: 40vw;
            pointer-events: none;
        }
        #screen-map .ti-main-tag { font-size: clamp(11px, 1.6vh, 13px); font-size: clamp(11px, 1.6svh, 13px); }
        #screen-map .ti-zone {
            margin-top: clamp(8px, 1.4vh, 12px); margin-top: clamp(8px, 1.4svh, 12px);
            padding: clamp(6px, 1vh, 10px) 16px clamp(6px, 1vh, 10px) 12px;
            padding: clamp(6px, 1svh, 10px) 16px clamp(6px, 1svh, 10px) 12px;
            font-size: 13px;
        }
        #screen-map .ti-mission {
            margin-top: clamp(10px, 1.8vh, 16px); margin-top: clamp(10px, 1.8svh, 16px);
            min-height: 0; padding: 0 4px;
            gap: clamp(4px, 1vh, 8px); gap: clamp(4px, 1svh, 8px);
        }
        #screen-map .ti-mission-title { font-size: clamp(17px, 2.8vh, 23px); font-size: clamp(17px, 2.8svh, 23px); }
        #screen-map .ti-mission-desc { font-size: clamp(12px, 1.8vh, 14px); font-size: clamp(12px, 1.8svh, 14px); line-height: 1.5; }
        #screen-map .ti-main-dates { margin-top: clamp(6px, 1.4vh, 12px); margin-top: clamp(6px, 1.4svh, 12px); font-size: 12px; }
        #screen-map .ti-main-cta {
            padding-top: clamp(12px, 2.2vh, 20px); padding-top: clamp(12px, 2.2svh, 20px);
            gap: clamp(8px, 1.2vh, 10px); gap: clamp(8px, 1.2svh, 10px);
        }
        #screen-map .ti-cta-scan { height: clamp(50px, 7.2vh, 60px); height: clamp(50px, 7.2svh, 60px); font-size: clamp(18px, 2.6vh, 21px); font-size: clamp(18px, 2.6svh, 21px); }
        #screen-map .ti-cta-book { height: clamp(48px, 6.8vh, 58px); height: clamp(48px, 6.8svh, 58px); font-size: clamp(17px, 2.5vh, 20px); font-size: clamp(17px, 2.5svh, 20px); }
        /* 낮은 화면: 행사 기간 줄 생략 (메인 화면에도 표시됨) */
        @media (max-height: 680px) {
            #screen-map .ti-main-dates { display: none; }
        }
        /* 아주 낮은 화면: 미션 설명 문구도 생략 */
        @media (max-height: 600px) {
            #screen-map .ti-mission-desc { display: none; }
            #screen-map .ti-main-hero h1 { font-size: 40px; }
            #screen-map .ti-main-head { margin-top: 0; }
        }
        /* 상단 줄: 좁은 폰에서도 한 줄 유지 */
        #screen-map .ti-main-head { gap: 8px; }
        #screen-map .ti-main-home { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; letter-spacing: 0.1em; }
        #screen-map .ti-guide-open { white-space: nowrap; flex-shrink: 0; }
        @media (max-width: 400px) {
            #screen-map .ti-main-home { font-size: 10px; letter-spacing: 0.06em; }
            #screen-map .ti-guide-open { padding: 0 12px 0 10px; font-size: 12px; gap: 4px; }
        }

/* ==========================================================================
   [2026-10-12 수정]
   ========================================================================== */
:root { --ti-tabbar-h: calc(70px + env(safe-area-inset-bottom, 0px)); }

/* ---------- 1. 비밀카드 화면: 한 화면 안에 카드 + 버튼 ----------
   크기는 index.html 하단 tiFitSecretCard() 가 이미지 비율대로 계산 → 좌우 검은 여백 없음 */
#screen-card.ti-screen { overflow: hidden; }
#screen-card .ti-secret {
    height: 100%; min-height: 0; flex: 1 1 auto;
    padding: clamp(12px, 2.4svh, 20px) 20px clamp(14px, 2.4svh, 24px);
}
#screen-card .ti-secret-head { gap: clamp(8px, 1.4svh, 14px); flex-shrink: 0; }
#screen-card .ti-secret-head h1 { font-size: clamp(22px, 3.6svh, 32px); margin-top: clamp(2px, 0.8svh, 8px); }
#screen-card .ti-secret-stage { flex: 1 1 auto; min-height: 0; padding: clamp(10px, 2.4svh, 24px) 0; overflow: visible; }
#screen-card .ti-secret-card {
    width: auto; max-width: 100%; max-height: none;
    padding: clamp(12px, 1.8svh, 18px); gap: clamp(8px, 1.2svh, 12px);
}
#screen-card .ti-secret-card-img { background: transparent; border-radius: 12px; align-self: center; }
#screen-card .ti-secret-card-img img { max-height: none; width: 100%; height: auto; object-fit: fill; border-radius: 12px; }
#screen-card .ti-secret-card-name { font-size: clamp(18px, 2.8svh, 24px); }
#screen-card .ti-secret-cta { flex-shrink: 0; }
#screen-card .ti-go { height: clamp(52px, 7svh, 60px); }

/* ---------- 2. AR 화면: 프레임 선 제거 · 촬영 영역 = 화면 맨 위 ~ 하단 메뉴 위 ----------
   (top/height 는 tiLayoutAR() 가 실측해서 덮어씀 · 아래는 스크립트 실행 전 기본값) */
.ti-ar-frame {
    left: 0; right: 0; top: 0; bottom: var(--ti-tabbar-h);
    width: auto; height: auto; aspect-ratio: auto; transform: none;
    border: none; border-radius: 0;
}
.ti-ar-frame-bar { visibility: hidden; }   /* 위치값은 유지(사진 합성용), 화면에서만 숨김 */

/* 촬영 버튼: 하단 메뉴 위로 */
#recorder { bottom: calc(var(--ti-tabbar-h) + 16px) !important; }

/* 🎵(왼쪽) · 촬영(가운데) · 오리대리 중앙 정렬(오른쪽) 버튼을 하단 메뉴 위 한 줄로
   ※ stechart-photo.css 의 left 값이 JS 의 right 값과 겹쳐 말풍선이 화면 폭만큼 늘어나던 문제 해결 */
#audio-toggle-btn { bottom: calc(var(--ti-tabbar-h) + 33px) !important; left: 20px !important; right: auto !important; }
#ar-reset-btn { bottom: calc(var(--ti-tabbar-h) + 33px) !important; right: 20px !important; left: auto !important; }
#ar-reset-btn img { width: 34px; height: 34px; object-fit: contain; }
#reset-tooltip {
    bottom: calc(var(--ti-tabbar-h) + 93px) !important; right: 12px !important; left: auto !important; top: auto !important;
    width: auto !important; max-width: 160px; padding: 4px 10px !important; border-radius: 999px !important;
    font-size: 11px !important; line-height: 1.4 !important; font-weight: 700 !important; white-space: nowrap;
}
#reset-tooltip::after { right: 28px !important; left: auto !important; border-width: 5px !important; }

/* ---------- 3. 촬영 결과(스탬프 획득) 화면: 하단 메뉴 바로 위까지 덮기 ---------- */
/* ※ stechart-photo.css 의 #custom-ui-layer { position:absolute; height:82% } (ID 선택자)가 우선 적용되므로 같은 ID로 덮어씀
     레이어는 AR 화면(#screen-ar = 하단 메뉴 바로 위까지) 전체를 덮음 */
#custom-ui-layer.ti-share {
    position: absolute !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
    width: auto !important; height: auto !important; overflow-y: auto;
}
/* 결과 화면이 떠 있는 동안 AR 안내 요소 숨김 (지원 브라우저) */
body:has(#custom-ui-layer.ti-share:not(.hidden):not([style*="none"])) .ti-ar-overlay { display: none; }

/* 4. 촬영 영역이 세로로 길어졌으므로 미리보기는 사진 비율 그대로 */
.ti-share-photo { width: auto; max-width: min(290px, 100%); min-width: 0; }
.ti-share-photo img {
    width: auto; max-width: min(270px, calc(100vw - 100px));
    height: auto; aspect-ratio: auto; object-fit: contain;
    max-height: max(200px, calc(100dvh - var(--ti-tabbar-h) - 400px));
}

/* ---------- [2026-10-15] 색상 정리 — 공식 홈페이지(seongnamfestival.com) 팔레트에 맞춤 ----------
   홈페이지: --yl #F5FB20 · --yl-d #DDE21D · --ink #0A0A0A · 카드 #111 + 노랑 2px 테두리 · 버튼은 알약형(99px)
   · 공지 바(처음 · 스탬프투어 · 길안내) = 노랑 바탕 + 검정 글씨
   · 하단 버튼 = #111 바탕 + 노랑 2px 테두리 + 노랑 글씨 (홈페이지 어두운 섹션의 버튼·카드와 같은 조합) */
.ti-notice { background: #F5FB20; color: #0A0A0A; }
#screen-venue .ti-notice > svg { color: #0A0A0A; }
/* 하단 버튼(AR 길안내 시작 · QR코드 스캔하고 작전 개시 · 스탬프북 확인) 모두 같은 방식:
   #111 바탕 + 노랑 2px 테두리 + 노랑 글씨 + 알약형 (홈페이지 어두운 구역 버튼과 동일) */
#screen-venue .ti-cta-ar,
#screen-map .ti-cta-scan,
#screen-map .ti-cta-book {
    background: #111111; color: #F5FB20; border: 2px solid #F5FB20; border-radius: 99px; box-shadow: none;
    transition: background-color .2s cubic-bezier(.22, 1, .36, 1), transform .2s cubic-bezier(.22, 1, .36, 1);
}
#screen-venue .ti-cta-ar:active,
#screen-map .ti-cta-scan:active,
#screen-map .ti-cta-book:active { background: rgba(245, 251, 32, .12); transform: scale(.98); }

/* ---------- [2026-10-15] 공지 바 스피커 아이콘 깜빡임 (처음 · 스탬프투어 · 길안내 공통) ---------- */
@keyframes tiSpkBlink {
    0%, 45%  { opacity: 1; transform: scale(1); }
    55%, 90% { opacity: .15; transform: scale(.92); }
    100%     { opacity: 1; transform: scale(1); }
}
@keyframes tiSpkWave {
    0%, 30%  { opacity: 0; }
    40%, 100% { opacity: 1; }
}
.ti-notice > svg:first-child {
    transform-origin: 50% 50%;
    animation: tiSpkBlink 1.2s steps(1, end) infinite;   /* 켜짐/꺼짐이 또렷한 깜빡임 */
}
.ti-notice > svg:first-child path:last-child { animation: tiSpkWave 1.2s ease-out infinite; }   /* 소리 물결 */
@media (prefers-reduced-motion: reduce) {   /* 움직임 줄이기 설정: 부드럽게 천천히 */
    .ti-notice > svg:first-child { animation: tiSpkBlink 2.4s ease-in-out infinite; }
    .ti-notice > svg:first-child path:last-child { animation: none; }
}

/* ---------- [2026-10-15] 화면 3: 카드 섞기 — 성남테크아트페스티벌 톤 (검정 바탕 · 노랑 포인트 · 젤리 심볼) ----------
   예전 이벤트의 밝은 하늘색 배경·파란 버튼을 걷어내고, 다음 '비밀카드 발급' 화면과 같은 머리말·진행 바를 사용 */
#screen-shuffle.ti-screen { overflow: hidden; }
.ti-shuffle { height: 100%; min-height: 0; padding: clamp(14px, 2.4svh, 20px) 20px clamp(14px, 2.6svh, 24px); }
.ti-shuffle .ti-tube {
    width: 520px; left: auto; right: -230px; top: 210px;
    transform: rotate(-30deg); opacity: .85; animation: none;
}
.ti-secret-bar.is-pending span.is-on { animation: tiBarPulse 1.2s ease-in-out infinite; }
@keyframes tiBarPulse { 50% { opacity: .35; } }
.ti-shuffle .ti-secret-head h1 { font-size: clamp(26px, 4.2svh, 32px); }

.ti-shuffle-stage {
    flex: 1 1 auto; min-height: 0; position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: clamp(26px, 5svh, 48px); padding: 16px 0;
}
.ti-shuffle-glow {   /* 카드 뒤 노란 빛 */
    position: absolute; left: 50%; top: 46%; width: 300px; height: 300px; transform: translate(-50%, -50%);
    border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 251, 32, .28), rgba(245, 251, 32, 0));
    pointer-events: none;
}
/* 카드 뒷면(img/card-stf-back.jpg)은 원본 비율·디자인 그대로 표시 (자르거나 테두리를 덧씌우지 않음)
   첫 장이 덱의 높이를 정하고 나머지 두 장은 그 위에 겹침 */
#screen-shuffle .deck { width: clamp(132px, 22svh, 176px); height: auto; }
#screen-shuffle .deck img { height: auto; border-radius: 12px; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .9); }
#screen-shuffle .deck img:first-child { position: relative; display: block; }
.ti-shuffle-msg {
    position: relative; margin: 0; text-align: center;
    display: flex; flex-direction: column; gap: 6px;
    font-size: 16px; font-weight: 700; color: #D2D2DA; letter-spacing: -0.02em;
}
.ti-shuffle-msg .ti-mono { font-size: 12px; letter-spacing: .2em; color: #F5FB20; }

.ti-shuffle-cta { flex-shrink: 0; position: relative; }
#screen-shuffle .ti-cta-pick {   /* 하단 버튼 공통 스타일 (#111 + 노랑 테두리 + 노랑 글씨 + 알약형) */
    width: 100%; height: clamp(52px, 7.2svh, 60px); margin: 0; padding: 0;
    border-radius: 99px; border: 2px solid #F5FB20; background: #111111; color: #F5FB20;
    font-family: inherit; font-weight: 900; letter-spacing: -0.03em; font-size: clamp(18px, 2.6svh, 21px);
    box-shadow: none; cursor: pointer;
    transition: background-color .2s cubic-bezier(.22, 1, .36, 1), transform .2s cubic-bezier(.22, 1, .36, 1);
}
#screen-shuffle .ti-cta-pick:hover { background: #111111; }
#screen-shuffle .ti-cta-pick:active { background: rgba(245, 251, 32, .12); transform: scale(.98); }
#screen-shuffle .ti-cta-pick:focus-visible { outline: 3px solid #F5FB20; outline-offset: 3px; }
#screen-shuffle .ti-cta-pick:disabled { opacity: .55; cursor: default; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ti-secret-bar.is-pending span.is-on { animation: none; }
    #screen-shuffle .deck img { animation-duration: 3s; }
}
/* 낮은 화면(주소창이 보이는 소형폰): 제목 한 줄 · 카드 작게 → 섞는 동작이 제목과 겹치지 않게 */
@media (max-height: 640px) {
    .ti-shuffle .ti-secret-head { gap: 10px; }
    .ti-shuffle .ti-secret-head h1 { font-size: 24px; margin-top: 4px; }
    .ti-shuffle .ti-secret-head h1 br { display: none; }
    #screen-shuffle .deck { width: clamp(100px, 19svh, 132px); }
    .ti-shuffle-stage { gap: 22px; padding: 26px 0 10px; }
    .ti-shuffle-msg { font-size: 14px; gap: 4px; }
}
/* 섞는 동안 카드가 제목·안내 문구를 덮지 않게 (글자가 항상 위) */
.ti-shuffle .ti-secret-head { position: relative; z-index: 4; }
.ti-shuffle-msg { z-index: 4; }
#screen-shuffle .deck { margin-bottom: 8px; }
