﻿/* Petal Arena game hub */
:root {
  --arena-bg: #0c0e14;
  --arena-card: rgba(18, 20, 28, 0.92);
  --gold: #ebd898;
  --gold-dim: #b89448;
  --gold-glow: rgba(235, 216, 152, 0.22);
  --parchment: #ede6d8;
  --parchment-muted: #a89f8f;
  --blue-team: #6ea8f5;
  --red-team: #f06a5a;
  --border-gold: rgba(184, 148, 72, 0.45);
  --font-display: "Cinzel", "Outfit", serif;
}
body.game-page { padding-top: var(--header-h); min-height: 100vh; background: var(--arena-bg); }
.game-hero { position: relative; min-height: clamp(420px, 72vh, 640px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--border-gold); }
.game-hero-bg { position: absolute; inset: 0; z-index: 0; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.game-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(8,10,16,0.94), rgba(8,10,16,0.55) 48%, rgba(8,10,16,0.82)), linear-gradient(to top, var(--arena-bg), transparent 55%); }
.game-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; padding: 3rem 0 4rem; }
.game-logo-wrap { max-width: 140px; margin-bottom: 1.25rem; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
.game-hero h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; color: var(--gold); letter-spacing: 0.04em; line-height: 1.08; margin-bottom: 0.75rem; }
.game-tagline { font-size: 1.05rem; color: var(--parchment-muted); max-width: 520px; margin-bottom: 1.75rem; }
.game-tagline strong { color: var(--parchment); font-weight: 500; }
.game-hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn-gold { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.65rem; border-radius: 8px; font-weight: 600; background: linear-gradient(180deg, #f0dfa0, #c9a84a); color: #1a1408; border: 1px solid var(--gold-dim); box-shadow: 0 4px 20px var(--gold-glow); transition: var(--transition); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--gold-glow); }
.btn-outline-gold { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.4rem; border-radius: 8px; font-weight: 500; border: 1px solid var(--border-gold); color: var(--gold); background: rgba(12,14,20,0.5); transition: var(--transition); }
.btn-outline-gold:hover { background: rgba(235,216,152,0.08); border-color: var(--gold); }
.game-hero-card { width: min(100%, 300px); padding: 1.35rem 1.5rem; background: var(--arena-card); border: 2px solid var(--border-gold); border-radius: var(--radius); }
.game-hero-card h3 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.hero-stat-row { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.9rem; }
.hero-stat-row span:first-child { color: var(--parchment-muted); }
.hero-stat-row span:last-child { font-family: var(--mono); color: var(--gold); }
.game-section { padding: 4rem 0; }
.game-section.alt { background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.section-tag-gold { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-dim); margin-bottom: 0.65rem; }
.game-section h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--parchment); margin-bottom: 1rem; }
.game-section > .container > p.lead { color: var(--parchment-muted); max-width: 640px; margin-bottom: 2rem; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.download-card { padding: 1.5rem; background: var(--arena-card); border: 1px solid var(--border-gold); border-radius: var(--radius); }
.download-card h3 { color: var(--parchment); margin-bottom: 0.35rem; }
.download-card p { font-size: 0.88rem; color: var(--parchment-muted); margin-bottom: 1rem; }
.download-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--gold-dim); margin-bottom: 1rem; }
.download-note { margin-top: 1.5rem; padding: 1rem; background: rgba(235,216,152,0.06); border: 1px solid var(--border-gold); border-radius: 8px; font-size: 0.85rem; color: var(--parchment-muted); }
.download-note code { font-family: var(--mono); color: var(--gold); background: rgba(0,0,0,0.35); padding: 0.15rem 0.4rem; border-radius: 4px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.feature-tile { padding: 1.25rem; background: var(--arena-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); }
.feature-tile h3 { font-size: 0.95rem; color: var(--gold); margin-bottom: 0.4rem; }
.feature-tile p { font-size: 0.85rem; color: var(--parchment-muted); }
.controls-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.controls-table th, .controls-table td { padding: 0.65rem 1rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.controls-table th { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; color: var(--gold-dim); }
.controls-table td:first-child { font-family: var(--mono); color: var(--gold); width: 120px; }
.controls-table td:last-child { color: var(--parchment-muted); }
.stats-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { padding: 1.15rem; background: var(--arena-card); border: 1px solid var(--border-gold); border-radius: var(--radius); }
.stat-card .label { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; color: var(--parchment-muted); margin-bottom: 0.4rem; }
.stat-card .value { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.arena-panel { background: var(--arena-card); border: 1px solid var(--border-gold); border-radius: var(--radius); padding: 1.35rem; margin-bottom: 1.25rem; }
.arena-panel h3 { font-family: var(--font-display); font-size: 0.95rem; color: var(--gold); margin-bottom: 1rem; }
.match-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.match-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.85rem 1rem; background: rgba(0,0,0,0.25); border-radius: 8px; font-size: 0.88rem; }
.match-row .result { font-family: var(--mono); font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 999px; text-transform: uppercase; }
.match-row .result.win { background: rgba(110,168,245,0.15); color: var(--blue-team); }
.match-row .result.loss { background: rgba(240,106,90,0.15); color: var(--red-team); }
.match-meta { color: var(--parchment-muted); font-size: 0.8rem; }
.stats-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.8rem; color: var(--parchment-muted); margin-bottom: 0.75rem; }
.stats-form input, .stats-form select { padding: 0.55rem 0.75rem; border-radius: 6px; border: 1px solid var(--border-gold); background: rgba(0,0,0,0.35); color: var(--parchment); font-family: var(--font); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-gate-game { text-align: center; padding: 4rem 1rem; max-width: 480px; margin: 0 auto; }
.auth-gate-game h1 { font-family: var(--font-display); color: var(--gold); margin-bottom: 0.75rem; }
.welcome-bar-game { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; padding: 1rem 1.25rem; background: rgba(235,216,152,0.06); border: 1px solid var(--border-gold); border-radius: var(--radius); }
.nav-game-link { color: var(--gold) !important; font-weight: 500; }
.empty-matches { text-align: center; padding: 2rem; color: var(--parchment-muted); list-style: none; }
@media (max-width: 900px) { .game-hero-inner, .stats-layout { grid-template-columns: 1fr; } }

.btn-signin { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid var(--border-gold); background: #131314; color: var(--parchment); font-family: var(--font); font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: var(--transition); }
.btn-signin:hover { border-color: var(--gold); }
#google-signin-btn, #gate-signin-btn { display: flex; align-items: center; justify-content: center; min-height: 40px; }
.nav-login { display: flex; align-items: center; min-height: 40px; }
