/* ═══════════════════════════════════════════════════
   발판 도우미 - Design System
   ═══════════════════════════════════════════════════ */

:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.04);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-blue: #3b82f6;
    --accent-blue-glow: rgba(59, 130, 246, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --accent-green: #22c55e;
    --accent-green-glow: rgba(34, 197, 94, 0.3);
    --accent-red: #ef4444;
    --accent-red-glow: rgba(239, 68, 68, 0.3);
    --accent-yellow: #eab308;

    --border-color: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(59, 130, 246, 0.2);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ═══ Background Particles ═══ */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ═══════════════════════════════════════════════════
   Landing Page
   ═══════════════════════════════════════════════════ */
.landing-container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.landing-header {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
}

.logo-glow {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.title-icon {
    font-size: 1.2em;
    margin-right: 4px;
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.landing-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ═══ Card ═══ */
.landing-card {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: var(--text-primary);
}

.error-message {
    color: var(--accent-red);
    font-size: 0.85rem;
    min-height: 20px;
    margin-bottom: 8px;
    text-align: center;
    transition: opacity 0.3s;
}

/* ═══ Buttons ═══ */
.button-group {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.25s;
}

.btn:hover::after {
    opacity: 1;
}

.btn:active {
    transform: scale(0.97);
}

.btn-icon {
    font-size: 1.1em;
}

.btn-create {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px var(--accent-blue-glow);
}

.btn-create:hover {
    box-shadow: 0 6px 25px var(--accent-blue-glow);
    transform: translateY(-1px);
}

.btn-join {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-join:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
}

/* ═══ Info Card ═══ */
.info-card {
    width: 100%;
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    backdrop-filter: blur(20px);
}

.info-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.info-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-step {
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.info-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ═══ Footer ═══ */
.landing-footer {
    margin-top: 32px;
    text-align: center;
}

.landing-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════
   Modal
   ═══════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.modal-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════════════════
   Room Page
   ═══════════════════════════════════════════════════ */
.room-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 12px 40px;
}

/* ═══ Room Header ═══ */
.room-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    backdrop-filter: blur(12px);
    flex-wrap: wrap;
    gap: 8px;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text-primary);
}

.room-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon-action:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.btn-icon-action.btn-danger:hover {
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* ═══ Help Tooltip on Main Page ═══ */
.help-dropdown-wrapper {
    position: relative;
    display: inline-block;
}
.help-btn {
    cursor: help;
}
.main-help-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: var(--radius-md);
    padding: 14px;
    color: #cbd5e1;
    font-size: 0.75rem;
    line-height: 1.6;
    width: 300px;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    text-align: left;
    font-weight: 500;
}
.help-dropdown-wrapper:hover .main-help-tooltip {
    display: block;
    animation: fadeIn 0.15s ease-out forwards;
}
@media (max-width: 640px) {
    .main-help-tooltip {
        width: 260px;
    }
}

/* ═══ Q Shortcut Toggle ═══ */
.btn-toggle-q {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.25s;
}
.btn-toggle-q.active {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.btn-toggle-q:not(.active) {
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    opacity: 0.6;
}
.q-key-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Inter', monospace;
    line-height: 1;
}
.toggle-label {
    font-size: 0.7rem;
    font-weight: 700;
}

/* ═══ Players Bar ═══ */
.players-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.player-slot {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.player-slot.active {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow);
}

.player-slot.self {
    border-color: var(--accent-purple);
    box-shadow: 0 0 12px var(--accent-purple-glow);
}

.player-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: background 0.3s;
}

.player-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green-glow);
    animation: pulse-dot 2s infinite;
}

.player-dot.offline {
    background: var(--accent-red);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.player-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.player-room-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══ Keyboard hint ═══ */
.keyboard-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    padding: 8px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

/* ═══ Grid Container ═══ */
.grid-container {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.floor-labels {
    display: flex;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border-color);
}

.floor-label {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0 10px;
    border-bottom: 1px solid var(--border-color);
    min-width: 42px;
}

.floor-label:last-child {
    border-bottom: none;
}

/* Floor labels offset for grid header */
.floor-labels::before {
    content: '';
    display: block;
    height: 36px;
    border-bottom: 1px solid var(--border-color);
}

.grid-scroll {
    flex: 1;
    overflow-x: auto;
}

.grid-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
    height: 36px;
}

.grid-col-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-right: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.grid-col-header:last-child {
    border-right: none;
}

/* Grid Body */
.grid-body {
    display: flex;
    flex-direction: column;
}

.grid-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.grid-row:last-child {
    border-bottom: none;
}

/* Each player's cell in one floor row */
.grid-cell {
    display: flex;
    gap: 3px;
    padding: 6px 4px;
    justify-content: center;
    align-items: center;
    border-right: 1px solid var(--border-color);
    height: 48px;
}

.grid-cell:last-child {
    border-right: none;
}

/* Step button */
.step-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.step-btn:active {
    transform: scale(0.95);
}

/* Step states */
.step-btn.correct {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.15));
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green-glow);
    animation: stepCorrect 0.3s ease;
}

.step-btn.wrong {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
    color: rgba(148, 163, 184, 0.4);
    box-shadow: none;
}

@keyframes stepCorrect {
    0% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes stepWrong {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Readonly step (other player's room) */
.step-btn.readonly,
.step-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.step-btn.readonly:hover,
.step-btn:disabled:hover {
    transform: none;
    border-color: var(--border-color);
    background: var(--bg-glass);
}

.step-btn.readonly.correct,
.step-btn:disabled.correct {
    opacity: 0.8;
}

.step-btn.readonly.wrong,
.step-btn:disabled.wrong {
    opacity: 0.7;
}

/* Kick button */
.kick-btn {
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.kick-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: var(--accent-red);
}

/* Swap button */
.swap-btn {
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: inherit;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.swap-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: var(--accent-blue);
}

/* Slot actions container */
.slot-actions {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

/* Keyboard focus highlight */
.grid-cell.focused {
    background: rgba(139, 92, 246, 0.08);
}

/* ═══ Legend ═══ */
.legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-swatch {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 2px solid;
}

.legend-none {
    background: var(--bg-glass);
    border-color: var(--border-color);
}

.legend-correct {
    background: rgba(34, 197, 94, 0.3);
    border-color: var(--accent-green);
}

.legend-wrong {
    background: rgba(100, 116, 139, 0.15);
    border-color: rgba(148, 163, 184, 0.3);
}

/* ═══ Toast ═══ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease;
    z-index: 200;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ═══ Responsive ═══ */
@media (max-width: 640px) {
    .landing-title {
        font-size: 2rem;
    }

    .landing-card {
        padding: 24px 20px;
    }

    .room-header {
        padding: 10px 12px;
    }

    .room-title {
        font-size: 0.95rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-icon-action span {
        display: none;
    }

    .btn-icon-action {
        padding: 8px 10px;
    }

    .players-bar {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .player-slot {
        padding: 8px 4px;
    }

    .player-name {
        font-size: 0.95rem;
    }

    .player-room-label {
        font-size: 0.6rem;
    }

    .keyboard-hint {
        display: none;
    }

    .floor-label {
        font-size: 0.6rem;
        padding: 0 6px;
        min-width: 32px;
        height: 42px;
    }

    .floor-labels::before {
        height: 32px;
    }

    .grid-header {
        height: 32px;
    }

    .grid-col-header {
        font-size: 0.65rem;
    }

    .grid-cell {
        gap: 2px;
        padding: 4px 2px;
        height: 42px;
    }

    .step-btn {
        width: 28px;
        height: 28px;
        font-size: 0.6rem;
        border-radius: 6px;
    }

    .legend {
        gap: 14px;
    }

    .legend-item {
        font-size: 0.7rem;
    }
}

@media (max-width: 400px) {
    .step-btn {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
        border-radius: 4px;
        border-width: 1.5px;
    }

    .grid-cell {
        gap: 1px;
        padding: 3px 1px;
        height: 36px;
    }

    .floor-label {
        height: 36px;
    }
}

.site-top-banner { position: fixed; top: 0; left: 0; width: 100%; text-align: center; padding: 10px 0; background: rgba(10, 14, 26, 0.85); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(139, 92, 246, 0.15); color: #8b5cf6; font-size: 0.95rem; font-weight: 700; z-index: 3000; letter-spacing: 0.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.4; }
.pip-guide-text { color: #94a3b8; font-size: 0.8rem; margin-top: 4px; font-weight: 500; letter-spacing: 0; word-break: keep-all; padding: 0 10px; }
.site-footer-copyright { text-align: center; padding: 20px 0; color: #64748b; font-size: 0.75rem; margin-top: auto; }
body { padding-top: 48px; }

/* ═══ Swap Panel ═══ */
.swap-panel { background: rgba(15, 23, 42, 0.95); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 8px; margin-top: 8px; width: 100%; animation: slideDown 0.2s ease-out; }
.swap-panel-title { font-size: 0.7rem; color: var(--text-muted); text-align: center; margin-bottom: 6px; font-weight: bold; }
.swap-btn-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.swap-dst-btn { padding: 6px 0; font-size: 0.7rem; font-weight: 600; border-radius: 4px; border: 1px solid rgba(139, 92, 246, 0.3); background: rgba(139, 92, 246, 0.1); color: #c4b5fd; cursor: pointer; transition: all 0.2s; text-align: center; }
.swap-dst-btn:hover:not(:disabled) { background: var(--accent-purple); color: #fff; }
.swap-dst-btn:disabled { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.3); cursor: not-allowed; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
