/* ============================================================
   随机工具箱 · 页面专属样式
   路径：wwwroot/tools/random-kit/tool.css
   说明：导航/页脚桌面端样式由根目录 ../../style.css 决定，
        此处仅补充移动端适配媒体查询（与官网首页内联规则一致）
   ============================================================ */

/* ===== 移动端导航适配（照抄官网内联 <style> 规则） ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        gap: 4px;
        border-bottom: 1px solid var(--border);
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: flex; }
}
/* ===== 移动端页脚适配 ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* 兜底：杜绝任何残余横向溢出（clip 不破坏 sticky 定位） */
html { overflow-x: clip; }

/* ============================================================
   HERO 区
   ============================================================ */
.rk-hero {
    padding: 140px 0 48px;
    background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 100%);
    border-bottom: 1px solid var(--border);
}
.rk-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.rk-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 500; }
.rk-breadcrumb a:hover { text-decoration: underline; }
.rk-breadcrumb em { font-style: normal; color: var(--text); font-weight: 600; }
.rk-hero-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.rk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.25);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.rk-hero h1 {
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 16px;
}
.rk-hero h1 .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.rk-hero p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 28px;
}
.rk-hero p code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
}
.rk-chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.rk-chip {
    display: flex;
    align-items: baseline;
    gap: 6px;
    background: white;
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 100px;
    box-shadow: var(--shadow);
}
.rk-chip strong { font-size: 18px; font-weight: 900; color: var(--primary); }
.rk-chip span { font-size: 12px; color: var(--text-light); }

/* ============================================================
   主区域布局：左侧工具导航 + 右侧内容
   ============================================================ */
.rk-main {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 40px;
    align-items: start;
}
.rk-side {
    position: sticky;
    top: 92px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.rk-side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    padding: 4px 8px 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}
.rk-side-title svg { color: var(--primary); }
.rk-tabs { display: flex; flex-direction: column; gap: 4px; }
.rk-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition);
}
.rk-tab-btn:hover { background: var(--primary-light); color: var(--primary); }
.rk-tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(26, 110, 255, 0.3);
}
.rk-tab-btn .rk-tab-ico { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.rk-side-note {
    display: flex;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.7;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
}
.rk-side-note svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

/* 面板 */
.rk-panel { display: none; }
.rk-panel.active { display: block; animation: rkFadeUp 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes rkFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rk-panel-head { margin-bottom: 20px; }
.rk-panel-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}
.rk-panel-head h2 .rk-panel-ico { font-size: 26px; }
.rk-panel-head p { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

.rk-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
.rk-card {
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.rk-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.rk-card-title small { font-size: 12px; font-weight: 500; color: var(--text-light); }
.rk-span { grid-column: 1 / -1; }

/* 表单元素 */
.rk-field { margin-bottom: 16px; }
.rk-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.rk-row { display: flex; gap: 12px; flex-wrap: wrap; }
.rk-row .rk-field { flex: 1; min-width: 110px; }
.rk-input, .rk-select, .rk-textarea {
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-warm);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    transition: var(--transition);
    outline: none;
}
.rk-textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.rk-input:focus, .rk-select:focus, .rk-textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 110, 255, 0.12);
}
.rk-checks { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.rk-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.rk-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.rk-range-wrap { display: flex; align-items: center; gap: 12px; }
.rk-range-wrap input[type="range"] { flex: 1; accent-color: var(--primary); height: 32px; cursor: pointer; }
.rk-range-val {
    min-width: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 8px;
    padding: 4px 8px;
}

/* 按钮 */
.rk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.rk-btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 16px rgba(26, 110, 255, 0.3);
}
.rk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26, 110, 255, 0.4); }
.rk-btn-primary:active { transform: translateY(0); }
.rk-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.rk-btn-ghost {
    background: white;
    color: var(--text-secondary);
    border: 1.5px solid var(--border);
}
.rk-btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.rk-btn svg { width: 15px; height: 15px; }

/* 结果区 */
.rk-result {
    min-height: 96px;
    background: var(--bg-warm);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}
.rk-result.rk-result-fill { align-items: stretch; text-align: left; }
.rk-empty { font-size: 13px; color: var(--text-light); }
.rk-big {
    font-size: clamp(34px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    color: var(--primary);
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.rk-big-sub { font-size: 13px; color: var(--text-secondary); }

/* 数字芯片 */
.rk-nums { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.rk-num {
    min-width: 52px;
    padding: 10px 14px;
    border-radius: 12px;
    background: white;
    border: 1.5px solid rgba(26, 110, 255, 0.25);
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    box-shadow: 0 4px 12px rgba(26, 110, 255, 0.1);
    animation: rkPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.rk-num.rk-num-red  { border-color: rgba(220, 38, 38, 0.3);  color: #b91c1c; box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1); }
.rk-num.rk-num-blue { border-color: rgba(26, 110, 255, 0.35); color: var(--primary-dark); }
@keyframes rkPop {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

/* 历史记录 */
.rk-history { margin-top: 16px; }
.rk-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.rk-history-head button {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.rk-history-head button:hover { color: var(--danger); background: var(--danger-light); }
.rk-history ul { list-style: none; max-height: 180px; overflow-y: auto; }
.rk-history li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 7px 4px;
    border-bottom: 1px dashed var(--border);
}
.rk-history li time { flex-shrink: 0; font-size: 11px; color: var(--text-light); font-family: ui-monospace, monospace; }

/* 骰子 */
.rk-dice-wrap { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 10px 0 6px; min-height: 72px; }
.rk-dice {
    width: 68px; height: 68px;
    background: linear-gradient(145deg, #ffffff, #e9effa);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    padding: 10px;
    box-shadow: 0 8px 20px rgba(26, 110, 255, 0.14), inset 0 -3px 6px rgba(26, 110, 255, 0.06);
}
.rk-dice.rk-rolling { animation: rkDiceShake 0.6s ease; }
@keyframes rkDiceShake {
    0%   { transform: rotate(0deg) translateY(0); }
    25%  { transform: rotate(-14deg) translateY(-10px); }
    50%  { transform: rotate(12deg) translateY(2px); }
    75%  { transform: rotate(-8deg) translateY(-6px); }
    100% { transform: rotate(0deg) translateY(0); }
}
.rk-pip { width: 11px; height: 11px; border-radius: 50%; background: transparent; align-self: center; justify-self: center; transition: background 0.15s; }
.rk-pip.on { background: var(--primary); box-shadow: 0 0 0 3px rgba(26, 110, 255, 0.15); }
.rk-sum { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-align: center; }
.rk-sum strong { color: var(--primary); font-size: 20px; }

/* 硬币 */
.rk-coin-stage { perspective: 900px; padding: 14px 0 6px; }
.rk-coin {
    width: 132px; height: 132px;
    margin: 0 auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2.2s cubic-bezier(0.25, 0.8, 0.3, 1);
}
.rk-coin-face {
    position: absolute; inset: 0;
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    font-weight: 900; font-size: 40px;
}
.rk-coin-face small { font-size: 12px; font-weight: 600; opacity: 0.75; margin-top: 2px; }
.rk-coin-front {
    background: radial-gradient(circle at 32% 30%, #ffedb3, #f6b71d 62%, #d99a06);
    color: #7a5200;
    border: 7px solid #e8ac08;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), 0 10px 26px rgba(217, 154, 6, 0.35);
}
.rk-coin-back {
    background: radial-gradient(circle at 32% 30%, #9cc0ff, #1a6eff 62%, #0d4fc4);
    color: #ffffff;
    border: 7px solid #0d4fc4;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.28), 0 10px 26px rgba(13, 79, 196, 0.35);
    transform: rotateX(180deg);
}
.rk-coin-stats { display: flex; gap: 12px; justify-content: center; margin-top: 10px; }
.rk-stat-pill {
    display: flex; align-items: baseline; gap: 6px;
    background: white; border: 1px solid var(--border);
    border-radius: 100px; padding: 6px 16px;
    font-size: 13px; color: var(--text-secondary);
}
.rk-stat-pill strong { font-size: 17px; font-weight: 900; color: var(--text); }
.rk-bar { display: flex; height: 10px; border-radius: 100px; overflow: hidden; background: var(--border); margin-top: 14px; }
.rk-bar > div { height: 100%; transition: width 0.5s ease; }

/* 密码 */
.rk-pw-display {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: clamp(18px, 3vw, 24px);
    font-weight: 700;
    word-break: break-all;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    text-align: center;
    letter-spacing: 1px;
    min-height: 68px;
    display: flex; align-items: center; justify-content: center;
}
.rk-meter { margin-top: 14px; }
.rk-meter-track { height: 10px; border-radius: 100px; background: var(--border); overflow: hidden; }
.rk-meter-fill { height: 100%; width: 0; border-radius: 100px; transition: width 0.4s ease, background 0.4s ease; background: var(--danger); }
.rk-meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); margin-top: 6px; }
.rk-meter-label strong { color: var(--text); }

/* 色卡 */
.rk-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.rk-color {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    animation: rkPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
.rk-color:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.rk-color .rk-color-block { height: 74px; }
.rk-color .rk-color-hex {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    padding: 8px 4px;
    background: white;
    font-family: ui-monospace, monospace;
}

/* 转盘 */
.rk-wheel-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.rk-wheel-box { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
.rk-wheel-pointer {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 24px solid var(--danger);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
    z-index: 3;
}
.rk-wheel-hub {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    background: radial-gradient(circle at 35% 35%, #ffffff, #dbe6fb);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.rk-wheel-box canvas { display: block; width: 100%; height: auto; transition: transform 5s cubic-bezier(0.12, 0.8, 0.08, 1); }

/* 分组 */
.rk-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.rk-group {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    animation: rkPop 0.35s backwards;
}
.rk-group h4 {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.rk-group h4 .rk-group-badge {
    width: 24px; height: 24px;
    border-radius: 8px;
    background: var(--primary-gradient);
    color: white;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.rk-group ul { list-style: none; }
.rk-group li { font-size: 13px; color: var(--text-secondary); padding: 4px 0; border-bottom: 1px dashed var(--border); }
.rk-group li:last-child { border-bottom: none; }

/* 石头剪刀布 */
.rk-rps-stage { text-align: center; }
.rk-rps-battle { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 16px; flex-wrap: wrap; }
.rk-rps-hand { text-align: center; min-width: 90px; }
.rk-rps-hand .rk-rps-emoji { font-size: 56px; line-height: 1.3; display: block; transition: transform 0.2s; }
.rk-rps-hand.rk-rps-shake .rk-rps-emoji { animation: rkDiceShake 0.5s ease; }
.rk-rps-hand span { font-size: 12px; color: var(--text-light); }
.rk-rps-vs { font-size: 16px; font-weight: 900; color: var(--text-light); }
.rk-rps-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rk-rps-btn {
    font-size: 30px;
    width: 72px; height: 72px;
    border-radius: 18px;
    border: 1.5px solid var(--border);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.rk-rps-btn:hover { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-hover); }
.rk-rps-btn:active { transform: scale(0.94); }
.rk-rps-score { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.rk-rps-verdict { font-size: 18px; font-weight: 800; min-height: 26px; }

/* 提示条 */
.rk-note-section { padding: 0 0 56px; }
.rk-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: linear-gradient(135deg, #e8f1ff 0%, #f0f5ff 100%);
    border: 1.5px solid rgba(26, 110, 255, 0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
}
.rk-note-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rk-note-icon svg { width: 22px; height: 22px; color: white; }
.rk-note h4 { font-size: 15px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.rk-note p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin: 0; }
.rk-note p code {
    font-family: ui-monospace, monospace;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 1px 7px;
    border-radius: 6px;
    color: var(--primary-dark);
}

/* Toast */
#rkToast {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%) translateY(20px);
    background: var(--text);
    color: white;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    max-width: calc(100vw - 40px);
    text-align: center;
}
#rkToast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* 分段小标题/提示 */
.rk-hint { font-size: 12px; color: var(--text-light); line-height: 1.7; margin-top: 10px; }
.rk-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 12px;
    border-radius: 100px;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
    .rk-grid { grid-template-columns: minmax(0, 1fr); }
    .rk-main { grid-template-columns: minmax(0, 1fr); }
    .rk-side, .rk-content { min-width: 0; }
    .rk-card, .rk-result, .rk-field { min-width: 0; }
    .rk-side { position: static; }
    .rk-tabs {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    .rk-tab-btn { white-space: nowrap; flex-shrink: 0; width: auto; }
    .rk-side-note { display: none; }
}
@media (max-width: 768px) {
    .rk-hero { padding: 112px 0 36px; }
    .rk-chips { gap: 8px; }
    .rk-chip { padding: 8px 14px; }
    .rk-main { padding-top: 28px; gap: 18px; }
    .rk-card { padding: 18px 16px; }
    .rk-actions .rk-btn { flex: 1; min-width: 130px; }
    .rk-note { flex-direction: column; gap: 12px; padding: 18px; }
    .rk-dice { width: 56px; height: 56px; padding: 8px; border-radius: 13px; }
    .rk-pip { width: 9px; height: 9px; }
    .rk-coin { width: 108px; height: 108px; }
    .rk-coin-face { font-size: 32px; }
    .rk-rps-btn { width: 62px; height: 62px; font-size: 26px; }
    .rk-rps-hand .rk-rps-emoji { font-size: 44px; }
    .rk-tab-btn { font-size: 13px; padding: 9px 14px; }
}
@media (max-width: 480px) {
    .rk-row { gap: 8px; }
    .rk-row .rk-field { min-width: 90px; }
    .rk-num { min-width: 44px; font-size: 17px; padding: 8px 10px; }
    .rk-hero p { font-size: 14px; }
}
