@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Semibold.ttf') format('truetype');
    font-weight: 600 800;
    font-style: normal;
    font-display: swap;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background-color: #0B0E14;
    color: #F8FAFC;
    font-family: 'OpenSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -webkit-touch-callout: none;
    user-select: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
    font-family: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    transition: transform 90ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease, filter 120ms ease;
}

button:active:not(:disabled) {
    transform: scale(0.965);
}

button:disabled {
    cursor: default;
}

#app {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #0B0E14;
}

.bunker-app-shell {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #0B0E14;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* Custom sleek dark scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #2A354C;
    border-radius: 99px;
}

/* Boot Splash Screen */
.bunker-boot-screen {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0B0E14;
}

.bunker-boot-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.bunker-boot-ring {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    padding: 3px;
    background: linear-gradient(135deg, #EF4444, #991B1B);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bunker-boot-inner {
    width: 114px;
    height: 114px;
    border-radius: 57px;
    overflow: hidden;
    background: #090C12;
}

.bunker-boot-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bunker-boot-title {
    font-size: 28px;
    font-weight: 700;
    color: #F8FAFC;
    letter-spacing: 1px;
}

.bunker-boot-sub {
    font-size: 13px;
    color: #94A3B8;
}

.bunker-boot-bar {
    width: 180px;
    height: 4px;
    border-radius: 4px;
    background: #1A2233;
    overflow: hidden;
}

.bunker-boot-bar-fill {
    width: 45%;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #DC2626, #F59E0B);
    animation: bootSlide 1.1s ease-in-out infinite alternate;
}

@keyframes bootSlide {
    from { transform: translateX(-20%); }
    to { transform: translateX(145%); }
}

.blazor-error-toast {
    display: none;
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 24px);
    z-index: 9999;
    background: #2A131A;
    border: 1.5px solid #EF4444;
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    gap: 10px;
    align-items: center;
}
.blazor-error-toast a { color: #FDE68A; margin-left: 8px; }
.blazor-error-toast .dismiss { cursor: pointer; margin-left: 8px; }

/* =========================================================================
   COMMON PAGE CONTAINERS (exact parity with MAUI MaximumWidthRequest 440/460/540)
   ========================================================================= */
.page-scroll-center {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.page-column-440 {
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.page-column-460 {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-column-game {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .menu-column-responsive { max-width: 460px !important; }
    .page-column-game, .rules-column-responsive, .roster-sheet-responsive { max-width: 540px !important; }
}

/* =========================================================================
   MAIN MENU (1:1 MainMenuPage.xaml)
   ========================================================================= */
.menu-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-hero-card {
    background: #131620;
    border: 1.5px solid #3A2026;
    border-radius: 22px;
    overflow: hidden;
}

.top-accent-bar {
    width: 100%;
    height: 3.5px;
    flex-shrink: 0;
}

.menu-hero-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.menu-logo-ring {
    width: 164px;
    height: 164px;
    border-radius: 82px;
    padding: 3px;
    background: linear-gradient(135deg, #EF4444 0%, #991B1B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-logo-inner {
    width: 158px;
    height: 158px;
    border-radius: 79px;
    background: #090C12;
    overflow: hidden;
}

.menu-logo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-title {
    font-size: 32px;
    font-weight: 700;
    color: #F8FAFC;
    text-align: center;
    line-height: 1.15;
}

.menu-subtitle {
    font-size: 13.5px;
    color: #94A3B8;
    text-align: center;
    line-height: 1.35;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.btn-primary-red {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    background: #B91C1C;
    border: 1.2px solid #EF4444;
    color: #FFFFFF;
    font-size: 16.5px;
    font-weight: 700;
}

.btn-secondary-red {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #191D28;
    border: 1.2px solid #7F1D1D;
    color: #F8FAFC;
    font-size: 16px;
    font-weight: 700;
}

.btn-muted-slate {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: #131620;
    border: 1px solid #2D3548;
    color: #CBD5E1;
    font-size: 15px;
    font-weight: 700;
}

.inline-error-banner {
    background: #2A131A;
    border: 1.2px solid #EF4444;
    border-radius: 12px;
    padding: 9px 12px;
    color: #FCA5A5;
    font-size: 12.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    animation: fadeInFast 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeInFast {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================================================================
   LOBBY SEARCH / PRE-LOBBY / LOBBY / RULES / SITUATION / CARDS
   ========================================================================= */
.tactical-card {
    background: #131823;
    border: 1.5px solid #2A354C;
    border-radius: 22px;
    overflow: hidden;
}

.input-box-shell {
    background: #0C1018;
    border: 1.5px solid #33415C;
    border-radius: 14px;
    padding: 4px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-box-shell input {
    width: 100%;
    height: 46px;
    background: transparent;
    border: none;
    outline: none;
    color: #F8FAFC;
    font-weight: 700;
}

.input-box-shell input::placeholder {
    color: #475569;
}

.btn-sky {
    width: 100%;
    height: 54px;
    border-radius: 14px;
    background: #38BDF8;
    color: #0B0E14;
    font-size: 16.5px;
    font-weight: 700;
}

.btn-amber {
    width: 100%;
    height: 52px;
    border-radius: 14px;
    background: #F59E0B;
    color: #0B0E14;
    font-size: 16px;
    font-weight: 700;
}

.btn-back-slate {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    background: #1A2233;
    border: 1px solid #2F3D57;
    color: #CBD5E1;
    font-size: 15px;
    font-weight: 700;
}

/* Pre-Lobby Avatar Picker */
.prelobby-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prelobby-avatar-ring {
    width: 92px;
    height: 92px;
    border-radius: 46px;
    padding: 2.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prelobby-avatar-inner {
    width: 87px;
    height: 87px;
    border-radius: 43.5px;
    background: #1B2336;
    overflow: hidden;
}

.prelobby-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prelobby-camera-badge {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: #F59E0B;
    border: 2px solid #0B0E14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preset-tile {
    border-radius: 12px;
    padding: 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 90ms ease;
}

.preset-tile:active { transform: scale(0.92); }

.preset-ring {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preset-ring-inner {
    width: 46px;
    height: 46px;
    border-radius: 23px;
    background: #172033;
    overflow: hidden;
}

.preset-ring-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preset-caption {
    font-size: 9.5px;
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Circular Avatar Helper */
.avatar-circle {
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-circle-inner {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================================
   GAME PAGE (1:1 GamePage.xaml)
   ========================================================================= */
.game-root {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hud-card {
    background: #131823;
    border: 1px solid #2A354C;
    border-radius: 18px;
    margin: 8px 10px 4px 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.hud-body {
    padding: 8px 11px 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hud-row1 {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    column-gap: 6px;
    align-items: center;
}

.phase-chip {
    border-radius: 10px;
    padding: 5px 9px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.phase-dot {
    width: 7px;
    height: 7px;
    border-radius: 4px;
    flex-shrink: 0;
}

.phase-title-text {
    font-size: 12.5px;
    font-weight: 700;
    color: #F8FAFC;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timer-badge {
    border-radius: 10px;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13.5px;
    font-weight: 700;
    white-space: nowrap;
}

.hud-icon-btn {
    background: #1B2336;
    border: 1px solid #33415C;
    border-radius: 10px;
    padding: 5px 8px;
    font-size: 14px;
    line-height: 1.2;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #F59E0B;
    border: 1.2px solid #0B0E14;
    color: #0B0E14;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hud-row2 {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
}

.bunker-pills {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bunker-pill {
    border-radius: 7px;
    padding: 2px 6px;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.status-line {
    font-size: 11px;
    color: #CBD5E1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Players Strip */
.players-strip-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    column-gap: 5px;
    align-items: center;
}

.strip-arrow-btn {
    width: 24px;
    height: 42px;
    border-radius: 10px;
    background: #171E2E;
    border: 1px solid #2A354C;
    color: #94A3B8;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.players-strip-scroll {
    display: flex;
    flex-direction: row;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 1px 0;
    -webkit-overflow-scrolling: touch;
}
.players-strip-scroll::-webkit-scrollbar { display: none; }

.player-chip {
    flex: 0 0 104px;
    width: 104px;
    height: 42px;
    border-radius: 12px;
    padding: 4px 6px;
    display: grid;
    grid-template-columns: 30px 1fr;
    column-gap: 6px;
    align-items: center;
    cursor: pointer;
    transition: transform 90ms ease;
}
.player-chip:active { transform: scale(0.93); }

.chip-avatar-host {
    position: relative;
    width: 30px;
    height: 30px;
}

.chip-mini-icon {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border-radius: 6px;
    background: #0B0E14;
    border: 0.8px solid #2A354C;
    font-size: 7.5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-players-btn {
    height: 42px;
    border-radius: 11px;
    background: #162336;
    border: 1.2px solid #38BDF8;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}

/* Card Stack (Front + Back 2-card swipe container) */
.card-stack-area {
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    margin: 2px 10px 10px 10px;
    touch-action: pan-y;
}

.player-dossier-layer {
    position: absolute;
    inset: 0;
    will-change: transform, opacity;
    touch-action: pan-y;
}

.player-dossier-layer.layer-hidden {
    display: none;
}

.player-dossier-layer.back-card {
    pointer-events: none;
    transform: translate3d(0, 14px, 0) scale(0.92);
    opacity: 0.55;
    z-index: 1;
}

.player-dossier-layer.front-card {
    z-index: 2;
}

.player-dossier-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    border-width: 1.5px;
    border-style: solid;
    padding: 9px 11px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    touch-action: pan-y;
}

.dossier-header {
    height: 62px;
    flex-shrink: 0;
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 10px;
    align-items: center;
}

.dossier-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 8px;
}

.back-card .dossier-scroll {
    overflow: hidden;
}

/* Hero Pixel-Art Stage */
.hero-stage-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    column-gap: 8px;
    height: 156px;
    flex-shrink: 0;
}

.character-stage {
    border-radius: 15px;
    border: 1.2px solid #2A364F;
    background: linear-gradient(180deg, #162033 0%, #0D121D 100%);
    padding: 6px;
    position: relative;
    overflow: hidden;
}

.luggage-stage {
    border-radius: 15px;
    border: 1.2px solid #2A364F;
    background: linear-gradient(180deg, #1A2030 0%, #0D121D 100%);
    padding: 6px 7px;
    display: grid;
    grid-template-rows: auto 1fr;
    row-gap: 4px;
    overflow: hidden;
}

.stage-pill {
    position: absolute;
    top: 6px;
    background: rgba(16, 22, 34, 0.78);
    border: 1px solid #2A354C;
    border-radius: 7px;
    padding: 2px 6px;
    pointer-events: none;
    z-index: 2;
}

.pixel-canvas {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Uniform 3-Column Card Row (138px height exact match!) */
.cards-uniform-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 7px;
    height: 138px;
}

.mini-card-tile {
    height: 138px;
    border-radius: 12px;
    border-width: 1.2px;
    border-style: solid;
    overflow: hidden;
    display: grid;
    grid-template-rows: 3px 1fr;
    cursor: pointer;
    transition: transform 90ms ease;
}
.mini-card-tile:active { transform: scale(0.95); }

.mini-card-inner {
    padding: 5px 7px 6px 7px;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    row-gap: 3px;
    min-height: 0;
    min-width: 0;
}

/* Stats List */
.stat-row-card {
    min-height: 54px;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    padding: 7px 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    column-gap: 8px;
    align-items: center;
}

.stat-icon-box {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #1B2233;
    border: 1px solid #2A354C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.stat-reveal-btn {
    background: #10B981;
    color: #062018;
    border-radius: 9px;
    height: 34px;
    min-width: 80px;
    padding: 0 10px;
    font-size: 11.5px;
    font-weight: 700;
}

/* Swipe Direction Stamps */
.swipe-stamp {
    position: absolute;
    top: 15px;
    padding: 4px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #0B0E14;
    pointer-events: none;
    opacity: 0;
    z-index: 5;
}

.swipe-stamp-next {
    right: 19px;
    transform: rotate(10deg);
    background: rgba(245, 158, 11, 0.85);
    border: 2px solid #FDE68A;
}

.swipe-stamp-prev {
    left: 19px;
    transform: rotate(-10deg);
    background: rgba(56, 189, 248, 0.85);
    border: 2px solid #BAE6FD;
}

/* =========================================================================
   OVERLAYS: PHASE BANNER, TOAST, VOTING REVEAL, ACTION LOG, ROSTER, DISCONNECT
   ========================================================================= */
.overlay-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    animation: fadeInFast 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

.voting-reveal-shell {
    padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom)) 14px;
    gap: 12px;
}

.vote-count-pop {
    display: inline-block;
    animation: countPop 170ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes countPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.22); }
    100% { transform: scale(1); }
}

.phase-banner-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 40;
}

.phase-banner-card {
    background: rgba(19, 24, 35, 0.94);
    border: 2px solid #F59E0B;
    border-radius: 18px;
    padding: 14px 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
    text-align: center;
    animation: bannerPop 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bannerPop {
    0% { opacity: 0; transform: scale(0.8); }
    70% { opacity: 1; transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}

.spotlight-toast-wrap {
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 440px;
    pointer-events: none;
    z-index: 90;
}

.spotlight-toast-card {
    border-radius: 16px;
    border-width: 1.8px;
    border-style: solid;
    overflow: hidden;
    display: grid;
    grid-template-columns: 5px auto 1fr;
    column-gap: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
    animation: toastEnter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes toastEnter {
    0% { opacity: 0; transform: translateY(-26px) scale(0.90); }
    72% { opacity: 1; transform: translateY(0) scale(1.03); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.action-log-sheet {
    width: 100%;
    max-width: 460px;
    margin-top: calc(76px + env(safe-area-inset-top));
    background: #121722;
    border: 1.5px solid #2D3A54;
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom)) 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: sheetSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sheetSlideUp {
    from { transform: translateY(260px); opacity: 0.4; }
    to { transform: translateY(0); opacity: 1; }
}

.roster-sheet {
    width: calc(100% - 28px);
    max-width: 460px;
    margin: auto 14px;
    background: #121722;
    border: 1.5px solid #2D3A54;
    border-radius: 20px;
    padding: 12px 14px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100dvh - 64px);
    animation: modalScaleIn 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

/* Voting Reveal Animations */
.vote-candidate-row {
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    transition: background-color 220ms ease, border-color 220ms ease;
    animation: rowSlideUp 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rowSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.voter-badge-pop {
    width: 56px;
    margin: 0 6px 4px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    animation: voterPop 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes voterPop {
    0% { opacity: 0; transform: scale(0.25); }
    65% { opacity: 1; transform: scale(1.14); }
    100% { opacity: 1; transform: scale(1); }
}

.vote-mod-pop {
    animation: modPop 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modPop {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.eliminated-stamp-pop {
    background: #DC2626;
    border: 1.2px solid #FCA5A5;
    border-radius: 7px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #FFFFFF;
    animation: stampSlam 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stampSlam {
    from { opacity: 0; transform: scale(1.6); }
    to { opacity: 1; transform: scale(1); }
}

/* Picker Chips (CardDetail / CardExchange) */
.chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.picker-chip {
    border-radius: 10px;
    padding: 7px 11px;
    font-size: 12px;
    cursor: pointer;
    border-style: solid;
    transition: transform 80ms ease;
}
.picker-chip:active { transform: scale(0.95); }

