/* ═══════════════════════════════════════════════════════════════
   Daily Spin — roata zilnică (2026-08-10)
   Stil sobru, material (lemn + auriu), fără efecte de desene animate.
   ═══════════════════════════════════════════════════════════════ */

/* ── Cluster în header: „Jocuri" (switcher) + „Roata zilnică" (chip auriu) ──
      O singură familie: aceeași înălțime, rază, bizou și tipografie; ierarhie
      prin culoare (aur = primar, neutru = secundar). Ales live cu userul, 2026-08-10. */
.ds-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right: 14px;
    flex-shrink: 0;
}
/* Pe site: navul are lățime FIXĂ → chipul stă ÎN AFARA lui, absolut la dreapta
   containerului, centrat vertical (altfel strivea butoanele meniului — fix 2026-08-11) */
.ds-nav-host { position: relative; }
.ds-cluster--nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}
/* Pe site îngust chipul absolut s-ar suprapune cu meniul → dispare (roata rămâne
   accesibilă din jocuri + modalul automat) */
@media (max-width: 860px) {
    .ds-cluster--nav { display: none; }
}
.ds-hbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px 0 12px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    transition: transform .15s ease, filter .15s ease, border-color .15s ease;
    box-shadow: inset 0 1px 0 rgba(255, 235, 190, .14), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .35);
}
.ds-hbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.ds-hbtn:active { transform: translateY(0); }
.ds-hico { font-size: 17px; line-height: 1; }
.ds-hico--suit { font-size: 18px; line-height: 1; color: #d6ae66; transform: translateY(-1px); }
.ds-htxt { font-size: 13px; font-weight: 700; letter-spacing: .4px; white-space: nowrap; }

/* Roata = PRIMAR (aur pe lemn) */
.ds-hbtn--gold {
    background: linear-gradient(168deg, #32271a 0%, #241b11 55%, #1a1309 100%);
    border: 1px solid rgba(212, 175, 55, .55);
}
.ds-hbtn--gold .ds-htxt { color: #e8c96a; font-variant-numeric: tabular-nums; }
/* Licăr auriu discret — trece peste chip la ~6s, DOAR când spinul e disponibil */
.ds-hbtn--ready::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(105deg, transparent, rgba(255, 240, 200, .30), transparent);
    transform: skewX(-20deg);
    animation: dsSheen 6s linear infinite;
}
@keyframes dsSheen {
    0% { left: -60px; }
    14% { left: 115%; }
    100% { left: 115%; }
}

/* Jocuri = SECUNDAR (neutru, cu icon auriu ca liant) */
.ds-hbtn--lobby {
    background: linear-gradient(168deg, #262d38 0%, #1b212b 55%, #151a22 100%);
    border: 1px solid rgba(255, 255, 255, .14);
}
.ds-hbtn--lobby:hover { border-color: rgba(212, 175, 55, .45); }
.ds-hbtn--lobby .ds-htxt { color: #dfe5ee; }

/* ── Panoul „Jocuri" (switcher cu online live) ── */
.ds-gpanel {
    position: fixed;
    z-index: 99980;
    width: min(352px, calc(100vw - 24px));
    background: linear-gradient(168deg, #1d222b, #141821);
    border: 1px solid rgba(212, 175, 55, .4);
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 235, 190, .07);
    font-family: 'Inter', system-ui, sans-serif;
}
.ds-gp-current {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: linear-gradient(168deg, #32271a, #211809);
    border: 1px solid rgba(212, 175, 55, .55);
    border-radius: 10px;
    cursor: pointer;
}
.ds-gp-current:hover { filter: brightness(1.1); }
.ds-gp-cur-ico { font-size: 20px; }
.ds-gp-cur-name { font-size: 13.5px; font-weight: 800; color: #e8c96a; }
.ds-gp-cur-sub { font-size: 11px; color: #b9a06a; margin-top: 1px; }
.ds-gp-cur-arrow { margin-left: auto; color: #e8c96a; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ds-gp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}
.ds-gp-tile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all .15s ease;
}
.ds-gp-tile:hover {
    border-color: rgba(212, 175, 55, .5);
    background: rgba(212, 175, 55, .07);
    transform: translateY(-1px);
}
.ds-gp-ico { font-size: 17px; width: 20px; text-align: center; }
.ds-gp-name { font-size: 12.5px; font-weight: 700; color: #dfe5ee; line-height: 1.15; }
.ds-gp-online { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: #8b95a3; margin-top: 1px; }
.ds-gp-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 4px rgba(74, 222, 128, .6); }
.ds-gp-foot { text-align: center; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ds-gp-foot a { font-size: 11.5px; color: #9aa3b0; text-decoration: none; }
.ds-gp-foot a:hover { color: #e8c96a; }

/* ── Responsive butoane header ── */
/* Desktop îngust: doar iconițe (nu se calcă cu titlul jocului) */
@media (max-width: 1150px) {
    .ds-hbtn { padding: 0 11px; }
    .ds-htxt { display: none; }
}
/* Mobil: iconițe și mai compacte, în fluxul header-ului (nimic suprapus) */
@media (max-width: 991px) {
    .ds-cluster { gap: 7px; margin-right: 8px; }
    .ds-hbtn { height: 34px; padding: 0 10px; }
}

/* ── Overlay + „modal" SPAȚIAL: fără card — roata plutește peste pagina
      întunecată și încețoșată, ușor înclinată 3D (ales de user, 2026-08-11) ── */
.ds-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: radial-gradient(ellipse at 50% 38%, rgba(30, 24, 12, .45) 0%, rgba(5, 6, 10, .93) 72%);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ds-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: transparent;
    border: none;
    padding: 22px 20px 18px;
    text-align: center;
    color: #e6e9ee;
    font-family: 'Inter', system-ui, sans-serif;
}
.ds-close {
    position: absolute;
    top: 0;
    right: 4px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .45);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px;
}
.ds-close:hover { color: #fff; }
.ds-head {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8c96a;
    margin-bottom: 22px;
    letter-spacing: 2.5px;
    text-shadow: 0 2px 14px rgba(212, 175, 55, .4);
}

/* ── Roata — V9 „Aur masiv" (metal auriu periat, separatoare bronz, cifre gravate)
      Ales de utilizator din mock-ul cu 10 variante, 2026-08-10 ── */
.ds-wheel-wrap {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
    --dsr: 154px; /* raza niturilor de pe ramă (se scalează pe mobil) */
    /* plutire spațială: înclinare 3D „de masă" + umbră adâncă sub roată */
    transform: perspective(950px) rotateX(16deg);
    filter: drop-shadow(0 34px 42px rgba(0, 0, 0, .6));
}
/* Rama metalică statică din jurul roții */
.ds-rim {
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    z-index: 1;
    background: linear-gradient(168deg, #8a6226, #46320f);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 235, 190, .22), inset 0 -2px 6px rgba(0, 0, 0, .5);
}
/* Nituri aurii pe ramă, la granițele segmentelor */
.ds-stud {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f2dda6, #b8894a 55%, #7a5522);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}
.ds-wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 2;
    box-shadow: inset 0 0 24px rgba(0, 0, 0, .45), inset 0 0 4px rgba(0, 0, 0, .6);
    transform: rotate(0deg);
}
/* Luciu de lumină STATIC — deliberat în afara .ds-wheel, ca să nu se rotească */
.ds-gloss {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(165deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 26%, transparent 42%);
}
.ds-seg-label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 100%;
    transform-origin: 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
}
/* Cifre „gravate" în metal (umbră deschisă dedesubt = incizie) */
.ds-lbl {
    display: block;
    margin-top: 14px;
    margin-left: -10px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .5px;
    color: #3a2408;
    text-shadow: 0 1px 0 rgba(255, 246, 220, .35);
}
.ds-lbl-big {
    color: #2a1a05;
    font-size: 18px;
}
/* Ac metalic cu bizou */
.ds-pointer {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 26px;
    height: 30px;
    clip-path: polygon(50% 100%, 0 18%, 14% 0, 86% 0, 100% 18%);
    background: linear-gradient(180deg, #f2dda6 0%, #d6ae66 40%, #9a712f 100%);
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .55));
}
/* Medalion central cu inel dublu */
.ds-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 32%, #f2dda6, #c39a4e 45%, #8a6226 80%, #6b4318);
    border: 2px solid #7a5522;
    color: #4a2c12;
    font-size: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(122, 85, 34, .45), inset 0 0 0 5px rgba(255, 235, 190, .25);
}
/* Umbră de contact sub roata plutitoare */
.ds-contact {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 24px;
    z-index: 0;
    background: radial-gradient(ellipse, rgba(0, 0, 0, .6), transparent 70%);
    border-radius: 50%;
}

/* ── Spectacolul de final (ales complet de user, 2026-08-11) ── */
/* felia câștigătoare pulsează sub ac (în interiorul roții → rămâne aliniată) */
.ds-wedge {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
}
@keyframes dsWedgePulse {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
.ds-wedge--on { animation: dsWedgePulse .65s ease-in-out 3; }
/* steaua din butuc strălucește o dată, doar la câștig */
@keyframes dsHubShine {
    0% { transform: translate(-50%, -50%) scale(1); }
    40% { transform: translate(-50%, -50%) scale(1.18); }
    100% { transform: translate(-50%, -50%) scale(1); }
}
.ds-hub--shine { animation: dsHubShine .7s ease-out 1; }
/* niturile sclipesc în lanț cât timp roata se rotește */
@keyframes dsStudChase {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(2.1); }
}
.ds-rim--spin .ds-stud { animation: dsStudChase .8s ease-in-out infinite; }
.ds-rim--spin .ds-stud:nth-child(1) { animation-delay: 0s; }
.ds-rim--spin .ds-stud:nth-child(2) { animation-delay: .1s; }
.ds-rim--spin .ds-stud:nth-child(3) { animation-delay: .2s; }
.ds-rim--spin .ds-stud:nth-child(4) { animation-delay: .3s; }
.ds-rim--spin .ds-stud:nth-child(5) { animation-delay: .4s; }
.ds-rim--spin .ds-stud:nth-child(6) { animation-delay: .5s; }
.ds-rim--spin .ds-stud:nth-child(7) { animation-delay: .6s; }
.ds-rim--spin .ds-stud:nth-child(8) { animation-delay: .7s; }
.ds-rim--spin .ds-stud:nth-child(9) { animation-delay: .8s; }
.ds-rim--spin .ds-stud:nth-child(10) { animation-delay: .9s; }
.ds-rim--spin .ds-stud:nth-child(11) { animation-delay: 1s; }
.ds-rim--spin .ds-stud:nth-child(12) { animation-delay: 1.1s; }
/* acul răspunde rapid la „cuie" */
.ds-pointer { transition: transform .06s ease-out; }
/* lumina cade: restul modalului se întunecă în timpul rotirii */
.ds-dim { transition: opacity .4s ease; opacity: .3 !important; }
/* cifra câștigătoare sare în relief la oprire */
.ds-lbl { transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.ds-lbl--pop { transform: scale(1.35); }

/* ── Mesaje + acțiuni ── */
.ds-msg {
    min-height: 42px;
    font-size: .92rem;
    color: #c6cbd4;
    line-height: 1.45;
    margin-bottom: 10px;
}
.ds-msg .ds-count { color: #e8c96a; font-variant-numeric: tabular-nums; }
.ds-msg .ds-win { color: #4ade80; font-size: 1.15rem; }
.ds-actions { min-height: 8px; margin-bottom: 8px; }
.ds-btn {
    display: inline-block;
    border-radius: 12px;
    padding: 12px 30px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .4px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #e6e9ee;
}
.ds-btn-gold {
    background: linear-gradient(168deg, #d6ae66, #ab8038);
    border-color: #7a5522;
    color: #2a1a05;
}
.ds-btn-gold:hover { filter: brightness(1.06); }
.ds-foot {
    font-size: .78rem;
    color: rgba(255, 255, 255, .38);
    border-top: 1px solid rgba(255, 255, 255, .07);
    padding-top: 10px;
}
.ds-foot a { color: #e8c96a; text-decoration: none; }

@media (max-width: 480px) {
    .ds-wheel-wrap { width: 240px; height: 240px; --dsr: 124px; }
    .ds-head { font-size: 1.25rem; }
}
@media (max-width: 380px) {
    .ds-wheel-wrap { width: 200px; height: 200px; --dsr: 104px; }
}
