:root {
    --gold: #dcbf87;
    --gold-dark: #bc9c6d;
    --black: #0a0a0a;
    --dark: #161616;
    --font: "gamay", sans-serif;
    --font-display: "acier-bat-noir", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background:
        linear-gradient(rgba(10, 10, 10, 0.78), rgba(10, 10, 10, 0.78)),
        url('/images/homepage/hero/SoccerStadium2-blurry4.png') center / cover no-repeat;
    min-height: 100vh;
    color: var(--gold);
    font-family: var(--font);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*** HEADER ***/

.hub-header {
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 191, 135, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
}

.hub-header img {
    height: 60px;
    width: auto;
}

/*** MAIN ***/

.hub-main {
    width: 100%;
    max-width: 440px;
    padding: 96px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/*** PLAYER SHOWCASE ***/

.player-showcase {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-top: 10px;
}

.player-spotlight {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 300px;
    filter: drop-shadow(0 0 40px rgba(220, 191, 135, 0.2));
}

#playerImage {
    max-height: 300px;
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

#playerImage[src=""] {
    opacity: 0;
}

.player-identity {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.player-name {
    font-family: var(--font-display);
    font-size: 36px;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}

.player-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.player-flag {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.player-country {
    font-size: 13px;
    color: var(--gold-dark);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.player-number {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--gold);
}

.character-dropdown {
    background: #111;
    border: 1px solid var(--gold-dark);
    border-radius: 20px;
    color: var(--gold);
    font-family: var(--font);
    font-size: 13px;
    padding: 7px 32px 7px 18px;
    cursor: pointer;
    max-width: 300px;
    width: 100%;
    text-align: center;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23dcbf87' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.character-dropdown:focus {
    outline: none;
    border-color: var(--gold-dark);
}

.character-dropdown option {
    background: #1a1a1a;
    color: var(--gold);
}

/*** ACTION BUTTONS ***/

.hub-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hub-btn-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.hub-btn-row .hub-btn {
    flex: 1;
    font-size: 14px;
}

.hub-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 28px;
    font-family: "gamay-variable", sans-serif;
    font-weight: 700;
    font-variation-settings: 'wght' 700, 'wdth' 100;
    font-style: italic;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s, transform 0.1s;
    text-align: center;
}

.hub-btn:active {
    transform: scale(0.97);
}

.hub-btn--primary {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #e8d4a8 0%, #dcbf87 45%, #bc9c6d 100%);
    color: #000;
}

.hub-btn--primary > span {
    position: relative;
    z-index: 2;
}

.hub-btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    /* Cut-line reflection, matching the gold gloss pills */
    background: linear-gradient(140deg,
        rgba(255, 255, 255, 0) 10px,
        rgba(255, 255, 255, 0.30) 50%,
        rgba(255, 255, 255, 0) 50.5%);
    pointer-events: none;
}

.hub-btn--primary:hover {
    filter: brightness(1.1);
}

.hub-btn--secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold-dark);
    height: 52px;
}

.hub-btn--secondary:hover {
    background: rgba(220, 191, 135, 0.08);
    border-color: var(--gold);
}

.hub-btn--ghost {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    height: 48px;
    font-size: 14px;
    letter-spacing: 1px;
}

.hub-btn--ghost:hover {
    background: rgba(220, 191, 135, 0.08);
    border-color: var(--gold);
}

/*** NO CHARACTER STATE ***/

.no-character {
    position: fixed;
    inset: 0;
    background: var(--black);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px;
    text-align: center;
}

.no-character p {
    font-size: 16px;
    color: var(--gold-dark);
    max-width: 260px;
    line-height: 1.5;
}

.no-character .hub-btn {
    max-width: 280px;
}
