.tibia-page{--accent:#e8be61;--green:#80cbaa;--red:#ed9295;--blue:#7dbde5}.tibia-shell{max-width:1280px;margin:auto;padding:0 36px}.tibia-header{min-height:112px;display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line)}.tibia-header .portal-brand{font-size:16px;letter-spacing:1.8px;flex-shrink:0}.tibia-header .brand-mark{background:#88bca90a;border-color:#88bca944;color:#b3d3bd}.tibia-header .brand-caption{font-size:9px}.boosted{display:flex;gap:28px;align-items:center}.boosted-wait{font-size:11px;color:var(--muted)}.boosted-entry{display:flex;align-items:center;gap:11px;text-decoration:none;min-width:150px;max-width:245px}.boosted-sprite{width:54px;height:54px;object-fit:contain;image-rendering:pixelated;flex-shrink:0}.boosted-empty{height:54px;width:54px;display:grid;place-items:center;color:var(--muted);flex-shrink:0}.boosted-entry small{display:block;font-size:9px;letter-spacing:.8px;color:var(--muted);text-transform:uppercase;margin-bottom:7px}.boosted-entry strong{font-size:12px;line-height:1.5;display:block;font-weight:600}.boosted-entry:hover strong{color:var(--accent)}.boosted-entry em{font-size:9px;color:var(--muted);font-style:normal;display:block;margin-top:3px}.tibia-nav{display:flex;gap:29px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:thin}.tibia-nav button{border:0;border-bottom:2px solid transparent;background:none;padding:19px 0;color:var(--muted);font:inherit;font-size:12px;white-space:nowrap;cursor:pointer}.tibia-nav button[aria-selected=true]{color:var(--accent);border-color:var(--accent)}.tibia-main{padding:30px 0 42px;min-height:65vh}.tibia-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:6px 0 27px;margin-bottom:4px}.tibia-hero h1{font-size:29px;font-weight:650;letter-spacing:-.7px;line-height:1.2;margin:0 0 11px}.tibia-hero .eyebrow{font-size:9px;margin-bottom:12px;color:#a5cbb4}.tibia-hero p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.7;margin:0}.report-box{border-left:1px solid #53605077;padding:5px 0 5px 24px;min-width:200px;flex-shrink:0}.report-label{font-size:9px;letter-spacing:1.2px;color:var(--muted);display:block}.report-box strong{font-weight:500;font-size:25px;letter-spacing:.3px;margin:9px 0;display:block;font-variant-numeric:tabular-nums}.report-box>span:last-child{display:block;font-size:9px;color:#7e8b94}.tibia-status{color:var(--muted);font-size:11px;line-height:1.7;margin:0 0 18px}.tibia-status:empty{display:none}.tibia-status.error{color:#e2b088}.statistics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.stat-card{background:#191f25;border:1px solid #2c343d;border-radius:10px;overflow:hidden;min-width:0}.stat-card-head{padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #2c343d}.stat-card-head h2{font-size:13px;font-weight:600;margin:0;line-height:1.5}.stat-count{font-size:9px;letter-spacing:.7px;color:#8b9aa5;background:#ffffff05;border:1px solid #ffffff0b;border-radius:4px;padding:4px 6px;white-space:nowrap}.stat-rows{list-style:none;padding:0;margin:0}.stat-row{display:grid;grid-template-columns:22px minmax(0,1fr);gap:7px;align-items:baseline;padding:11px 17px;border-top:1px solid #ffffff06;font-size:12px;line-height:1.7;font-variant-numeric:tabular-nums}.stat-row:first-child{border-top:0}.row-number{font-size:10px;color:#73828e;line-height:1.8}.row-text{min-width:0;overflow-wrap:anywhere;color:#bfc8d0}.row-text a{color:#7dbde5;text-decoration:none;font-weight:550}.row-text a:hover{text-decoration:underline;color:#a5d5f2}.row-text strong{font-weight:600;color:#e5e9ee}.row-text a strong{color:inherit}.inline-emoji{width:21px;height:21px;object-fit:contain;vertical-align:-5px;image-rendering:pixelated;margin:0 1px}.stat-row.quiet{display:block;color:#95a2ad;font-size:11px;padding:17px 18px}.stat-card.positive .stat-card-head{border-top:2px solid #80cbaa77}.stat-card.negative .stat-card-head{border-top:2px solid #ed929566}.stat-card.time .stat-card-head{border-top:2px solid #7dbde56b}.stat-card.tasks .stat-card-head{border-top:2px solid #e8be6166}.loading,.empty-state{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--muted);line-height:1.8}.empty-state{border:1px dashed var(--line);border-radius:10px;background:#ffffff02}.empty-state strong{display:block;color:#dce4e9;font-size:16px;margin-bottom:7px}.tibia-shell .portal-footer{padding-top:21px}.tibia-page .site-links a{font-size:11px}.tibia-main .error-note{color:#e2b088}.retry-button{border:1px solid var(--line);background:#1a2228;color:var(--text);padding:9px 15px;border-radius:6px;cursor:pointer;font:inherit;margin-top:16px}.statistics-grid.wide-stats{grid-template-columns:repeat(2,minmax(0,1fr))}@media(min-width:1200px){.statistics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.statistics-grid.wide-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-row{font-size:11px;padding:11px 14px;gap:5px;grid-template-columns:19px minmax(0,1fr)}.stat-card-head{padding:16px}.stat-card-head h2{font-size:12px}}@media(max-width:1050px){.tibia-header{flex-wrap:wrap;gap:19px;padding:23px 0}.boosted{order:3;width:100%;gap:36px;padding-top:6px}.tibia-header .site-links{margin-left:auto}.boosted-entry{max-width:none;min-width:0;flex:1}.boosted-sprite,.boosted-empty{width:45px;height:45px}.boosted-entry small{font-size:9px}.tibia-shell{padding:0 26px}}@media(max-width:650px){.tibia-shell{padding:0 18px}.tibia-hero{align-items:flex-start;gap:18px;padding:0 0 24px}.tibia-hero h1{font-size:24px}.tibia-hero p:not(.eyebrow){font-size:11px}.report-box{min-width:0;width:123px;padding-left:13px}.report-box strong{font-size:19px;margin:9px 0}.report-box>span:last-child{font-size:9px;line-height:1.5}.report-label{font-size:8px;letter-spacing:.6px}.tibia-main{padding-top:25px}.tibia-nav{gap:23px}.tibia-nav button{font-size:11px;padding:17px 0}.statistics-grid,.statistics-grid.wide-stats{grid-template-columns:1fr;gap:15px}.stat-row{font-size:12px}.boosted{gap:14px}.boosted-entry{gap:7px}.boosted-entry strong{font-size:11px}.boosted-entry small{font-size:8px;letter-spacing:.25px;margin-bottom:5px}.tibia-header .portal-brand{font-size:15px}.tibia-page .site-links{gap:17px}.tibia-page .site-links a{font-size:10px}.brand-mark{width:36px;height:36px;font-size:22px}.inline-emoji{width:22px;height:22px}.stat-count{font-size:8px}.tibia-shell .portal-footer{font-size:9px;line-height:1.7}.stat-card-head h2{font-size:13px}}

.creature-sprite{width:44px;height:44px;object-fit:contain;float:right;margin:0 0 2px 12px;image-rendering:pixelated}.stat-row:has(.creature-sprite){min-height:66px;align-items:center}.boss-summary{padding:20px;display:grid;grid-template-columns:minmax(0,1fr) 96px;gap:10px;align-items:start;min-height:154px}.boss-summary:not(:has(.boss-sprite)){grid-template-columns:1fr}.boss-summary h2{font-size:15px;line-height:1.6;margin:0 0 20px;color:var(--text)}.boss-summary h2 .inline-emoji{width:23px;height:23px}.boss-sprite{width:96px;height:96px;object-fit:contain;image-rendering:pixelated}.boss-details{color:#bdc7ce;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.boss-details p,.boss-loot p{margin:0 0 6px}.boss-details strong{color:#e5e9ee}.boss-details a,.boss-loot a{color:var(--blue)}.boss-loot{border-top:1px solid var(--line);margin:0 20px;padding:16px 0 14px;font-size:12px;line-height:1.9;color:#bdc7ce}.boss-loot .inline-emoji{width:28px;height:28px;vertical-align:-7px;margin:2px 3px}.boss-loot p:first-child .inline-emoji{width:23px;height:23px}.statistics-grid.boss-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:650px){.statistics-grid.boss-grid{grid-template-columns:1fr}.boss-summary{padding:18px;grid-template-columns:minmax(0,1fr) 82px}.boss-sprite{width:82px;height:82px}.boss-loot{margin:0 18px}.boss-details{font-size:12px}.creature-sprite{width:40px;height:40px}}

/* GAME_SWITCHER_V1 */
#app .game-switcher,.tibia-page .game-switcher{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #343e45;background:#11171c;border-radius:10px;flex-shrink:0}#app .game-choice,.tibia-page .game-choice{display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;min-width:86px;padding:6px 13px;border:1px solid transparent;border-radius:7px;text-decoration:none;color:#a5b0bb;font-size:12px;font-weight:600;line-height:1;transition:background .15s,color .15s,border-color .15s}#app .game-choice img,.tibia-page .game-choice img{width:24px;height:24px;object-fit:contain;flex-shrink:0;image-rendering:auto}#app .game-choice-tibia img,.tibia-page .game-choice-tibia img{image-rendering:pixelated}#app .game-choice:hover,.tibia-page .game-choice:hover{color:#eff4f7;background:#ffffff08}#app .game-choice-cs2[aria-current="page"],.tibia-page .game-choice-cs2[aria-current="page"]{color:#efc77d;background:#efc77d13;border-color:#efc77d38}#app .game-choice-tibia[aria-current="page"],.tibia-page .game-choice-tibia[aria-current="page"]{color:#9ad8b8;background:#80cbaa13;border-color:#80cbaa38}#app .game-choice:focus-visible,.tibia-page .game-choice:focus-visible{outline:2px solid #efc77d;outline-offset:3px}#app header a.brand{text-decoration:none;color:var(--text)}@media(max-width:650px){#app .game-choice,.tibia-page .game-choice{min-width:76px;padding:6px 10px;font-size:12px;gap:7px}#app .game-switcher,.tibia-page .game-switcher{padding:3px}#app .header-tools{gap:12px;align-items:center}#app .header-tools .header-state{width:100%;order:3;text-align:left}.tibia-page .site-links{display:flex;align-items:center;gap:10px}}@media(prefers-reduced-motion:reduce){#app .game-choice,.tibia-page .game-choice{transition:none}}

/* GAME_HEADER_ALIGNMENT_V1 */
#app .header-tools .header-state,.tibia-page .header-tools .header-state{width:124px;max-width:124px;font-variant-numeric:tabular-nums}.tibia-page .tibia-header{display:block;min-height:0;padding-top:0!important}.tibia-page .game-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:104px;padding:28px 0;margin:0 -8px}.tibia-page .game-topbar .portal-brand{flex-shrink:0}.tibia-page .header-tools{display:flex;align-items:center;gap:24px;min-width:0}.tibia-page .header-tools .portal-back{color:#9ca7b3;font-size:12px;text-decoration:none;white-space:nowrap;line-height:normal}.tibia-page .header-tools .portal-back:hover{color:#e8be61}.tibia-page .header-tools .header-state{flex-shrink:0;text-align:right;color:#9ca7b3;font-size:12px;line-height:normal}.tibia-page .header-tools .game-switcher{font-family:Bahnschrift,Inter,"Segoe UI",sans-serif}.tibia-page .header-game-info{margin-top:0}.tibia-page .header-tools .game-choice{font-size:12px}@media(max-width:850px){.tibia-page .game-topbar{flex-wrap:wrap;gap:18px}.tibia-page .header-tools{width:100%;justify-content:space-between;gap:14px}.tibia-page .header-tools .header-state{max-width:130px}}@media(max-width:650px){.tibia-page .game-topbar{margin:0 -2px}.tibia-page .game-topbar .portal-brand{height:35px;font-size:15px;letter-spacing:.3px}.tibia-page .game-topbar .brand-mark{width:31px;height:31px;flex-shrink:0;font-size:22px}.tibia-page .game-topbar .brand-caption{font-size:9px;letter-spacing:1.65px}.tibia-page .header-tools{gap:12px;flex-wrap:wrap}.tibia-page .header-tools .header-state,#app .header-tools .header-state{width:100%;max-width:none;order:3;text-align:left;font-size:11px}.tibia-page .header-tools .game-choice{min-width:76px;padding:6px 10px;font-size:12px}.tibia-page .header-tools .portal-back{font-size:12px}}

/* HEADER_DATE_SINGLE_LINE_V1 */
#app .header-tools .header-state,.tibia-page .header-tools .header-state{width:148px;max-width:148px;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}@media(max-width:650px){#app .header-tools .header-state,.tibia-page .header-tools .header-state{width:100%;max-width:none;white-space:nowrap}}

/* HOME_CHARACTER_BRAND_V1 */
.portal-header .home-brand,.tibia-header .home-brand,#app header .home-brand{gap:12px;letter-spacing:0;text-decoration:none}.home-brand .brand-copy{display:block;min-width:0}.home-brand .brand-copy>strong{display:block;font-size:15px;line-height:1.2;font-weight:650;letter-spacing:0;white-space:nowrap}.portal-header .home-brand .brand-mark,.tibia-header .home-brand .brand-mark,#app header .home-brand .brand-mark{width:41px;height:41px;display:grid;place-items:center;flex-shrink:0;padding:1px;overflow:hidden;border:1px solid #7e9b8140;border-radius:10px;background:#8baa7908;letter-spacing:0}.home-brand .brand-mark>img,#app header .home-brand .brand-mark>img{display:block;width:100%;height:100%;max-width:none;margin:0;object-fit:contain;image-rendering:pixelated}.portal-header .home-brand .brand-caption,.tibia-header .home-brand .brand-caption{font-size:8px;font-weight:400;letter-spacing:1.1px;margin-top:5px}.tibia-header .home-brand .brand-copy>strong{color:#edf1f5}#app header .home-brand .sub{font-size:11px;margin-top:4px;letter-spacing:0;font-weight:400}@media(max-width:650px){.portal-header .home-brand,.tibia-header .home-brand,#app header .home-brand{gap:9px}.home-brand .brand-copy>strong{font-size:14px}.portal-header .home-brand .brand-mark{width:36px;height:36px}.tibia-header .home-brand .brand-mark,#app header .home-brand .brand-mark{width:31px;height:31px;border-radius:8px}.portal-header .home-brand .brand-caption,.tibia-header .home-brand .brand-caption{font-size:8px;letter-spacing:.8px}.portal-header{column-gap:12px}}

@media(max-width:650px){.tibia-header .home-brand,#app header .home-brand{min-height:35px}}

/* Align rankings with creature sprites */
.stat-row:has(.creature-sprite){align-items:center}
.stat-row .row-text:has(.creature-sprite){position:relative;padding-inline-end:56px}
.stat-row .creature-sprite{float:none;position:absolute;inset-inline-end:0;top:50%;transform:translateY(-50%);margin:0}

/* TEST: poswiata statystyk START */
.world-scorecards:has([data-stat-view="world"][aria-pressed="true"]) > .stat-card{
 border-color:#3b5e54;
 border-top-color:#87cdb6;
 background:linear-gradient(135deg,#22362f,#1b252b 65%);
 box-shadow:0 0 16px #83cdb31a;
}
/* TEST: poswiata statystyk END */

/* Tibia: poswiata Kumpli i kolory widokow statystyk */
.friends-hub .friends-cards > .stat-card{
 border-color:#40596e;
 border-top-color:#91c4ed;
 background:linear-gradient(135deg,#243747,#1b252b 70%);
 box-shadow:0 0 14px #91c4ed15;
}
.world-scorecards .tibia-subnav button[data-stat-view="world"]{
 --view-accent:#91d7bd;--view-edge:#42675b;--view-tint:#233b34;
}
.world-scorecards .tibia-subnav button[data-stat-view="creatures"]{
 --view-accent:#edaa86;--view-edge:#81574b;--view-tint:#3e2c29;
}
.world-scorecards .tibia-subnav button[data-stat-view]{
 border:1px solid var(--view-edge);
 color:var(--view-accent);
 background:linear-gradient(125deg,var(--view-tint),#1b242b);
}
.world-scorecards .tibia-subnav button[data-stat-view][aria-pressed="true"]{
 border-color:var(--view-accent);
 background:var(--view-tint);
 box-shadow:inset 0 2px var(--view-accent);
}

/* Tibia: przyciski Kumpli i poswiata rankingu */
.friends-hub .friends-hub-tabs button[data-friends-view="stats"]{
 --friend-accent:#91c4ed;--friend-edge:#405d76;--friend-tint:#263949;
}
.friends-hub .friends-hub-tabs button[data-friends-view="rankings"]{
 --friend-accent:#c2b2ff;--friend-edge:#5a4d78;--friend-tint:#322b45;
}
.friends-hub .friends-hub-tabs button[data-friends-view="tasks"]{
 --friend-accent:#efc778;--friend-edge:#715b38;--friend-tint:#3c3224;
}
.friends-hub .friends-hub-tabs button[data-friends-view]{
 border-color:var(--friend-edge);
 background:linear-gradient(125deg,var(--friend-tint),#1b252b 85%);
}
.friends-hub .friends-hub-tabs button[data-friends-view] strong{
 color:var(--friend-accent);
}
.friends-hub .friends-hub-tabs button[data-friends-view][aria-selected="true"]{
 border-color:var(--friend-accent);
 box-shadow:inset 0 2px var(--friend-accent);
}
.world-workspace .highscore-controls{
 border:1px solid #3d6358;
 border-top-color:#87cdb6;
 border-radius:12px;
 background:linear-gradient(135deg,#22362f,#1b252b 70%);
 box-shadow:0 0 16px #83cdb31a;
}
.world-workspace:has(.highscore-controls) .highscore-table{
 box-shadow:0 0 0 1px #3d6358,0 0 16px #83cdb31a;
}
.world-workspace:has(.highscore-controls) .highscore-table thead th{
 background:#253933;
}

/* Doswiadczenie: poswiata wierszy */
.world-workspace:has(.highscore-controls) .highscore-table tbody tr{
 background:#1b252b;
}
.world-workspace:has(.highscore-controls) .highscore-table tbody tr:nth-child(even){
 background:#1e2931;
}
.world-workspace:has(.highscore-controls) .highscore-table tbody tr:hover,
.world-workspace:has(.highscore-controls) .highscore-table tbody tr:focus-within{
 background:linear-gradient(90deg,#293c36,#202b33 65%);
}
.world-workspace:has(.highscore-controls) .highscore-table tbody td{
 background:transparent;
}

/* Koło EXP Kumpli */
#friends-content > .friends-exp-wheel.stat-card{margin-top:24px;padding:18px;border-color:#41645a;border-top-color:#84cdb1;background:radial-gradient(ellipse at top left,#83cdb33a,transparent 62%),linear-gradient(145deg,#223930,#192629 70%);box-shadow:0 0 16px #83cdb318}
.friends-exp-wheel header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.friends-exp-wheel h2,.friends-exp-wheel p{margin:0 0 8px}
.friends-exp-wheel header p,.friends-exp-wheel li span{color:var(--muted)}
.friends-exp-wheel select{margin-inline-start:6px;padding:6px;border:1px solid var(--line);border-radius:6px;background:var(--panel);color:inherit}
.friends-exp-content{display:grid;grid-template-columns:minmax(120px,220px) minmax(0,1fr);gap:20px;align-items:start}
.friends-exp-content>svg{width:100%;max-width:220px;margin:auto}
.friends-exp-content ol{margin:0;padding:0;list-style:none}
.friends-exp-content li{display:grid;grid-template-columns:12px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:6px 0;border-top:1px solid var(--line)}
.friends-exp-content li a{color:var(--accent,#e8be61);font-weight:650;overflow-wrap:anywhere;text-underline-offset:3px}.friends-exp-content li a:hover,.friends-exp-content li a:focus-visible{color:#ffe1a3;text-decoration:underline}
.friends-exp-content li strong,.friends-exp-content li span{font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:650px){.friends-exp-content{grid-template-columns:1fr;gap:8px}.friends-exp-content>svg{max-width:160px}}

/* Statystyki potworow: miedziane karty */
.tibia-page .world-scorecards.wide-stats > .stat-card{
 border-color:#81574b;
 border-top-color:#edaa86;
 background:radial-gradient(ellipse at top left,#edaa8624,transparent 65%),
            linear-gradient(135deg,#362824,#1b252b 78%);
 box-shadow:0 0 16px #edaa8618;
}
.tibia-page .world-scorecards.wide-stats > .stat-card .stat-card-head{
 background:linear-gradient(110deg,#49332c,#30292a 82%);
 border-bottom-color:#684940;
}

/* Statystyki potworow: miedziane pierwsze miejsce */
.tibia-page .world-scorecards.wide-stats > .stat-card{
 --card-accent:#edaa86;
 --friend-rgb:237,170,134;
}

/* Profesje online na Vunirze */
.tibia-page .world-scorecards>.online-vocation-card{border-color:#41645a;border-top-color:#84cdb1;background:radial-gradient(ellipse at top left,#83cdb32e,transparent 65%),#192529;box-shadow:0 0 16px #83cdb318}
.online-vocation-content{padding:12px 14px}
.online-vocation-chart{position:relative;width:clamp(105px,46%,145px);margin:0 auto 8px}
.online-vocation-chart svg{display:block;width:100%}
.online-vocation-chart div{position:absolute;inset:0;display:grid;align-content:center;justify-items:center}
.online-vocation-chart strong{font-size:21px;color:#b1e6d1;font-variant-numeric:tabular-nums}
.online-vocation-chart small{color:var(--muted)}
.online-vocation-content ul{list-style:none;margin:0;padding:0}
.online-vocation-content li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 5ch;align-items:center;gap:6px;padding:6px 0;border-top:1px solid #ffffff12;font-variant-numeric:tabular-nums}
.online-vocation-content li small{text-align:right;color:var(--muted);white-space:nowrap}
.online-vocation-content p{margin:7px 0 0;color:var(--muted)}


/* KUMPLE_ROWNE_RAMKI_FINAL */
@media (min-width: 651px) {
  #friends-content .friends-cards {
    align-items: stretch !important;
  }

  #friends-content .friends-cards > .stat-card {
    align-self: stretch !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
}


/* TIBIA_LOST_EXP_RED_V2 */

/* Tylko Stracony EXP w statystykach kumpli */
#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red {
  background:
    linear-gradient(135deg,
      rgba(205,67,82,.27),
      rgba(132,35,49,.14) 75%),
    #191f25 !important;
  border:1px solid rgba(241,114,128,.65) !important;
  box-shadow:
    inset 3px 0 0 rgba(241,114,128,.85),
    0 0 20px rgba(214,67,87,.14) !important;
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red .stat-card-head {
  background:rgba(166,48,65,.20) !important;
  border-top:2px solid #f18b98 !important;
  border-bottom-color:rgba(241,114,128,.25) !important;
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red h2 {
  color:#ff9ba6 !important;
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red .stat-row {
  border-top-color:rgba(241,114,128,.14) !important;
  background:rgba(206,66,82,.035);
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red
:is(.row-number,.row-text,.row-text strong) {
  color:#f2a0a9 !important;
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red .row-text a {
  color:#ffb2bc !important;
}

#statistics.friends-hub .friends-cards
> .stat-card.tibia-lost-exp-red .stat-row:hover {
  background:rgba(225,80,98,.14) !important;
}


/* TIBIA_FRIENDS_GOLD_RED_FIX_V1 */
#statistics .stat-card.tibia-lost-exp-red,
.tibia-page .stat-card.tibia-lost-exp-red {
  border: 1px solid #d96a79 !important;
  border-top: 2px solid #ff8795 !important;
  background:
    radial-gradient(
      ellipse at top left,
      rgba(230,70,91,.25),
      transparent 75%
    ),
    linear-gradient(135deg,#38232b,#211e26 80%) !important;
  box-shadow:
    inset 3px 0 0 #e67b88,
    0 0 18px rgba(230,70,91,.18) !important;
}

#statistics .stat-card.tibia-lost-exp-red .stat-card-head,
.tibia-page .stat-card.tibia-lost-exp-red .stat-card-head {
  background: rgba(176,49,67,.18) !important;
  border-top-color: #ff8795 !important;
  border-bottom-color: #93424e !important;
}

#statistics .stat-card.tibia-lost-exp-red h2,
#statistics .stat-card.tibia-lost-exp-red .row-number,
#statistics .stat-card.tibia-lost-exp-red .row-text,
#statistics .stat-card.tibia-lost-exp-red .row-text strong,
#statistics .stat-card.tibia-lost-exp-red .row-text a {
  color: #ffa1ac !important;
}


/* TIBIA_WORLD_FRIEND_GOLD_V1 */
/* Tylko kumple w TOP 10 statystyk ogolnych Tibii */

.tibia-page #statistics .stat-row.tibia-friend-top10 {
  background:
    linear-gradient(
      90deg,
      rgba(241,190,77,.27),
      rgba(241,190,77,.10) 70%,
      rgba(241,190,77,.035)
    ) !important;
  box-shadow:
    inset 3px 0 0 #f1c76a,
    inset 0 0 20px rgba(241,190,77,.10) !important;
  border-top-color:rgba(241,190,77,.28) !important;
}

.tibia-page #statistics
.stat-row.tibia-friend-top10 .row-number,
.tibia-page #statistics
.stat-row.tibia-friend-top10 .row-text,
.tibia-page #statistics
.stat-row.tibia-friend-top10 .row-text strong {
  color:#f5d28a !important;
}

.tibia-page #statistics
.stat-row.tibia-friend-top10 .row-text a {
  color:#ffe3a4 !important;
  font-weight:750 !important;
  text-shadow:0 0 9px rgba(255,205,100,.35);
}

.tibia-page #statistics
.stat-row.tibia-friend-top10:hover {
  background:
    linear-gradient(
      90deg,
      rgba(241,190,77,.37),
      rgba(241,190,77,.13)
    ) !important;
}


/* TIBIA_LOST_EXP_SHADES_V1 */

/* Karta Stracony EXP: stonowana czerwien */
.tibia-page #statistics .stat-card.tibia-lost-exp-red {
  background:linear-gradient(145deg,#35252a,#211f25 80%) !important;
  border:1px solid #ac5360 !important;
  border-top:2px solid #eb8490 !important;
  box-shadow:0 0 15px rgba(204,70,85,.12) !important;
}

/* Naglowek */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-card-head {
  background:linear-gradient(90deg,#502a33,#30242b) !important;
  border-bottom:1px solid rgba(229,111,125,.25) !important;
}

/* Pierwszy wiersz - najmocniejsza czerwien */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:nth-child(1) {
  background:linear-gradient(90deg,rgba(225,70,85,.28),rgba(225,70,85,.07)) !important;
  box-shadow:inset 3px 0 0 #ed7e8b;
}

/* Drugi wiersz */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:nth-child(2) {
  background:linear-gradient(90deg,rgba(215,85,98,.22),rgba(215,85,98,.05)) !important;
  box-shadow:inset 3px 0 0 #d87986;
}

/* Trzeci wiersz */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:nth-child(3) {
  background:linear-gradient(90deg,rgba(188,80,94,.17),rgba(188,80,94,.04)) !important;
  box-shadow:inset 3px 0 0 #b96b77;
}

/* Pozostale wiersze - lagodny czerwony odcien */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:nth-child(n+4) {
  background:linear-gradient(90deg,rgba(164,72,84,.10),rgba(164,72,84,.02)) !important;
  box-shadow:inset 2px 0 0 rgba(193,100,113,.50);
}

/* Roznice odcieni miedzy kolejnymi wierszami */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:nth-child(even):nth-child(n+4) {
  background:linear-gradient(90deg,rgba(177,75,89,.14),rgba(177,75,89,.025)) !important;
}

/* Czytelne liczby i nicki */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .row-number {
  color:#ec8d99 !important;
}
.tibia-page #statistics .stat-card.tibia-lost-exp-red .row-text,
.tibia-page #statistics .stat-card.tibia-lost-exp-red .row-text strong {
  color:#efb7be !important;
}
.tibia-page #statistics .stat-card.tibia-lost-exp-red .row-text a {
  color:#ffa6b1 !important;
}

/* Po najechaniu */
.tibia-page #statistics .stat-card.tibia-lost-exp-red .stat-row:hover {
  background:linear-gradient(90deg,rgba(231,91,108,.29),rgba(231,91,108,.08)) !important;
}






/* TIBIA_EVENT_RIGHT_ALIGNMENT_V8 */

/* Caly pasek: boosty po lewej,
   reszta wykorzystuje wolna szerokosc. */
body.tibia-page :has(> #world-status) {
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  gap:18px !important;
  width:100% !important;
  box-sizing:border-box !important;
}

/* Rashid, Dream Court, online i event
   maja wspolny obszar do prawej krawedzi. */
body.tibia-page #world-status.tibia-event-host {
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;

  gap:18px !important;
  width:auto !important;
  min-width:0 !important;
  max-width:none !important;
  margin:0 !important;
  box-sizing:border-box !important;
}

/* Zachowanie oryginalnego wygladu
   Rashida i Dream Court. */
#world-status.tibia-event-host > .daily-entry {
  display:flex !important;
  flex:0 0 auto !important;
  flex-direction:row !important;
  align-items:center !important;
  gap:8px !important;
  min-width:max-content !important;
  width:auto !important;
  margin:0 !important;
}

/* NAPRAWA GRACZY ONLINE:
   liczba musi byc POD naglowkiem. */
#world-status.tibia-event-host > .online-status {
  display:flex !important;
  flex:0 0 auto !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:4px !important;

  min-width:95px !important;
  width:auto !important;
  margin:0 !important;
  padding-left:12px !important;

  border-left:1px solid rgba(178,200,201,.16);
  text-align:left !important;
  line-height:1.2 !important;
}

#world-status .online-status > small {
  display:block !important;
  width:auto !important;
  color:#99adb5 !important;
  font-size:9px !important;
  font-weight:700 !important;
  letter-spacing:.45px !important;
  white-space:nowrap !important;
}

#world-status .online-status > strong {
  display:block !important;
  width:auto !important;
  margin:0 !important;
  font-size:13px !important;
  line-height:1.25 !important;
  white-space:nowrap !important;
}

#world-status .online-status > strong > a {
  display:inline !important;
  color:#a9deb6 !important;
}

/* Zlota ramka na samym prawym koncu. */
#world-status.tibia-event-host > .tibia-upcoming-event {
  display:flex !important;
  flex:0 0 220px !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;

  gap:10px !important;
  width:220px !important;
  min-width:220px !important;
  max-width:220px !important;
  min-height:70px !important;
  height:auto !important;

  margin:0 0 0 auto !important;
  padding:9px 11px !important;

  border:1px solid #c59a50 !important;
  border-radius:9px !important;
  background:linear-gradient(
    115deg,
    rgba(75,58,35,.68),
    rgba(33,40,39,.88)
  ) !important;

  box-shadow:
    inset 0 1px 0 rgba(250,209,140,.08),
    0 0 9px rgba(197,154,80,.07) !important;

  color:#f0e4d0 !important;
  text-decoration:none !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

#world-status .tibia-upcoming-event:hover {
  border-color:#efc981 !important;
}

/* Celestial Torch */
#world-status .tibia-event-picture {
  display:block !important;
  flex:0 0 36px !important;
  width:36px !important;
  height:47px !important;
  min-width:36px !important;
  max-width:36px !important;
  object-fit:contain !important;
  image-rendering:pixelated;
  filter:none !important;
}

#world-status .tibia-event-symbol {
  display:block !important;
  flex:0 0 32px !important;
  width:32px !important;
  height:32px !important;
  color:#e2ba77 !important;
}

/* Teksty w ramce eventu */
#world-status .tibia-event-copy {
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  gap:3px !important;
  width:auto !important;
  min-width:0 !important;
  text-align:left !important;
  line-height:1.2 !important;
}

#world-status .tibia-event-copy small {
  display:block !important;
  color:#d9b77e !important;
  font-size:8px !important;
  font-weight:800 !important;
  letter-spacing:.25px !important;
  white-space:nowrap !important;
}

#world-status .tibia-event-copy strong {
  display:block !important;
  color:#f4d397 !important;
  font-size:12px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
  word-break:normal !important;
}

#world-status .tibia-event-copy > span {
  display:block !important;
  color:#dce3df !important;
  font-size:10px !important;
  white-space:nowrap !important;
}

#world-status .tibia-event-copy > b {
  display:block !important;
  color:#a8e2b3 !important;
  font-size:10px !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* Przy mniejszej szerokosci pasek
   moze przejsc do nastepnego rzedu. */
@media(max-width:1150px) {
  body.tibia-page :has(> #world-status) {
    flex-wrap:wrap !important;
    row-gap:14px !important;
  }

  body.tibia-page #world-status.tibia-event-host {
    flex-wrap:wrap !important;
    row-gap:12px !important;
  }

  #world-status.tibia-event-host > .tibia-upcoming-event {
    margin-left:auto !important;
  }
}

/* Telefony */
@media(max-width:650px) {
  body.tibia-page :has(> #world-status) {
    gap:12px !important;
  }

  body.tibia-page #world-status.tibia-event-host {
    flex:1 1 100% !important;
    width:100% !important;
    gap:14px !important;
  }

  #world-status.tibia-event-host > .online-status {
    padding-left:9px !important;
    min-width:85px !important;
  }

  #world-status.tibia-event-host > .tibia-upcoming-event {
    margin-left:auto !important;
    flex-basis:220px !important;
  }
}


/* CZESTI_TIBIA_MOBILE_LAYOUT_V1 */
/* Zmiany tylko dla telefonow */

@media screen and (max-width:650px) {

  /* Bez poziomego rozpychania strony */
  .tibia-page,
  .tibia-page .tibia-shell {
    max-width:100%;
    min-width:0;
  }

  .tibia-page .tibia-shell {
    padding-left:14px;
    padding-right:14px;
  }

  /* Gorny pasek - elementy moga przejsc
     do nastepnego wiersza */
  .tibia-page .game-topbar {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100%;
    min-width:0;
  }

  /* Wyszukiwarka ma pierwszenstwo
     i nie zostaje scisnieta */
  .tibia-page .profile-search {
    display:flex;
    flex:1 1 100%;
    width:100%;
    min-width:0;
    max-width:100%;
    gap:8px;
  }

  .tibia-page .profile-search input {
    flex:1 1 auto;
    width:0;
    min-width:0;
    max-width:none;
  }

  .tibia-page .profile-search button {
    flex:0 0 auto;
    white-space:nowrap;
  }

  /* CS2 i Tibia - wygodna nawigacja */
  .tibia-page .game-switcher {
    display:inline-flex;
    flex:0 0 auto;
    max-width:100%;
    margin-left:auto;
  }

  .tibia-page .game-switcher a {
    white-space:nowrap;
  }

  /* Karty informacyjne bez sztucznego
     zwezania na telefonie */
  .tibia-page .tibia-upcoming-event {
    box-sizing:border-box;
    grid-column:1 / -1;
    width:100%;
    max-width:100%;
    min-width:0;
    margin-left:0;
    margin-right:0;
    justify-self:stretch;
  }

  /* Jezeli event znajduje sie w siatce,
     jego kontener tez moze sie rozciagnac */
  .tibia-page .daily-grid:has(> .tibia-upcoming-event),
  .tibia-page .daily-status:has(> .tibia-upcoming-event),
  .tibia-page .daily-summary:has(> .tibia-upcoming-event) {
    grid-column:1 / -1;
    min-width:0;
    width:100%;
  }

  /* Zakladki przewijane palcem */
  .tibia-page .tibia-tabs,
  .tibia-page .section-tabs,
  .tibia-page .tab-nav,
  .tibia-page [role="tablist"] {
    max-width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
    touch-action:pan-x;
  }

  .tibia-page .tibia-tabs > *,
  .tibia-page .section-tabs > *,
  .tibia-page .tab-nav > *,
  .tibia-page [role="tablist"] > * {
    flex-shrink:0;
  }

  /* Tekst i karty nie wypychaja ekranu */
  .tibia-page .tibia-upcoming-event,
  .tibia-page .tibia-upcoming-event * {
    overflow-wrap:break-word;
  }

}

@media screen and (max-width:380px) {

  .tibia-page .tibia-shell {
    padding-left:10px;
    padding-right:10px;
  }

  .tibia-page .game-topbar {
    gap:9px;
  }

  .tibia-page .profile-search {
    gap:6px;
  }

}

/* CZESTI_TIBIADROME_FONT_FIX_V3 */

/* Ten sam uklad co Rashid i Dream Court */
.tibia-page .czesti-drome-status {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.tibia-page .czesti-drome-cube {
  display:block;
  width:34px;
  height:34px;
  flex:0 0 34px;
  object-fit:contain;
}

.tibia-page .czesti-drome-info {
  min-width:0;
}

/* Nie ustawiamy wlasnych rozmiarow fontu.
   Dzialaja oryginalne style daily-entry
   dla small oraz strong. */

@media(max-width:650px) {
  .tibia-page .czesti-drome-cube {
    width:30px;
    height:30px;
    flex-basis:30px;
  }
}


/* CZESTI_UNIFIED_GAME_HOVER_V1 */

/* Identyczna reakcja na najechanie na kazda gre. */
.game-switcher a,
.cz-lol-switcher-v7 a {
    box-sizing: border-box !important;
    border: 1px solid transparent;
    border-radius: 9px;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease !important;
}

.game-switcher a[href="/cs2"]:hover,
.game-switcher a[href="/cs2"]:focus-visible,
.cz-lol-switcher-v7 a[href="/cs2"]:hover,
.cz-lol-switcher-v7 a[href="/cs2"]:focus-visible {
    background: #2b2825 !important;
    border-color: #967747 !important;
    color: #f7d08c !important;
    text-decoration: none !important;
}

/* Podswietlenie aktualnie otwartej gry. */
.game-switcher a[href="/cs2"][aria-current="page"],
.cz-lol-switcher-v7 a[href="/cs2"][aria-current="page"] {
    background: #2b2825 !important;
    border-color: #967747 !important;
    color: #f7d08c !important;
}
