:root {
  --ink:#f8f3ff; --muted:#bcb0cc; --surface:#211333; --surface-2:#2c1942;
  --purple:#8c4dff; --pink:#ff3d9d; --gold:#ffc857;
  --line:rgba(255,255,255,.12); --shadow:0 24px 70px rgba(0,0,0,.38);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:1.5rem; }
body {
  margin:0; color:var(--ink); line-height:1.5;
  background:radial-gradient(circle at 10% 10%,rgba(140,77,255,.18),transparent 30rem),radial-gradient(circle at 90% 30%,rgba(255,61,157,.14),transparent 28rem),#0e0817;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
button,a { font:inherit; } button { color:inherit; } img { display:block; max-width:100%; }
.section-shell { width:min(1180px,calc(100% - 2rem)); margin-inline:auto; }
.hero { position:relative; display:grid; min-height:100svh; place-items:center; align-content:center; overflow:hidden; padding:4rem 1rem; text-align:center; }
.hero__glow { position:absolute; z-index:-1; width:38rem; height:38rem; border-radius:50%; background:rgba(140,77,255,.32); filter:blur(100px); }
.hero__logo { width:min(320px,70vw); max-height:260px; margin-bottom:1.25rem; object-fit:contain; }
.eyebrow { margin:0 0 .55rem; color:var(--gold); font-size:.8rem; font-weight:850; letter-spacing:.18em; text-transform:uppercase; }
h1,h2 { margin:0; font-weight:950; letter-spacing:-.045em; line-height:.96; text-transform:uppercase; }
h1 { max-width:900px; font-size:clamp(3rem,9vw,7rem); } h2 { font-size:clamp(2.35rem,6vw,4.8rem); }
.hero__copy { max-width:620px; margin:1.4rem auto 2rem; color:var(--muted); font-size:clamp(1rem,2vw,1.25rem); }
.primary-button { border:0; border-radius:999px; padding:1rem 1.6rem; color:#150b21; background:linear-gradient(135deg,var(--gold),#ff8f3d); box-shadow:0 12px 36px rgba(255,200,87,.24); cursor:pointer; font-weight:900; transition:transform 180ms ease,box-shadow 180ms ease; }
.primary-button:hover { transform:translateY(-3px); box-shadow:0 16px 42px rgba(255,200,87,.36); }
.main-menu { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; padding-block:4rem; }
.main-menu a { min-height:118px; display:grid; place-items:center; padding:1.2rem; border:1px solid var(--line); border-radius:1.25rem; color:var(--ink); background:linear-gradient(145deg,rgba(44,25,66,.92),rgba(26,15,40,.92)); box-shadow:var(--shadow); font-weight:850; text-align:center; text-decoration:none; transition:border-color 180ms ease,transform 180ms ease; }
.main-menu a:hover { border-color:rgba(255,200,87,.65); transform:translateY(-4px); }
.players-section,.content-section { padding-block:5rem; }
.section-heading { margin-bottom:2.25rem; text-align:center; } .section-heading>p:last-child { margin-bottom:0; color:var(--muted); }
.player-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:2rem 1.4rem; align-items:start; }
/* The card owns the full height, so its positioned faces cannot overlap League Standings. */
.flip-card { position:relative; width:100%; height:500px; margin:0; padding:0; border:0; border-radius:1.5rem; outline:0; background:transparent; cursor:pointer; perspective:1200px; -webkit-tap-highlight-color:transparent; }
.flip-card__inner { position:relative; display:block; width:100%; height:100%; border-radius:inherit; transform-style:preserve-3d; transition:transform 700ms cubic-bezier(.2,.8,.2,1),filter 250ms ease; }
.flip-card:hover .flip-card__inner,.flip-card:focus-visible .flip-card__inner { filter:drop-shadow(0 20px 24px rgba(140,77,255,.32)); transform:translateY(-7px) rotateY(0); }
.flip-card.flipped .flip-card__inner,.flip-card.flipped:hover .flip-card__inner,.flip-card.flipped:focus-visible .flip-card__inner { filter:drop-shadow(0 20px 30px rgba(255,61,157,.34)); transform:translateY(-7px) rotateY(180deg); }
.flip-card:focus-visible { box-shadow:0 0 0 4px var(--gold); }
.flip-card__face { position:absolute; inset:0; display:flex; width:100%; height:100%; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:inherit; background:linear-gradient(160deg,var(--surface-2),var(--surface)); box-shadow:var(--shadow); backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.flip-card.flipped .flip-card__back { backface-visibility:visible; -webkit-backface-visibility: visible; }
.flip-card__front { padding:.85rem; }
.flip-card__front img { width:100%; height:355px; border-radius:1rem; background:rgba(255,255,255,.04); object-fit:contain; }
.flip-card__back { transform:rotateY(180deg); } .flip-card__back img { width:100%; height:100%; object-fit:contain; display:block; }
.player-name { margin-top:.9rem; font-size:1.55rem; font-weight:950; letter-spacing:.08em; line-height:1; text-align:center; text-transform:uppercase; }
.player-title { margin-top:.35rem; color:var(--gold); font-size:.86rem; font-weight:800; text-align:center; }
.flip-hint { margin-top:auto; color:var(--muted); font-size:.72rem; font-weight:750; letter-spacing:.1em; text-align:center; text-transform:uppercase; }
.content-section { border-top:1px solid var(--line); }
.coming-soon { display:grid; min-height:230px; place-items:center; align-content:center; gap:.75rem; border:1px dashed rgba(255,255,255,.22); border-radius:1.5rem; color:var(--muted); background:rgba(255,255,255,.025); text-align:center; }
.coming-soon span { font-size:3rem; } footer { padding:4rem 1rem; color:var(--muted); text-align:center; } footer a { color:var(--gold); font-weight:800; }
@media (max-width:900px) { .main-menu,.player-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .main-menu,.player-grid { grid-template-columns:1fr; } .flip-card { height:min(500px,142vw); max-height:500px; } .players-section,.content-section { padding-block:4rem; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; } }


/* ==========================
   LEAGUE TABLE
========================== */

#leagueTable{
    max-width:1000px;
    margin:0 auto;
}

.league-table{
    width:100%;
    border-collapse:collapse;
    border-radius:20px;
    overflow:hidden;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
    box-shadow:var(--shadow);
    border:1px solid var(--line);
}

.league-table thead tr{
    background:linear-gradient(90deg,var(--purple),var(--pink));
}

.league-table th{
    background:transparent;

    padding:22px;

    text-align:center;

    font-size:1.2rem;

    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;

}

.league-table td{

    padding:22px;

    text-align:center;

    font-size:1.25rem;

    font-weight:700;

    border-top:1px solid rgba(255,255,255,.08);

}

.league-table tbody tr{

    transition:.25s;

}

.league-table tbody tr:hover{

    background:rgba(255,255,255,.06);

    transform:scale(1.01);

}

.league-table td:nth-child(2){

    text-align:left;

    font-size:1.4rem;

    font-weight:900;

}

.league-table td:first-child{

    font-size:1.5rem;

    font-weight:900;

}

.league-table td:nth-child(3){

    color:var(--gold);

    font-size:1.6rem;

    font-weight:900;

}

.leader{
    background: rgba(255,200,87,.12);
}

.league-player-button{
    appearance:none;
    border:none;
    background:none;
    padding:0;
    color:inherit;
    font:inherit;
    font-weight:900;
    text-align:left;
    cursor:pointer;
    transition:color .15s ease, opacity .15s ease;
}

.league-player-button:hover,
.league-player-button:focus-visible{
    color:var(--gold);
    outline:none;
}

.player-results-modal{
    width:min(760px,100%);
    text-align:left;
}

.player-results-summary{
    margin:0 0 1.25rem;
    color:var(--muted);
    font-weight:700;
}

.player-results-table-wrap{
    overflow-x:auto;
    border:1px solid var(--line);
    border-radius:1rem;
    background:rgba(255,255,255,.02);
}

.player-results-table{
    width:100%;
    border-collapse:collapse;
}

.player-results-table thead tr{
    background:linear-gradient(90deg,var(--purple),var(--pink));
}

.player-results-table thead th{
    padding:1rem 1.1rem;
    border-bottom:1px solid var(--line);
    background:transparent;
    font-size:.8rem;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
    text-align:left;
}

.player-results-table tbody td{
    padding:1rem 1.1rem;
    border-top:1px solid rgba(255,255,255,.08);
    font-size:1rem;
    font-weight:700;
}

.player-results-table tbody tr:hover{
    background:rgba(255,255,255,.04);
}

/* ==========================
   GAME LIBRARY TABLE
========================== */

#gameLibraryTable{
    max-width:1000px;
    margin:0 auto;
}

.game-table-wrapper{
    max-height:625px;
    overflow-x:hidden;
    overflow-y:auto;
    border-radius:20px;
    box-shadow:var(--shadow);
    border:1px solid var(--line);
}

.game-table{
    width:100%;
    border-collapse:collapse;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
}

.game-table-wrapper .game-table{
    border-radius:0;
    box-shadow:none;
    border:none;
}

.game-table thead th{
    position:sticky;
    top:0;
    z-index:1;
}

.game-table thead{
    background:linear-gradient(90deg,var(--purple),var(--pink));
}

.game-table th{
    padding:18px 22px;
    text-align:left;
    font-size:1rem;
    font-weight:900;
    letter-spacing:.06em;
    text-transform:uppercase;
    cursor:pointer;
    user-select:none;
    white-space:nowrap;
    transition:background .2s;
}

.game-table th:hover{
    background:rgba(255,255,255,.1);
}

.game-table th.sorted{
    color:var(--gold);
}

.game-table td{
    padding:18px 22px;
    font-size:1.05rem;
    font-weight:700;
    border-top:1px solid rgba(255,255,255,.08);
}

.game-table tbody tr{
    transition:.25s;
}

.game-table tbody tr:hover{
    background:rgba(255,255,255,.06);
}

@media (max-width:620px){
    .game-table-wrapper{
        max-height:455px;
    }

    .game-table th,
    .game-table td{
        padding:12px 14px;
        font-size:.9rem;
    }

    .league-table th,
    .league-table td{
        padding:12px 10px;
        font-size:.8rem;
    }

    .league-table td:nth-child(2){
        font-size:.95rem;
    }

    .league-table td:first-child{
        font-size:1rem;
    }

    .league-table td:nth-child(3){
        font-size:1.05rem;
    }
}

#championDisplay{

display:flex;

justify-content:center;

}

.champion-card{

width:600px;

padding:40px;

text-align:center;

border-radius:30px;

background:linear-gradient(135deg,#3d225f,#1c122d);

box-shadow:0 0 40px rgba(255,200,87,.3);

}

.champion-card img{

width:220px;

margin:auto;

}

.champion-card h2{

font-size:3rem;

margin:20px 0 0;

}

.champion-card h3{

color:gold;

}

.champion-crown{

font-size:5rem;

animation:float 3s ease-in-out infinite;

}

@keyframes float{

0%{transform:translateY(0);}

50%{transform:translateY(-10px);}

100%{transform:translateY(0);}

}

/* ==========================
   PAUL.EXE BUTTON
========================== */

.exe-button{

    margin-top:40px;

    padding:18px 40px;

    font-size:1.2rem;

    font-weight:900;

    letter-spacing:.08em;

    color:white;

    background:#8b0000;

    border:3px solid #ff4444;

    border-radius:14px;

    cursor:pointer;

    transition:.25s;

}

.exe-button:hover{

    transform:scale(1.08);

    background:#d60000;

    box-shadow:0 0 30px red;

}

/* ==========================================
   Session Chronicles
========================================== */

.chronicle-card{

    background:#20152f;

    border:2px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:32px;

    margin:40px 0;

    box-shadow:0 15px 40px rgba(0,0,0,.25);

}

.chronicle-title{

    text-align:center;

    margin-bottom:30px;

}

.chronicle-title h2{

    color:#fff;

    margin:10px 0;

}

.chronicle-section{

    margin-top:24px;

}

.chronicle-section h3{

    color:#ffcb5c;

    margin-bottom:12px;

}

.chronicle-section ul{

    padding-left:20px;

}

.chronicle-section li{

    margin:6px 0;

}

.chronicle-section p{

    line-height:1.8;

}

blockquote{

    border-left:4px solid #ffcb5c;

    margin:0;

    padding-left:18px;

    font-style:italic;

    color:#ddd;

}

/* ==========================================
   Chronicle Interaction
========================================== */

.chronicle-card{

    cursor:pointer;

    user-select:none;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}

.chronicle-card:hover{

    transform:translateY(-4px);

    border-color:rgba(255,200,87,.35);

}

.chronicle-card.open{

    border-color:rgba(255,200,87,.6);

    box-shadow:
        0 0 30px rgba(255,200,87,.15),
        0 20px 45px rgba(0,0,0,.35);

}

.chronicle-toggle{

    margin-top:28px;

    padding-top:20px;

    border-top:1px solid rgba(255,255,255,.08);

    text-align:center;

    color:var(--gold);

    font-weight:800;

    letter-spacing:.08em;

    text-transform:uppercase;

}

.chronicle-toggle span{

    transition:.25s;

}

.chronicle-content{

    max-height:0;

    overflow:hidden;

    opacity:0;

    transition:
        max-height .45s ease,
        opacity .3s ease,
        margin-top .3s ease;

}

.chronicle-content.open{

    max-height:2500px;

    opacity:1;

    margin-top:30px;

}

/* ==========================================
   Homepage Chronicles Button
========================================== */

.chronicles-home{

    display:flex;

    justify-content:center;

    margin-top:40px;

}

.chronicles-home .primary-button{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:.75rem;

    width:min(600px,100%);

    min-height:90px;

    padding:0 2.5rem;

    text-align:center;

    text-decoration:none;

    font-size:1.15rem;

    font-weight:900;

    letter-spacing:.08em;

    text-transform:uppercase;

    line-height:1.2;

}

.chronicles-home .primary-button span{

    display:block;

    flex:1;

    text-align:center;

}


/* ==========================================
   Winner Portrait Cards
========================================== */

.winner-grid{

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:20px;

    margin:20px 0 30px;

}

.winner-card{

    width:150px;

    padding:18px;

    border-radius:20px;

    background:linear-gradient(160deg,var(--surface-2),var(--surface));

    border:2px solid rgba(255,255,255,.08);

    box-shadow:0 15px 35px rgba(0,0,0,.25);

    text-align:center;

    transition:.25s;

}

.winner-card:hover{

    transform:translateY(-6px);

    border-color:var(--gold);

    box-shadow:
        0 0 20px rgba(255,200,87,.25),
        0 18px 35px rgba(0,0,0,.35);

}

.winner-card img{

    width:90px;

    height:90px;

    margin:0 auto 14px;

    border-radius:50%;

    border:4px solid var(--gold);

    object-fit:cover;

    background:#111;

}

.winner-card span{

    display:block;

    font-size:.95rem;

    font-weight:900;

    line-height:1.3;

}

@media(max-width:620px){

    .winner-card{

        width:130px;

    }

    .winner-card img{

        width:75px;

        height:75px;

    }

}

/* ==========================================
   GAME PICKER / SPIN THE WHEEL
========================================== */

.game-library-actions{
    display:flex;
    justify-content:center;
    margin-top:1.5rem;
}

body.modal-open{
    overflow:hidden;
}

.modal-overlay{
    position:fixed;
    inset:0;
    z-index:1000;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:1.5rem;
    background:rgba(8,4,14,.72);
    backdrop-filter:blur(4px);
}

.modal-overlay[hidden]{
    display:none;
}

.modal{
    position:relative;
    width:min(680px,100%);
    max-height:90vh;
    overflow-y:auto;
    padding:2.5rem;
    border:1px solid var(--line);
    border-radius:1.5rem;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
    box-shadow:var(--shadow);
    text-align:center;
}

.modal-close{
    position:absolute;
    top:1rem;
    right:1rem;
    width:2.25rem;
    height:2.25rem;
    border:1px solid var(--line);
    border-radius:50%;
    background:rgba(255,255,255,.04);
    color:var(--ink);
    font-size:1rem;
    cursor:pointer;
    transition:border-color .15s ease;
}

.modal-close:hover{
    border-color:var(--pink);
}

.game-picker{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    gap:1rem;
    align-items:center;
    margin:1.75rem 0;
    text-align:left;
}

.game-picker-column h3{
    margin:0 0 .6rem;
    font-size:.85rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--muted);
}

.game-picker-list{
    display:flex;
    flex-direction:column;
    gap:.4rem;
    height:280px;
    margin:0;
    padding:.5rem;
    overflow-y:auto;
    list-style:none;
    border:1px solid var(--line);
    border-radius:1rem;
    background:rgba(255,255,255,.03);
}

.game-picker-list li{
    padding:.6rem .75rem;
    border-radius:.6rem;
    font-weight:700;
    cursor:pointer;
    transition:background .15s ease;
}

.game-picker-list li:hover{
    background:rgba(255,255,255,.06);
}

.game-picker-list li.picked{
    background:rgba(140,77,255,.35);
    box-shadow:0 0 0 1px var(--purple) inset;
}

.game-picker-empty{
    color:var(--muted);
    text-align:center;
    cursor:default!important;
}

.game-picker-arrows{
    display:flex;
    flex-direction:column;
    gap:.6rem;
}

.arrow-button{
    width:2.75rem;
    height:2.75rem;
    border:1px solid var(--line);
    border-radius:50%;
    background:rgba(255,255,255,.04);
    color:var(--ink);
    font-size:1.1rem;
    cursor:pointer;
    transition:border-color .15s ease,transform .15s ease;
}

.arrow-icon--down,
.arrow-icon--up{
    display:none;
}

.arrow-button:hover{
    border-color:var(--gold);
    transform:scale(1.05);
}

.spin-button{
    width:100%;
}

.spin-button:disabled{
    opacity:.4;
    cursor:not-allowed;
}

.wheel-view{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:1.5rem;
    padding:1rem 0;
}

.wheel-wrapper{
    position:relative;
    width:min(320px,80vw);
    aspect-ratio:1;
}

.wheel-pointer{
    position:absolute;
    top:50%;
    right:-14px;
    transform:translateY(-50%);
    z-index:2;
    color:var(--gold);
    font-size:1.75rem;
}

.wheel{
    position:relative;
    width:100%;
    height:100%;
    border-radius:50%;
    border:6px solid var(--ink);
    box-shadow:var(--shadow);
    overflow:hidden;
    transform:rotate(0deg);
}

.wheel-label{
    position:absolute;
    top:50%;
    left:50%;
    width:50%;
    height:0;
    transform-origin:0 0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.wheel-label span{
    display:inline-block;
    max-width:100px;
    overflow:hidden;
    color:#fff;
    font-size:.75rem;
    font-weight:800;
    text-align:center;
    white-space:nowrap;
    text-overflow:ellipsis;
    text-shadow:0 1px 3px rgba(0,0,0,.6);
}

.wheel-result{
    padding:1rem 0;
}

.wheel-result h2{
    margin:.75rem 0 1.5rem;
    color:var(--gold);
    font-size:clamp(2rem,6vw,3.2rem);
}

#confettiCanvas{
    position:fixed;
    inset:0;
    z-index:1100;
    pointer-events:none;
}

@media(max-width:620px){

    .modal{
        width:95vw;
    }

    .game-picker{
        grid-template-columns:1fr;
    }

    .game-picker-arrows{
        flex-direction:row;
        justify-content:center;
    }

    .game-picker-list{
        height:180px;
    }

    .arrow-icon--right,
    .arrow-icon--left{
        display:none;
    }

    .arrow-icon--down,
    .arrow-icon--up{
        display:inline;
    }

}

/* ==========================================
   PLAYER DICE ROLL
========================================== */

.dice-fab{
    position:fixed;
    right:1.5rem;
    bottom:1.5rem;
    z-index:2000;
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:50%;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
    box-shadow:var(--shadow);
    color:var(--ink);
    font-size:2rem;
    line-height:1;
    cursor:pointer;
    transition:transform .2s ease,border-color .2s ease;
}

.dice-fab:hover{
    border-color:var(--gold);
    transform:translateY(-3px) scale(1.06);
}

.dice-overlay{
    z-index:2100;
}

.dice-modal{
    text-align:center;
}

.dice-stage{
    display:flex;
    justify-content:center;
    padding:2.5rem 0;
    perspective:900px;
}

.dice-cube{
    position:relative;
    width:180px;
    height:180px;
    transform-style:preserve-3d;
    transform:rotateX(0deg) rotateY(0deg);
    cursor:pointer;
}

.dice-face{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    border:2px solid var(--ink);
    border-radius:1rem;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
    box-shadow:inset 0 0 30px rgba(0,0,0,.4);
    backface-visibility:hidden;
}

.dice-face img{
    width:70px;
    height:70px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid var(--gold);
    background:#111;
}

.dice-face span{
    font-size:.85rem;
    font-weight:900;
    letter-spacing:.05em;
    text-transform:uppercase;
}

.dice-face--front{ transform:translateZ(90px); }
.dice-face--back{ transform:rotateY(180deg) translateZ(90px); }
.dice-face--right{ transform:rotateY(90deg) translateZ(90px); }
.dice-face--left{ transform:rotateY(-90deg) translateZ(90px); }
.dice-face--top{ transform:rotateX(90deg) translateZ(90px); }
.dice-face--bottom{ transform:rotateX(-90deg) translateZ(90px); }

.dice-result{
    margin-top:1.5rem;
    color:var(--gold);
    font-size:clamp(1.8rem,5vw,2.6rem);
    font-weight:950;
    text-transform:uppercase;
}

@media(max-width:480px){

    .dice-cube{
        width:140px;
        height:140px;
    }

    .dice-face--front{ transform:translateZ(70px); }
    .dice-face--back{ transform:rotateY(180deg) translateZ(70px); }
    .dice-face--right{ transform:rotateY(90deg) translateZ(70px); }
    .dice-face--left{ transform:rotateY(-90deg) translateZ(70px); }
    .dice-face--top{ transform:rotateX(90deg) translateZ(70px); }
    .dice-face--bottom{ transform:rotateX(-90deg) translateZ(70px); }

}

/* ==========================================
   COIN FLIP
========================================== */

.coin-fab{
    position:fixed;
    right:1.5rem;
    bottom:calc(1.5rem + 64px + .75rem);
    z-index:2000;
    width:64px;
    height:64px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    border-radius:50%;
    background:linear-gradient(160deg,var(--surface-2),var(--surface));
    box-shadow:var(--shadow);
    color:var(--ink);
    font-size:2rem;
    line-height:1;
    cursor:pointer;
    transition:transform .2s ease,border-color .2s ease;
}

.coin-fab:hover{
    border-color:var(--gold);
    transform:translateY(-3px) scale(1.06);
}

.coin-overlay{
    z-index:2100;
}

.coin-modal{
    text-align:center;
}

.coin-stage{
    display:flex;
    justify-content:center;
    padding:2.5rem 0;
    perspective:900px;
}

.coin{
    position:relative;
    width:180px;
    height:180px;
    border-radius:50%;
    transform-style:preserve-3d;
    transform:rotateY(0deg);
    cursor:pointer;
}

.coin-face{
    position:absolute;
    inset:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:.25rem;
    border-radius:50%;
    border:4px solid #ffe9a8;
    background:radial-gradient(circle at 35% 30%,#ffe9a8,var(--gold) 55%,#b9852c 100%);
    box-shadow:inset 0 0 20px rgba(0,0,0,.35),var(--shadow);
    backface-visibility:hidden;
    color:#3a2405;
}

.coin-face--tails{
    transform:rotateY(180deg);
}

.coin-letter{
    font-size:3.5rem;
    font-weight:950;
    line-height:1;
}

.coin-label{
    font-size:.8rem;
    font-weight:800;
    letter-spacing:.1em;
    text-transform:uppercase;
}

.coin-result{
    margin-top:1.5rem;
    color:var(--gold);
    font-size:clamp(1.8rem,5vw,2.6rem);
    font-weight:950;
    text-transform:uppercase;
}

@media(max-width:480px){

    .coin{
        width:140px;
        height:140px;
    }

    .coin-letter{
        font-size:2.6rem;
    }

}
