* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f4f4f4;
    font-family: 'Inter', 'Arial', sans-serif;
    padding-top: 60px;
}

body.dark-mode {
    background: #181c24;
}
body.dark-mode .card {
    background: #23272f;
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
    border: 1px solid #333;
}
body.dark-mode .card-content,
body.dark-mode .main-title,
body.dark-mode .desc,
body.dark-mode .secondary-btn {
    color: #eee;
}
body.dark-mode .main-btn {
    background: #27FB43;
    color: #181c24;
}
body.dark-mode .ghost-btn {
    background: #23272f;
    color: #27FB43;
}
body.dark-mode .close-btn {
    color: #888;
}

.card {
    width: 400px;
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    padding: 0 0 40px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    box-sizing: border-box;
}

.ghost-btn {
    background: #f4f4f4;
    color: #888;
    border: none;
    border-radius: 12px;
    padding: 6px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}
.ghost-btn:active {
    background: #e0e0e0;
}
.ghost-icon {
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    color: #bbb;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.close-btn:hover {
    background: #f4f4f4;
}

#ufoCanvas {
    width: 260px;
    height: 180px;
    display: block;
    margin: 0 auto 8px auto;
}

.card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
    box-sizing: border-box;
}

.arrow-icon {
    font-size: 32px;
    color: #222;
    margin: 8px 0 0 0;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0 0;
}

.lightning {
    font-size: 22px;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
}

.desc {
    color: #222;
    font-size: 16px;
    text-align: center;
    margin: 16px 0 24px 0;
    line-height: 1.5;
}

.name-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #f4f4f4;
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    color: #222;
    box-sizing: border-box;
}
.name-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.main-btn {
    width: 100%;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.main-btn:hover {
    background: #222;
}

.secondary-btn {
    background: none;
    border: none;
    color: #222;
    font-size: 15px;
    margin-top: 0;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    padding: 0;
}
.secondary-btn:hover {
    text-decoration: underline;
}

.nav-bar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 18px 0 12px 0;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    backdrop-filter: blur(6px);
}
body.dark-mode .nav-bar {
    background: rgba(24,28,36,0.98);
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.nav-btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 22px;
    background: #f4f4f4;
    color: #222;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: none;
    outline: none;
}
.nav-btn:hover {
    background: #27FB43;
    color: #fff;
}
body.dark-mode .nav-btn {
    background: #23272f;
    color: #eee;
}
body.dark-mode .nav-btn:hover {
    background: #27FB43;
    color: #181c24;
} 