/*! Built: 2026-01-03 07:54:36 | Source: C:\laragon\www\camunite\css\v5/src/pages/games.css */
/**
 * CSS-V5 GAMES PAGES
 * Page-only imports (core excluded). Build will inline, not minify.
 */
/* === Inlined from: ../../../03-components/chat-roulette.css === */
/* ===================================================================
   CHAT ROULETTE - CSS-v2
   ===================================================================
   Styles for the Chat Roulette page (/chat-roulette/)
   
   REUSE STRATEGY:
   - Uses universal classes: .page-hero, .content-box, .sidebar
   - Only page-specific elements get custom classes
   - All values use CSS tokens from tokens.css
   
   CREATED: November 11, 2025
   =================================================================== */

/* ===== PAGE-LEVEL STYLES ===== */

body.chat-roulette-page {
	background: var(--bg-primary);
	color: var(--text-primary);
}

body.chat-roulette-page a {
	color: var(--index-accent);
	transition: color 0.2s ease;
}

body.chat-roulette-page a:hover,
body.chat-roulette-page a:focus {
	color: var(--index-accent-strong);
}

[data-theme="dark"] body.chat-roulette-page {
	background: var(--dark-bg-primary);
	color: var(--text-primary);
}

/* ===== CHAT ROULETTE STAGE ===== */

.chat-roulette-stage {
	display: flex;
	flex-direction: column;
	gap: clamp(1.5rem, 3vw, 2.5rem);
}

@media (min-width: 992px) {
	.chat-roulette-stage {
		flex-direction: row;
		align-items: flex-start;
	}
}

/* ===== WHEEL AREA ===== */

.chat-roulette-wheel-area {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-lg);
	flex: 0 0 auto;
}

@media (min-width: 992px) {
	.chat-roulette-wheel-area {
		flex: 0 0 min(45%, 560px);
	}
}

.chat-roulette-wheel {
	width: min(92vw, 560px);
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	cursor: pointer;
	transition: transform 0.2s ease;
	border-radius: var(--radius-full);
	overflow: hidden;
}

.chat-roulette-wheel:hover {
	transform: scale(1.02);
}

.chat-roulette-wheel:focus {
	outline: 3px solid var(--accent-primary);
	outline-offset: 4px;
}

.chat-roulette-wheel--sidebar {
	width: 220px !important;
	height: 220px !important;
	aspect-ratio: 1 / 1;
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

/* Ensure canvas inside renders correctly */
.chat-roulette-wheel--sidebar canvas {
	width: 100% !important;
	height: 100% !important;
	display: block;
}

@media (max-width: 991px) {
	.chat-roulette-wheel {
		width: min(85vw, 440px);
	}
}

@media (max-width: 575px) {
	.chat-roulette-wheel {
		width: min(90vw, 360px);
	}
}

/* ===== STATUS MESSAGE ===== */

.chat-roulette-status {
	text-align: center;
	font-size: clamp(0.95rem, 2vw, 1.1rem);
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
	padding: var(--spacing-md) var(--spacing-lg);
	background: var(--bg-secondary);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	min-height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

[data-theme="dark"] .chat-roulette-status {
	background: var(--surface-glass);
	border-color: var(--border-subtle);
	color: var(--text-primary);
}

/* ===== BENEFITS SECTION ===== */

.chat-roulette-benefits {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-md);
}

.chat-roulette-benefits h2 {
	margin: 0 0 var(--spacing-sm);
	font-size: clamp(1.35rem, 2.5vw, 1.8rem);
	font-weight: 700;
	color: var(--index-accent);
	line-height: 1.3;
}

.chat-roulette-benefits p {
	margin: 0;
	font-size: clamp(0.95rem, 1.8vw, 1.05rem);
	line-height: 1.65;
	color: var(--text-primary);
}

[data-theme="dark"] .chat-roulette-benefits p {
	color: var(--text-secondary);
}

.chat-roulette-benefits ul {
	list-style: none;
	margin: var(--spacing-md) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.chat-roulette-benefits li {
	position: relative;
	padding-left: clamp(1.5rem, 3vw, 2rem);
	font-size: clamp(0.9rem, 1.8vw, 1rem);
	line-height: 1.6;
	color: var(--text-primary);
}

[data-theme="dark"] .chat-roulette-benefits li {
	color: var(--text-secondary);
}

.chat-roulette-benefits li::before {
	content: '→';
	position: absolute;
	left: 0;
	top: 0;
	font-size: 1.2em;
	font-weight: 700;
	color: var(--index-accent);
}

/* ===== SIDEBAR HIGHLIGHT SECTION ===== */

.sidebar__section--highlight {
	background: var(--surface-glass);
	border: 1px solid var(--border-default);
	border-radius: var(--radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-md);
}

[data-theme="dark"] .sidebar__section--highlight {
	background: var(--overlay-light);
	border-color: var(--border-subtle);
}

.sidebar__section--highlight .sidebar__heading {
	color: var(--index-accent);
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: var(--spacing-md);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */

@media (max-width: 991px) {
	.chat-roulette-stage {
		gap: clamp(1.25rem, 2.5vw, 2rem);
	}

	.chat-roulette-benefits h2 {
		font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	}
}

@media (max-width: 575px) {
	.chat-roulette-wheel-area {
		gap: var(--spacing-md);
	}

	.chat-roulette-status {
		font-size: 0.9rem;
		padding: var(--spacing-sm) var(--spacing-md);
	}

	.chat-roulette-benefits li {
		padding-left: 1.25rem;
		font-size: 0.88rem;
	}
}




/* Page-specific styles */
body.games-page {
    background: var(--bg-primary);
}

/* Game container - centered, max width */
.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem);
}

/* Game header */
.game-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.game-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-heading);
    margin: 0 0 0.5rem;
}

.game-header__subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
}

/* Game board */
.game-board {
    background: var(--surface-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-elevated);
}

/* Game controls */
.game-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.game-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.game-button:hover {
    background: var(--accent-primary-hover);
    transform: translateY(-2px);
}

.game-button--secondary {
    background: var(--chip-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.game-button--secondary:hover {
    background: var(--chip-bg-hover);
    border-color: var(--accent-primary);
}

/* Score/Stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.game-stat {
    text-align: center;
}

.game-stat__value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);
}

.game-stat__label {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cam Battle specific */
.battle-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.battle-vs {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);
    text-shadow: 0 0 10px var(--accent-primary);
}

.battle-contestant {
    text-align: center;
    padding: 1rem;
    background: var(--chip-bg);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.battle-contestant:hover {
    border-color: var(--accent-primary);
    transform: scale(1.02);
}

.battle-contestant.is-winner {
    border-color: var(--success);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
}

.battle-contestant img {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.battle-contestant__name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

/* Leaderboard */
.game-leaderboard {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.game-leaderboard__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-heading);
    margin-bottom: 1rem;
    text-align: center;
}

.game-leaderboard__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-leaderboard__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.game-leaderboard__item:hover {
    background: var(--chip-bg);
}

.game-leaderboard__rank {
    font-size: 1.25rem;
    min-width: 2rem;
}

.game-leaderboard__item:nth-child(1) .game-leaderboard__rank { color: gold; }
.game-leaderboard__item:nth-child(2) .game-leaderboard__rank { color: silver; }
.game-leaderboard__item:nth-child(3) .game-leaderboard__rank { color: #cd7f32; }

.game-leaderboard__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.game-leaderboard__name {
    flex: 1;
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.game-leaderboard__score {
    font-weight: var(--font-weight-bold);
    color: var(--accent-primary);
}

