/* 
   style.css 
   Romantic, high-fidelity design system 
*/

:root {
    --rose-gold: #dbaaac;
    --deep-plum: #3a0050;
    --lavender: #e4d1f1;
    --beige: #fff1e6;
    --white-soft: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 8px 32px rgba(58, 0, 80, 0.15);
    --ease-romantic: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(180deg, var(--deep-plum) 0%, var(--rose-gold) 50%, var(--lavender) 100%);
    background-attachment: fixed;
    color: var(--deep-plum);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Starry Night */
#star-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
}

/* Layout */
.app-container {
    position: relative;
    z-index: 10;
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: 100vh;
}

.screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.screen.active {
    display: flex;
}

/* Cards */
.card {
    background: var(--white-soft);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
}

/* Typography */
h1,
h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--deep-plum);
}

.sacramento {
    font-family: 'Sacramento', cursive;
    font-size: 1.8rem;
    line-height: 2.0;
}

/* Buttons */
.btn {
    background: var(--deep-plum);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-romantic);
    box-shadow: 0 4px 15px rgba(58, 0, 80, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 0, 80, 0.3);
    background: #4b0066;
}

.btn-soft {
    background: var(--lavender);
    color: var(--deep-plum);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(58, 0, 80, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Interaction feedback overlay */
#haptic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
    border: 0px solid var(--rose-gold);
    transition: border-width 0.1s;
}

/* Tip Container */
.tip-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    z-index: 500;
    pointer-events: none;
}

.tip-card {
    background: var(--lavender);
    padding: 1rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    pointer-events: auto;
}