/*
 Theme Name:   Blocksy Child
 Template:     blocksy
 Description:  A child theme for Blocksy
 Author:       AFMAdmi8n
 Version:      1.0.
*/

.tour-reg-button a {
  border-color: #000000;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
}

.pods-all-fields-row-name-tour-users {
    display: none;
}

.exit-tour {
    cursor: pointer;
    color: #FF3B30;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.over-entries {
    display: grid;
    grid-template-columns: var(--grid-template-columns);
    grid-column-gap: var(--grid-columns-gap, 30px);
    grid-row-gap: var(--grid-columns-gap, 30px);
}

.over-entries a {
    background-color: #1A1A1A !important;
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
  	flex-direction: column;
    padding: var(--card-inner-spacing, 30px);
  	border: var(--card-border, none);
  	box-shadow: var(--theme-box-shadow);
}

.over-entries a:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.over-entries a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(120deg, #00C853, #FFD60A);
  -webkit-mask: 
    linear-gradient(#000 0 0) content-box, 
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.over-entries a:hover::before {
  opacity: 1;
}

.bsui .card {
    background-color: unset !important;
}

h2.uwp-user-title {
    color: #00C853 !important;
}

h2.uwp-user-title a {
    color: #FFD60A !important;
}

.users-info-block p {
    margin-block-end: 5px;
}
.uwp-account-notifications, .uwp-account-privacy,
.uwp-account-form .acc-birth, .uwp-account-form .acc-gender, .uwp-account-form .acc-status {
    display: none !important;
}
.tournament-wrapper{
    margin-top: 30px;
    display:flex;
    flex-direction:column;
    gap:30px;
    font-family: Arial, sans-serif;
}

/* GROUP BLOCK */
.group-block{
    background:#0f172a;
    padding:16px;
    border-radius:12px;
    color:#fff;
}

/* GROUP TITLE */
.group-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:10px;
    color:#38bdf8;
}

/* TABLE */
.group-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:10px;
    background:#1e293b;
}

.group-table th{
    text-align:left;
    padding:10px;
    background:#334155;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:0.5px;
}

.group-table td{
    padding:10px;
    border-top:1px solid #334155;
    font-size:14px;
}

/* ROW HOVER */
.group-table tr:hover td{
    background:#0b1220;
}
.games{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:20px;
}

.game-row{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    gap:10px;

    background:#1e293b;
    padding:10px 14px;
    border-radius:10px;

    max-width:700px;
    margin:0 auto; /* center on desktop */
}

.team{
    font-weight:600;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.score{
    text-align:center;
    font-weight:700;
    color:#38bdf8;
    min-width:60px;
}
.table-scroll{
    width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
}
.winner {
    background: #00c853;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    padding: 8px;
}

.users-info-block,
.profile-section {
    background: #111;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.profile-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #00c853;
    cursor: pointer;
    padding: 0;
}

.profile-content {
    display: none;
    margin-top: 16px;
}

.profile-section.active .profile-content {
    display: block;
}
.stats-tabs {
    display: flex;
    gap: 16px;
    margin: 18px 0;
    flex-wrap: wrap;
}

.stats-tab {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #FFD60A;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.2s ease;
}
.stats-tab:hover {
    opacity: 0.7;
}

.stats-tab.active {
    text-decoration: underline;
}

.stats-panel {
    display: none;
}

.stats-panel.active {
    display: block;
}
.ranking-list {
    list-style: decimal;
    padding-left: 24px;
}

.ranking-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ranking-list a {
    font-weight: 600;
    text-decoration: none;
}

.ranking-list span {
    color: #00c853;
    font-weight: 700;
}
.ranking-list li:nth-child(1) span { color: gold; }
.ranking-list li:nth-child(2) span { color: silver; }
.ranking-list li:nth-child(3) span { color: #cd7f32; }

@media (max-width: 768px){

    .group-table{
        min-width: 700px; /* forces scroll instead of breaking layout */
        font-size:12px;
    }

    .group-table th,
    .group-table td{
        padding:6px;
        white-space:nowrap;
    }

    .group-title{
        font-size:16px;
    }
}
@media (max-width: 768px){

    .game-row{
        grid-template-columns: 1fr 50px 1fr;
        font-size:13px;
        padding:8px 10px;
    }

    .score{
        font-size:14px;
    }
}