/* ═══════════════════════════════════════════════════════════════════════════
   GAMER RESUME v2.0 — Steam Edition
   Dark Gaming Theme · zocker-loge.de Integration
   ═══════════════════════════════════════════════════════════════════════════ */

.gr-resume {
    --gr-bg:          #0a0e1a;
    --gr-bg-card:     #111827;
    --gr-bg-card2:    #1a2234;
    --gr-border:      #1e2d45;
    --gr-border-glow: #2a3f5f;
    --gr-text:        #e2e8f0;
    --gr-text-muted:  #64748b;
    --gr-text-dim:    #94a3b8;
    --gr-steam:       #1b9ddb;
    --gr-custom:      #e57c23;
    --gr-accent:      #66c0f4;
    --gr-gold:        #f59e0b;
    --gr-radius:      6px;
    --gr-shadow:      0 4px 24px rgba(0,0,0,.5);
    --gr-transition:  .22s cubic-bezier(.4,0,.2,1);
    --gr-font:        'Segoe UI',system-ui,-apple-system,sans-serif;

    font-family:   var(--gr-font);
    color:         var(--gr-text);
    background:    var(--gr-bg);
    border-radius: 8px;
    overflow:      hidden;
    box-shadow:    var(--gr-shadow);
}
.gr-resume *, .gr-resume *::before, .gr-resume *::after { box-sizing: border-box; }
.gr-resume p { margin: 0 0 .5rem; }
.gr-resume h1,.gr-resume h2,.gr-resume h3,.gr-resume h4 { margin: 0; }
.gr-resume img { max-width: 100%; }

/* ── PROFIL-MODUS: an zocker-loge.de Profil anpassen ─────────────────────── */
.gr-resume--profile-mode,
.zp-tab-content .gr-resume {
    --gr-bg:          transparent;
    --gr-bg-card:     rgba(0,0,0,0.25);
    --gr-bg-card2:    #1b2838;
    --gr-border:      #2a475e;
    --gr-border-glow: #3d6b8b;
    --gr-text:        #c6d4df;
    --gr-text-muted:  #8f98a0;
    --gr-text-dim:    #8f98a0;
    --gr-accent:      #66c0f4;
    background:       transparent;
    border-radius:    0;
    box-shadow:       none;
}
.gr-resume--profile-mode .gr-tab.active,
.zp-tab-content .gr-tab.active {
    color: #66c0f4;
    border-bottom-color: #66c0f4;
}
.gr-resume--profile-mode .gr-year-badge,
.zp-tab-content .gr-year-badge {
    background: #66c0f4;
    color: #0a0e1a;
}
.gr-resume--profile-mode .gr-timeline-line,
.zp-tab-content .gr-timeline-line {
    background: linear-gradient(180deg, transparent 0%, #2a475e 5%, #2a475e 95%, transparent 100%);
}
.gr-resume--profile-mode .gr-stats-card,
.zp-tab-content .gr-stats-card {
    background: rgba(23,26,33,0.9);
    border-color: #2a475e;
}
.gr-resume--profile-mode .gr-stats-card-header,
.zp-tab-content .gr-stats-card-header {
    background: #1b2838;
    border-bottom-color: #2a475e;
}

/* ── PROFIL-HEADER (Kompaktmodus statt vollem Hero) ───────────────────────── */
.gr-profile-header {
    padding: 16px 24px 14px;
    border-bottom: 1px solid var(--gr-border);
    background: rgba(0,0,0,0.15);
}
.gr-profile-header-stats { display:flex; gap:28px; flex-wrap:wrap; }
.gr-ph-stat { text-align: center; }
.gr-ph-stat span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gr-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.gr-ph-stat small {
    font-size: .68rem;
    color: var(--gr-text-muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}
.gr-steam-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: var(--gr-steam);
    text-decoration: none;
    margin-top: 10px;
    border: 1px solid rgba(27,157,219,.3);
    padding: 4px 12px;
    border-radius: 4px;
    transition: background var(--gr-transition);
}
.gr-steam-profile-link:hover { background: rgba(27,157,219,.1); text-decoration: none; }

/* ── HERO (Standalone-Modus) ─────────────────────────────────────────────── */
.gr-hero {
    position: relative;
    padding: 48px 40px 36px;
    overflow: hidden;
    background: linear-gradient(135deg,#0d1529 0%,#111827 50%,#0a0e1a 100%);
}
.gr-hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 10% 0%,rgba(27,157,219,.15) 0%,transparent 60%),
        radial-gradient(ellipse 40% 60% at 90% 100%,rgba(102,192,244,.08) 0%,transparent 60%);
    pointer-events: none;
}
.gr-hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gr-border-glow), transparent);
}
.gr-hero-content { position: relative; display:flex; align-items:flex-start; gap:28px; flex-wrap:wrap; }

/* Avatar */
.gr-avatar-wrap { position:relative; flex-shrink:0; }
.gr-avatar {
    width: 110px; height: 110px;
    border-radius: 4px;
    object-fit: cover;
    border: 3px solid var(--gr-border-glow);
    display: block;
}
.gr-avatar-ring {
    position: absolute; inset: -5px;
    border-radius: 6px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--gr-steam), var(--gr-accent)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: gr-ring-pulse 3s ease-in-out infinite;
}
.gr-avatar-steam-badge {
    position: absolute; bottom: -6px; right: -6px;
    background: var(--gr-steam); color: #fff;
    font-size: .65rem; padding: 2px 5px;
    border-radius: 3px; font-weight: 700;
}
@keyframes gr-ring-pulse {
    0%,100% { opacity:.6; transform:scale(1); }
    50%      { opacity:1;  transform:scale(1.03); }
}

.gr-hero-info { flex:1; min-width:200px; }
.gr-gamer-tag {
    font-size: 2rem; font-weight: 800; letter-spacing: -.02em;
    background: linear-gradient(135deg,#fff 30%,var(--gr-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1.1; margin-bottom: 8px;
}
.gr-gamer-bio { color:var(--gr-text-dim); font-size:.95rem; line-height:1.6; max-width:520px; margin-bottom:12px; }

.gr-hero-stats { display:flex; gap:24px; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px solid var(--gr-border); width:100%; }
.gr-hero-stat { text-align: center; }
.gr-stat-num {
    display: block; font-size:1.9rem; font-weight:800; line-height:1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg,#fff,var(--gr-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gr-stat-label { font-size:.7rem; color:var(--gr-text-muted); text-transform:uppercase; letter-spacing:.08em; }

/* ── TABS ─────────────────────────────────────────────────────────────────── */
.gr-tabs { display:flex; gap:2px; background:var(--gr-bg); padding:0 32px; border-bottom:1px solid var(--gr-border); overflow-x:auto; }
.gr-tab {
    background:none; border:none; color:var(--gr-text-muted);
    padding:13px 20px; font-size:.88rem; font-weight:600;
    cursor:pointer; border-bottom:2px solid transparent;
    transition:color var(--gr-transition),border-color var(--gr-transition);
    white-space:nowrap;
}
.gr-tab:hover { color:var(--gr-text); }
.gr-tab.active { color:var(--gr-accent); border-bottom-color:var(--gr-accent); }
.gr-tab-content { display:none; }
.gr-tab-content.active { display:block; }

/* ── KARRIERETEXT ─────────────────────────────────────────────────────────── */
.gr-career-wrap { margin:24px 24px 8px; }
.gr-career-display {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg,rgba(27,157,219,.08) 0%,rgba(102,192,244,.04) 100%);
    border: 1px solid rgba(27,157,219,.2);
    border-left: 4px solid var(--gr-steam);
    border-radius: var(--gr-radius);
    padding: 18px 22px;
    position: relative;
}
.gr-career-quote-mark {
    font-size: 5rem; line-height: .8;
    color: rgba(27,157,219,.2);
    font-family: Georgia,serif;
    flex-shrink: 0;
    margin-right: 4px;
    margin-top: -8px;
    user-select: none;
}
.gr-career-content { flex:1; }
.gr-career-text {
    font-size: .95rem; line-height: 1.8; color:var(--gr-text-dim);
    font-style: italic; margin: 0 0 10px;
}
.gr-career-footer { display:flex; align-items:center; justify-content:space-between; }
.gr-career-author { font-size:.73rem; color:var(--gr-text-muted); letter-spacing:.05em; }
.gr-career-regen-btn {
    background: none; border:1px solid var(--gr-border); color:var(--gr-text-muted);
    padding:3px 10px; border-radius:4px; font-size:.75rem; cursor:pointer;
    transition:all var(--gr-transition);
}
.gr-career-regen-btn:hover { border-color:var(--gr-steam); color:var(--gr-steam); }

.gr-career-generate {
    display:flex; gap:14px; align-items:flex-start;
    background:rgba(27,157,219,.04);
    border:1px dashed rgba(27,157,219,.2);
    border-radius:var(--gr-radius); padding:16px 18px;
}
.gr-career-gen-icon { font-size:1.6rem; flex-shrink:0; margin-top:2px; }
.gr-career-status { display:inline-block; font-size:.8rem; color:var(--gr-text-muted); margin-left:12px; vertical-align:middle; }

/* ── FILTER ───────────────────────────────────────────────────────────────── */
.gr-timeline-filters { display:flex; gap:8px; flex-wrap:wrap; padding:20px 24px 8px; }
.gr-filter {
    background:var(--gr-bg-card); border:1px solid var(--gr-border); color:var(--gr-text-muted);
    padding:6px 14px; border-radius:999px; font-size:.8rem; font-weight:600;
    cursor:pointer; transition:all var(--gr-transition);
}
.gr-filter:hover { border-color:var(--gr-accent); color:var(--gr-text); }
.gr-filter.active { background:var(--gr-steam); border-color:var(--gr-steam); color:#fff; }

/* ── TIMELINE ─────────────────────────────────────────────────────────────── */
.gr-timeline-wrap { padding: 0 0 24px; }
.gr-timeline {
    position:relative; max-width:900px;
    margin:0 auto; padding:0 20px;
}
.gr-timeline-line {
    position:absolute; left:50%; top:0; bottom:0; width:2px; transform:translateX(-50%);
    background:linear-gradient(180deg,transparent 0%,var(--gr-border-glow) 5%,var(--gr-border-glow) 95%,transparent 100%);
}
.gr-year-marker { display:flex; justify-content:center; margin:36px 0 20px; position:relative; z-index:5; }
.gr-year-badge {
    background:var(--gr-steam); color:#fff;
    font-weight:800; font-size:1rem;
    padding:6px 24px; border-radius:999px; letter-spacing:.06em;
    box-shadow:0 0 20px rgba(27,157,219,.35);
}

/* Event */
.gr-event { display:grid; grid-template-columns:1fr 48px 1fr; align-items:center; margin-bottom:22px; transition:opacity var(--gr-transition); }
.gr-event.gr-hidden { display:none; }
.gr-event--left  .gr-event-card      { grid-column:1; text-align:right; margin-right:12px; }
.gr-event--left  .gr-event-connector { grid-column:2; }
.gr-event--right .gr-event-connector { grid-column:2; }
.gr-event--right .gr-event-card      { grid-column:3; text-align:left; margin-left:12px; }

.gr-event-connector { display:flex; justify-content:center; align-items:center; position:relative; z-index:3; }
.gr-event-dot {
    width:44px; height:44px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.2rem; border:2px solid; background:var(--gr-bg);
    transition:transform var(--gr-transition),box-shadow var(--gr-transition);
    flex-shrink:0;
}
.gr-event:hover .gr-event-dot { transform:scale(1.14); }
.gr-dot--steam  { border-color:var(--gr-steam);  box-shadow:0 0 14px rgba(27,157,219,.45); }
.gr-dot--custom { border-color:var(--gr-custom);  box-shadow:0 0 14px rgba(229,124,35,.4); }

.gr-event-card {
    background:var(--gr-bg-card); border:1px solid var(--gr-border);
    border-radius:var(--gr-radius); padding:14px 16px;
    transition:border-color var(--gr-transition),box-shadow var(--gr-transition),transform var(--gr-transition);
    position:relative; overflow:hidden; max-width:360px;
}
.gr-event-card::before {
    content:''; position:absolute; inset:0; border-radius:inherit;
    background:linear-gradient(135deg,rgba(255,255,255,.025) 0%,transparent 60%);
    pointer-events:none;
}
.gr-event:hover .gr-event-card { border-color:var(--gr-border-glow); box-shadow:0 8px 28px rgba(0,0,0,.4); transform:translateY(-2px); }
.gr-event--steam .gr-event-card  { border-top:2px solid var(--gr-steam); }
.gr-event--custom .gr-event-card { border-top:2px solid var(--gr-custom); }

.gr-event-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:7px; }
.gr-event-platform-badge {
    font-size:.68rem; font-weight:700; padding:2px 8px; border-radius:999px; border:1px solid;
}
.gr-badge-steam  { color:var(--gr-steam);  border-color:rgba(27,157,219,.4);  background:rgba(27,157,219,.08); }
.gr-badge-custom { color:var(--gr-custom); border-color:rgba(229,124,35,.35); background:rgba(229,124,35,.07); }
.gr-event-date { font-size:.7rem; color:var(--gr-text-muted); margin-left:auto; white-space:nowrap; }

.gr-event-actions { display:flex; gap:3px; opacity:0; transition:opacity var(--gr-transition); }
.gr-event:hover .gr-event-actions { opacity:1; }
.gr-action-btn { background:none; border:none; cursor:pointer; font-size:.9rem; padding:2px 5px; border-radius:4px; transition:background var(--gr-transition); }
.gr-action-btn:hover { background:rgba(255,255,255,.08); }

.gr-event-title { font-size:.98rem; font-weight:700; color:var(--gr-text); margin-bottom:5px; line-height:1.3; }
.gr-event-desc  { font-size:.82rem; color:var(--gr-text-dim); line-height:1.55; margin-bottom:8px; }
.gr-event-card--has-story { border-left:3px solid rgba(27,157,219,.3); }
.gr-event--left .gr-event-card--has-story { border-left:none; border-right:3px solid rgba(27,157,219,.3); }

.gr-event-game { display:flex; align-items:center; gap:8px; margin-top:10px; background:rgba(255,255,255,.04); border-radius:5px; padding:6px 10px; }
.gr-event-game-img { width:56px; height:32px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.gr-event-game-name { font-size:.78rem; color:var(--gr-text-dim); font-weight:600; }

/* Story */
.gr-story-wrap { margin-top:10px; border-top:1px solid var(--gr-border); padding-top:10px; }
.gr-story-label { font-size:.7rem; font-weight:700; color:var(--gr-text-muted); text-transform:uppercase; letter-spacing:.07em; margin-bottom:6px; }
.gr-story-text {
    font-size:.84rem; color:var(--gr-text-dim); line-height:1.75; font-style:italic;
    position:relative; max-height:80px; overflow:hidden; transition:max-height .4s ease;
}
.gr-story-text::after {
    content:''; position:absolute; bottom:0; left:0; right:0; height:28px;
    background:linear-gradient(transparent,var(--gr-bg-card)); pointer-events:none; transition:opacity .3s;
}
.gr-story-text.expanded { max-height:1000px; }
.gr-story-text.expanded::after { opacity:0; }
.gr-story-toggle {
    background:none; border:none; color:var(--gr-steam); font-size:.75rem;
    cursor:pointer; padding:3px 0; font-weight:600; display:block; margin-top:3px;
}
.gr-story-editor { margin-top:10px; animation:gr-fade-in-up .2s ease; }
.gr-story-textarea {
    width:100%; background:var(--gr-bg); border:1px solid var(--gr-steam);
    border-radius:6px; color:var(--gr-text); padding:10px 12px;
    font-size:.85rem; font-family:var(--gr-font); line-height:1.7; resize:vertical;
    min-height:100px; outline:none; box-sizing:border-box; transition:box-shadow var(--gr-transition);
}
.gr-story-textarea:focus { box-shadow:0 0 0 2px rgba(27,157,219,.25); }
.gr-story-actions { display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }

/* Timeline End */
.gr-timeline-end { display:flex; flex-direction:column; align-items:center; gap:8px; padding:28px 0 8px; color:var(--gr-text-muted); font-size:.82rem; }
.gr-timeline-end-dot {
    width:50px; height:50px; border-radius:50%;
    background:var(--gr-bg-card); border:2px solid var(--gr-border-glow);
    display:flex; align-items:center; justify-content:center; font-size:1.4rem;
    box-shadow:0 0 20px rgba(27,157,219,.15);
}
.gr-timeline-empty { text-align:center; padding:60px 20px; color:var(--gr-text-muted); }
.gr-empty-icon { font-size:3rem; margin-bottom:12px; }
.gr-timeline-empty h3 { color:var(--gr-text-dim); margin-bottom:8px; }

/* ── STATS ────────────────────────────────────────────────────────────────── */
.gr-stats-wrap { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:18px; padding:20px 24px; }
.gr-stats-card { background:var(--gr-bg-card); border:1px solid var(--gr-border); border-radius:8px; overflow:hidden; transition:transform var(--gr-transition); }
.gr-stats-card:hover { transform:translateY(-2px); }
.gr-stats-card--steam { border-top:3px solid var(--gr-steam); }
.gr-stats-card-header { display:flex; align-items:center; gap:12px; padding:14px 18px; background:var(--gr-bg-card2); border-bottom:1px solid var(--gr-border); }
.gr-stats-icon { font-size:1.5rem; }
.gr-stats-card-header h3 { font-size:1.05rem; font-weight:700; }
.gr-stats-username { font-size:.78rem; color:var(--gr-text-muted); }
.gr-stats-avatar { width:36px; height:36px; border-radius:3px; object-fit:cover; margin-left:auto; border:2px solid var(--gr-border-glow); }

.gr-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; }
.gr-stat-item { text-align:center; }
.gr-stat-val { display:block; font-size:1.5rem; font-weight:800; color:var(--gr-text); line-height:1.1; margin-bottom:2px; font-variant-numeric:tabular-nums; }
.gr-stat-key { font-size:.7rem; color:var(--gr-text-muted); text-transform:uppercase; letter-spacing:.07em; }

.gr-progress-bar { height:6px; background:var(--gr-border); border-radius:999px; overflow:hidden; margin:4px 0; }
.gr-progress-fill { height:100%; border-radius:999px; transition:width 1s cubic-bezier(.4,0,.2,1); }
.gr-progress-steam { background:var(--gr-steam); }

.gr-stats-top-games { padding:12px 18px; border-top:1px solid var(--gr-border); }
.gr-stats-top-games h4 { font-size:.76rem; color:var(--gr-text-muted); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.gr-top-game-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:8px; margin-bottom:8px; }
.gr-top-game-name { font-size:.8rem; color:var(--gr-text-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gr-top-game-time { font-size:.72rem; color:var(--gr-text-muted); white-space:nowrap; }

/* Zuletzt gespielt */
.gr-recent-games { padding:14px 18px; display:flex; flex-direction:column; gap:10px; }
.gr-recent-game { display:flex; gap:12px; align-items:center; }
.gr-recent-game img { width:92px; height:43px; object-fit:cover; border-radius:3px; flex-shrink:0; border:1px solid var(--gr-border); }
.gr-recent-game-info { display:flex; flex-direction:column; gap:3px; }
.gr-recent-game-name { font-size:.85rem; font-weight:600; color:var(--gr-text); }
.gr-recent-game-time { font-size:.75rem; color:var(--gr-text-muted); }

/* ── SPIELE-GRID ─────────────────────────────────────────────────────────── */
.gr-games-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:14px; padding:0 24px 24px; }
.gr-game-card {
    background:var(--gr-bg-card); border:1px solid var(--gr-border);
    border-radius:var(--gr-radius); overflow:hidden;
    transition:transform var(--gr-transition),box-shadow var(--gr-transition);
}
.gr-game-card:hover { transform:translateY(-3px) scale(1.02); box-shadow:0 12px 32px rgba(0,0,0,.5); border-color:var(--gr-border-glow); }
.gr-game-img { width:100%; height:87px; background-size:cover; background-position:center; background-color:var(--gr-bg-card2); position:relative; }
.gr-game-info { padding:9px 11px; display:flex; flex-direction:column; gap:4px; }
.gr-game-name { font-size:.8rem; font-weight:600; color:var(--gr-text); line-height:1.3; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* ── MEILENSTEIN-FORMULAR ─────────────────────────────────────────────────── */
.gr-add-milestone { max-width:600px; margin:0 auto; padding:24px; }
.gr-add-milestone h3 { font-size:1.15rem; margin-bottom:6px; }
.gr-add-milestone > p { color:var(--gr-text-muted); font-size:.87rem; margin-bottom:22px; }
.gr-form { display:flex; flex-direction:column; gap:16px; }
.gr-form-row { display:flex; flex-direction:column; gap:6px; }
.gr-form-row--half { flex-direction:row; gap:16px; }
.gr-form-row--half > div { flex:1; display:flex; flex-direction:column; gap:6px; }
.gr-form label { font-size:.82rem; color:var(--gr-text-dim); font-weight:600; }
.gr-form input[type=text],.gr-form input[type=url],.gr-form input[type=date],.gr-form textarea,.gr-form select {
    background:var(--gr-bg-card2); border:1px solid var(--gr-border); border-radius:6px;
    color:var(--gr-text); padding:9px 13px; font-size:.9rem; font-family:var(--gr-font);
    transition:border-color var(--gr-transition); outline:none;
}
.gr-form input:focus,.gr-form textarea:focus,.gr-form select:focus { border-color:var(--gr-steam); }
.gr-form textarea { resize:vertical; min-height:72px; line-height:1.65; }
#gr-ms-story { min-height:130px; }
#gr-ms-story::placeholder { font-style:italic; }

.gr-icon-picker { display:flex; flex-wrap:wrap; gap:5px; margin-top:4px; }
.gr-icon-opt {
    width:34px; height:34px; background:var(--gr-bg-card2); border:1px solid var(--gr-border);
    border-radius:6px; cursor:pointer; font-size:.95rem;
    display:flex; align-items:center; justify-content:center;
    transition:all var(--gr-transition);
}
.gr-icon-opt:hover { border-color:var(--gr-steam); transform:scale(1.1); }
.gr-icon-opt.selected { border-color:var(--gr-steam); background:rgba(27,157,219,.15); box-shadow:0 0 8px rgba(27,157,219,.3); }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.gr-btn { display:inline-flex; align-items:center; gap:6px; padding:9px 20px; border-radius:6px; font-size:.88rem; font-weight:600; cursor:pointer; border:none; transition:all var(--gr-transition); font-family:var(--gr-font); }
.gr-btn-primary { background:var(--gr-steam); color:#fff; }
.gr-btn-primary:hover { background:#1687bb; box-shadow:0 4px 16px rgba(27,157,219,.4); transform:translateY(-1px); }
.gr-btn-secondary { background:var(--gr-bg-card); color:var(--gr-text-dim); border:1px solid var(--gr-border); }
.gr-btn-secondary:hover { border-color:var(--gr-border-glow); color:var(--gr-text); }
.gr-btn-ghost { background:transparent; color:var(--gr-text-muted); border:1px solid var(--gr-border); }
.gr-btn-ghost:hover { background:var(--gr-bg-card); color:var(--gr-text); }
.gr-btn:disabled { opacity:.5; pointer-events:none; }

.gr-form-actions { display:flex; gap:10px; flex-wrap:wrap; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.gr-footer-actions { display:flex; align-items:center; gap:14px; padding:18px 24px; border-top:1px solid var(--gr-border); }
.gr-refresh-status { font-size:.82rem; color:var(--gr-text-muted); }

/* ── MESSAGES ─────────────────────────────────────────────────────────────── */
.gr-msg { padding:9px 14px; border-radius:6px; font-size:.84rem; font-weight:600; margin-top:10px; }
.gr-msg--success { background:rgba(16,185,129,.12); color:#34d399; border:1px solid rgba(16,185,129,.28); }
.gr-msg--error   { background:rgba(239,68,68,.12);  color:#f87171; border:1px solid rgba(239,68,68,.28); }
.gr-msg--loading { background:rgba(27,157,219,.1);  color:var(--gr-steam); border:1px solid rgba(27,157,219,.28); }
.gr-empty { color:var(--gr-text-muted); text-align:center; padding:32px; }
.gr-spinner { width:18px; height:18px; border:2px solid var(--gr-border); border-top-color:var(--gr-steam); border-radius:50%; animation:gr-spin .7s linear infinite; display:inline-block; vertical-align:middle; }
@keyframes gr-spin { to { transform:rotate(360deg); } }

/* ── ANIMATIONS ───────────────────────────────────────────────────────────── */
@keyframes gr-fade-in-up { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.gr-stats-card:nth-child(1) { animation:gr-fade-in-up .3s ease both; }
.gr-stats-card:nth-child(2) { animation:gr-fade-in-up .3s .08s ease both; }
.gr-stats-card:nth-child(3) { animation:gr-fade-in-up .3s .16s ease both; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width:768px) {
    .gr-hero { padding:24px 18px; }
    .gr-hero-content { gap:14px; }
    .gr-avatar { width:80px; height:80px; }
    .gr-gamer-tag { font-size:1.5rem; }
    .gr-hero-stats { gap:16px; }
    .gr-tabs { padding:0 12px; }
    .gr-tab { padding:11px 13px; font-size:.82rem; }

    /* Mobile Timeline: Single Column */
    .gr-timeline { padding:0 8px; }
    .gr-timeline-line { left:22px; }
    .gr-event { grid-template-columns:44px 1fr; }
    .gr-event--left .gr-event-card,
    .gr-event--right .gr-event-card { grid-column:2; text-align:left; max-width:100%; margin:0 0 0 10px; }
    .gr-event--left .gr-event-connector,
    .gr-event--right .gr-event-connector { grid-column:1; grid-row:1; }

    .gr-games-grid { grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); padding:0 14px 14px; }
    .gr-stats-wrap { grid-template-columns:1fr; padding:14px; }
    .gr-stats-grid { grid-template-columns:1fr 1fr 1fr; }
}
