.cr-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px 60px;
}

/* ===== Tabs ===== */
.cr-tabs {
    display: flex; gap: 4px; margin-bottom: 16px; padding: 4px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.cr-tabs::-webkit-scrollbar { height: 0; }
.cr-tab {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px; border: none;
    background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600;
    border-radius: 10px; cursor: pointer; white-space: nowrap; transition: all .2s;
}
.cr-tab:hover { color: var(--text-primary); background: rgba(255,255,255,.04); }
.cr-tab.active { background: rgba(245,158,11,.12); color: #f59e0b; }
.cr-tab svg { flex-shrink: 0; }
.cr-tab-pane { display: none; }
.cr-tab-pane.active { display: block; }

/* ===== Search ===== */
.cr-search-card { padding: 28px; margin-bottom: 20px; }
.cr-search-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cr-logo-img {
    width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(245,158,11,.3); border: 2px solid rgba(245,158,11,.25);
}
.cr-title { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0; }
.cr-subtitle { font-size: 13px; color: var(--text-secondary); margin: 2px 0 0; }
.cr-search-row {
    display: flex; align-items: center; background: rgba(0,0,0,.25);
    border: 1px solid var(--glass-border); border-radius: 12px; transition: border-color .2s;
}
.cr-search-row .cr-search-btn { border-radius: 0 10px 10px 0; }
.cr-search-row:focus-within { border-color: #f59e0b; }
.cr-hash { padding: 0 0 0 14px; font-size: 18px; font-weight: 700; color: #f59e0b; user-select: none; }
.cr-search-input-wrap { flex: 1; position: relative; }
.cr-search-input {
    width: 100%; background: transparent; border: none; color: var(--text-primary);
    font-size: 16px; font-weight: 600; padding: 12px 10px; outline: none; letter-spacing: 1px; text-transform: uppercase;
}
.cr-search-input::placeholder { color: var(--text-secondary); opacity: .5; text-transform: none; font-weight: 400; letter-spacing: 0; }

.cr-suggestions {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: rgba(20,20,35,.97); border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
    margin-top: 4px; max-height: 240px; overflow-y: auto; backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.cr-suggest-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    cursor: pointer; transition: background .15s; border-bottom: 1px solid rgba(255,255,255,.04);
}
.cr-suggest-item:last-child { border-bottom: none; }
.cr-suggest-item:hover { background: rgba(245,158,11,.08); }
.cr-suggest-tag { font-size: 13px; font-weight: 700; color: #f59e0b; letter-spacing: .5px; white-space: nowrap; }
.cr-suggest-name { flex: 1; font-size: 13px; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-suggest-del {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    border: none; background: rgba(255,255,255,.06); border-radius: 6px;
    color: var(--text-muted); font-size: 14px; cursor: pointer; transition: all .15s;
    flex-shrink: 0; line-height: 1;
}
.cr-suggest-del:hover { background: rgba(239,68,68,.2); color: #f87171; }
.cr-search-btn {
    display: flex; align-items: center; gap: 6px; padding: 10px 20px; margin: 4px;
    background: linear-gradient(135deg, #f59e0b, #d97706); border: none; border-radius: 10px;
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .15s, box-shadow .2s; box-shadow: 0 2px 12px rgba(245,158,11,.25); white-space: nowrap;
}
.cr-search-btn svg { width: 18px; height: 18px; }
.cr-search-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.35); }
.cr-search-btn:active { transform: translateY(0); }
.cr-search-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cr-hint { font-size: 12px; color: var(--text-secondary); margin: 10px 0 0; opacity: .6; }

/* Loading / Error */
.cr-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--text-secondary); font-size: 15px; }
.cr-spinner { width: 24px; height: 24px; border: 3px solid rgba(245,158,11,.2); border-top-color: #f59e0b; border-radius: 50%; animation: crSpin .7s linear infinite; }
@keyframes crSpin { to { transform: rotate(360deg); } }
.cr-error { display: flex; align-items: center; gap: 10px; padding: 16px 20px; margin-bottom: 20px; color: #f87171; font-size: 14px; }

/* Profile */
.cr-profile { padding: 24px; margin-bottom: 16px; }
.cr-profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.cr-profile-icon {
    width: 56px; height: 56px; background: linear-gradient(135deg, #f59e0b, #92400e);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff; flex-shrink: 0;
}
.cr-profile-name { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.cr-profile-tag { font-size: 13px; color: var(--text-secondary); font-family: monospace; }
.cr-profile-clan { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.cr-profile-clan svg { width: 14px; height: 14px; stroke: #f59e0b; }
.cr-profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cr-profile-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.cr-profile-badge.lvl { background: rgba(245,158,11,.12); color: #f59e0b; }
.cr-profile-badge.role { background: rgba(99,102,241,.12); color: #818cf8; }
.cr-profile-badge.arena { background: rgba(52,211,153,.12); color: #34d399; }

/* Download btn */
.cr-dl-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706); border: none; border-radius: 12px;
    color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
    transition: transform .15s, box-shadow .2s; box-shadow: 0 2px 12px rgba(245,158,11,.2);
}
.cr-dl-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(245,158,11,.3); }
.cr-dl-btn:active { transform: translateY(0); }

/* Stats grid */
.cr-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.cr-stat {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 14px;
    backdrop-filter: blur(12px); padding: 14px 10px; text-align: center;
}
.cr-stat-val { font-size: 20px; font-weight: 700; color: var(--emerald); }
.cr-stat-val.gold { color: #f59e0b; }
.cr-stat-val.red { color: #f87171; }
.cr-stat-val.blue { color: #60a5fa; }
.cr-stat-val.purple { color: #a78bfa; }
.cr-stat-val.cyan { color: #22d3ee; }
.cr-stat-val.orange { color: #fb923c; }
.cr-stat-label { font-size: 11px; color: var(--text-secondary); margin-top: 3px; line-height: 1.2; }

/* Section */
.cr-section { padding: 20px 24px; margin-bottom: 16px; }
.cr-section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 14px; }

/* Deck: 4 per row */
.cr-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cr-card-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 6px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 12px; text-align: center; transition: border-color .2s;
}
.cr-card-item:hover { border-color: rgba(245,158,11,.3); }
.cr-card-img { width: 56px; height: 66px; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,.05); }
.cr-card-name { font-size: 11px; color: var(--text-primary); line-height: 1.3; }
.cr-card-lvl { font-size: 10px; font-weight: 600; line-height: 1.3; }
.cr-card-elixir { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #d946ef; margin-top: 1px; }
.cr-elixir-drop {
    display: inline-block; width: 10px; height: 13px;
    background: linear-gradient(180deg, #d946ef, #a855f7);
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; flex-shrink: 0;
}

/* Chests */
.cr-chests { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-chest {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 12px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 10px; min-width: 70px; text-align: center;
}
.cr-chest-idx { font-size: 10px; color: var(--text-secondary); }
.cr-chest-name { font-size: 11px; color: var(--text-primary); font-weight: 600; }

/* Achievements */
.cr-achievements { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.cr-ach { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.02); border: 1px solid var(--glass-border); border-radius: 10px; }
.cr-ach-stars { font-size: 14px; color: #f59e0b; flex-shrink: 0; min-width: 40px; text-align: center; }
.cr-ach-info { flex: 1; min-width: 0; }
.cr-ach-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.cr-ach-val { font-size: 11px; color: var(--text-secondary); }
.cr-ach-bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.cr-ach-bar-fill { height: 100%; background: #f59e0b; border-radius: 2px; }

/* Battles */
.cr-battles { display: flex; flex-direction: column; gap: 8px; }
.cr-battle {
    display: flex; align-items: stretch; gap: 0; background: rgba(255,255,255,.02);
    border-radius: 12px; overflow: hidden; transition: border-color .2s; border: 1px solid var(--glass-border);
}
.cr-battle:hover { border-color: rgba(245,158,11,.3); }
.cr-battle-side { width: 6px; flex-shrink: 0; }
.cr-battle-side.win { background: #3b82f6; }
.cr-battle-side.loss { background: #ef4444; }
.cr-battle-side.draw { background: #6b7280; }
.cr-battle-content { flex: 1; padding: 12px 14px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.cr-battle-result {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-weight: 900; font-size: 15px; flex-shrink: 0;
}
.cr-battle-result.win { background: rgba(59,130,246,.15); color: #60a5fa; }
.cr-battle-result.loss { background: rgba(239,68,68,.15); color: #f87171; }
.cr-battle-result.draw { background: rgba(107,114,128,.15); color: #9ca3af; }
.cr-battle-info { flex: 1; min-width: 0; }
.cr-battle-type { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cr-battle-mode { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.cr-battle-score { font-size: 13px; font-weight: 700; margin-top: 3px; }
.cr-battle-score.win { color: #60a5fa; }
.cr-battle-score.loss { color: #f87171; }
.cr-battle-score.draw { color: #9ca3af; }
.cr-battle-meta { text-align: right; flex-shrink: 0; }
.cr-battle-trophies { font-size: 12px; font-weight: 600; }
.cr-battle-trophies.pos { color: #34d399; }
.cr-battle-trophies.neg { color: #f87171; }
.cr-battle-time { font-size: 11px; color: var(--text-secondary); opacity: .7; margin-top: 2px; }
.cr-battle-decks { display: flex; gap: 2px; margin-top: 4px; }
.cr-battle-card-mini { width: 22px; height: 26px; border-radius: 3px; object-fit: contain; background: rgba(255,255,255,.05); }

/* ===== Trophy Graph ===== */
#cr-trophy-canvas { width: 100%; height: auto; border-radius: 10px; }

/* ===== Card Collection ===== */
.cr-collection-count { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.cr-collection-bar-wrap {
    height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; margin-bottom: 16px; overflow: hidden;
}
.cr-collection-bar { height: 100%; background: linear-gradient(90deg, #f59e0b, #34d399); border-radius: 3px; transition: width .5s; }
.cr-collection { display: flex; flex-direction: column; gap: 16px; }
.cr-coll-group-title { font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.cr-coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; }
.cr-coll-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 3px;
    background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 10px;
    text-align: center; position: relative; transition: transform .2s, box-shadow .2s, z-index 0s;
}
.cr-coll-card:hover {
    transform: scale(1.8); z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.cr-coll-hidden { display: none; }
.cr-coll-toggle {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
    padding: 6px 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
    border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; color: var(--text-primary);
    font-family: inherit; transition: background .2s;
}
.cr-coll-toggle:hover { background: rgba(255,255,255,.08); }
.cr-coll-card.maxed { border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.06); }
.cr-coll-card img { width: 38px; height: 44px; object-fit: contain; border-radius: 4px; }
.cr-coll-card .cr-coll-lvl { font-size: 10px; font-weight: 700; }
.cr-coll-card .cr-coll-name { font-size: 8px; color: var(--text-secondary); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Battle Stats ===== */
.cr-bstats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cr-bstat-card {
    padding: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 12px; text-align: center;
}
.cr-bstat-val { font-size: 22px; font-weight: 700; color: #f59e0b; }
.cr-bstat-label { font-size: 11px; color: var(--text-secondary); margin-top: 3px; }
.cr-bstats-modes { display: flex; flex-direction: column; gap: 6px; }
.cr-bstat-mode {
    display: flex; align-items: center; gap: 10px; padding: 8px 12px;
    background: rgba(255,255,255,.02); border-radius: 8px; font-size: 13px;
}
.cr-bstat-mode-name { flex: 1; color: var(--text-primary); font-weight: 600; }
.cr-bstat-mode-bar-wrap { width: 80px; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.cr-bstat-mode-bar { height: 100%; background: #f59e0b; border-radius: 2px; }
.cr-bstat-mode-wr { font-size: 12px; font-weight: 600; min-width: 38px; text-align: right; }

/* ===== Compare ===== */
.cr-compare-card { padding: 28px; margin-bottom: 20px; }
.cr-compare-inputs { display: flex; align-items: center; gap: 12px; }
.cr-compare-group { flex: 1; }
.cr-compare-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; display: block; font-weight: 600; }
.cr-compare-vs { font-size: 18px; font-weight: 900; color: #f59e0b; flex-shrink: 0; padding-top: 18px; }
.cr-compare-table {
    width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14px;
}
.cr-compare-table th {
    padding: 10px 14px; background: rgba(245,158,11,.08); color: var(--text-primary);
    font-weight: 700; text-align: center; border-bottom: 1px solid var(--glass-border);
}
.cr-compare-table th:first-child { text-align: left; }
.cr-compare-table td {
    padding: 10px 14px; border-bottom: 1px solid var(--glass-border); text-align: center;
    color: var(--text-secondary);
}
.cr-compare-table td:first-child { text-align: left; color: var(--text-primary); font-weight: 600; font-size: 13px; }
.cr-compare-table td.winner { color: #34d399; font-weight: 700; }
.cr-compare-table td.loser { color: #f87171; }
.cr-compare-decks { display: flex; gap: 20px; margin-top: 16px; }
.cr-compare-deck-col { flex: 1; }
.cr-compare-deck-col h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; text-align: center; }
.cr-compare-deck-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cr-compare-deck-card { text-align: center; }
.cr-compare-deck-card img { width: 40px; height: 48px; object-fit: contain; border-radius: 6px; }
.cr-compare-deck-card .cr-coll-name { font-size: 9px; color: var(--text-secondary); }

/* ===== Clan ===== */
.cr-clan-card { padding: 24px; margin-bottom: 20px; }
.cr-clan-info { padding: 24px; margin-bottom: 16px; }
.cr-clan-name { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cr-clan-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.cr-clan-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-bottom: 16px; }
.cr-clan-members-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 16px 0 10px; }
.cr-clan-member-list { display: flex; flex-direction: column; gap: 4px; }
.cr-clan-member {
    display: grid; grid-template-columns: 30px 1fr 80px 80px 70px;
    align-items: center; gap: 8px; padding: 8px 10px; font-size: 13px;
    background: rgba(255,255,255,.02); border-radius: 8px;
}
.cr-clan-member:first-child { background: rgba(245,158,11,.06); }
.cr-clan-member-rank { color: var(--text-secondary); text-align: center; font-weight: 600; }
.cr-clan-member-name { color: var(--text-primary); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-clan-member-role { color: var(--text-secondary); font-size: 11px; }
.cr-clan-member-trophies { color: #f59e0b; font-weight: 600; text-align: right; }
.cr-clan-member-donations { color: #34d399; text-align: right; font-size: 12px; }
.cr-clan-member-seen { color: var(--text-secondary); text-align: right; font-size: 11px; }

/* ===== Calculator ===== */
.cr-calc-card { padding: 28px; }
.cr-calc-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cr-calc-field { flex: 1; min-width: 100px; }
.cr-calc-field label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 600; }
.cr-calc-field select {
    width: 100%; padding: 10px 12px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-border);
    border-radius: 10px; color: var(--text-primary); font-size: 14px; outline: none; cursor: pointer; color-scheme: dark;
}
.cr-calc-arrow { padding-bottom: 10px; color: var(--text-secondary); flex-shrink: 0; }
.cr-calc-result { margin-top: 24px; }
.cr-calc-result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cr-calc-result-card {
    padding: 20px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 14px; text-align: center;
}
.cr-calc-result-val { font-size: 28px; font-weight: 700; }
.cr-calc-result-val.cards-color { color: #60a5fa; }
.cr-calc-result-val.gold-color { color: #f59e0b; }
.cr-calc-result-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.cr-calc-bar-wrap { margin-top: 16px; }
.cr-calc-bar-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display: flex; justify-content: space-between; }
.cr-calc-bar-track { height: 8px; background: rgba(255,255,255,.06); border-radius: 4px; overflow: hidden; }
.cr-calc-bar-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #f59e0b); border-radius: 4px; transition: width .4s; }

/* ===== Meta Decks ===== */
.cr-meta-header { padding: 20px 24px; }
.cr-meta-deck {
    padding: 20px 24px; margin-bottom: 12px; background: var(--glass-bg);
    border: 1px solid var(--glass-border); border-radius: 16px; backdrop-filter: blur(12px);
}
.cr-meta-deck-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cr-meta-deck-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.cr-meta-deck-type { font-size: 11px; color: #f59e0b; font-weight: 600; padding: 2px 8px; background: rgba(245,158,11,.1); border-radius: 6px; }
.cr-meta-deck-cards { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 12px; }
.cr-meta-card { text-align: center; }
.cr-meta-card img { width: 100%; max-width: 56px; aspect-ratio: 7/8; object-fit: contain; border-radius: 6px; }
.cr-meta-card-name { font-size: 9px; color: var(--text-secondary); margin-top: 2px; line-height: 1.2; }
.cr-meta-deck-footer { display: flex; justify-content: space-between; align-items: center; }
.cr-meta-deck-elixir { font-size: 12px; color: #d946ef; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.cr-meta-load-btn {
    padding: 6px 16px; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.2);
    border-radius: 8px; color: #f59e0b; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.cr-meta-load-btn:hover { background: rgba(245,158,11,.22); }

/* ===== Deck Builder ===== */
.cr-builder-deck {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; min-height: 80px;
}
.cr-builder-slot {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px; padding: 8px 4px; background: rgba(255,255,255,.03); border: 2px dashed rgba(255,255,255,.1);
    border-radius: 12px; min-height: 100px; text-align: center; position: relative; cursor: default;
    transition: border-color .2s, background .2s;
}
.cr-builder-slot.filled { border-style: solid; border-color: rgba(245,158,11,.25); cursor: pointer; }
.cr-builder-slot.filled:hover { border-color: #f87171; background: rgba(248,113,113,.06); }
.cr-builder-slot .cr-slot-num { position: absolute; top: 4px; left: 6px; font-size: 10px; color: var(--text-secondary); opacity: .4; }
.cr-builder-slot .cr-card-img { width: 48px; height: 56px; }
.cr-builder-slot .cr-card-name { font-size: 10px; }
.cr-builder-slot-empty { font-size: 22px; color: rgba(255,255,255,.1); }

.cr-builder-info {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-bottom: 14px; font-size: 14px; color: var(--text-secondary); flex-wrap: wrap;
}
.cr-builder-info strong { color: var(--text-primary); }

.cr-builder-analysis { margin-bottom: 16px; }
.cr-builder-analysis-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.cr-analysis-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cr-analysis-role {
    display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
    border-radius: 8px; font-size: 12px; font-weight: 600;
}
.cr-analysis-role.ok { background: rgba(52,211,153,.12); color: #34d399; }
.cr-analysis-role.warn { background: rgba(245,158,11,.12); color: #f59e0b; }
.cr-analysis-role.miss { background: rgba(248,113,113,.12); color: #f87171; }
.cr-analysis-notes { list-style: none; padding: 0; margin: 0; }
.cr-analysis-notes li {
    font-size: 13px; color: var(--text-secondary); padding: 4px 0; display: flex; align-items: center; gap: 6px;
}
.cr-analysis-notes li::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.cr-analysis-notes li.good::before { background: #34d399; }
.cr-analysis-notes li.bad::before { background: #f87171; }
.cr-analysis-notes li.info::before { background: #60a5fa; }

.cr-builder-controls {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.cr-builder-clear {
    padding: 6px 16px; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.2);
    border-radius: 8px; color: #f87171; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.cr-builder-clear:hover { background: rgba(248,113,113,.2); }
.cr-builder-filter { display: flex; gap: 8px; }
.cr-builder-filter select {
    padding: 6px 10px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text-primary); font-size: 12px; outline: none; cursor: pointer; color-scheme: dark;
}

.cr-builder-cards {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px;
    max-height: 400px; overflow-y: auto; padding-right: 4px;
}
.cr-builder-cards::-webkit-scrollbar { width: 4px; }
.cr-builder-cards::-webkit-scrollbar-track { background: transparent; }
.cr-builder-cards::-webkit-scrollbar-thumb { background: rgba(245,158,11,.3); border-radius: 2px; }
.cr-pick-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 6px 2px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border);
    border-radius: 10px; cursor: pointer; text-align: center; transition: transform .2s, box-shadow .2s, border-color .15s, background .15s;
    position: relative;
}
.cr-pick-card:hover { border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.06); transform: scale(1.8); z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cr-pick-card.selected { border-color: #f59e0b; background: rgba(245,158,11,.1); opacity: .5; pointer-events: none; }
.cr-pick-card img { width: 40px; height: 48px; border-radius: 6px; object-fit: contain; }
.cr-pick-card .cr-pick-name { font-size: 9px; color: var(--text-primary); line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-pick-card .cr-pick-elixir { font-size: 10px; color: #d946ef; font-weight: 700; }

/* ===== Deck Sharing ===== */
.cr-share-btns { display: flex; gap: 6px; }
.cr-share-btn {
    display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px;
    background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); border-radius: 8px;
    color: #f59e0b; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.cr-share-btn:hover { background: rgba(245,158,11,.2); }
.cr-share-btn.copied { background: rgba(52,211,153,.15); border-color: rgba(52,211,153,.3); color: #34d399; }

/* ===== Compare Score ===== */
.cr-compare-score {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 20px 16px 24px; margin-bottom: 20px;
    border-bottom: 1px solid var(--glass-border);
}
.cr-compare-score-player {
    text-align: center; flex: 0 0 auto; min-width: 90px;
    padding: 12px 16px; border-radius: 14px;
    background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
    transition: all .3s;
}
.cr-compare-score-player.cr-score-winner {
    background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25);
    box-shadow: 0 0 20px rgba(52,211,153,.1);
}
.cr-score-name { font-size: 12px; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 110px; }
.cr-score-val {
    font-size: 36px; font-weight: 800; color: var(--text-primary);
    line-height: 1.1;
}
.cr-score-winner .cr-score-val { color: #34d399; }
.cr-score-label { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
.cr-compare-score-vs { flex: 1; text-align: center; min-width: 80px; }
.cr-score-bar {
    display: flex; height: 10px; border-radius: 6px; overflow: hidden;
    background: rgba(255,255,255,.05); margin-bottom: 8px;
}
.cr-score-bar-p1 { background: linear-gradient(90deg, #60a5fa, #818cf8); transition: width .6s ease; border-radius: 6px 0 0 6px; }
.cr-score-bar-p2 { background: linear-gradient(90deg, #f87171, #fb923c); transition: width .6s ease; border-radius: 0 6px 6px 0; }
.cr-score-verdict { font-size: 13px; font-weight: 700; color: #34d399; }

/* ===== Deck Score Gauge ===== */
.cr-deck-score-wrap {
    text-align: center; padding: 16px 0 20px;
    margin-bottom: 16px; border-bottom: 1px solid var(--glass-border);
}
.cr-deck-score-gauge { position: relative; display: inline-block; width: 130px; height: 75px; }
.cr-gauge-svg { width: 130px; height: 75px; }
.cr-gauge-fill { transition: stroke-dasharray .8s ease; }
.cr-deck-score-num {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    font-size: 28px; font-weight: 800; color: var(--text-primary); line-height: 1;
}
.cr-deck-score-num span { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
.cr-deck-score-verdict {
    font-size: 14px; font-weight: 700; margin-top: 4px; letter-spacing: .5px;
}
.verdict-great { color: #10b981; }
.verdict-good { color: #34d399; }
.verdict-ok { color: #f59e0b; }
.verdict-bad { color: #f87171; }
.verdict-terrible { color: #ef4444; }

/* ===== Battle Form Ring ===== */
.cr-form-score-wrap {
    text-align: center; padding: 16px 0 20px;
    margin-bottom: 16px; border-bottom: 1px solid var(--glass-border);
}
.cr-form-ring {
    position: relative; display: inline-block; width: 96px; height: 96px;
    border-radius: 50%;
    background: conic-gradient(var(--form-color) calc(var(--form-pct) * 3.6deg), rgba(255,255,255,.06) 0);
    transition: background .6s;
}
.cr-form-ring-inner {
    position: absolute; inset: 7px; border-radius: 50%;
    background: var(--glass-bg, rgba(15,15,30,.95));
    display: flex; align-items: center; justify-content: center;
}
.cr-form-val { font-size: 28px; font-weight: 800; color: var(--text-primary); }
.cr-form-label { font-size: 14px; font-weight: 700; color: var(--form-color, #f59e0b); margin-top: 6px; }
.cr-form-sublabel { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ===== Deck Suggestions ===== */
.cr-suggest-deck {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px;
    background: rgba(255,255,255,.02); border: 1px solid var(--glass-border); border-radius: 12px;
}
.cr-suggest-deck-cards { display: flex; gap: 3px; flex: 1; }
.cr-suggest-deck-cards img { width: 32px; height: 38px; border-radius: 4px; object-fit: contain; }
.cr-suggest-deck-info { text-align: right; flex-shrink: 0; }
.cr-suggest-deck-name { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.cr-suggest-deck-elixir { font-size: 11px; color: #d946ef; }
.cr-suggest-load {
    padding: 4px 10px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2);
    border-radius: 6px; color: #f59e0b; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.cr-suggest-load:hover { background: rgba(245,158,11,.2); }

/* ===== Responsive ===== */
@media (max-width: 700px) {
    .cr-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .cr-compare-inputs { flex-direction: column; }
    .cr-compare-vs { padding-top: 0; }
    .cr-compare-score { gap: 12px; }
    .cr-score-val { font-size: 28px; }
    .cr-compare-score-player { min-width: 70px; padding: 10px 12px; }
    .cr-meta-deck-cards { grid-template-columns: repeat(4, 1fr); }
    .cr-clan-member { grid-template-columns: 24px 1fr 60px 50px; font-size: 12px; }
    .cr-clan-member-seen { display: none; }
    .cr-calc-row { flex-direction: column; }
    .cr-calc-arrow { transform: rotate(90deg); padding: 0; }
    /* iOS не масштабирует страницу при фокусе на select < 16px */
    .cr-calc-field select,
    .cr-builder-filter select,
    .cr-page .glass-card select {
        font-size: 16px;
    }
}
@media (max-width: 500px) {
    .cr-tabs { gap: 2px; padding: 3px; }
    .cr-tab { padding: 8px 10px; font-size: 11px; }
    .cr-tab svg { display: none; }
    .cr-search-header { flex-direction: column; text-align: center; }
    .cr-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .cr-deck { grid-template-columns: repeat(2, 1fr); }
    .cr-builder-deck { grid-template-columns: repeat(2, 1fr); }
    .cr-search-btn span { display: none; }
    .cr-search-btn { padding: 10px 14px; }
    .cr-stat-val { font-size: 17px; }
    .cr-battle-decks { display: none; }
    .cr-achievements { grid-template-columns: 1fr; }
    .cr-builder-cards { grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); }
    .cr-share-btns { flex-direction: column; }
    .cr-compare-deck-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== My Account Button ===== */
.cr-my-account-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; margin-bottom: 14px;
    background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2); border-radius: 10px;
    color: #f59e0b; font-size: 12px; font-weight: 600; cursor: pointer; transition: background .2s;
}
.cr-my-account-btn:hover { background: rgba(245,158,11,.2); }
.cr-my-account-btn svg { width: 16px; height: 16px; }

/* ===== Watchlist ===== */
.cr-watchlist { margin-bottom: 16px; }
.cr-watchlist-title { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.cr-watchlist-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.cr-wl-card {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px;
    cursor: pointer; transition: all .2s; min-width: 160px; text-decoration: none; color: inherit;
}
.cr-wl-card:hover { border-color: rgba(245,158,11,.3); transform: translateY(-2px); }
.cr-wl-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#f59e0b,#92400e); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: #fff; flex-shrink: 0; }
.cr-wl-info { flex: 1; min-width: 0; }
.cr-wl-name { font-size: 12px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-wl-trophies { font-size: 11px; color: #f59e0b; font-weight: 600; }
.cr-wl-delta { font-size: 11px; font-weight: 700; }
.cr-wl-delta.pos { color: #34d399; }
.cr-wl-delta.neg { color: #f87171; }
.cr-wl-star {
    width: 24px; height: 24px; border: none; background: none; cursor: pointer; padding: 0;
    color: var(--text-secondary); transition: color .2s; flex-shrink: 0;
}
.cr-wl-star:hover { color: #f59e0b; }
.cr-wl-star.active { color: #f59e0b; }

/* ===== Season Progress ===== */
.cr-season-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cr-season-league { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 100px; }
.cr-season-league-name { font-size: 14px; font-weight: 700; color: #f59e0b; }
.cr-season-league-icon { font-size: 32px; }
.cr-season-bar-wrap { flex: 1; min-width: 200px; }
.cr-season-bar-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.cr-season-bar-track { height: 12px; background: rgba(255,255,255,.06); border-radius: 6px; overflow: hidden; position: relative; }
.cr-season-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 6px; transition: width .5s; }
.cr-season-best { font-size: 12px; color: var(--text-secondary); margin-top: 6px; }

/* ===== Card Winrate ===== */
.cr-cardwr-table { width: 100%; border-collapse: collapse; }
.cr-cardwr-table th { font-size: 11px; color: var(--text-secondary); text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--glass-border); font-weight: 600; }
.cr-cardwr-table th:nth-child(n+3) { text-align: center; }
.cr-cardwr-table td { padding: 8px; border-bottom: 1px solid rgba(255,255,255,.03); font-size: 13px; color: var(--text-primary); }
.cr-cardwr-table td:nth-child(n+3) { text-align: center; }
.cr-cardwr-table tr:hover { background: rgba(255,255,255,.02); }
.cr-cardwr-card { display: flex; align-items: center; gap: 8px; }
.cr-cardwr-card img { width: 28px; height: 32px; border-radius: 4px; object-fit: contain; }
.cr-cardwr-bar { width: 50px; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; display: inline-block; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.cr-cardwr-bar-fill { height: 100%; border-radius: 2px; }

/* ===== Opponent Analysis ===== */
.cr-opp-list { display: flex; flex-direction: column; gap: 8px; }
.cr-opp-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,.02); border-radius: 10px; }
.cr-opp-type { font-size: 13px; font-weight: 600; color: var(--text-primary); min-width: 110px; }
.cr-opp-bar-wrap { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.cr-opp-bar { height: 100%; border-radius: 3px; }
.cr-opp-stats { font-size: 12px; color: var(--text-secondary); min-width: 80px; text-align: right; }
.cr-opp-wr { font-weight: 600; }
.cr-opp-tip { margin-top: 10px; padding: 10px 14px; background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.15); border-radius: 10px; font-size: 12px; color: #f59e0b; line-height: 1.5; }

/* ===== Activity Heatmap ===== */
.cr-heatmap-wrap { display: flex; gap: 4px; }
.cr-heatmap-labels { display: flex; flex-direction: column; gap: 0; padding-top: 20px; }
.cr-heatmap-labels span { height: 16px; font-size: 9px; color: var(--text-secondary); display: flex; align-items: center; line-height: 1; }
.cr-heatmap-grid { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; flex: 1; }
.cr-heatmap-hour { font-size: 8px; color: var(--text-secondary); text-align: center; margin-bottom: 2px; }
.cr-heatmap-cell { width: 100%; aspect-ratio: 1; border-radius: 3px; background: rgba(245,158,11,.08); transition: background .2s; }
.cr-heatmap-cell.l1 { background: rgba(245,158,11,.2); }
.cr-heatmap-cell.l2 { background: rgba(245,158,11,.4); }
.cr-heatmap-cell.l3 { background: rgba(245,158,11,.6); }
.cr-heatmap-cell.l4 { background: rgba(245,158,11,.85); }

/* ===== Max Account Cost ===== */
.cr-maxcost-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cr-maxcost-card { padding: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--glass-border); border-radius: 12px; text-align: center; }
.cr-maxcost-val { font-size: 22px; font-weight: 700; }
.cr-maxcost-label { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.cr-maxcost-bar-wrap { margin-top: 10px; }
.cr-maxcost-bar-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; display: flex; justify-content: space-between; }
.cr-maxcost-bar-track { height: 10px; background: rgba(255,255,255,.06); border-radius: 5px; overflow: hidden; }
.cr-maxcost-bar-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #34d399); border-radius: 5px; transition: width .5s; }
.cr-maxcost-rarity { margin-top: 14px; }
.cr-maxcost-rarity-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.cr-maxcost-rarity-name { min-width: 100px; font-weight: 600; }
.cr-maxcost-rarity-bar { flex: 1; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; }
.cr-maxcost-rarity-fill { height: 100%; border-radius: 2px; }
.cr-maxcost-rarity-val { min-width: 40px; text-align: right; font-weight: 600; color: var(--text-secondary); }

/* ===== Timeline ===== */
.cr-timeline-list { position: relative; padding-left: 24px; }
.cr-timeline-list::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.08); border-radius: 1px; }
.cr-timeline-item { position: relative; padding: 8px 0 16px; }
.cr-timeline-item::before {
    content: ''; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px;
    border-radius: 50%; background: #f59e0b; border: 2px solid rgba(245,158,11,.3);
}
.cr-timeline-item.minor::before { background: #6b7280; border-color: rgba(107,114,128,.3); width: 8px; height: 8px; left: -19px; top: 13px; }
.cr-timeline-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.cr-timeline-value { font-size: 14px; font-weight: 700; color: #f59e0b; }
.cr-timeline-sub { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* ===== Counter-Pick ===== */
.cr-counter-card { padding: 24px; margin-bottom: 16px; }
.cr-counter-deck { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; min-height: 80px; }
.cr-counter-info { margin-bottom: 14px; font-size: 14px; color: var(--text-secondary); text-align: center; }
.cr-counter-result-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cr-counter-result-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 10px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.2); border-radius: 10px; }
.cr-counter-result-card img { width: 40px; height: 48px; border-radius: 6px; object-fit: contain; }
.cr-counter-result-card span { font-size: 10px; color: var(--text-primary); max-width: 70px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Deck Battle Simulator ===== */
.cr-sim-deck2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; min-height: 80px; }
.cr-sim-info { margin-bottom: 14px; font-size: 14px; color: var(--text-secondary); text-align: center; }
.cr-sim-result-wrap { padding: 20px; background: rgba(255,255,255,.02); border: 1px solid var(--glass-border); border-radius: 14px; text-align: center; }
.cr-sim-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: rgba(255,255,255,.05); margin: 14px 0; }
.cr-sim-bar-a { background: linear-gradient(90deg, #3b82f6, #60a5fa); border-radius: 7px 0 0 7px; transition: width .5s; }
.cr-sim-bar-b { background: linear-gradient(90deg, #f87171, #ef4444); border-radius: 0 7px 7px 0; transition: width .5s; }
.cr-sim-verdict { font-size: 16px; font-weight: 700; }
.cr-sim-details { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.cr-sim-detail-col h5 { font-size: 13px; font-weight: 700; margin: 0 0 6px; }
.cr-sim-detail-col ul { list-style: none; padding: 0; margin: 0; }
.cr-sim-detail-col li { font-size: 12px; color: var(--text-secondary); padding: 2px 0; }
.cr-sim-detail-col li::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; }
.cr-sim-detail-col:first-child li::before { background: #60a5fa; }
.cr-sim-detail-col:last-child li::before { background: #f87171; }

/* ===== Tournament ===== */
.cr-tournament-card { padding: 24px; margin-bottom: 16px; }
.cr-tournament-tags { display: flex; flex-direction: column; gap: 0; }
.cr-tournament-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.cr-tournament-table th { padding: 10px 12px; background: rgba(245,158,11,.06); color: var(--text-primary); font-weight: 700; font-size: 12px; text-align: center; border-bottom: 1px solid var(--glass-border); }
.cr-tournament-table th:nth-child(2) { text-align: left; }
.cr-tournament-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); text-align: center; font-size: 13px; color: var(--text-secondary); }
.cr-tournament-table td:nth-child(2) { text-align: left; color: var(--text-primary); font-weight: 600; }
.cr-tournament-table tr:hover { background: rgba(255,255,255,.02); }
.cr-medal { font-size: 18px; }
.cr-tournament-score { font-size: 16px; font-weight: 800; color: #f59e0b; }

/* ===== Embed Tools ===== */
.cr-embed-tools { display: flex; flex-direction: column; gap: 12px; }
.cr-embed-row { display: flex; align-items: center; gap: 8px; }
.cr-embed-row label { font-size: 12px; font-weight: 600; color: var(--text-secondary); min-width: 80px; }
.cr-embed-row input, .cr-embed-row textarea {
    flex: 1; padding: 8px 10px; background: rgba(0,0,0,.3); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text-primary); font-size: 11px; font-family: monospace; outline: none;
}
.cr-embed-row textarea { min-height: 60px; resize: vertical; }
.cr-embed-copy {
    padding: 6px 12px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.2);
    border-radius: 8px; color: #f59e0b; font-size: 11px; font-weight: 600; cursor: pointer;
    transition: background .2s; white-space: nowrap;
}
.cr-embed-copy:hover { background: rgba(245,158,11,.2); }

/* ===== Hotkeys Hint ===== */
.cr-hotkeys-hint {
    text-align: center; padding: 12px; margin-top: 10px;
    font-size: 11px; color: var(--text-secondary); opacity: .5;
}
.cr-hotkeys-hint kbd {
    display: inline-block; padding: 1px 5px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12); border-radius: 4px; font-size: 10px;
    font-family: monospace; color: var(--text-primary);
}

/* ===== Responsive additions ===== */
@media (max-width: 700px) {
    .cr-season-wrap { flex-direction: column; }
    .cr-heatmap-wrap { overflow-x: auto; }
    .cr-counter-deck { grid-template-columns: repeat(2, 1fr); }
    .cr-sim-deck2 { grid-template-columns: repeat(2, 1fr); }
    .cr-sim-details { grid-template-columns: 1fr; }
    .cr-cardwr-bar { display: none; }
}
@media (max-width: 500px) {
    .cr-wl-card { min-width: 140px; padding: 8px 10px; }
    .cr-maxcost-grid { grid-template-columns: 1fr 1fr; }
    .cr-tournament-table { font-size: 11px; }
    .cr-tournament-table th, .cr-tournament-table td { padding: 8px 6px; }
    .cr-embed-row { flex-direction: column; align-items: stretch; }
    .cr-embed-row label { min-width: auto; }
}
