:root {
    --bs-purple: #442D7E;
    --bs-black: #000;
    --bs-white: #FFFFFF;
    --yellow-bright: #F8F80B;
    --ink-muted: #cdc5dc;
    --ink-faint: #a79eb9;
    --surface-deep: rgba(26, 15, 46, 0.85);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --die: 84px;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { -webkit-text-size-adjust: 100%; background: #150824; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at 50% 20%, #2e144f 0%, #150824 100%) fixed,
                url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.04"/></svg>');
    background-blend-mode: overlay;
    color: var(--bs-white);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px 40px;
    font-variant-numeric: tabular-nums;
}
button { font-family: inherit; }
:focus-visible {
    outline: 3px solid var(--yellow-bright);
    outline-offset: 3px;
}
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.top-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
}
.game-card-square, .history-card {
    background: linear-gradient(135deg, rgba(68, 45, 126, 0.9) 0%, rgba(35, 18, 60, 0.95) 100%);
    border: 2px solid rgba(248, 248, 11, 0.6);
    border-radius: 20px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
}
.game-card-square { justify-content: space-between; gap: 12px; }
.game-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.game-logo { line-height: 0; }
.game-logo img {
    display: block;
    width: clamp(200px, 55vw, 280px);
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}
.table-header-logo {
    height: 26px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}
.game-subtitle {
    font-size: 14px;
    color: var(--yellow-bright);
    font-weight: 600;
    text-align: center;
    text-wrap: balance;
}
.dice-scene {
    display: flex;
    gap: 44px;
    padding: 12px;
    perspective: 700px;
}
.cube-wrapper {
    position: relative;
    width: var(--die);
    height: var(--die);
    perspective: 700px;
}

.cube-wrapper::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -22px;
    height: 14px;
    background: radial-gradient(closest-side, rgba(0,0,0,0.5), transparent);
}
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(calc(var(--die) / -2)) rotateX(0deg) rotateY(0deg);
    transition: transform 1s var(--ease-out);
}
.cube.rolling {
    animation: rollAnimation 0.8s infinite linear;
}
@keyframes rollAnimation {
    0% { transform: translateZ(calc(var(--die) / -2)) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: translateZ(calc(var(--die) / -2)) rotateX(720deg) rotateY(360deg) rotateZ(360deg); }
}
.cube-face {
    position: absolute;
    width: var(--die);
    height: var(--die);
    background: linear-gradient(145deg, #FFFFFF 0%, #ebe8f2 100%);
    border: 2px solid #d4d0de;
    border-radius: 14px;
    box-shadow: inset 0 -4px 10px rgba(68, 45, 126, 0.12), inset 0 2px 4px rgba(255,255,255,0.9);
    display: grid;
    padding: 13px;
}
.dot {
    background-color: #1a1a1a;
    border-radius: 50%;
    width: 13px;
    height: 13px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.face-1 { transform: rotateY(0deg) translateZ(calc(var(--die) / 2)); }
.face-2 { transform: rotateY(90deg) translateZ(calc(var(--die) / 2)); }
.face-3 { transform: rotateY(180deg) translateZ(calc(var(--die) / 2)); }
.face-4 { transform: rotateY(-90deg) translateZ(calc(var(--die) / 2)); }
.face-5 { transform: rotateX(90deg) translateZ(calc(var(--die) / 2)); }
.face-6 { transform: rotateX(-90deg) translateZ(calc(var(--die) / 2)); }
.f1 { justify-content: center; align-items: center; display: flex; }
.f2 { justify-content: space-between; display: flex; }
.f2 .dot:nth-child(2) { align-self: flex-end; }
.f3 { justify-content: space-between; display: flex; }
.f3 .dot:nth-child(2) { align-self: center; }
.f3 .dot:nth-child(3) { align-self: flex-end; }
.f4 { grid-template-columns: repeat(2, auto); grid-template-rows: repeat(2, auto); justify-content: space-between; align-content: space-between; }
.f5 { grid-template-columns: repeat(3, auto); grid-template-rows: repeat(3, auto); justify-content: space-between; align-content: space-between; }
.f5 .dot:nth-child(1) { grid-area: 1 / 1; }
.f5 .dot:nth-child(2) { grid-area: 1 / 3; }
.f5 .dot:nth-child(3) { grid-area: 2 / 2; }
.f5 .dot:nth-child(4) { grid-area: 3 / 1; }
.f5 .dot:nth-child(5) { grid-area: 3 / 3; }
.f6 { grid-template-columns: repeat(2, auto); grid-template-rows: repeat(3, auto); justify-content: space-between; align-content: space-between; }

.result-box {
    width: 100%;
    min-height: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--surface-deep);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-muted);
    text-wrap: balance;
}
.result-box.is-win {
    animation: resultIn 260ms var(--ease-out);
}
.result-combo { font-size: 13px; font-weight: 700; color: var(--ink-muted); letter-spacing: 1px; }
.result-prize { font-size: clamp(20px, 3.2vw, 26px); font-weight: 900; color: var(--yellow-bright); line-height: 1.15; }

/* Ödül teslim durumu: bildirim şeridiyle aynı ikonları kullanır. */
.result-status {
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: var(--surface-deep);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    animation: resultIn 260ms var(--ease-out);
}
.result-status[hidden] { display: none; }
.result-status.is-bekliyor { border-color: rgba(248, 200, 11, .4); color: #F8C80B; }
.result-status.is-eklendi  { border-color: rgba(61, 214, 140, .45); color: #3DD68C; }
.result-status.is-hata     { border-color: rgba(255, 107, 107, .45); color: #FF6B6B; }
.result-status.is-bekliyor .status-icon { animation: durumNabiz 1.4s var(--ease-in-out) infinite; }
@keyframes durumNabiz {
    50% { opacity: .35; }
}
@keyframes resultIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.btn-roll {
    background: linear-gradient(to bottom, #FFFF33 0%, #F8F80B 50%, #b3b300 100%);
    color: var(--bs-black);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1.5px;
    width: 100%;
    min-height: 56px;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(248, 248, 11, 0.45);
    transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), opacity 160ms var(--ease-out);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.btn-roll:active:not(:disabled) { transform: scale(0.97); }
.btn-roll:disabled { opacity: 0.65; cursor: progress; }
.history-card { justify-content: flex-start; gap: 10px; }
.history-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--yellow-bright);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.filter-buttons { display: flex; gap: 8px; width: 100%; }
.filter-btn {
    flex: 1;
    min-height: 44px;
    padding: 8px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    border: 1px solid var(--yellow-bright);
    cursor: pointer;
    transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out), transform 160ms var(--ease-out);
    background: transparent;
    color: var(--bs-white);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.filter-btn:active { transform: scale(0.97); }
.filter-btn.active {
    background-color: var(--yellow-bright);
    color: var(--bs-black);
}
.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    width: 100%;

    flex: 1 1 0;
    height: 0;
    min-height: 0;
    padding-right: 4px;
}
.history-list::-webkit-scrollbar { width: 4px; }
.history-list::-webkit-scrollbar-thumb { background-color: var(--yellow-bright); border-radius: 4px; }
.history-item {
    background-color: var(--surface-deep);
    border: 1px solid rgba(248, 248, 11, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    list-style: none;
}
.history-item.is-mine { border-color: rgba(248, 248, 11, 0.75); }
.history-item.is-new { animation: itemIn 240ms var(--ease-out); }
@keyframes itemIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.history-row-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; }
.history-prize { color: var(--yellow-bright); font-weight: 800; }

/* Kendi kayıtlarında ödülün başındaki teslim durumu ikonu */
.history-status {
    display: inline-flex;
    align-items: center;
    vertical-align: -3px;
    margin-right: 6px;
}
.history-status .status-icon { width: 15px; height: 15px; }
.history-status.is-bekliyor .status-icon { animation: durumNabiz 1.4s var(--ease-in-out) infinite; }
.history-user { color: var(--ink-muted); white-space: nowrap; }
.history-time { color: var(--ink-faint); font-size: 12px; text-align: right; }
.history-empty { text-align: center; color: var(--ink-muted); font-size: 14px; padding: 28px 12px; }
.full-reward-table {
    width: 100%;
    background: linear-gradient(135deg, rgba(68, 45, 126, 0.9) 0%, rgba(35, 18, 60, 0.95) 100%);
    border: 2px solid var(--yellow-bright);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.table-header {
    background-color: var(--surface-deep);
    color: var(--yellow-bright);
    padding: 18px;
    text-align: center;
    font-weight: 800;
    font-size: 18px;
    border-bottom: 2px solid var(--yellow-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.grid-columns {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    background-color: rgba(248, 248, 11, 0.2);
}
@media (max-width: 1100px) {
    .grid-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .grid-columns { grid-template-columns: 1fr; }
}
.column {
    background-color: rgba(45, 24, 77, 0.95);
    display: grid;
    grid-template-rows: auto repeat(6, minmax(56px, 1fr));
}
.col-header {
    background-color: #3a2063;
    color: var(--yellow-bright);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    padding: 12px 6px;
    border-bottom: 2px solid rgba(248, 248, 11, 0.7);
}

.column.col-top { background-color: rgba(68, 45, 126, 0.95); }
.column.col-top .col-header { background-color: var(--yellow-bright); color: var(--bs-black); }
.table-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.3;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.table-row .prize { flex: 1; text-align: left; color: #f1edf8; font-weight: 800; text-wrap: balance; }
.table-row .prize.cash { font-weight: 800; color: #fff; }
.col-top .table-row .prize { font-size: 13px; font-weight: 800; }
.table-row span.combo {
    font-weight: 800;
    color: var(--yellow-bright);
    flex: 0 0 auto;
    min-width: 48px;
    text-align: left;
    white-space: nowrap;
}
.table-row.active-win {
    background-color: var(--yellow-bright) !important;
    color: var(--bs-black) !important;
    font-weight: 800;
}
.table-row.active-win span.combo,
.table-row.active-win .prize { color: var(--bs-black); }

@media (hover: hover) and (pointer: fine) {
    .btn-roll:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(248, 248, 11, 0.6); }
    .filter-btn:not(.active):hover { background-color: rgba(248, 248, 11, 0.15); }
    .table-row:not(.active-win):hover { background-color: rgba(248, 248, 11, 0.1); }
}
@media (max-width: 860px) {
    .top-section { grid-template-columns: 1fr; gap: 20px; }
    .game-card-square, .history-card { padding: 18px 16px; }
    .history-list { flex: none; height: auto; max-height: 320px; }
}
@media (max-width: 480px) {
    :root { --die: 72px; }
    .dice-scene { gap: 34px; }
    .cube-face { padding: 11px; }
    .dot { width: 11px; height: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .cube.rolling { animation: none; }
    .cube { transition: none; }
    .result-box.is-win, .history-item.is-new { animation: fadeOnly 200ms ease-out; }
    @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
}
.cube-face { backface-visibility:hidden; -webkit-backface-visibility:hidden; }

:root { --yellow-bright:#F8F80B; --ink-muted:#cdc5dc; --ink-faint:#a79eb9; --surface-deep:rgba(26,15,46,.6); --glass:rgba(68,45,126,.42); --glass-line:rgba(248,248,11,.35); }
body { font-family:'Plus Jakarta Sans','Segoe UI',system-ui,sans-serif; background:none; }

body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:url('../img/bg.webp') center / cover no-repeat; opacity:.7; }
.game-card-square,.history-card,.full-reward-table { background:var(--glass); -webkit-backdrop-filter:blur(22px) saturate(140%); backdrop-filter:blur(22px) saturate(140%); border:1px solid var(--glass-line); border-radius:30px; box-shadow:0 24px 60px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.18); }
.game-subtitle { color:var(--yellow-bright); font-weight:600; }
.cube-face { background:linear-gradient(145deg,#ffffff,#e9e4f2); border:1px solid #fff; border-radius:16px; box-shadow:inset 0 -6px 14px rgba(68,45,126,.18),0 6px 18px rgba(0,0,0,.3); }
.dot { background:#1a1a1a; box-shadow:inset 0 1px 2px rgba(0,0,0,.6); }
.cube-wrapper::after { background:radial-gradient(closest-side,rgba(0,0,0,.55),transparent); }

.result-box { min-height:68px; background:var(--surface-deep); border:1px solid rgba(248,248,11,.25); border-radius:20px; transition:background-color 200ms var(--ease-out),border-color 200ms var(--ease-out); }
.result-box .result-prize { color:var(--yellow-bright); }
.result-box.is-win { background:var(--yellow-bright); border-color:var(--yellow-bright); }
.result-box.is-win .result-combo { color:#442D7E; }
.result-box.is-win .result-prize { color:#000; }
.btn-roll { background:linear-gradient(to bottom,#FFFF33 0%,#F8F80B 50%,#b3b300 100%); color:#000; border-radius:999px; font-weight:800; box-shadow:0 8px 28px rgba(248,248,11,.4),inset 0 1px 0 rgba(255,255,255,.6); letter-spacing:1px; }
.history-title { color:var(--yellow-bright); letter-spacing:.5px; text-transform:none; font-size:22px; }
.filter-btn { border-radius:999px; border:1px solid var(--yellow-bright); }
.filter-btn.active { background:var(--yellow-bright); color:#000; }
.history-item { background:var(--surface-deep); border:1px solid rgba(248,248,11,.3); border-radius:16px; }
.history-item.is-mine { background:rgba(248,248,11,.1); border-color:rgba(248,248,11,.75); }
.history-prize { color:var(--yellow-bright); }
.table-header { background:transparent; border-bottom:1px solid rgba(248,248,11,.5); color:var(--yellow-bright); font-size:20px; text-transform:none; }
.full-reward-table { overflow:hidden; }
.grid-columns { background:transparent; gap:12px; padding:14px; }
.column { background:rgba(26,15,46,.5); border:1px solid rgba(248,248,11,.22); border-radius:20px; overflow:hidden; }
.col-header { background:#3a2063; color:var(--yellow-bright); border-bottom:1px solid rgba(248,248,11,.5); }
.column.col-top { background:rgba(68,45,126,.55); border-color:rgba(248,248,11,.6); }
.column.col-top .col-header { background:var(--yellow-bright); color:#000; }
.table-row { border-bottom:1px solid rgba(255,255,255,.07); }
@media (max-width:1100px){ .grid-columns{gap:10px;padding:10px;} }

[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.game-card-square { position:relative; }

.sound-toggle { position:absolute; top:16px; right:16px; width:44px; height:44px; border-radius:50%; border:1px solid rgba(248,248,11,.4); background:var(--surface-deep); color:var(--yellow-bright); display:grid; place-items:center; cursor:pointer; transition:transform 160ms var(--ease-out), background-color 160ms var(--ease-out); -webkit-tap-highlight-color:transparent; }
.sound-toggle:active { transform:scale(.94); }
.sound-toggle[aria-pressed="true"] { color:var(--ink-faint); border-color:rgba(255,255,255,.2); }
@media (hover:hover) and (pointer:fine) { .sound-toggle:hover { background:rgba(248,248,11,.14); } }

.rights { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px 12px; padding:8px 16px; border-radius:999px; background:var(--surface-deep); border:1px solid rgba(248,248,11,.35); }
.rights.rights-demo { border-style:dashed; }
.rights.is-empty { border-color:rgba(255,255,255,.18); }
.rights-label { font-size:13px; font-weight:800; letter-spacing:.06em; color:var(--ink-muted); }
.rights-count { font-size:22px; font-weight:900; line-height:1; color:var(--yellow-bright); min-width:1.4ch; text-align:center; }
.rights.is-empty .rights-count { color:var(--ink-faint); }
.rights-pips { display:flex; gap:4px; }
.rights-pips .rp { display:block; width:18px; height:18px; transition:opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.rights-pips .rp svg { width:100%; height:100%; display:block; }
.rights-pips .rp.used { opacity:.22; transform:scale(.85); }

.dice-stage { position:relative; width:100%; height:clamp(150px, 15vw, 180px); display:grid; place-items:center; }
#diceCanvas { position:absolute; top:-56px; bottom:0; left:-28px; right:-28px; width:calc(100% + 56px); height:calc(100% + 56px); display:none; pointer-events:none; }
@media (max-width:860px) { #diceCanvas { left:-18px; right:-18px; width:calc(100% + 36px); } }
body.has-3d #diceCanvas { display:block; }
body.has-3d .dice-stage .dice-scene { display:none; }
.btn-roll.is-cta { animation:ctaPulse 1.8s var(--ease-out) infinite; }
@keyframes ctaPulse { 0%,100% { transform:scale(1); } 50% { transform:scale(1.025); } }
.col-header { display:flex; align-items:center; justify-content:center; gap:8px; }
.col-die { width:24px; height:24px; flex:none; display:block; }
.table-row { position:relative; }
.table-row span.combo { display:inline-flex; gap:4px; min-width:0; }
.mini-die { width:22px; height:22px; display:block; flex:none; }
.won-summary { display:flex; justify-content:center; align-items:baseline; gap:8px; padding:12px 16px 0; font-size:15px; color:var(--ink-muted); }
.won-summary strong { font-size:20px; color:var(--yellow-bright); }

.grid-columns .table-row.is-won { background:var(--yellow-bright); color:#000; }
.grid-columns .table-row.is-won .prize { color:#000; font-weight:800; }
.table-row.is-won::after { content:attr(data-badge); flex:none; font-size:13px; font-weight:900; line-height:1; background:#000; color:var(--yellow-bright); border-radius:999px; padding:5px 9px; white-space:nowrap; }
.grid-columns .table-row.is-demo { background:rgba(248,248,11,.12); outline:2px dashed var(--yellow-bright); outline-offset:-4px; }
.table-row.is-demo::after { content:"Üye olsaydın"; flex:none; font-size:12px; font-weight:800; line-height:1; background:var(--yellow-bright); color:#000; border-radius:999px; padding:5px 9px; white-space:nowrap; }
.table-row.is-latest { animation:rowFlash 900ms var(--ease-out); }
@keyframes rowFlash { 0% { background-color:#fff; } 100% { background-color:var(--yellow-bright); } }
.table-row.is-demo.is-latest { animation:none; }

.table-row.is-won, .table-row.is-demo { padding-top:22px; }
.table-row.is-won::after, .table-row.is-demo::after { position:absolute; top:5px; right:6px; font-size:11px; padding:3px 8px; }

dialog.signup { margin:auto; padding:0; border:1px solid rgba(248,248,11,.5); border-radius:28px; background:linear-gradient(160deg,#442D7E 0%,#2e144f 100%); color:#fff; width:min(440px, calc(100vw - 32px)); box-shadow:0 30px 80px rgba(0,0,0,.6); }
dialog.signup[open] { animation:dlgIn 280ms var(--ease-out); }
/* Site başka sayfaya uzun bir iframe olarak gömülü; ortalanırsa modal mobilde
   iframe'in ortasına, yani görünür alanın çok altına düşer. */
@media (max-width:860px) {
    dialog.signup { margin:16px auto auto; max-height:calc(100vh - 32px); overflow-y:auto; }
}
dialog.signup::backdrop { background:rgba(10,4,20,.72); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }
@keyframes dlgIn { from { opacity:0; transform:translateY(12px) scale(.97); } to { opacity:1; transform:none; } }
.signup-body { position:relative; padding:36px 28px 28px; text-align:center; font-family:inherit; }
.signup-close { position:absolute; top:12px; right:12px; width:44px; height:44px; border:0; border-radius:50%; background:transparent; color:var(--ink-muted); font-size:28px; line-height:1; cursor:pointer; }
.signup-close:hover { color:#fff; }
.signup-dice { display:flex; justify-content:center; gap:12px; margin-bottom:18px; }
.signup-die { width:56px; height:56px; display:block; filter:drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.signup-lead { font-size:17px; line-height:1.5; color:#e9e3f5; text-wrap:balance; }
.signup-prize { display:block; margin:10px 0; font-size:clamp(24px, 6vw, 30px); font-weight:900; line-height:1.15; color:var(--yellow-bright); }
.signup-cta { margin:16px 0 22px; font-size:15px; font-weight:900; letter-spacing:.03em; line-height:1.35; color:#fff; text-wrap:balance; }
.signup-actions { display:flex; flex-direction:column; gap:10px; }
.signup-primary, .signup-secondary { display:flex; align-items:center; justify-content:center; border-radius:999px; font-weight:800; text-decoration:none; transition:transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.signup-primary { min-height:56px; font-size:18px; color:#000; background:linear-gradient(to bottom,#FFFF33 0%,#F8F80B 50%,#b3b300 100%); box-shadow:0 8px 24px rgba(248,248,11,.35); }
.signup-secondary { min-height:48px; font-size:16px; color:#fff; border:1px solid var(--yellow-bright); }
.signup-primary:active, .signup-secondary:active { transform:scale(.97); }
@media (hover:hover) and (pointer:fine) { .signup-secondary:hover { background:rgba(248,248,11,.14); } }
@media (prefers-reduced-motion: reduce) {
    .btn-roll.is-cta, .table-row.is-latest, dialog.signup[open] { animation:none; }
}

.game-card-square, .history-card, .full-reward-table, .status-card {
    background:rgba(68,45,126,.14);
    -webkit-backdrop-filter:blur(8px) saturate(150%);
    backdrop-filter:blur(8px) saturate(150%);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.22);
}

:root { --surface-deep:rgba(20,10,40,.38); }
.result-box, .history-item, .rights, .sound-toggle { -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
.history-item { box-shadow:inset 0 1px 0 rgba(255,255,255,.06); }
.column { background-color:rgba(20,10,40,.3); }
.column.col-top { background-color:rgba(68,45,126,.4); }
.col-header { background:rgba(68,45,126,.55); }

.side-column { display:flex; flex-direction:column; gap:16px; min-width:0; }
.side-column .history-card { flex:1 1 auto; min-height:0; }
.status-card { border-radius:22px; padding:14px 0; overflow:hidden; }
.status-marquee { overflow:hidden; -webkit-mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image:linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.status-track { display:flex; width:max-content; animation:marquee 26s linear infinite; }
.status-group { display:flex; flex:none; gap:44px; padding-right:44px; margin:0; list-style:none; }
.status-msg { display:flex; align-items:center; gap:8px; white-space:nowrap; font-size:15px; font-weight:700; color:#F8C80B; }
.status-icon { width:20px; height:20px; flex:none; display:block; }
@keyframes marquee { to { transform:translateX(-50%); } }
@media (hover:hover) and (pointer:fine) { .status-card:hover .status-track { animation-play-state:paused; } }
@media (max-width:860px) { .side-column { gap:20px; } }

@media (prefers-reduced-motion: reduce) {
    .status-card { padding:14px 18px; }
    .status-marquee { -webkit-mask-image:none; mask-image:none; }
    .status-track { animation:none; width:auto; display:block; }
    .status-group { flex-direction:column; gap:10px; padding-right:0; }
    .status-msg { align-items:flex-start; }
    .status-group[aria-hidden="true"] { display:none; }
    .status-msg { white-space:normal; }
    .result-status { animation:none; }
    .result-status.is-bekliyor .status-icon { animation:none; }
    .history-status.is-bekliyor .status-icon { animation:none; }
}

@media (prefers-reduced-motion: no-preference) {
    .game-card-square, .history-card, .full-reward-table, .status-card { animation:cardIn 520ms var(--ease-out) both; }
    .history-card { animation-delay:70ms; }
    .status-card { animation-delay:105ms; }
    .full-reward-table { animation-delay:140ms; }
}
@keyframes cardIn { from { opacity:0; transform:translateY(14px) scale(.99); } }

.result-box { position:relative; overflow:hidden; }
.result-box.is-win { animation:none; }
.result-box > span { animation:resultText 320ms var(--ease-out) both; }
.result-box > .result-prize { animation-delay:60ms; }
@keyframes resultText { from { opacity:0; transform:translateY(6px); filter:blur(4px); } }
.result-box.is-win::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%); transform:translateX(-100%); animation:shine 900ms var(--ease-in-out) 120ms forwards; }
@keyframes shine { to { transform:translateX(100%); } }

.filter-buttons { position:relative; isolation:isolate; }
.filter-buttons::before { content:""; position:absolute; top:0; bottom:0; left:0; width:calc(50% - 4px); border-radius:999px; background:var(--yellow-bright); z-index:-1; transition:transform 260ms var(--ease-in-out); }
.filter-buttons[data-filter="me"]::before { transform:translateX(calc(100% + 8px)); }
.filter-buttons:has(#filterMe[hidden])::before { width:100%; }
.filter-btn.active { background:transparent; }

.history-item.is-new { animation:itemIn 320ms var(--ease-out), itemGlow 1400ms ease-out; }
@keyframes itemGlow { from { box-shadow:0 0 0 2px rgba(248,248,11,.9), 0 0 24px rgba(248,248,11,.35); } to { box-shadow:0 0 0 0 rgba(248,248,11,0); } }
@media (prefers-reduced-motion: reduce) {
    .result-box > span, .history-item.is-new { animation:fadeOnly 200ms ease-out both; }
    .result-box.is-win::after { display:none; }
    .filter-buttons::before { transition:none; }
}

.table-row.is-pasif {
    opacity: .32;
}

.table-row.is-pasif .prize {
    color: var(--ink-faint);
    font-weight: 600;
}
