*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

        html, body {
            min-height: 100%;
        }

        body {
            font-family: 'Pretendard', sans-serif;
            background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
            background-attachment: fixed;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ── 레이아웃 ── */
        .page-wrapper {
            padding-top: 80px;
            padding-bottom: 40px;
            min-height: 100vh;
        }
        .container {
            max-width: 860px;
            margin: 0 auto;
            padding: 0 16px;
        }

        /* ── 카드 ── */
        .card {
            background: rgba(255,255,255,0.97);
            border-radius: 16px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.18);
            padding: 24px;
            margin-bottom: 24px;
        }

        /* ── 타이틀 ── */
        .page-title {
            text-align: center;
            color: #fff;
            font-size: 2.4rem;
            font-weight: 900;
            margin: 28px 0 24px;
            text-shadow: 0 2px 12px rgba(0,0,0,0.25);
            letter-spacing: -0.5px;
        }
        .page-title span { font-size: 1.6rem; }

        /* ── 배너 이미지 ── */
        .banner-img {
            width: 100%;
            height: 140px;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 20px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.12);
        }

        /* ── 뽑기 섹션 타이틀 ── */
        .section-title {
            font-size: 1.2rem;
            font-weight: 800;
            color: #4c1d95;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* ── 입력 ── */
        .input-row {
            display: flex;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }
        .input-row label {
            font-weight: 600;
            color: #374151;
            white-space: nowrap;
        }
        .input-row input[type="number"] {
            flex: 1;
            min-width: 120px;
            padding: 10px 14px;
            border: 2px solid #d1d5db;
            border-radius: 8px;
            font-size: 15px;
            font-family: 'Pretendard', sans-serif;
            transition: border-color 0.2s;
        }
        .input-row input[type="number"]:focus {
            outline: none;
            border-color: #7c3aed;
        }

        /* ── 버튼 그룹 ── */
        .btn-group {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }
        @media (max-width: 600px) {
            .btn-group { grid-template-columns: repeat(2, 1fr); }
        }
        .btn {
            padding: 12px 8px;
            border: none;
            border-radius: 10px;
            color: #fff;
            font-size: 14px;
            font-weight: 700;
            font-family: 'Pretendard', sans-serif;
            cursor: pointer;
            transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
            line-height: 1.3;
        }
        .btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
        .btn:active:not(:disabled) { transform: translateY(0); }
        .btn:disabled { opacity: 0.4; cursor: not-allowed; }
        .btn-one   { background: linear-gradient(135deg, #10b981, #059669); }
        .btn-ten   { background: linear-gradient(135deg, #f59e0b, #d97706); }
        .btn-hundred { background: linear-gradient(135deg, #ef4444, #dc2626); }
        .btn-reset { background: linear-gradient(135deg, #6b7280, #4b5563); }

        /* ── 통계 바 ── */
        .stats-bar {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            padding: 12px 16px;
            background: linear-gradient(135deg, #f3e8ff, #fce7f3);
            border-radius: 10px;
            margin-bottom: 16px;
            font-size: 14px;
        }
        .stat-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
        .stat-value { font-weight: 800; font-size: 18px; color: #4c1d95; }
        .stat-label { color: #6b7280; font-size: 12px; }

        /* ── 등급별 결과 테이블 ── */
        .grade-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .grade-table th {
            background: #7c3aed;
            color: #fff;
            padding: 10px 12px;
            text-align: center;
            font-weight: 700;
        }
        .grade-table th:first-child { border-radius: 8px 0 0 0; }
        .grade-table th:last-child  { border-radius: 0 8px 0 0; }
        .grade-table td {
            padding: 10px 12px;
            text-align: center;
            border-bottom: 1px solid #f0e8ff;
            font-weight: 600;
        }
        .grade-table tr:last-child td { border-bottom: none; }

        /* 등급 색상 */
        .grade-normal  { color: #7c5c3a; background: rgba(210,188,161,0.15); }
        .grade-rare    { color: #1a5276; background: rgba(82,155,219,0.12); }
        .grade-hero    { color: #5a4e8c; background: rgba(173,122,236,0.15); }
        .grade-legend  { color: #8b6800; background: rgba(244,175,47,0.15); }
        .grade-mythic  { color: #a0522d; background: rgba(203,104,57,0.15); }
        .grade-immortal{ color: #991b1b; background: rgba(239,68,68,0.12); }
        .grade-other   { color: #374151; background: rgba(156,163,175,0.1); }

        .grade-badge {
            display: inline-block;
            padding: 3px 10px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 800;
            letter-spacing: 0.3px;
        }
        .badge-normal   { background: #D2BCA1; color: #4a3728; }
        .badge-rare     { background: #529BDB; color: #fff; }
        .badge-hero     { background: #AD7AEC; color: #fff; }
        .badge-legend   { background: #F4AF2F; color: #3d2800; }
        .badge-mythic   { background: #CB6839; color: #fff; }
        .badge-immortal { background: linear-gradient(135deg,#ef4444,#b91c1c); color: #fff; }
        .badge-other    { background: #9ca3af; color: #fff; }

        /* ── 확률 바 ── */
        .prob-bar-wrap {
            flex: 1;
            background: #e9d5ff;
            border-radius: 99px;
            height: 8px;
            min-width: 60px;
            overflow: hidden;
        }
        .prob-bar-fill {
            height: 100%;
            border-radius: 99px;
            transition: width 0.5s ease;
        }

        /* ── 최근 뽑기 표시 ── */
        .recent-pulls {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            max-height: 120px;
            overflow-y: auto;
            padding: 4px;
        }
        .pull-chip {
            display: inline-flex;
            align-items: center;
            padding: 3px 9px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            white-space: nowrap;
            animation: popIn 0.2s ease;
        }
        @keyframes popIn {
            from { transform: scale(0.7); opacity: 0; }
            to   { transform: scale(1);   opacity: 1; }
        }

        /* ── 합성 확률 테이블 ── */
        .fusion-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .fusion-table th {
            background: #6d28d9;
            color: #fff;
            padding: 10px 14px;
            text-align: center;
        }
        .fusion-table th:first-child { border-radius: 8px 0 0 0; }
        .fusion-table th:last-child  { border-radius: 0 8px 0 0; }
        .fusion-table td {
            padding: 10px 14px;
            text-align: center;
            border-bottom: 1px solid #f0e8ff;
        }
        .fusion-table tr:last-child td { border-bottom: none; }
        .fusion-table tr:nth-child(even) td { background: rgba(243,232,255,0.3); }

        .success-rate {
            font-weight: 800;
            font-size: 15px;
        }
        .rate-high  { color: #059669; }
        .rate-mid   { color: #d97706; }
        .rate-low   { color: #dc2626; }

        /* ── 확률 정보 ── */
        .prob-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 10px;
            margin-bottom: 4px;
        }
        .prob-info-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px;
        }
        .prob-pct {
            font-weight: 800;
            font-size: 14px;
        }

        /* ── 알림 ── */
        .notice {
            font-size: 12px;
            color: #9ca3af;
            text-align: center;
            margin-top: 8px;
        }
        .notice a { color: #7c3aed; }

        /* ── 문의 ── */
        .contact-box {
            text-align: center;
            padding: 16px;
            color: #374151;
            font-size: 14px;
        }
        .contact-box a { color: #7c3aed; font-weight: 600; text-decoration: underline; }

/* ── 2026-10-07 공식 개별 룬 확률표 ── */
.prob-subline {
    margin-top: 5px;
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
}
.rune-prob-toolbar {
    display: grid;
    grid-template-columns: 160px minmax(180px, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin: 16px 0 12px;
}
.rune-prob-toolbar select,
.rune-prob-toolbar input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
    color: #111827;
    font: inherit;
}
.rune-prob-toolbar select:focus,
.rune-prob-toolbar input:focus {
    outline: 2px solid #c4b5fd;
    border-color: #8b5cf6;
}
.rune-prob-count {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.official-rune-table-wrap {
    max-height: 520px;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}
.official-rune-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.official-rune-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 10px 12px;
    background: #6d28d9;
    color: #fff;
    text-align: center;
}
.official-rune-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
}
.official-rune-table .rune-name-cell {
    text-align: left;
    font-weight: 700;
    color: #374151;
}
.official-rune-table .official-prob-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #5b21b6;
}
.official-rune-table tr:last-child td {
    border-bottom: 0;
}
@media (max-width: 600px) {
    .rune-prob-toolbar {
        grid-template-columns: 1fr;
    }
    .rune-prob-count {
        text-align: right;
    }
    .official-rune-table {
        min-width: 560px;
    }
    .official-rune-table-wrap {
        max-height: 460px;
    }
}


/* ── 2026-10-07 UI refresh ───────────────────────────────────────────── */
.rune-page {
    background: linear-gradient(145deg,#f8fafc 0%,#f5f3ff 48%,#fdf2f8 100%);
    color:#0f172a;
}
.rune-page .page-wrapper { padding-top:88px; }
.rune-page .container { max-width:1040px; }
.rune-hero { max-width:820px; margin:8px auto 24px; text-align:center; }
.rune-eyebrow { margin:0 0 7px; color:#7c3aed; font-size:11px; font-weight:950; letter-spacing:.16em; }
.rune-page .page-title { margin:0; color:#3b177d; text-shadow:none; font-size:clamp(2rem,5vw,3rem); line-height:1.08; letter-spacing:-.045em; }
.rune-subtitle { max-width:680px; margin:12px auto 0; color:#64748b; font-size:14px; font-weight:650; line-height:1.65; }
.rune-meta { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; margin-top:15px; }
.rune-meta span { padding:7px 10px; border:1px solid #e9d5ff; border-radius:999px; background:#fff; color:#6b21a8; font-size:10px; font-weight:850; }
.rune-page .data-status { margin-bottom:16px; border-radius:15px; box-shadow:none; }
.rune-page .card { margin-bottom:16px; padding:22px; border:1px solid #e9e4f0; border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 10px 30px rgba(76,29,149,.055); }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:14px; }
.section-heading .section-title { margin:2px 0 0; color:#3b177d; font-size:19px; letter-spacing:-.02em; }
.section-kicker { color:#8b5cf6; font-size:9px; font-weight:950; letter-spacing:.15em; }
.section-note { color:#94a3b8; font-size:10px; font-weight:750; white-space:nowrap; }
.draw-card .banner-img { height:170px; margin-bottom:16px; border:1px solid #ede9fe; border-radius:14px; box-shadow:none; }
.rune-page .input-row { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; margin-bottom:12px; padding:13px 14px; border:1px solid #e9e4f0; border-radius:14px; background:#fafafa; }
.rune-page .input-row label { color:#475569; font-size:12px; font-weight:850; }
.rune-page .input-row input[type="number"] { min-width:0; min-height:44px; padding:8px 12px; border:1px solid #d8dee9; border-radius:10px; background:#fff; color:#1e293b; font-size:16px; font-weight:850; }
.rune-page .btn-group { gap:8px; margin-bottom:12px; }
.rune-page .btn { min-height:50px; padding:9px 7px; border-radius:12px; font-size:12px; box-shadow:none; }
.rune-page .btn-one,.rune-page .btn-ten,.rune-page .btn-hundred { background:linear-gradient(135deg,#7c3aed,#6d28d9); }
.rune-page .btn-hundred { background:linear-gradient(135deg,#6d28d9,#a21caf); }
.rune-page .btn-reset { background:#64748b; }
.rune-page .stats-bar { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin:0; padding:0; background:none; }
.rune-page .stat-item { min-width:0; padding:11px 7px; border:1px solid #ede9fe; border-radius:12px; background:#faf5ff; }
.rune-page .stat-value { color:#5b21b6; font-size:18px; line-height:1.1; }
.rune-page .stat-label { margin-top:4px; color:#64748b; font-size:9px; font-weight:750; text-align:center; }
.rune-page .grade-table,.rune-page .fusion-table,.rune-page .official-rune-table { border-collapse:separate; border-spacing:0; overflow:hidden; }
.rune-page .grade-table th,.rune-page .fusion-table th,.rune-page .official-rune-table thead th { background:#5b21b6; font-size:11px; }
.rune-page .grade-table td,.rune-page .fusion-table td,.rune-page .official-rune-table td { border-bottom:1px solid #eef2f7; font-size:12px; }
.rune-page .recent-pulls { max-height:none; min-height:54px; overflow:visible; padding:10px; border:1px solid #eef2f7; border-radius:13px; background:#fafafa; }
.rune-page .pull-chip { padding:5px 9px; font-size:10px; }
.rune-page .prob-info-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.rune-page .prob-info-item { min-width:0; padding:10px; border:1px solid rgba(148,163,184,.14); border-radius:12px; }
.rune-page .rune-prob-toolbar { grid-template-columns:150px minmax(0,1fr) auto; gap:8px; }
.rune-page .rune-prob-toolbar select,.rune-page .rune-prob-toolbar input { min-height:42px; border-color:#d8dee9; border-radius:10px; }
.rune-page .official-rune-table-wrap { max-height:560px; border-color:#e2e8f0; border-radius:13px; }
.rune-page .notice { color:#64748b; line-height:1.6; }
.rune-page .contact-box { padding:6px; }

@media (max-width:700px) {
    .rune-page .page-wrapper { padding-top:76px; padding-bottom:28px; }
    .rune-page .container { padding:0 8px; }
    .rune-hero { margin:0 auto 16px; padding:0 8px; }
    .rune-subtitle { font-size:12px; }
    .rune-meta { gap:5px; }
    .rune-meta span { padding:6px 7px; font-size:9px; }
    .rune-page .card { padding:14px; border-radius:16px; }
    .section-heading { align-items:center; margin-bottom:11px; }
    .section-heading .section-title { font-size:17px; }
    .section-note { font-size:9px; }
    .draw-card .banner-img { height:110px; border-radius:11px; }
    .rune-page .input-row { grid-template-columns:1fr; gap:6px; padding:10px; }
    .rune-page .btn-group { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
    .rune-page .stats-bar { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .rune-page .stat-item:nth-child(4),.rune-page .stat-item:nth-child(5) { grid-column:auto; }
    .rune-page .prob-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rune-page .rune-prob-toolbar { grid-template-columns:1fr 1fr; }
    .rune-page .rune-prob-count { grid-column:1/-1; text-align:right; }
    .rune-page .official-rune-table { min-width:0; table-layout:fixed; }
    .rune-page .official-rune-table th,.rune-page .official-rune-table td { padding:8px 4px; font-size:10px; overflow-wrap:anywhere; }
    .rune-page .official-rune-table th:nth-child(1) { width:22%; }
    .rune-page .official-rune-table th:nth-child(2) { width:36%; }
    .rune-page .official-rune-table th:nth-child(3) { width:26%; }
    .rune-page .official-rune-table th:nth-child(4) { width:16%; }
    .rune-page .official-rune-table .grade-badge { padding:3px 5px; font-size:9px; }
    .rune-page .official-rune-table-wrap { max-height:500px; overflow-y:auto; overflow-x:hidden; }
}
@media (max-width:480px) {
    .rune-page .stats-bar { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .rune-page .stat-item:first-child { grid-column:1/-1; }
    .rune-page .prob-info-grid { grid-template-columns:1fr; }
    .rune-page .grade-table th,.rune-page .grade-table td { padding:9px 4px; font-size:10px; }
    .rune-page .grade-table .grade-badge { padding:3px 6px; font-size:10px; }
    .rune-page .prob-bar-wrap { min-width:28px; }
}


/* 2026-10-09: compact draw workflow + responsive result/official data browsing */
.rune-page [hidden]{display:none!important}
.rune-page .rune-source-details{
    margin-bottom:15px;border:1px solid #e4d7f9;border-radius:15px;
    background:rgba(255,255,255,.96);overflow:hidden;
}
.rune-page .rune-source-details>summary{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:13px 17px;min-height:58px;cursor:pointer;list-style:none;
}
.rune-page .rune-source-details>summary::-webkit-details-marker{display:none}
.rune-page .rune-source-details>summary>span:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.rune-page .rune-source-details strong{color:#4c1d95;font-size:13px;font-weight:900}
.rune-page .rune-source-details small{color:#7c6d89;font-size:11px;font-weight:750}
.rune-page .rune-source-action{display:flex;align-items:center;gap:7px;flex-shrink:0;font-size:11px;color:#7c3aed;font-weight:850;white-space:nowrap}
.rune-page .rune-source-action span{display:inline-block;font-size:17px;transition:transform .18s ease}
.rune-page .rune-source-details[open] .rune-source-action span{transform:rotate(180deg)}
.rune-page .rune-source-details .data-status{margin:0 12px 12px!important}
.rune-page .draw-card .section-heading{margin-bottom:16px}
.rune-page .rune-ticket-panel{
    display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);
    gap:9px 14px;padding:14px 16px;margin-bottom:12px;
    border:1px solid #e9e4f0;border-radius:14px;background:#faf8ff;
}
.rune-page .rune-ticket-panel .input-row{display:grid;grid-template-columns:1fr;margin:0;padding:0;border:0;background:none;gap:7px}
.rune-page .rune-ticket-panel .input-row label{display:flex;justify-content:space-between;gap:8px;color:#493e61;font-size:12px}
.rune-page .rune-ticket-panel .input-row label small{color:#92849f;font-weight:600;font-size:10px}
.rune-page .rune-ticket-panel .input-row input{height:48px;min-height:48px;font-size:18px!important;font-variant-numeric:tabular-nums}
.rune-page .rune-ticket-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;align-items:end}
.rune-page .rune-ticket-preset{
    min-width:0;min-height:48px;padding:8px 5px;border:1px solid #ddd6fe;
    border-radius:11px;background:#fff;color:#6d28d9;
    font:inherit;font-size:12px;font-weight:850;cursor:pointer;
}
.rune-page .rune-ticket-preset:hover{background:#f3e8ff;border-color:#a78bfa}
.rune-page .rune-ticket-help{grid-column:1/-1;margin:0;color:#81758c;font-size:11px;line-height:1.55}
.rune-page .btn-group{grid-template-columns:repeat(4,minmax(0,1fr))}
.rune-page .btn-group .btn{min-height:64px;padding:11px 5px;font-size:14px;line-height:1.3}
.rune-page .btn-group .btn small{display:block;margin-top:4px;font-size:10px;font-weight:600;opacity:.83}
.rune-page .btn:disabled{opacity:.42;box-shadow:none!important;transform:none!important}
.rune-page .rune-draw-feedback{
    display:flex;align-items:center;justify-content:center;
    min-height:40px;margin:0 0 12px;padding:9px 12px;border:1px solid #ede9fe;
    border-radius:11px;background:#fbfaff;color:#6d28d9;
    font-size:12px;font-weight:800;text-align:center;line-height:1.45;
}
.rune-page .stats-bar{grid-template-columns:repeat(5,minmax(0,1fr))}
.rune-page .stat-item:first-child{background:#f3e8ff;border-color:#c4b5fd}
.rune-page .stat-value{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.rune-page .rune-table-scroll{max-width:100%;overflow:auto;border:1px solid #ede9fe;border-radius:13px}
.rune-page .grade-table th,.rune-page .grade-table td{padding:13px 9px}
.rune-page .grade-table th{white-space:nowrap}
.rune-page .grade-table .grade-badge{white-space:nowrap}
.rune-page .rune-table-hint{margin-top:10px;color:#6b7280;font-size:11px;line-height:1.6}
.rune-page .rune-empty-history{display:block;padding:9px;color:#94a3b8;font-size:12px}
.rune-page .rune-secondary-action{
    display:flex;align-items:center;justify-content:center;width:100%;min-height:43px;
    margin-top:12px;padding:10px 16px;border:1px solid #ddd6fe;border-radius:12px;
    color:#6d28d9;background:#faf5ff;font:inherit;font-size:12px;font-weight:850;
    cursor:pointer;transition:background .15s,border-color .15s;
}
.rune-page .rune-secondary-action:hover{background:#f3e8ff;border-color:#a78bfa}
.rune-page .recent-pulls{max-height:220px;overflow-y:auto;scrollbar-gutter:stable;align-content:flex-start}
.rune-page .pull-chip{white-space:normal;line-height:1.5;animation:none}
.rune-page .rune-prob-toolbar{grid-template-columns:minmax(165px,1fr) minmax(0,2fr) auto;align-items:end}
.rune-page .rune-prob-field{display:flex;min-width:0;flex-direction:column;gap:6px}
.rune-page .rune-prob-field>span{color:#64748b;font-size:11px;font-weight:800}
.rune-page .rune-prob-toolbar select,.rune-page .rune-prob-toolbar input{font-size:14px}
.rune-page .rune-prob-count{padding-bottom:13px;text-align:right}
.rune-page .rune-empty-prob{padding:25px 10px!important;color:#6b7280!important;text-align:center!important;font-size:13px!important}
.rune-page .official-rune-table-wrap{max-height:500px;scrollbar-gutter:stable}
.rune-page .official-rune-table th{white-space:nowrap}
.rune-page .official-rune-table .official-prob-cell{font-variant-numeric:tabular-nums}
.rune-page .rune-ticket-preset:focus-visible,
.rune-page .rune-secondary-action:focus-visible,
.rune-page .rune-source-details summary:focus-visible,
.rune-page .btn:focus-visible,
.rune-page .rune-table-scroll:focus-visible,
.rune-page .official-rune-table-wrap:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}
@media(max-width:700px){
    .rune-page .rune-hero{margin-bottom:15px}
    .rune-page .page-title{font-size:clamp(24px,6.8vw,31px)}
    .rune-page .rune-ticket-panel{grid-template-columns:1fr;gap:10px;padding:12px}
    .rune-page .rune-ticket-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
    .rune-page .rune-ticket-help{grid-column:auto}
    .rune-page .btn-group{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rune-page .btn-group .btn{min-height:60px}
    .rune-page .stats-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rune-page .stat-item:first-child{grid-column:1/-1}
    .rune-page .stat-value{font-size:21px}
    .rune-page .stat-label{font-size:11px}
    .rune-page .section-heading{flex-wrap:wrap}
    .rune-page .section-heading .section-title{font-size:17px}
    .rune-page .section-note{white-space:normal;text-align:right}
    .rune-page .rune-prob-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
    .rune-page .rune-prob-count{grid-column:1/-1;padding:0}
    .rune-page .rune-prob-toolbar select,.rune-page .rune-prob-toolbar input{min-height:46px;font-size:16px}
    .rune-page .prob-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .rune-page .recent-pulls{max-height:245px;overflow-y:auto}
    /* Six accumulated-grade results are readable in two-line cards, not 10px columns. */
    .rune-page .rune-table-scroll{border:0;overflow:visible}
    .rune-page .grade-table thead{display:none}
    .rune-page .grade-table tbody{display:grid;gap:8px}
    .rune-page .grade-table tr{
        display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;
        padding:10px 13px;border:1px solid #e9e4f0;border-radius:12px;
        background:#fff;
    }
    .rune-page .grade-table td{
        display:block;min-width:0;padding:4px 0;border:0;text-align:left;font-size:12px;
    }
    .rune-page .grade-table td:first-child{grid-column:1;grid-row:1}
    .rune-page .grade-table td:nth-child(2){grid-column:2;grid-row:1;text-align:right;font-size:16px!important}
    .rune-page .grade-table td:nth-child(3){grid-column:1;grid-row:2}
    .rune-page .grade-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right;font-size:12px!important}
    .rune-page .grade-table td:nth-child(3)::before{content:"공식 ";display:block;color:#64748b;font-size:10px;font-weight:700;margin-bottom:3px}
    .rune-page .grade-table td:nth-child(4)::before{content:"실제 ";display:block;color:#64748b;font-size:10px;font-weight:700;margin-bottom:3px}
    .rune-page .grade-table .prob-bar-wrap{min-width:15px;max-width:52px}
    .rune-page .grade-table td:nth-child(3)>div{gap:5px!important}
    .rune-page .grade-table .grade-badge{font-size:11px;padding:4px 9px}
    /* Individual official rune rows remain accessible without four tiny columns. */
    .rune-page .official-rune-table-wrap{max-height:540px;overflow-y:auto;overflow-x:hidden}
    .rune-page .official-rune-table{display:block;min-width:0;width:100%;table-layout:auto}
    .rune-page .official-rune-table thead{display:none}
    .rune-page .official-rune-table tbody{display:grid;gap:8px;padding:10px}
    .rune-page .official-rune-table tr{
        display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;
        border:1px solid #ede9fe;border-radius:11px;background:#fff;padding:10px 12px;
    }
    .rune-page .official-rune-table td{
        display:block;min-width:0;border:0;padding:0!important;text-align:left;font-size:12px!important;
        overflow-wrap:anywhere;
    }
    .rune-page .official-rune-table td:nth-child(2){grid-column:1;grid-row:1;font-size:13px!important}
    .rune-page .official-rune-table td:nth-child(1){grid-column:2;grid-row:1;text-align:right}
    .rune-page .official-rune-table td:nth-child(3){grid-column:1;grid-row:2}
    .rune-page .official-rune-table td:nth-child(4){grid-column:2;grid-row:2;text-align:right;color:#475569;font-variant-numeric:tabular-nums}
    .rune-page .official-rune-table td:nth-child(3)::before{content:"확률 ";font-size:10px;color:#64748b;font-weight:750}
    .rune-page .official-rune-table td:nth-child(4)::before{content:"획득 ";font-size:10px;color:#64748b;font-weight:750}
    .rune-page .official-rune-table .grade-badge{font-size:10px;padding:3px 8px}
    .rune-page .official-rune-table .rune-empty-prob{grid-column:1/-1;text-align:center!important}
}
@media(max-width:380px){
    .rune-page .rune-source-details>summary{padding:11px;gap:7px}
    .rune-page .rune-source-action{font-size:10px}
    .rune-page .rune-prob-toolbar{grid-template-columns:1fr}
    .rune-page .prob-info-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
    .rune-page .rune-ticket-preset,.rune-page .rune-secondary-action,.rune-page .rune-source-action span{transition:none}
}

/* Complete 53/53 original rune image library, no invented art. */
.rune-page .rune-source-icon{
    display:inline-block;width:28px;height:28px;flex:0 0 28px;
    object-fit:contain;vertical-align:middle;border-radius:6px;
}
.rune-page .rune-image-name{display:inline-flex;align-items:center;gap:8px;min-width:0}
.rune-page .rune-image-name>span{min-width:0}
.rune-page .pull-chip{gap:5px}
.rune-page .pull-chip .rune-source-icon{width:23px;height:23px;flex-basis:23px}
.rune-page .official-rune-table .rune-name-cell .rune-source-icon{width:29px;height:29px}
