h2 {
  gap: 10px;
  background-color: #004287;
  width: 100%;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  -moz-box-align: center;
  align-items: center;
  color: rgb(250, 251, 250);
}
.profile-container {
    display: flex;
    gap: 2px;
    width: 100%;
    align-items: flex-start;
}

.profile-left {
    display: flex;
    align-items: left;
    gap: 5px;
	width: 180px;
	padding-left: 10px;
}

.profile-right {
	flex-direction: column;
    gap: 2px;
	align-self: flex-start;
	display:flex;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 100%;
    object-fit: cover;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 52px;
    font-weight: bold;
}
/* --- PROFILE HEADER WRAPPER --- */
.protitle {
  display: flex;
  gap: 10px;
  background-color: #004287;
  width: 100%;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 16px;
  -moz-box-align: center;
  align-items: center;
  color: rgb(250, 251, 250);
}
.profile-header {
    max-width: 1280px;
    background: #ffffff;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: left;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
	padding: 10px 0px;
}

/* LEFT SIDE */
.profile-header-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f2a900;
	display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 48px;
}
.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}
.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.avatar-option input {
    display: none;
}

.avatar-option img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
}

.avatar-option input:checked + img {
    border-color: #2080ff;
}
/* USER INFO */
.profile-info .profile-username {
    font-size: 42px;
    font-weight: 800;
    margin: 0;
	color: #00458c;
}

.profile-tag {
    font-size: 12px;
    color: #444;
    margin-top: 4px;
	font-style:italic;
}

.profile-country img {
    width: 28px;
    margin-top: 10px;
}

.profile-socials i {
    font-size: 22px;
    margin-right: 12px;
    color: #777;
    transition: 0.2s ease;
}

.profile-socials i:hover {
    color: #000;
}

/* RIGHT SIDE - CR DATA */
.profile-header-right {
    display: flex;
    gap: 35px;
}

.cr-stat {
    text-align: right;
}

.cr-stat-label {
    font-size: 14px;
    color: #777;
}

.cr-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.cr-stat-value.trophy {
    color: #e9b300;
}
/* Stat Blocks */
.stat-block {
    text-align: left;
	flex: 1; /* Distributes available space equally */
    padding: 2px;
    margin: 1px;
  }


.stat-block label {
    font-size: 16px;
    color: #6b6b6b;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    display: flex;
  gap: 5px;
  align-items: center;
}
.stat-value-clan {
    font-size: 17px;
    font-weight: 800;
}
.clan-role {
    font-size: 12px;
    color: #aaa;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-trophies {
    color: #e8b300;
}
.profile-clan-badge {
    width: 80px;
    height: 80px;
    margin-top: 10px;
}

.profile-clan-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.clan-badge-img {
    width: 50px;
    object-fit: contain;
    image-rendering: auto;
    display: block;
    margin: 0 10px 6px 0px;
}
.trophy-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    image-rendering: auto;
    display: block;
    margin: 0 10px 6px 0;
}
.badge-block {
    text-align: center;
	align-items: center;
	display:flex;
}
.trophy-block {
    text-align: left;
	display:flex;
	flex-flow: row wrap;
}
.badge-placeholder {
    width: 64px;
    height: 64px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    margin: 0 auto 6px auto;
}
.profile-extra {
    margin-top: 5px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.09);
}

.profile-section-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #c02d25;
}

.profile-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
}

.info-row label {
    font-weight: bold;
	font-size: 16px;
    color: #555;
}

.profile-social-list {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    font-size: 26px;
    color: #444;
    transition: 0.2s;
}

.social-icon:hover {
    color: #f55;
}
.player-info-header {
	width:100%;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.player-info-header .player-flag {
    width: 32px;
    height: 22px;
    object-fit: cover;
    border-radius: 3px;
}

.player-info-header .player-name {
    font-size: 24px;
    font-weight: 700;
}

.player-info-header .player-age {
    font-size: 20px;
    opacity: 0.8;
}
.profile-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
	padding: 10px 5px;
}

.profile-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
}

.profile-age {
    color: #666;
    font-size: 18px;
}
.profile-social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.profile-social-links .social-icon {
    font-size: 24px;
    text-decoration: none;
    color: #666;
    transition: 0.2s;
}

.profile-social-links .social-icon:hover {
    color: #111;
    transform: scale(1.15);
}

.social-icon.instagram { color: #E1306C; }
.social-icon.tiktok    { color: #000000; }
.social-icon.youtube   { color: #FF0000; }
.social-icon.twitch    { color: #6441A5; }

.form-group {
	flex-direction: row;
}
.tag {
    width: 200px;
    height: 100px;
    object-fit: contain;
    image-rendering: auto;
    display: block;
    margin: 0 10px 6px 0;
}
/* Wrapper for hover behavior */
/* --- Tag Icon Wrapper --- */
.tag-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Tag icon next to label */
.tag-icon {
    width: 22px;
    height: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: 0.2s;
}
.tag-icon:hover {
    opacity: 1;
}

/* --- Tooltip Container --- */
.tag-hover {
    position: relative;
    display: inline-block;
}

/* The popup bubble */
.tag-tooltip {
    position: absolute;
    width: 180px;
    padding: 10px;
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    z-index: 20;
    display: none;
    text-align: center;
}

/* Image inside popup */
.tag-tooltip img {
    width: 400px;
    margin-bottom: 6px;
}

/* Show tooltip on hover */
.tag-hover:hover .tag-tooltip {
    display: block;
}

/* Tooltip little arrow */
.tag-tooltip::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 15px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    transform: rotate(45deg);
}
.prolink {
    font-size:18px;
	color: #ABA8A8;
}
.profile-section {
    margin-top: 25px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

.ard-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.battle-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f5f5f5;
    margin-bottom: 6px;
    border-radius: 6px;
    font-size: 14px;
}
.battle-item {
    background: #f8f8f8;
    padding: 12px;
    border-radius: 8px;
}


.battle-type { font-weight: bold; }
.battle-result {
    font-size: 15px;
}

.battle-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 8px;
}
.battle-mode {
    color: #444;
    font-size: 15px;
}
.battle-deck {
    display: flex;
    gap: 5px;
}
.battle-win { border-left: 4px solid #4CAF50; }
.battle-draw { border-left: 4px solid #FFC107; }
.battle-draw { border-color: #FFC107; }
.battle-time {
    margin-top: 6px;
    font-size: 12px;
    color: #777;
}
.battle-score {
    font-size: 15px;
}
.deck-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.deck-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}
.deck-row.opponent {
    opacity: 0.8;
}
/* ============================
   RoyaleAPI-Style Battle Cards
   ============================ */

.battle-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 1px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    border-left: 6px solid #ddd;
}

.battle-card.battle-win {
    border-left-color: #4CAF50;
	border-radius: 10px;
    padding: 8px;
}
.battle-card2.battle-win {
    border-left-color: #1CA2FF;
	border-radius: 10px;
    padding: 8px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.battle-card.battle-loss {
    border-left-color: #d9534f;
	border-radius: 10px;
    padding: 8px;
}
.battle-card2.battle-loss {
    border-left:4px solid #f41671;
	border-radius: 10px;
    padding: 8px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}
.battle-card.battle-draw {
    border-left-color: #aaa;
	border-radius: 10px;
    padding: 8px;
}

.battle-card-header .mode {
    color: #444;
    font-weight: 700;
	align-content: center;
  display: flex;
  gap: 8px;
}

.battle-card-header .result {
    text-transform: uppercase;
}

.battle-card-header .result::before {
    content: "• ";
}

.battle-card.battle-win .result {
    color: #4CAF50;
	border-radius: 10px;
    padding: 8px;
}

.battle-card.battle-loss .result {
    color: #d9534f;

}

.battle-card.battle-draw .result {
    color: #777;
}

/* Deck Layout */
.battle-decks {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-card .lvl {
    position: absolute;
    bottom: 2px;
    right: 3px;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 4px;
}
/* VS Label */
.vs {
    font-weight: 700;
    font-size: 18px;
    color: #444;
}

/* Footer Time */
.battle-footer {
    margin-top: 5px;
    font-size: 13px;
    color: #777;
}
.battle-player-name {
    font-weight: bold;
	margin-bottom: 13px;
}
.battle-log-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.battle-log-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.battle-card.win { border-color: #4caf50; }
.battle-card.loss { border-color: #e53935; }
.battle-card.draw { border-color: #bdbdbd; }

.battle-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.battle-result.win { color: #4caf50; }
.battle-result.loss { color: #e53935; }
.battle-result.draw { color: #bdbdbd; }

.battle-decks {
    display: flex;
    justify-content: space-between;
    align-items: center;
	max-width:1280px;
}

.deck-column {
    width: 40%;
}

.player-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.deck {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.lvl {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,0.7);
    padding: 2px 4px;
    font-size: 10px;
    border-radius: 3px;
}

.vs {
    font-weight: bold;
    color: #bbb;
    font-size: 18px;
}
.battle-draw { border-left: 4px solid #FFC107; }

.battle-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
	justify-content: space-between;
	font-weight: 700;
}
.battle-icon {
    width: 28px;
}
.live-status {
    font-size: 0.9rem;
    margin-top: 4px;
}
.profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.tab-btn {
    padding: 10px 18px;
    background: #222;
    border: 1px solid #444;
    color: #ccc;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
}

.tab-btn.active {
    background: #0a84ff;
    color: white;
    border-color: #0a84ff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Deck container */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    justify-items: center;
    padding: 10px 0;
}

/* Each card wrapper */
.deck-card {
    width: 70px;
    position: relative;
    text-align: center;
}
.deck-card.has-evo {
}
.deck-card.unused:hover {
    opacity: 0.7;
}
.deck-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Level badge */
.card-level {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
}

/***************************
    MOBILE FIXES
***************************/
@media (max-width: 480px) {

    .deck-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 5px;
    }

    .deck-card {
        width: 30px;   /* Shrinks cards */
    }

    .card-level {
        font-size: 11px;
        padding: 1px 4px;
    }
	.avatar-preview{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 10px;
}
}
/* ----------------------------
   MOBILE FIXES FOR DECK LAYOUT
-----------------------------*/
@media (max-width: 600px) {

    /* Make the battle tabs stack nicely */
    .profile-tabs {
        flex-direction: column;
        gap: 8px;
    }
    .profile-tab {
        width: 100%;
        text-align: center;
    }

    /* Battle card container */
    .battle-card {
        padding: 10px;
    }

    /* Deck sections become vertical on small screens */
    .battle-decks {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
	}

    /* Player name center */
    .battle-player-name {
        text-align: center;
        font-size: 14px;
    }

    /* Deck wrapper becomes flexible & wraps */
    .deck {
        justify-content: center;
        gap: 4px;
    }

    .deck-card span.lvl {
        font-size: 11px;
    }

    /* VS text */
    .vs {
        font-size: 16px;
        margin: 6px 0;
        text-align: center;
    }

    .battle-side {
        width: 48%;
    }
    /* Favorite deck block mobile-optimized */
    .favorite-deck-block {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .favorite-deck-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .favorite-deck-cards img {
        width: 50px !important;
    }

}
@media (max-width: 768px) {
    .deck-card .lvl {
        font-size: 10px;
    }
}
@media (max-width: 768px) {
    .battle-card-header {
        font-size: 12px;
        padding: 4px 6px;
    }

    .battle-player-name {
        font-size: 12px;
        text-align: center;
    }

    .vs {
        font-size: 14px;
        margin: 0 4px;
    }
}
/* Container */
.favdeck-container {
    margin: 24px 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Title */
.favdeck-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #c02d25;
}

/* Deck tile */
.favdeck-tile {
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}
/* No hover animation */
/*.favdeck-tile:hover {
    transform: none;
    border-color: #1f2937; /* same as default *
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);  same as normal 
}

/* Header row */
.favdeck-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.favdeck-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.favdeck-label {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.favdeck-subtitle {
    font-size: 0.85rem;
    color: #d1d5db;
}

/* Elixir + copy button */
.favdeck-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.favdeck-elixir {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.favdeck-elixir-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6a6f76;
}

.favdeck-elixir-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b14cf3; /* gold-ish */
}

/* Copy button */
.favdeck-copy-btn {
    border: 1px solid #2563eb;
    background: linear-gradient(to right, #1d4ed8, #3b82f6);
    color: #f9fafb;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
}

.favdeck-copy-btn:hover {
    background: linear-gradient(to right, #2563eb, #60a5fa);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.favdeck-copy-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.favdeck-copy-btn-success {
    background: linear-gradient(to right, #16a34a, #22c55e) !important;
    border-color: #22c55e !important;
}

/* Body row */
.favdeck-body-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Deck grid (cards) */
.favdeck-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
}

.favdeck-card {
    aspect-ratio: 3 / 4;
    position: relative;
}

.favdeck-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    /*background: radial-gradient(circle at 30% 0, #bfbdbd, #fffafa); */
    display: flex;
    align-items: center;
    justify-content: center;
}

.favdeck-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Stats */
.favdeck-stats {
    font-size: 0.8rem;
    color: #d1d5db;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favdeck-stat-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.favdeck-stat-line span {
    color: #000;
}

.favdeck-stat-line strong {
    color: #9ca3af;
}
.dicon{
  width: 18px;
}
.discord {
	padding-bottom: 10px;
}
/* Responsive tweaks */
@media (max-width: 900px) {
    .favdeck-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .favdeck-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .favdeck-header-right {
        align-self: stretch;
        justify-content: space-between;
        width: 100%;
    }

    .favdeck-elixir {
        align-items: flex-start;
    }
}
.country-select {
    position: relative;
    user-select: none;
}

.country-selected {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.country-options {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
}

.country-option {
    padding: 8px 10px;
    cursor: pointer;
}

.country-option:hover {
    background: #f0f0f0;
}
.stat-value2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 700;
}
.leagueblock {
  padding: 10px 5px;
}

.season-match-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px 12px;
    align-items: center;
}

.grid-header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #aaa;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.grid-cell {

}

.grid-cell.opponent a {
    font-weight: 600;
    text-decoration: none;
}

.grid-cell.opponent a:hover {
    text-decoration: underline;
}

/* Result colors */
.result2.win     { color: #4caf50; }
.result2.loss    { 
color: #f44336;
font-weight: 600;
 }
.result2.draw    { color: #ffc107; }
.result2.pending { color: #999; }
.result2.forfeit { color: #ff9800; }

.score3 {
    font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
    .season-match-grid {
		
    }

    .grid-header:nth-child(3),
    .grid-header:nth-child(4),
    .grid-cell.date {

    }
}
.profile-grid-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.profile-history-grid {
    display: grid;
    grid-template-columns: 1.4fr 1.2fr 0.8fr;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.matches-grid {
    grid-template-columns: 0.2fr 1.5fr 0.9fr 1fr 0.9fr 0.7fr 0.9fr;
    min-width: 920px;
}

.profile-history-grid .grid-header {
    background: #181818;
    color: #ccc;
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.profile-history-grid .grid-cell {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    min-height: 56px;
}


.profile-history-grid .grid-cell a {
    text-decoration: none;
}

.history-league-cell {
    gap: 10px;
}

.history-league-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.record-cell {
    font-weight: 700;
}
.match-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.match-type-pill.league {
    background: rgba(255, 215, 0, 0.12);
    color: #000;
}

.match-type-pill.tournament {
    background: rgba(120, 170, 255, 0.14);
    color: #9ec1ff;
}
@media (max-width: 768px) {
    .profile-history-grid .grid-header,
    .profile-history-grid .grid-cell {
        padding: 10px 12px;
        font-size: 14px;
    }

    .history-league-icon {
        width: 22px;
        height: 22px;
    }

    .match-type-pill {
        min-width: 78px;
        padding: 5px 8px;
        font-size: 11px;
    }

    .profile-grid-scroll::-webkit-scrollbar {
        height: 8px;
    }
    .matches-grid {
    grid-template-columns: 0.2fr 0.9fr 0.5fr 1fr 0.9fr 0.7fr 0.9fr;
    }
}
.match-mode-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-mode-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .match-mode-icon img {
        width: 24px;
        height: 24px;
    }
}
.profile-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 16px;
}

.profile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.profile-badge-icon {
    width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.badge-type-special {
    
    
}

.badge-type-staff {
    background: rgba(90, 170, 255, 0.12);
    border-color: rgba(90, 170, 255, 0.30);
}

.badge-type-supporter {
    background: rgba(255, 120, 200, 0.12);
    border-color: rgba(255, 120, 200, 0.30);
}

.badge-type-achievement {
    
    
}

.badge-type-seasonal {
    background: rgba(180, 140, 255, 0.12);
    border-color: rgba(180, 140, 255, 0.28);
}

@media (max-width: 768px) {
    .profile-badges-wrap {
        gap: 4px;
    }

    .profile-badge-pill {
        padding: 7px 5px;
        font-size: 12px;
    }

    .profile-badge-icon {
        width: 80px;
    }
}
.rating-locked {
    opacity: 0.85;
    font-size: 14px;
}

.rating-locked small {
    display: block;
    font-size: 12px;
    opacity: 0.75;
    margin-top: 4px;
}
.supporter-icon {
    width: 22px;

}