/* ============================================================
   SteamDrops — Giveaway Details Background
   ============================================================ */

/* Full-bleed background container — sits behind page content */
.gd-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Game art background — dimmed and blurred */
.gd-bg__image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur(4px) brightness(0.3) saturate(1.1);
    transform: scale(1.04);
}

/* Fallback gradient when no image exists */
.gd-bg__fallback {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(30, 42, 60, 0.6) 0%, transparent 100%);
}

/* Bottom fade — blends into site bg */
.gd-bg__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, var(--bg-main, #15202b) 0%, transparent 100%);
}

/* ============================================================
   LEVEL GATE — level-restricted entry blocked state
   ============================================================ */

.lvl-gate {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.07) 0%, rgba(20, 30, 48, 0.6) 100%);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 10px;
    padding: 14px 16px 12px;
    margin-bottom: 10px;
    overflow: hidden;
}

.lvl-gate__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 11px;
}

.lvl-gate__title {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
}

.lvl-gate__help {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.28);
    cursor: help;
    font-size: 0.78rem;
    transition: color 0.18s ease;
    margin-left: 1px;
}

.lvl-gate__help:hover {
    color: rgba(255, 255, 255, 0.65);
}

.lvl-gate__levels {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.lvl-gate__arrow {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.25);
}

/* Override lvl-tag absolute positioning for inline use inside the gate */
.lvl-gate .lvl-tag {
    position: static;
    bottom: auto;
    right: auto;
    border-color: transparent;
    font-size: 0.72rem;
    min-width: auto;
    padding: 2px 9px;
    border-radius: 10px;
    overflow: hidden;
    animation: none;
    box-shadow: none;
}

.lvl-gate .lvl-tag::after {
    display: none;
}


.lvl-gate__bar-wrap {
    height: 5px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 7px;
}

.lvl-gate__bar {
    height: 100%;
    background: linear-gradient(90deg, #d97706, #fbbf24 80%);
    border-radius: 99px;
    transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lvl-gate__values {
    display: flex;
    justify-content: space-between;
    font-size: 0.71rem;
    color: rgba(255, 255, 255, 0.35);
}

.lvl-gate__btn {
    width: 100%;
    padding: 15px;
    font-size: 1.05rem;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* ============================================================
   KEY EDITOR — creator key editing panel
   ============================================================ */

.key-editor {
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.03);
}

.key-editor__row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.key-editor__row:last-child {
    border-bottom: none;
}

.key-editor__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.key-editor__input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-editor__input {
    flex: 1;
    font-family: 'Courier New', 'Consolas', monospace !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px;
    padding: 8px 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.key-editor__input:focus {
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15) !important;
    outline: none;
}

.key-editor__input:disabled {
    background: rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.key-editor__eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.key-editor__eye:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.key-editor__input--error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15) !important;
}

.key-editor__error {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    padding-left: 2px;
}

/* Mobile: stack the save/cancel buttons */
@media (max-width: 600px) {
    .key-editor__input {
        font-size: 0.8rem !important;
    }
}
