﻿
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #1f2933;
}

.mobile-wrapper {
    width: 100%;
    max-width: 420px;
    height: 100dvh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #183626 0%, #235438 42%, #1c2942 100%);
    color: white;
}

.top-bar {
    height: 10%;
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    position: relative;
    z-index: 10;
}

.meter {
    background: rgba(255,255,255,0.95);
    color: #1f2933;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 3px 0 rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.main-area {
    position: absolute;
    top: 10%;
    left: 0;
    right: 0;
    bottom: 80px;
    display: flex;
    flex-direction: column;
}

.section {
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.section-top {
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 60%), linear-gradient(180deg, #2f7d4f 0%, #24663f 100%);
    border-bottom: 3px solid rgba(255,255,255,0.08);
}

.section-bottom {
    background: radial-gradient(circle at top, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 55%), linear-gradient(180deg, #234a33 0%, #203b2d 30%, #1d2842 100%);
}

.section-title {
    position: absolute;
    top: 10px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

    .section-title h2 {
        font-size: 15px;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

.section-badge {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* BOVENSTE HELFT */

.table-overview {
    position: absolute;
    inset: 0;
}

.virtual-table {
    position: absolute;
    width: 250px;
    height: 250px;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 45%, rgba(0,0,0,0.12) 100%);
    border: 3px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 12px 25px rgba(255,255,255,0.07), inset 0 -18px 28px rgba(0,0,0,0.18), 0 10px 28px rgba(0,0,0,0.25);
}

.player-spot {
    position: absolute;
    width: 66px;
    margin-left: -33px;
    margin-top: -33px;
    text-align: center;
}

.player-icon-wrap {
    position: relative;
    width: 54px;
    height: 54px;
    margin: 0 auto;
}

.player-dot {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(180deg, #ffffff 0%, #e7edf5 100%);
    color: #183049;
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 13px;
}

.player-spot.me .player-dot {
    background: linear-gradient(180deg, #ffd54f 0%, #ffb300 100%);
    color: #3d2a00;
    transform: scale(1.08);
}

.player-name {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* MINI-KAART ALS BADGE */
:root {
    --badge-w: 32px;
    --badge-h: 42px;
    --badge-top: -8px;
    --badge-right: -10px;
    --badge-corner-font: 10px;
    --badge-center-font: 13px;
}

.card-badge {
    position: absolute;
    top: var(--badge-top);
    right: var(--badge-right);
    width: var(--badge-w);
    height: var(--badge-h);
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    color: #13263c;
    border: 2px solid #dce5ef;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 3px;
    font-weight: 900;
    line-height: 1;
    z-index: 3;
}

    .card-badge.red {
        color: #c62828 !important;
    }

.badge-top,
.badge-bottom {
    font-size: var(--badge-corner-font);
}

.badge-center {
    text-align: center;
    font-size: var(--badge-center-font);
}

/* POSITIES CIRKEL */
.p1 {
    left: 50%;
    top: 11%;
}

.p2 {
    left: 80%;
    top: 30%;
}

.p3 {
    left: 80%;
    top: 70%;
}

.p4 {
    left: 50%;
    top: 89%;
}

.p5 {
    left: 20%;
    top: 70%;
}

.p6 {
    left: 20%;
    top: 30%;
}

/* ONDERSTE HELFT */

.player-hand-area {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 18px 10px 14px 10px;
}

.turn-tag {
    margin-bottom: 14px;
    background: linear-gradient(180deg, #8be28f 0%, #67c86c 100%);
    color: #12341d;
    font-size: 13px;
    font-weight: 900;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.my-hand {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
}

.hand-card {
    width: 76px;
    height: 108px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
    color: #12263a;
    border: 2px solid #d9e3ee;
    box-shadow: 0 10px 18px rgba(0,0,0,0.28);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
}

    .hand-card.red {
        color: #c62828;
    }

    .hand-card.card1 {
        transform: rotate(-10deg) translateY(8px);
    }

    .hand-card.card2 {
        transform: rotate(-3deg) translateY(0);
    }

    .hand-card.card3 {
        transform: rotate(3deg) translateY(0);
    }

    .hand-card.card4 {
        transform: rotate(10deg) translateY(8px);
    }

.hand-top,
.hand-bottom {
    font-size: 20px;
    line-height: 1;
    font-weight: 900;
}

.hand-center {
    text-align: center;
    font-size: 32px;
    margin-top: -4px;
}

.hand-bottom {
    transform: rotate(180deg);
    align-self: flex-end;
}

/* BOTTOM NAV */
.bottom-nav {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
    display: flex;
    border-top: 3px solid #3c1d59;
    z-index: 20;
}

.nav-btn {
    flex: 1;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 12px;
    position: relative;
}

    .nav-btn:not(:last-child) {
        border-right: 1px solid rgba(255,255,255,0.25);
    }

    .nav-btn .icon {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .nav-btn.red {
        background: #c62828;
    }

    .nav-btn.blue {
        background: #1565c0;
    }

    .nav-btn.green {
        background: #2e7d32;
    }

    .nav-btn.orange {
        background: #ef6c00;
    }

    .nav-btn.purple {
        background: #6a1b9a;
    }

    .nav-btn.active {
        background: #7d3cb5;
    }

@media (max-width: 380px) {
    .virtual-table {
        width: 225px;
        height: 225px;
    }

    .player-spot {
        width: 58px;
        margin-left: -29px;
        margin-top: -29px;
    }

    .player-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .player-dot {
        width: 48px;
        height: 48px;
        font-size: 12px;
    }

    .card-badge {
        width: 22px;
        height: 29px;
    }

    .hand-card {
        width: 68px;
        height: 100px;
    }
}


.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .title-left h2 {
        margin: 0;
    }

.title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cast-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
    cursor: pointer;
}

    .cast-btn:active {
        transform: scale(0.95);
    }

.cast-icon-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}
