/* ===============================
   🌌 THE FOCUS PORTAL CONTAINER
================================*/
.focus-portal {
    --ring-color: #6c63ff; /* Default Blue */
    
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

body.dark .focus-portal {
    background: rgba(20, 20, 28, 0.7);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ===============================
   1. THE PORTAL RING
================================*/
.portal-ring-container {
    position: relative;
    width: 260px;
    height: 260px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.portal-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) 0deg, transparent 0deg);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    mask: radial-gradient(transparent 68%, black 69%);
    -webkit-mask: radial-gradient(transparent 68%, black 69%);
    z-index: 2;
    transition: background 0.2s ease;
}

.portal-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--ring-color) 0%, transparent 65%);
    opacity: 0.2;
    filter: blur(30px);
    animation: portalPulse 4s infinite ease-in-out;
    z-index: 0;
    transition: background 0.5s ease;
}

/* ===============================
   2. CENTERED HUD TEXT
================================*/
.centered-time-group {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.portal-time {
    font-size: 56px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.portal-label {
    font-size: 10px;
    color: var(--ring-color);
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 6px;
    opacity: 0.9;
    transition: color 0.5s ease;
}

/* ===============================
   3. ARC REACTOR RINGS
================================*/
.reactor-container {
    position: absolute;
    z-index: 10;
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.reactor-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.5s ease;
}

.reactor-ring.outer {
    width: 100%;
    height: 100%;
    border-top: 2px solid var(--ring-color);
    border-bottom: 2px solid var(--ring-color);
    opacity: 0.3;
    animation: spin 8s infinite linear;
}

.reactor-ring.inner {
    width: 75%;
    height: 75%;
    border-left: 2px solid var(--ring-color);
    border-right: 2px solid var(--ring-color);
    opacity: 0.5;
    animation: spinReverse 4s infinite linear;
}

/* ===============================
   4. COMMAND DOCK
================================*/
.command-dock {
    display: flex;
    gap: 14px;
    background: rgba(0,0,0,0.04);
    padding: 10px;
    border-radius: 24px;
    border: 1px solid rgba(0,0,0,0.05);
}
body.dark .command-dock { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }

.dock-btn {
    border: none;
    height: 52px;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.dock-btn:hover { transform: translateY(-3px); }
.dock-btn:active { transform: scale(0.96); }

/* Start Button */
.dock-btn.primary { background: var(--primary); color: white; padding: 0 30px; box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35); }
.dock-btn.secondary { background: transparent; color: var(--subtext); width: 52px; border: 2px solid rgba(0,0,0,0.08); }
body.dark .dock-btn.secondary { border-color: rgba(255,255,255,0.15); }
.dock-btn.danger { background: #ff4757; color: white; padding: 0 24px; box-shadow: 0 8px 20px rgba(255, 71, 87, 0.35); }

/* Animations */
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes portalPulse { 0%, 100% { opacity: 0.1; transform: scale(0.9); } 50% { opacity: 0.3; transform: scale(1.1); } }

/* ===============================
   OTHER CARDS
================================*/
.focus-container { display: flex; flex-direction: column; gap: 18px; padding-bottom: 80px; }
.focus-card { background: var(--card); color: var(--text); padding: 24px; border-radius: 24px; box-shadow: var(--shadow); }
.preset-row { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
.preset-btn { flex: 1; background: var(--input); color: var(--text); padding: 12px; border-radius: 14px; border: none; font-weight: 600; transition: .2s; }
.preset-btn:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.custom-inline-input { display: none; margin-top: 15px; gap: 10px; }
.custom-inline-input input { flex: 1; padding: 12px; border-radius: 14px; border: 1px solid var(--subtext); background: var(--bg); color: var(--text); }