/* ==========================================================================
   KEYİFBİZDE.COM - ÖZEL EFEKTLER, DÖNEN LOGO, MASA KÖŞE TEPSİLERİ & VİTRİN
   (effects.css v54 - GPU Hızlandırmalı Sıfır Kasma Mimarisi)
   ========================================================================== */

/* 1. GİRİŞ EKRANI: YUKARIDAN YAĞAN TRANSPARAN Kᙠ OKEY & 101 TAŞLARI */
.kb-rain-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

@keyframes kbTileRainFall {
    0% {
        transform: translate3d(0, -110px, 0) rotate(-12deg);
        opacity: 0;
    }
    15% {
        opacity: 0.22;
    }
    85% {
        opacity: 0.22;
    }
    100% {
        transform: translate3d(0, 105vh, 0) rotate(18deg);
        opacity: 0;
    }
}

.kb-rain-tile {
    position: absolute;
    top: -100px;
    width: 42px;
    height: 58px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.35) 0%, rgba(254, 240, 138, 0.22) 100%);
    border: 1.5px solid rgba(254, 240, 138, 0.45);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    will-change: transform, opacity;
    animation: kbTileRainFall linear infinite;
}

.kb-rain-tile span {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #fef08a;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.kb-rain-tile small {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.kb-rain-tile.rt-1 { left: 6%;  animation-duration: 9.5s;  animation-delay: 0s;   }
.kb-rain-tile.rt-2 { left: 19%; animation-duration: 12.2s; animation-delay: 2.1s; }
.kb-rain-tile.rt-3 { left: 33%; animation-duration: 10.8s; animation-delay: 4.3s; }
.kb-rain-tile.rt-4 { left: 48%; animation-duration: 13.5s; animation-delay: 1.2s; }
.kb-rain-tile.rt-5 { left: 62%; animation-duration: 9.8s;  animation-delay: 3.5s; }
.kb-rain-tile.rt-6 { left: 76%; animation-duration: 11.6s; animation-delay: 0.7s; }
.kb-rain-tile.rt-7 { left: 88%; animation-duration: 10.4s; animation-delay: 2.9s; }
.kb-rain-tile.rt-8 { left: 94%; animation-duration: 12.8s; animation-delay: 5.1s; }

/* 2. 4K CANLI HAREKETLİ KRALİYET ARMASI VE "KEYİFBİZDE" YAZISI */
@keyframes emblem3dPulse {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        box-shadow:
            0 8px 0 #451a03,
            0 18px 40px rgba(0, 0, 0, 0.85),
            0 0 28px rgba(250, 204, 21, 0.45),
            inset 0 3px 18px rgba(254, 240, 138, 0.65);
    }
    50% {
        transform: translate3d(0, -4px, 0) scale(1.025);
        box-shadow:
            0 12px 0 #451a03,
            0 24px 50px rgba(0, 0, 0, 0.92),
            0 0 46px rgba(254, 240, 138, 0.85),
            inset 0 4px 24px rgba(255, 255, 255, 0.85);
    }
}

.oval-3d-emblem {
    position: relative;
    padding: 12px 30px 16px 30px;
    border-radius: 50% / 40%;
    background:
        radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 50%, #10b981 0%, #065f46 65%, #022c22 100%);
    border: 3px solid var(--gold-bright);
    outline: 2.5px solid #713f12;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
    animation: emblem3dPulse 3.2s ease-in-out infinite;
}

@keyframes crownFloatGlow {
    0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 3px 0 #713f12) drop-shadow(0 0 12px #facc15); }
    50%      { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 4px 0 #713f12) drop-shadow(0 0 22px #fef08a); }
}

.emblem-crown-top {
    font-size: 27px;
    color: var(--gold-bright);
    margin-bottom: -6px;
    animation: crownFloatGlow 2.4s ease-in-out infinite;
}

.curved-3d-svg {
    width: 290px;
    height: 62px;
    overflow: visible;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.85));
}

.svg-live-brand-text {
    filter: drop-shadow(0 0 10px rgba(254, 240, 138, 0.7));
}

.ribbon-101 {
    background: linear-gradient(180deg, #ff2a2a 0%, #b91c1c 50%, #630808 100%);
    border: 2px solid #ffffff;
    outline: 1.5px solid var(--gold-main);
    border-radius: 24px;
    padding: 4px 26px;
    margin-top: -8px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.85), 0 0 15px rgba(239, 68, 68, 0.6);
    z-index: 3;
}

.fanned-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    margin-bottom: 6px;
    height: 74px;
}

@keyframes floatTile1 {
    0%, 100% { transform: rotate(-14deg) translateY(5px); }
    50%      { transform: rotate(-16deg) translateY(-5px); }
}
@keyframes floatTile2 {
    0%, 100% { transform: rotate(-5deg) translateY(1px); }
    50%      { transform: rotate(-3deg) translateY(-8px); }
}
@keyframes floatTile3 {
    0%, 100% { transform: rotate(5deg) translateY(-3px) scale(1.06); }
    50%      { transform: rotate(7deg) translateY(-13px) scale(1.1); }
}
@keyframes floatTile4 {
    0%, 100% { transform: rotate(15deg) translateY(5px); }
    50%      { transform: rotate(17deg) translateY(-5px); }
}

.fc-item {
    width: 48px;
    height: 66px;
    background: linear-gradient(165deg, #ffffff 0%, #f8f2e4 70%, #dfd2b8 100%);
    border: 1.5px solid #ffffff;
    border-radius: 9px;
    box-shadow:
        inset 0 2px 3px #ffffff,
        0 5px 0 #8c7b5e,
        0 12px 22px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 5px 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #dc2626;
    margin: 0 -4px;
}
.fc-item b { font-size: 21px; line-height: 1; text-shadow: 0 1px 0 #fff; }
.fc-item span { font-size: 13px; }
.fc-item.c1 { animation: floatTile1 2.6s ease-in-out infinite; }
.fc-item.c2 { animation: floatTile2 2.6s ease-in-out infinite 0.25s; }
.fc-item.c3 {
    background: linear-gradient(180deg, #fef9c3 0%, #facc15 55%, #ca8a04 100%);
    border: 2px solid #ffffff;
    box-shadow: 0 5px 0 #713f12, 0 0 22px rgba(250, 204, 21, 0.85);
    z-index: 2;
    animation: floatTile3 2.6s ease-in-out infinite 0.5s;
}
.fc-item.c4 { animation: floatTile4 2.6s ease-in-out infinite 0.75s; }

.kb-seal-mini {
    font-family: 'Cinzel', serif;
    font-size: 19px;
    font-weight: 900;
    color: #991b1b;
    letter-spacing: -1px;
    line-height: 1;
}

/* 3. EN ALTTAKİ ALTI ÇİZİLİ "KeyifBizde.COM Edition" İMZASI */
.edition-footer-signature {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-bright);
    letter-spacing: 1px;
    text-align: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85);
    position: relative;
    z-index: 5;
}
.edition-footer-signature u {
    text-decoration: underline;
    text-decoration-color: var(--gold-main);
    text-underline-offset: 4px;
}

/* 4. MASA ORTASI: ETRAFINDA ALTIN IŞIK DÖNEN "Keyifbizde.Com" VE ALTINDA "Hoşgeldiniz" */
@keyframes spinGoldOrbit {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.orbit-brand-box {
    position: relative;
    padding: 3px;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

.orbit-ring-spinner {
    position: absolute;
    width: 220%;
    height: 360%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #fef08a 60deg,
        #facc15 120deg,
        transparent 180deg,
        #4ade80 240deg,
        #fef08a 300deg,
        transparent 360deg
    );
    animation: spinGoldOrbit 3.5s linear infinite;
    pointer-events: none;
}

.orbit-inner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    background: radial-gradient(ellipse at center, #065f46 0%, #022c22 100%);
    border-radius: 14px;
    padding: 4px 14px 5px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tso-calligraphy-badge {
    font-family: 'Great Vibes', cursive;
    font-size: 29px;
    font-weight: 400;
    color: var(--gold-bright);
    line-height: 1.05;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 0 14px rgba(250, 204, 21, 0.75);
    letter-spacing: 1px;
}

.tso-welcome-sub {
    font-family: 'Cinzel', serif;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: 2.5px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    margin-top: -2px;
}

/* 5. MASANIN 4 KÖŞESİNDEKİ ÇAY / KAHVE / İKRAM TEPSİLERİ */
@keyframes cupPopServe {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.38) rotate(-8deg); box-shadow: 0 0 22px #fde047; }
    100% { transform: scale(1); }
}

.table-corner-tray {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fef08a 0%, #ca8a04 68%, #451a03 100%);
    border: 2px solid #ffffff;
    outline: 1.5px solid var(--gold-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.85), inset 0 2px 4px rgba(255,255,255,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 26;
    line-height: 1;
}
.table-corner-tray .tray-cup-icon {
    font-size: 15px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.65));
}
.table-corner-tray .tray-cup-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 6px;
    font-weight: 900;
    color: #ffffff;
    background: rgba(69, 26, 3, 0.88);
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: -1px;
}
.table-corner-tray.cup-served-anim {
    animation: cupPopServe 0.7s ease-in-out 2;
}

/* 4 Köşe Konumlandırması (Atılan Taş Yuvalarının Hemen Yanında, Masa Üzerinde) */
.tray-top-left     { top: 50px; left: 5px; }
.tray-top-right    { top: 50px; right: 5px; }
.tray-bottom-left  { bottom: 185px; left: 5px; }
.tray-bottom-right { bottom: 185px; right: 5px; }

/* 6. MASA İÇİ GENEL SOHBET BARI & SANDALYE KONUŞMA BALONLARI */
.table-public-chat-strip {
    width: 100%;
    height: 27px;
    background: linear-gradient(90deg, #042f24, #064e3b);
    border: 1px solid rgba(254, 240, 138, 0.45);
    border-radius: 8px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    position: relative;
}

.tpc-messages-line {
    flex: 1;
    font-size: 9.5px;
    color: #ecfdf5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tpc-input-form {
    display: flex;
    align-items: center;
    gap: 3px;
    width: 48%;
    max-width: 210px;
}

.tpc-inp {
    flex: 1;
    min-width: 0;
    height: 21px;
    background: rgba(2, 24, 18, 0.85);
    border: 1px solid var(--gold-main);
    border-radius: 5px;
    padding: 0 6px;
    color: #ffffff;
    font-size: 10px;
    outline: none;
}

.tpc-send-btn {
    height: 21px;
    padding: 0 8px;
    border-radius: 5px;
    border: none;
    background: linear-gradient(180deg, #fde047, #ca8a04);
    color: #091124;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.btn-emoji-trigger {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--gold-main);
    background: rgba(6, 78, 59, 0.9);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-emoji-trigger.sm {
    width: 21px;
    height: 21px;
    font-size: 11.5px;
    border-radius: 5px;
}

.emoji-picker-popover {
    position: absolute;
    bottom: 38px;
    left: 6px;
    background: rgba(4, 47, 36, 0.98);
    border: 2px solid var(--gold-main);
    border-radius: 12px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    z-index: 90;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85);
}
.emoji-picker-popover.table-emoji-pos {
    bottom: 30px;
    right: 6px;
    left: auto;
    grid-template-columns: repeat(6, 1fr);
}
.emoji-picker-popover span {
    font-size: 17px;
    padding: 3px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: transform 0.12s ease, background 0.12s ease;
}
.emoji-picker-popover span:hover,
.emoji-picker-popover span:active {
    background: rgba(250, 204, 21, 0.25);
    transform: scale(1.2);
}

@keyframes bubblePopIn {
    0%   { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.seat-speech-bubble {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #fef9c3, #fde047);
    border: 1.5px solid #713f12;
    color: #091124;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 10px;
    white-space: nowrap;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 4px 12px rgba(0,0,0,0.75);
    z-index: 60;
    pointer-events: none;
    animation: bubblePopIn 0.2s ease-out;
}
.seat-speech-bubble.side-left-bubble {
    top: 10px;
    left: 34px;
    transform: none;
}
.seat-speech-bubble.side-right-bubble {
    top: 10px;
    right: 34px;
    left: auto;
    transform: none;
}
.seat-speech-bubble.my-seat-bubble {
    top: -25px;
    left: 12px;
    transform: none;
}

/* 7. 20 ÇEŞİT YİYECEK & İÇECEK VİTRİNİ (5 ÜCRETSİZ + 15 VIP ÖZEL) */
.treat-info-banner {
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.25), rgba(234, 179, 8, 0.25));
    border: 1px solid var(--gold-main);
    border-radius: 10px;
    padding: 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    font-size: 10.5px;
    color: #ffffff;
}
.treat-info-banner small {
    font-size: 9.5px;
    color: var(--gold-bright);
}

.treats-20-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-height: 310px;
    overflow-y: auto;
    padding: 2px;
}

.treat-card-btn {
    background: linear-gradient(180deg, rgba(6, 78, 59, 0.92), rgba(2, 44, 34, 0.98));
    border: 1.5px solid rgba(254, 240, 138, 0.35);
    border-radius: 10px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 3px;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.treat-card-btn:active {
    transform: scale(0.95);
}

.treat-card-btn.is-free-item {
    border-color: #4ade80;
    box-shadow: inset 0 0 10px rgba(74, 222, 128, 0.18);
}

.treat-card-btn.is-vip-item {
    border-color: var(--gold-main);
    background: linear-gradient(180deg, rgba(69, 26, 3, 0.78), rgba(4, 47, 36, 0.96));
}

.treat-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 7px;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.treat-tag.free-tag {
    background: #16a34a;
    color: #ffffff;
}
.treat-tag.vip-tag {
    background: linear-gradient(90deg, #fef08a, #ca8a04);
    color: #091124;
}

.treat-emoji {
    font-size: 22px;
    line-height: 1.1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.treat-name {
    font-size: 8.5px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.1;
}