/* ============================================================
   ÜNİTERCİH 360 — Fuar çekilişleri
   1) Yönetim sayfaları (kurulum, liste, tutanak)
   2) Sahne ekranı (projeksiyon / tam ekran)
   ============================================================ */

/* ---------- 1) Yönetim ---------- */

.raffle-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--brand-700);
    border-color: var(--brand-700);
    color: #fff;
    overflow: hidden;
    position: relative;
}
.raffle-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 179, 1, .35), transparent 70%);
    pointer-events: none;
}
.raffle-hero .btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); position: relative; z-index: 1; }
.raffle-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffd166;
}
.raffle-hero__title { margin: .35rem 0 .2rem; font-size: 1.35rem; color: #fff; }
.raffle-hero__sub { margin: 0; color: var(--brand-200); font-size: .92rem; }

.raffle-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0;
}
.raffle-stat {
    background: #fff;
    border: 1px solid var(--ink-200);
    border-radius: 14px;
    padding: .9rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.raffle-stat__label { font-size: .8rem; color: var(--ink-500); font-weight: 600; }
.raffle-stat__value { font-size: 1.6rem; color: var(--brand-700); line-height: 1.1; }

.raffle-pool { border: 0; padding: 0; margin: 0; min-width: 0; }
.raffle-pool__options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.raffle-pool__option { position: relative; cursor: pointer; }
.raffle-pool__option input { position: absolute; opacity: 0; inset: 0; }
.raffle-pool__card {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    height: 100%;
    padding: .85rem 1rem .85rem 2.6rem;
    border: 1.5px solid var(--ink-200);
    border-radius: 12px;
    background: var(--ink-50);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    position: relative;
}
.raffle-pool__card::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--ink-400);
    background: #fff;
}
.raffle-pool__card strong { color: var(--ink-900); font-size: .95rem; }
.raffle-pool__card small { color: var(--ink-500); font-size: .82rem; }
.raffle-pool__option input:checked + .raffle-pool__card {
    border-color: var(--brand-600);
    background: var(--brand-50);
    box-shadow: 0 0 0 3px rgba(60, 81, 128, .12);
}
.raffle-pool__option input:checked + .raffle-pool__card::before {
    border-color: var(--brand-600);
    background: radial-gradient(circle, var(--brand-600) 45%, #fff 50%);
}
.raffle-pool__option input:focus-visible + .raffle-pool__card { outline: 2px solid var(--brand-500); outline-offset: 2px; }

.raffle-pool__options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.raffle-pool__card--media { flex-direction: row; align-items: center; gap: .75rem; }
.raffle-pool__card--media > span { display: flex; flex-direction: column; gap: .2rem; }
.raffle-prize-thumb {
    width: 46px;
    height: 46px;
    flex: none;
    padding: 4px;
    border-radius: 10px;
    background: var(--brand-700);
}
.raffle-upload { margin-top: .75rem; }

/* Canlı yayın planlama (form + liste) */
.raffle-broadcast .field__check { margin-bottom: .6rem; }
.raffle-broadcast__fields { padding: .9rem 1rem; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--ink-200); }
.raffle-broadcast__fields[hidden] { display: none; }
.raffle-broadcast__fields .field__input { max-width: 280px; }
.raffle-schedule { position: relative; display: inline-block; }
.raffle-schedule summary { list-style: none; cursor: pointer; }
.raffle-schedule summary::-webkit-details-marker { display: none; }
.raffle-schedule__form {
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-width: 260px;
    padding: .9rem;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--ink-200);
    box-shadow: 0 14px 40px rgba(15, 23, 42, .18);
    text-align: left;
    white-space: normal;
}
.raffle-upload[hidden] { display: none; }
.raffle-facts__prize { display: inline-flex; align-items: center; gap: .6rem; }
.raffle-facts__prize img { width: 40px; height: 40px; object-fit: contain; padding: 3px; border-radius: 8px; background: var(--brand-700); }

.raffle-summary {
    padding: .8rem 1rem;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: .92rem;
}
.raffle-summary.is-error { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-600); }
.raffle-summary:empty { display: none; }
.raffle-submit[disabled] { opacity: .5; cursor: not-allowed; }

/* Tutanak */
.raffle-report__doc {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-600);
    margin-bottom: .25rem;
}
.raffle-report__actions { flex-wrap: wrap; }
.raffle-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem 1.25rem;
    margin: 1rem 0 1.5rem;
    padding: 1rem 1.1rem;
    background: var(--ink-50);
    border: 1px solid var(--ink-200);
    border-radius: 12px;
}
.raffle-facts dt { font-size: .75rem; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.raffle-facts dd { margin: .15rem 0 0; color: var(--ink-900); font-size: .93rem; }
.raffle-facts__wide { grid-column: 1 / -1; }
.raffle-hash { font-size: .78rem; word-break: break-all; color: var(--ink-700); }
.raffle-report__group { margin: 1.25rem 0 .6rem; font-size: 1rem; color: var(--brand-700); }
.raffle-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #fff4d6;
    color: #8a5a00;
    font-weight: 700;
    border: 1px solid #f5d27a;
}
.raffle-rank--reserve { background: var(--brand-50); color: var(--brand-600); border-color: var(--brand-200); }
.raffle-report__back { margin: 1.25rem 0 0; font-size: .9rem; }
.raffle-signatures { display: none; }

.raffle-setup p { margin: 0 0 .5rem; }
.raffle-setup p:last-child { margin-bottom: 0; }
.raffle-setup__error {
    margin: 0 0 .6rem;
    padding: .6rem .8rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--accent-100);
    color: var(--accent-600);
    font-size: .82rem;
    white-space: pre-wrap;
    word-break: break-word;
}

@media (max-width: 760px) {
    .raffle-stats { grid-template-columns: 1fr; }
    .raffle-pool__options, .raffle-pool__options--3 { grid-template-columns: 1fr; }
    .raffle-hero { flex-direction: column; align-items: flex-start; }
}

@media print {
    .site-header, .site-footer, .dash-side, .dash-side-toggle, .dash-page__top,
    .raffle-report__actions, .raffle-report__back, .flash, [data-dash-overlay] { display: none !important; }
    .dash-layout { display: block !important; }
    .dash-page, .dash-content { padding: 0 !important; margin: 0 !important; }
    .raffle-report { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
    .raffle-report .panel-table-wrap { overflow: visible !important; }
    .raffle-report__table th, .raffle-report__table td { font-size: 10pt; padding: .35rem .45rem; }
    .raffle-signatures {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-top: 3.5rem;
    }
    .raffle-signatures div { border-top: 1px solid #000; padding-top: .35rem; text-align: center; font-size: 10pt; }
}

/* ---------- 2) Sahne ---------- */

.page-raffle-stage {
    margin: 0;
    min-height: 100vh;
    background: var(--brand-800);
    color: #fff;
    /* Kısa ekranlarda içerik kesilmesin: dikey kaydırma serbest */
    overflow-x: hidden;
    overflow-y: auto;
}

.raffle-stage {
    --gold: #f5b301;
    --gold-soft: #ffd166;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(60, 81, 128, .55), transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 110%, rgba(225, 29, 47, .28), transparent 70%),
        var(--brand-800);
    color: #fff;
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}
/* style.css'teki genel koyu başlık rengini sahnede ez */
.raffle-stage h1, .raffle-stage h2, .raffle-stage h3 { color: #fff; letter-spacing: -.015em; }
.raffle-stage { overflow: hidden; }
.raffle-stage__glow {
    position: absolute;
    left: 50%;
    top: 45%;
    width: 220vmax;
    height: 220vmax;
    margin: -110vmax 0 0 -110vmax;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .035) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 30%);
    mask-image: radial-gradient(circle, #000 0%, transparent 30%);
    opacity: 0;
    transition: opacity 1s ease;
}
.raffle-stage.is-running .raffle-stage__glow,
.raffle-stage.is-final .raffle-stage__glow { opacity: 1; animation: raffle-spin 60s linear infinite; }

/* Ödül görseli — sahnenin arka planında büyük ve soluk */
.raffle-stage__prize-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}
.raffle-stage__prize-bg img {
    width: min(92vh, 80vw);
    max-height: 92vh;
    object-fit: contain;
    opacity: .16;
    filter: saturate(1.15) drop-shadow(0 0 80px rgba(245, 179, 1, .35));
    -webkit-mask-image: radial-gradient(circle, #000 50%, transparent 75%);
    mask-image: radial-gradient(circle, #000 50%, transparent 75%);
    animation: raffle-bg-float 14s ease-in-out infinite;
    transition: opacity .8s ease;
}
.raffle-stage.is-running .raffle-stage__prize-bg img { opacity: .09; }
.raffle-stage.is-final .raffle-stage__prize-bg img { opacity: .18; }

.raffle-stage__confetti {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 30;
}

.raffle-stage__bar {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem clamp(1rem, 3vw, 2.5rem);
}
.raffle-stage__brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.raffle-stage__logo { display: block; height: clamp(34px, 4.2vw, 50px); width: auto; flex: none; }
.raffle-stage__fair {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, .25);
    color: var(--brand-200);
    font-size: clamp(.85rem, 1.2vw, 1rem);
    font-weight: 600;
    line-height: 1.3;
}
.raffle-stage__tools { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }

.raffle-tool {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: inherit;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.2;
    padding: .5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s ease;
}
.raffle-tool:hover { background: rgba(255, 255, 255, .18); }
.raffle-tool[aria-pressed="false"] { opacity: .6; }
.raffle-tool--close { padding: .45rem .6rem; }
.raffle-tool--close .icon { width: 1rem; height: 1rem; }

/* CANLI rozeti */
.raffle-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .9rem;
    border-radius: 999px;
    background: rgba(225, 29, 47, .18);
    border: 1px solid rgba(225, 29, 47, .5);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.raffle-live-badge[hidden] { display: none; }
.raffle-live-badge__dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: var(--accent-500);
    box-shadow: 0 0 0 0 rgba(225, 29, 47, .7);
    animation: raffle-live-dot 1.4s ease-out infinite;
}
@keyframes raffle-live-dot {
    0% { box-shadow: 0 0 0 0 rgba(225, 29, 47, .7); }
    100% { box-shadow: 0 0 0 10px rgba(225, 29, 47, 0); }
}

.raffle-stage__main {
    position: relative;
    z-index: 5;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 0 clamp(1rem, 3vw, 2.5rem) 2rem;
}
.raffle-stage.is-running .raffle-stage__main { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
.raffle-stage.is-final .raffle-stage__main { grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; }

/* Giriş */
.raffle-intro, .raffle-final { text-align: center; max-width: 900px; margin: 0 auto; animation: raffle-rise .7s ease both; }
.raffle-intro__eyebrow {
    display: inline-block;
    padding: .35rem 1rem;
    border-radius: 999px;
    background: rgba(245, 179, 1, .15);
    border: 1px solid rgba(245, 179, 1, .45);
    color: var(--gold-soft);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.raffle-intro__title {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.05;
    margin: 1.1rem 0 .8rem;
    font-weight: 700;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
/* Giriş ekranı ödül kartı */
.raffle-prize {
    display: inline-flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    margin: .25rem 0 1.75rem;
    padding: .9rem 2rem .9rem 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(245, 179, 1, .35);
    box-shadow: 0 0 60px rgba(245, 179, 1, .12);
    text-align: left;
}
.raffle-prize__visual {
    position: relative;
    width: clamp(96px, 11vw, 150px);
    aspect-ratio: 1;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.raffle-prize__visual::before {
    content: "";
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 179, 1, .35), transparent 70%);
}
.raffle-prize__img {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35));
    animation: raffle-float 3.2s ease-in-out infinite;
}
.raffle-prize__text { display: flex; flex-direction: column; gap: .2rem; }
.raffle-prize__label { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-200); }
.raffle-prize__name { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.1; color: var(--gold-soft); }

/* İlan ve final ekranlarındaki küçük ödül rozeti */
.raffle-prize-chip {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1.1rem;
    padding: .45rem 1.3rem .45rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(245, 179, 1, .35);
    text-align: left;
}
.raffle-prize-chip__img {
    width: clamp(44px, 4.5vw, 60px);
    height: clamp(44px, 4.5vw, 60px);
    object-fit: contain;
    padding: .25rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 179, 1, .3), rgba(255, 255, 255, .05) 70%);
}
.raffle-prize-chip__text { display: flex; flex-direction: column; line-height: 1.15; }
.raffle-prize-chip__text small { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-200); }
.raffle-prize-chip__text strong { font-size: clamp(1rem, 1.8vw, 1.35rem); color: var(--gold-soft); }
.raffle-final { display: flex; flex-direction: column; align-items: center; }
.raffle-final[hidden] { display: none; }
.raffle-final .raffle-prize-chip { margin: 1.25rem 0 0; }
.raffle-intro__facts { list-style: none; padding: 0; margin: .5rem 0 2.5rem; display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); flex-wrap: wrap; }
.raffle-intro__facts li { display: flex; flex-direction: column; align-items: center; min-width: 7rem; }
.raffle-intro__facts strong { font-size: clamp(2.4rem, 4.5vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.raffle-intro__facts span { color: var(--brand-200); font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: .55rem; }
.raffle-intro__note { margin: 2.25rem auto 0; max-width: 560px; color: var(--brand-300); font-size: .9rem; line-height: 1.6; }
.raffle-intro__note--muted { margin-top: .4rem; font-size: .8rem; opacity: .75; }
.raffle-intro__note--live { color: var(--gold-soft); max-width: 640px; }

/* İzleyici bekleme ekranı (geri sayım) */
.raffle-wait {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: 1.1rem 2.75rem 1.25rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(245, 179, 1, .4);
    box-shadow: 0 0 70px rgba(245, 179, 1, .14);
}
.raffle-wait__label { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-200); }
.raffle-wait__clock {
    font-size: clamp(3rem, 9vw, 6rem);
    line-height: 1;
    font-weight: 700;
    color: var(--gold-soft);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(245, 179, 1, .45);
    min-width: 4.2ch;
    text-align: center;
}
.raffle-wait__hint { font-size: .9rem; color: var(--brand-300); margin-top: .25rem; }

/* ---------- Ana sayfa modalı ---------- */
.raffle-live {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0px, 1.5vw, 20px);
}
.raffle-live[hidden] { display: none; }
.raffle-live__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.raffle-live__dialog {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1680px;
    border-radius: clamp(0px, 2vw, 24px);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
    animation: raffle-rise .45s ease both;
}
.raffle-stage--modal {
    min-height: 0;
    height: 100%;
    overflow: hidden;           /* dev arka plan efekti taşmasın */
    font-family: var(--font);
}
.raffle-stage--modal .raffle-stage__main { overflow-y: auto; min-height: 0; }
/* Ana sayfanın koyu metin / başlık renkleri sahneye sızmasın */
.raffle-live .raffle-stage,
.raffle-live .raffle-stage p,
.raffle-live .raffle-stage strong,
.raffle-live .raffle-stage .raffle-board__name { color: #fff; }
.raffle-live .raffle-stage h1,
.raffle-live .raffle-stage h2,
.raffle-live .raffle-stage h3 { color: #fff; margin: 0; }
.raffle-live .raffle-stage .raffle-intro__title { margin: 1.1rem 0 .8rem; }
.raffle-live .raffle-stage .raffle-final__title { margin: 1rem 0 0; }
.raffle-live .raffle-stage .raffle-board__title { margin: 0 0 .75rem; }
.raffle-live .raffle-stage section { padding: 0; margin: 0; }
.raffle-live .raffle-stage .raffle-board__item { animation-duration: .55s; }
.raffle-stage--modal .raffle-stage__confetti { position: absolute; width: 100%; height: 100%; }
.raffle-stage--modal:fullscreen { border-radius: 0; }
body.raffle-live-open { overflow: hidden; }

/* Modal kapalıyken köşe rozeti */
.raffle-live-pill {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 1900;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1.2rem .75rem .95rem;
    border: 0;
    border-radius: 999px;
    background: var(--brand-800);
    color: #fff;
    font: inherit;
    font-size: .92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .1);
    animation: raffle-rise .4s ease both;
}
.raffle-live-pill[hidden] { display: none; }
.raffle-live-pill:hover { background: var(--brand-700); }
.raffle-live-pill.is-live { background: var(--accent-600); }
.raffle-live-pill.is-live:hover { background: var(--accent-500); }
.raffle-live-pill .raffle-live-badge__dot { background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }

/* Ödül kartı + asil/yedek sayıları yan yana (dikey alan kazanır) */
.raffle-intro__row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(1.25rem, 4vw, 3rem);
    margin: clamp(.5rem, 2vh, 1.25rem) 0 clamp(1.25rem, 4vh, 2.5rem);
}
.raffle-intro__row .raffle-prize,
.raffle-intro__row .raffle-intro__facts { margin: 0; }

/* Kısa ekranlar (dizüstü, projeksiyon, tarayıcı çubukları açıkken) */
@media (max-height: 820px) {
    .raffle-stage__bar { padding-top: .75rem; padding-bottom: .5rem; }
    .raffle-intro__eyebrow { font-size: .75rem; padding: .3rem .85rem; }
    .raffle-intro__title { font-size: clamp(2rem, 8.5vh, 4rem); margin: .6rem 0 .3rem; }
    .raffle-prize { padding: .6rem 1.5rem .6rem .75rem; }
    .raffle-prize__visual { width: clamp(72px, 13vh, 120px); }
    .raffle-prize__name { font-size: clamp(1.4rem, 5vh, 2.2rem); }
    .raffle-intro__facts strong { font-size: clamp(2rem, 7vh, 3rem); }
    .raffle-intro__facts span { font-size: .85rem; margin-top: .35rem; }
    .raffle-start { padding: .95rem 2.6rem; }
    .raffle-intro__note { margin-top: 1.25rem; font-size: .82rem; }
    .raffle-slot { min-height: clamp(120px, 20vh, 200px); }
    .raffle-next { margin-top: 1.25rem; }
}
@media (max-height: 640px) {
    .raffle-intro__eyebrow { display: none; }
    .raffle-intro__title { margin-top: 0; }
    .raffle-intro__facts span { letter-spacing: .03em; }
    .raffle-intro__note { margin-top: .75rem; }
}

.raffle-start {
    appearance: none;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 3rem;
    border-radius: 999px;
    background: var(--accent-500);
    color: #fff;
    font: inherit;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none;
    box-shadow: 0 0 0 0 rgba(225, 29, 47, .6), 0 18px 40px rgba(225, 29, 47, .35);
    animation: raffle-pulse 2s ease-in-out infinite;
    transition: transform .15s ease, background .15s ease;
}
.raffle-start:hover { background: var(--accent-600); transform: translateY(-2px); }
.raffle-start--sm { font-size: 1rem; padding: .85rem 2rem; animation: none; margin-top: 1.5rem; }

/* Çekiliş */
.raffle-draw { text-align: center; min-width: 0; }
.raffle-draw__label {
    margin: 0 0 1.25rem;
    font-size: clamp(1.1rem, 2.4vw, 1.8rem);
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-soft);
}
.raffle-draw__label.is-reserve { color: var(--brand-200); }

.raffle-slot {
    position: relative;
    margin: 0 auto;
    max-width: 1100px;
    min-height: clamp(150px, 22vh, 240px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, .06);
    border: 2px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, .35);
    overflow: hidden;
    transition: border-color .4s ease, box-shadow .4s ease, background .4s ease;
}
.raffle-slot::before, .raffle-slot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 30%;
    pointer-events: none;
}
.raffle-slot::before { top: 0; background: linear-gradient(rgba(20, 30, 54, .7), transparent); }
.raffle-slot::after { bottom: 0; background: linear-gradient(transparent, rgba(20, 30, 54, .7)); }
.raffle-slot__name, .raffle-board__name { unicode-bidi: plaintext; }
.raffle-slot__name {
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.1;
    word-break: break-word;
}
.raffle-slot.is-spinning .raffle-slot__name { filter: blur(1.2px); opacity: .85; }
.raffle-slot__name.is-flip { animation: raffle-flip .12s ease-out; }

.raffle-slot.is-revealed {
    background: rgba(245, 179, 1, .12);
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(245, 179, 1, .15), 0 0 80px rgba(245, 179, 1, .45), inset 0 0 40px rgba(245, 179, 1, .15);
}
.raffle-slot.is-revealed::before, .raffle-slot.is-revealed::after { display: none; }
.raffle-slot.is-revealed .raffle-slot__name {
    filter: none;
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 30px rgba(245, 179, 1, .7);
    animation: raffle-pop .7s cubic-bezier(.2, 1.6, .4, 1) both;
}
.raffle-slot.is-revealed.is-reserve {
    background: rgba(148, 166, 207, .12);
    border-color: var(--brand-300);
    box-shadow: 0 0 0 6px rgba(148, 166, 207, .15), 0 0 60px rgba(148, 166, 207, .35);
}
.raffle-slot.is-revealed.is-reserve .raffle-slot__name { text-shadow: 0 0 24px rgba(148, 166, 207, .6); }

.raffle-draw__meta {
    min-height: 1.6em;
    margin: 1.1rem 0 0;
    font-size: clamp(1rem, 1.8vw, 1.35rem);
    color: var(--brand-200);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s ease, transform .5s ease;
}
.raffle-draw__meta.is-visible { opacity: 1; transform: none; }

.raffle-next {
    display: inline-flex;
    align-items: center;
    gap: 1.1rem;
    margin-top: 2.25rem;
    padding: .9rem 1.4rem .9rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .15);
    animation: raffle-rise .4s ease both;
}
.raffle-next[hidden] { display: none; }
.raffle-next__ring { position: relative; width: 72px; height: 72px; flex: none; }
.raffle-next__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.raffle-next__track { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 8; }
.raffle-next__progress { fill: none; stroke: var(--gold); stroke-width: 8; stroke-linecap: round; }
.raffle-next__count {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
}
.raffle-next__text { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; font-weight: 700; font-size: 1.05rem; }
.raffle-next__actions { display: flex; gap: .4rem; }
.raffle-stage.is-paused .raffle-next__progress { stroke: var(--brand-300); }

/* Pano */
.raffle-board {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px);
    padding: 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    min-width: 0;
}
.raffle-board[hidden] { display: none; }
.raffle-board__title { margin: 0 0 .75rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-200); }
.raffle-board__list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; scroll-behavior: smooth; }
.raffle-board__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: 12px;
    background: rgba(245, 179, 1, .1);
    border: 1px solid rgba(245, 179, 1, .3);
    animation: raffle-slide .55s cubic-bezier(.2, 1.3, .4, 1) both;
}
.raffle-board__rank {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--brand-800);
    font-weight: 700;
}
.raffle-board__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.raffle-board__tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); }
.raffle-board__item--reserve { background: rgba(148, 166, 207, .1); border-color: rgba(148, 166, 207, .3); }
.raffle-board__item--reserve .raffle-board__rank { background: var(--brand-300); }
.raffle-board__item--reserve .raffle-board__tag { color: var(--brand-200); }

/* Final: pano ortada ve geniş */
.raffle-final__title { font-size: clamp(2rem, 4.5vw, 3.6rem); margin: 1rem 0 0; font-weight: 700; }
.raffle-stage.is-final .raffle-board {
    width: min(900px, 100%);
    max-height: 52vh;
    background: rgba(255, 255, 255, .05);
}
.raffle-stage.is-final .raffle-board__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

@keyframes raffle-bg-float {
    0%, 100% { transform: translateY(0) scale(1) rotate(-3deg); }
    50% { transform: translateY(-2.5vh) scale(1.04) rotate(3deg); }
}
@keyframes raffle-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
}
@keyframes raffle-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 47, .55), 0 18px 40px rgba(225, 29, 47, .35); }
    50% { box-shadow: 0 0 0 18px rgba(225, 29, 47, 0), 0 18px 40px rgba(225, 29, 47, .35); }
}
@keyframes raffle-flip {
    from { transform: translateY(-35%); opacity: .2; }
    to { transform: none; opacity: 1; }
}
@keyframes raffle-pop {
    0% { transform: scale(.6); }
    100% { transform: scale(1); }
}
@keyframes raffle-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
@keyframes raffle-slide {
    from { opacity: 0; transform: translateX(30px) scale(.95); }
    to { opacity: 1; transform: none; }
}
@keyframes raffle-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .page-raffle-stage { overflow: auto; }
    .raffle-stage.is-running .raffle-stage__main { grid-template-columns: minmax(0, 1fr); }
    .raffle-board { max-height: none; }
    .raffle-stage__tools .raffle-tool { padding: .4rem .7rem; font-size: .8rem; }
}

/* Modal: içerik ekrandan uzunsa üstten başlasın (ortalama üst kısmı kesmesin) */
.raffle-stage--modal .raffle-stage__main { align-content: safe center; align-items: safe center; }
.raffle-stage--modal.is-final .raffle-stage__main { align-content: safe center; }
.raffle-tool[hidden] { display: none; }

/* Telefon / dar ekranlar */
@media (max-width: 640px) {
    .raffle-live { padding: 0; }
    .raffle-live__dialog { border-radius: 0; }
    .raffle-stage--modal .raffle-stage__main,
    .raffle-stage--modal.is-final .raffle-stage__main { align-content: start; align-items: start; padding-top: .35rem; }

    /* Üst çubuk: logo + fuar adı solda, araçlar sağda tek satır */
    .raffle-stage__bar { gap: .6rem; padding: .65rem .85rem .55rem; }
    .raffle-stage__brand { gap: .6rem; flex: 1 1 0; }
    .raffle-stage__logo { height: 26px; }
    .raffle-stage__fair {
        padding-left: .6rem;
        font-size: .68rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .raffle-stage__tools { flex: none; flex-wrap: nowrap; gap: .3rem; }
    .raffle-stage__tools .raffle-tool { padding: .38rem .6rem; font-size: .72rem; }
    .raffle-stage__tools [data-fullscreen] { display: none; }
    .raffle-stage__tools .raffle-live-badge { padding: .3rem .6rem; font-size: .68rem; }
    .raffle-tool--close { padding: .38rem .45rem; }

    .raffle-stage__main { gap: 1rem; padding: 0 .9rem 1.25rem; }
    .raffle-intro, .raffle-final { width: 100%; }
    .raffle-intro__eyebrow { font-size: .68rem; padding: .3rem .8rem; letter-spacing: .1em; }
    .raffle-intro__title { font-size: clamp(1.7rem, 8.5vw, 2.4rem); margin: .8rem 0 .5rem; }
    .raffle-intro__row { gap: 1rem; margin: .5rem 0 1rem; }
    .raffle-prize { gap: .8rem; padding: .6rem 1.1rem .6rem .6rem; border-radius: 18px; max-width: 100%; }
    .raffle-prize__visual { width: 72px; }
    .raffle-prize__name { font-size: 1.35rem; }
    .raffle-intro__facts { gap: 1.5rem; }
    .raffle-intro__facts li { min-width: 5.5rem; }
    .raffle-intro__facts strong { font-size: 2rem; }
    .raffle-intro__facts span { font-size: .72rem; margin-top: .35rem; }
    .raffle-wait { width: 100%; padding: .9rem 1rem 1rem; border-radius: 20px; }
    .raffle-wait__clock { font-size: clamp(2.6rem, 16vw, 3.8rem); }
    .raffle-wait__hint { font-size: .8rem; }
    .raffle-intro__note { margin-top: 1rem; font-size: .8rem; }
    .raffle-start { padding: .9rem 2rem; font-size: 1.05rem; }

    /* Çekiliş sahnesi */
    .raffle-draw__label { font-size: .95rem; margin-bottom: .8rem; }
    .raffle-slot { min-height: 120px; padding: 1rem; border-radius: 20px; }
    .raffle-slot__name { font-size: clamp(1.6rem, 8vw, 2.4rem); }
    .raffle-next { margin-top: 1rem; gap: .8rem; padding: .6rem 1rem .6rem .6rem; border-radius: 24px; flex-wrap: wrap; justify-content: center; }
    .raffle-next__ring { width: 56px; height: 56px; }
    .raffle-next__text { font-size: .9rem; }
    .raffle-prize-chip { margin-bottom: .8rem; padding: .35rem 1rem .35rem .4rem; gap: .55rem; }
    .raffle-prize-chip__img { width: 40px; height: 40px; }
    .raffle-prize-chip__text strong { font-size: .95rem; }

    /* Talihli panosu: ayrı kaydırma yerine sayfa ile akar */
    .raffle-board { max-height: none; padding: .85rem; border-radius: 16px; width: 100%; }
    .raffle-stage.is-final .raffle-board { max-height: none; }
    .raffle-stage.is-final .raffle-board__list { grid-template-columns: minmax(0, 1fr); }
    .raffle-board__item { padding: .5rem .6rem; gap: .55rem; }
    .raffle-board__rank { width: 1.7rem; height: 1.7rem; font-size: .85rem; }
    .raffle-board__name { font-size: .95rem; white-space: normal; }
    .raffle-board__tag { font-size: .62rem; }
    .raffle-final__title { font-size: clamp(1.5rem, 7.5vw, 2.1rem); }
    .raffle-final .raffle-prize-chip { margin-top: .9rem; }

    .raffle-live-pill { right: .75rem; bottom: .75rem; font-size: .85rem; }
}

/* Yatay telefon: çok kısa + dar */
@media (max-width: 900px) and (max-height: 480px) {
    .raffle-intro__eyebrow { display: none; }
    .raffle-intro__title { font-size: 1.6rem; margin: .4rem 0; }
    .raffle-prize__visual { width: 60px; }
    .raffle-wait { padding: .6rem 1rem; }
    .raffle-wait__clock { font-size: 2.4rem; }
    .raffle-slot { min-height: 90px; }
}

@media (prefers-reduced-motion: reduce) {
    .raffle-stage *, .raffle-stage *::before, .raffle-stage *::after { animation: none !important; transition: none !important; }
}

/* Canlı yayın altyapısı teşhis kutusu (admin) */
.raffle-bstatus { margin-top: 1rem; }
.raffle-bstatus--warn { border-color: #f5d27a; background: #fffaf0; }
.raffle-bstatus .dash-panel__title { display: flex; align-items: center; gap: .6rem; font-size: 1rem; }
