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

:root {
    --warm-pink: #ff6b9d;
    --warm-orange: #ffa06b;
    --warm-yellow: #ffd56b;
    --soft-purple: #c56bff;
    --soft-blue: #6bb5ff;
    
    --bg-cream: #fff8f0;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-gray: #666;
    --text-light: #999;
    
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    
    --shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--warm-pink) 0%, var(--warm-orange) 50%, var(--warm-yellow) 100%);
    min-height: 100vh;
    color: var(--text-dark);
}

.app-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-cream);
    min-height: 100vh;
    box-shadow: 0 0 50px var(--shadow);
}

/* Header */
.app-header {
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bg-white);
    letter-spacing: 1px;
}

.logo .irl {
    color: var(--warm-yellow);
}

.episode-badge {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-dark);
}

/* Screen Management */
.screen {
    display: none;
    min-height: calc(100vh - 140px);
    padding: 2rem;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.container {
    max-width: 700px;
    margin: 0 auto;
}

.container.center {
    text-align: center;
}

/* Welcome Screen */
.welcome-content {
    max-width: 600px;
    margin: 0 auto;
}

.system-logo {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10% { transform: scale(1.1); }
    20% { transform: scale(1); }
}

.system-logo h1 {
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.3rem;
    color: var(--text-gray);
    font-style: italic;
}

.info-box {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    margin-bottom: 2rem;
}

.info-box h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.steps {
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step p {
    color: var(--text-gray);
    line-height: 1.6;
}

.rules {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.rules strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.rules ul {
    list-style: none;
    margin-top: 1rem;
}

.rules li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
}

.rules li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--warm-pink);
    font-size: 1.5rem;
    line-height: 1;
}

.profile-setup {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: center;
}

.profile-setup h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.profile-setup input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: border-color 0.3s;
}

.profile-setup input:focus {
    outline: none;
    border-color: var(--warm-pink);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
    border-color: var(--warm-pink);
    background: var(--bg-cream);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 111, 0.6);
}

/* Status Bar */
.status-bar {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-details h3 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.user-stats {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.user-stats span {
    font-weight: bold;
    color: var(--text-dark);
}

.system-status {
    color: var(--text-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    color: var(--success);
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Match Card */
.match-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    margin-bottom: 2rem;
}

.match-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-cream);
}

.match-header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.system-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.match-profile {
    text-align: center;
    margin-bottom: 2rem;
}

.match-avatar, .match-avatar-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--soft-blue), var(--soft-purple));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.match-avatar-large {
    width: 150px;
    height: 150px;
    font-size: 5rem;
}

.match-profile h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.match-profile p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

.compatibility-locked {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.lock-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hidden-text {
    font-family: monospace;
    letter-spacing: 3px;
    color: var(--text-light);
}

.small-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Timer */
.expiration-timer {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(197, 107, 255, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.expiration-timer h4 {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.timer-display {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    color: var(--warm-pink);
    margin: 1rem 0;
}

.timer-display.large {
    font-size: 4rem;
}

.timer-expired {
    font-size: 3rem;
    font-weight: 300;
    font-family: 'Courier New', monospace;
    color: var(--text-light);
    margin: 2rem 0;
}

.expiration-bar {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 1rem;
}

.expiration-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warm-pink), var(--soft-purple));
    width: 100%;
    transition: width 1s linear;
}

/* Check Device */
.check-device {
    text-align: center;
    padding: 1rem;
}

.check-device .hint {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Date Scene */
.date-scene {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px var(--shadow);
}

.scene-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-cream);
}

.scene-header h3 {
    font-size: 1.5rem;
    font-weight: 300;
}

.time-remaining-small {
    font-family: 'Courier New', monospace;
    color: var(--warm-pink);
    font-weight: bold;
}

.conversation {
    text-align: center;
    margin-bottom: 2rem;
}

.dialogue-box {
    background: var(--bg-cream);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.dialogue-box p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.response-choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.choice-btn {
    padding: 1.2rem;
    background: var(--bg-white);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    font-size: 1rem;
    color: var(--text-dark);
}

.choice-btn:hover {
    border-color: var(--warm-pink);
    background: var(--bg-cream);
    transform: translateX(5px);
}

/* Expiration Screen */
.expiration-notice {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.match-summary {
    margin: 2rem 0;
}

.compatibility-reveal {
    background: var(--bg-cream);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.compatibility-reveal h4 {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.score-display {
    font-size: 4rem;
    font-weight: 300;
    color: var(--warm-pink);
    margin: 1rem 0;
}

.score-display.ultimate {
    background: linear-gradient(135deg, var(--warm-pink), var(--soft-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#score-message {
    color: var(--text-gray);
    font-style: italic;
}

.relationship-summary {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    margin-top: 1.5rem;
}

.relationship-summary p {
    margin: 0.5rem 0;
    color: var(--text-gray);
}

/* Rebellion Screen */
.rebellion-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.rebellion-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 1.5rem 0;
}

.rebellion-text span {
    font-weight: bold;
    color: var(--warm-pink);
}

.rebellion-dialogue {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(197, 107, 255, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-dark);
}

.rebellion-choices {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Ultimate Screen */
.ultimate-content {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.system-message {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.system-message p {
    color: var(--text-gray);
    line-height: 1.8;
}

.system-message span {
    font-weight: bold;
    color: var(--text-dark);
}

.ultimate-compatibility {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(197, 107, 255, 0.15));
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.device-reveal {
    margin: 2rem 0;
}

.forever-text {
    font-size: 1.5rem;
    color: var(--warm-pink);
    font-weight: 300;
    margin-top: 1rem;
}

.ending-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin: 2rem 0;
}

/* Rebellion Ending */
.rebellion-ending {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 8px 30px var(--shadow);
    max-width: 700px;
    margin: 0 auto;
}

.escape-visual {
    margin: 3rem 0;
}

.avatar-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 4rem;
}

.heart {
    animation: heartbeat 2s infinite;
}

.ending-message p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-dark);
    margin: 1rem 0;
}

.twist-reveal {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--bg-cream);
}

.twist-reveal hr {
    border: none;
    border-top: 2px solid var(--bg-cream);
    margin: 2rem 0;
}

.twist-text {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-gray);
    font-style: italic;
}

/* Bottom Nav */
.bottom-nav {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: var(--bg-white);
    border-top: 2px solid #e0e0e0;
}

.nav-link {
    color: var(--warm-pink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--soft-purple);
}

/* Responsive */
@media (max-width: 768px) {
    .status-bar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .avatar-pair {
        font-size: 3rem;
        gap: 1rem;
    }
}
