html,
body.idy-page {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent !important;
    font-family: 'Poppins', system-ui, sans-serif;
    color: #fff;
    overflow: hidden;
}

.idy-root {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.idy-viewport {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: clamp(18px, 3.5vh, 36px) clamp(22px, 5vw, 52px);
}

.idy-panel {
    flex: 0 1 auto;
    width: min(940px, 72vw);
    max-width: 100%;
    max-height: min(82vh, 640px);
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 1.15rem;
    overflow: hidden;
    background: rgba(8, 6, 4, 0.84);
    border: 1px solid rgba(240, 208, 120, 0.32);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    container-type: inline-size;
    container-name: idy-panel;
}

.idy-root--idle .idy-panel {
    width: auto;
    min-width: min(280px, 70vw);
    max-height: none;
    background: rgba(8, 6, 4, 0.78);
}

.idy-panel-body {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 1.6vh, 1rem);
    min-height: 0;
    max-height: min(82vh, 640px);
    padding: clamp(0.85rem, 2vh, 1.35rem) clamp(1rem, 2.2vw, 1.65rem);
    box-sizing: border-box;
}

.idy-idle {
    display: none;
    font-size: clamp(0.95rem, 2cqi, 1.15rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.idy-root--idle .idy-idle {
    display: block;
}

.idy-head {
    width: 100%;
    max-width: 1400px;
    text-align: center;
    flex-shrink: 0;
}

.idy-title {
    margin: 0;
    font-size: clamp(1.15rem, 3.2cqi, 2.35rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.2;
    color: #fde68a;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85), 0 0 1px rgba(0, 0, 0, 1);
}

.idy-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 0.55rem;
}

.idy-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: clamp(0.65rem, 1.2cqi, 0.82rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.idy-badge--live {
    background: rgba(127, 29, 29, 0.75);
    border-color: rgba(248, 113, 113, 0.65);
    color: #fff;
}

.idy-badge--live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.9);
    animation: idyPulse 1.4s ease-in-out infinite;
}

@keyframes idyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.85); }
}

.idy-badge--open {
    background: rgba(20, 83, 45, 0.75);
    color: #ecfdf5;
    border-color: rgba(74, 222, 128, 0.45);
}

.idy-badge--closed {
    background: rgba(120, 53, 15, 0.75);
    color: #fffbeb;
    border-color: rgba(251, 191, 36, 0.45);
}

.idy-badge--settled {
    background: rgba(76, 29, 149, 0.75);
    color: #f5f3ff;
    border-color: rgba(167, 139, 250, 0.45);
}

.idy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    font-size: clamp(0.78rem, 1.4cqi, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.idy-money {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.idy-money img {
    display: block;
}

.idy-arena {
    flex: 0 1 auto;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.idy-arena-columns {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.5rem, 1.8cqi, 1.35rem);
    min-height: 0;
    width: 100%;
}

.idy-col {
    flex: 1 1 0;
    max-width: 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(240, 208, 120, 0.35);
    border-radius: 1.1rem;
    padding: clamp(0.55rem, 1.4cqi, 1rem) clamp(0.45rem, 1cqi, 0.75rem);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(0, 0, 0, 0.35);
}

.idy-col--winner {
    border-color: rgba(74, 222, 128, 0.75);
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.idy-col-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    width: 100%;
}

.idy-col-avatar {
    width: clamp(36px, 6cqi, 56px);
    height: clamp(36px, 6cqi, 56px);
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(240, 208, 120, 0.45);
}

.idy-col-avatar--team {
    border-radius: 12px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.35);
}

.idy-col-label {
    font-size: clamp(0.78rem, 1.5cqi, 1rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idy-col-pct {
    font-size: clamp(1.35rem, 3.8cqi, 2.5rem);
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
    margin-top: 0.25rem;
}

.idy-col-pct-suffix {
    font-size: 0.55em;
    color: #fde68a;
}

.idy-col-pct-label {
    font-size: clamp(0.58rem, 1.05cqi, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.idy-col-stack-area {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: clamp(64px, 18cqi, 140px);
    max-height: min(22vh, 180px);
    padding: 0 0.25rem;
}

.idy-col-stack {
    width: min(100%, clamp(52px, 8cqi, 96px));
    height: var(--col-h, 14%);
    min-height: 28px;
    max-height: 100%;
    display: flex;
    flex-direction: column-reverse;
    border-radius: 10px 10px 4px 4px;
    overflow: hidden;
    box-shadow: 0 0 22px var(--idy-opt-glow, rgba(212, 175, 55, 0.28));
    transition: height 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.idy-col-stack--empty {
    height: 14%;
    min-height: 28px;
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.08);
}

.idy-stack-seg {
    width: 100%;
    min-height: 3px;
}

.idy-stack-seg--gumus {
    height: var(--gumus-h, 50%);
    background: linear-gradient(0deg, #475569, #94a3b8 40%, #cbd5e1);
}

.idy-stack-seg--altin {
    height: var(--altin-h, 50%);
    background: linear-gradient(0deg, #92400e, #d97706 45%, #fbbf24);
}

.idy-col-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 0.45rem;
    font-size: clamp(0.68rem, 1.2cqi, 0.85rem);
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.idy-col-mult {
    margin-top: 0.25rem;
    font-size: clamp(0.65rem, 1.1cqi, 0.8rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}

.idy-winners {
    flex-shrink: 0;
    font-size: clamp(0.78rem, 1.35cqi, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
}

.idy-winners strong {
    color: #fde68a;
}
