/* Default (Light Mode) */
.sponsor-badge {
	position: absolute;
    top: 12px;
    right: 16px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    margin-bottom: 5px;
    padding: 2px 6px;
	background: rgba(247, 247, 247, 0.92);
    color: var(--app-text-subtle);
    font-size: 0.59375rem;
    font-weight: 500;
    border-radius: 9999px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}

.partner-badge-inline {
    display: inline-block;
    margin-left: 4px;
    height: 15px;
    width: 15px;
    flex-shrink: 0;
    cursor: pointer;
    vertical-align: middle;
}

.partner-badge-inline svg {
    pointer-events: none;
}

.partner-badge-inline svg path {
    fill: var(--ghost-accent-color);
}

.tile.sponsor:hover:not(.details-expanded) .sponsor-badge {
    color: var(--app-accent);
    border-color: var(--app-accent);
    transform: scale(0.97);
    transform-origin: top right;
    transition: color 0.15s ease, border-color 0.15s ease;
}


/* Pinned bottom strip on hosting-sponsor tiles. The tile has
   `position: relative` + `overflow: hidden`, so absolute positioning
   bleeds the strip to the rounded bottom-corner edges automatically.
   Tile padding-bottom is enlarged on .tile.hosting-sponsor (in tiles.css)
   to reserve `--partner-tagline-height` for the strip. */
.partner-tagline-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    min-height: var(--partner-tagline-height);
    padding: 3px 12px;
    /* Round bottom corners to match the tile (the tile's overflow:hidden
       handles this automatically by default, but on hover the tile uses
       overflow:visible — the explicit radius keeps the strip clipped). */
    border-radius: 0 0 17px 17px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    /* Faint wash of the tile's accent color — distinguishes the strip by hue
       rather than brightness so it stays subtle but reads as "different." */
    background: color-mix(in srgb, var(--app-accent) 6%, transparent);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    transition: background 0.15s ease, border-top-color 0.15s ease, color 0.15s ease;
}

.partner-tagline-container:hover {
    background: color-mix(in srgb, var(--app-accent) 12%, transparent);
    border-top-color: rgba(0, 0, 0, 0.12);
}

.partner-tagline-container:hover .partner-tagline-text {
    color: var(--app-accent);
}

.partner-tagline-text {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--app-text-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.partner-tagline-image {
    height: 10px;
    width: auto;
    max-width: 100%;
    margin: 0 !important;
    filter: brightness(1.1);
    flex-shrink: 1;
    min-width: 0;
    display: block;
    object-fit: contain;
}

/* Dark Mode */
html[data-color-scheme='dark'] {
	
	.sponsor-badge {
		color: rgba(255, 255, 255, 0.5);
		background: rgba(28, 32, 38, 0.92);
		border-color: rgba(255, 255, 255, 0.15);
	}

	.partner-tagline-container {
		border-top-color: rgba(255, 255, 255, 0.07);
		background: color-mix(in srgb, var(--app-accent) 10%, transparent);
	}

	.partner-tagline-container:hover {
		background: color-mix(in srgb, var(--app-accent) 18%, transparent);
		border-top-color: rgba(255, 255, 255, 0.16);
	}

	.partner-tagline-container:hover .partner-tagline-text {
		color: var(--app-accent);
	}

	.partner-tagline-text {
		color: rgba(245, 245, 245, 0.8);
	}

}

/* 1080p screens */
@media (max-width: 1080px) {

	.sponsor-badge {
        font-size: 0.71875rem;
        padding: 1px 6px;
        backdrop-filter: none;
    }

    .partner-badge-inline {
        height: 13px;
        width: 13px;
    }

}

/* Mobile (768px and below) */
@media (max-width: 768px) {

    .partner-badge-inline {
        height: 21px;
        width: 21px;
    }

    .partner-tagline-container {
        padding: 8px 12px;
    }

    .partner-tagline-text {
        font-size: 0.8125rem !important;
        white-space: normal;
    }

}

/* Tooltip */
#app-tooltip {
    position: fixed;
    z-index: 99999;
    pointer-events: none;
    padding: 4px 10px;
    background: var(--app-text);
    color: #f5f5f5;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: normal;
    max-width: 260px;
    text-align: center;
    line-height: 1.5;
    opacity: 0;
    transition: opacity 0.08s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#app-tooltip.visible {
    opacity: 1;
}