@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --bg-dark: #090510;
    --bg-gradient: radial-gradient(circle at 50% 0%, #2c0938 0%, #150621 45%, #08030d 100%);
    --primary-color: #ff4a85;
    --primary-glow: rgba(255, 74, 133, 0.45);
    --primary-glow-strong: rgba(255, 74, 133, 0.7);
    --secondary-color: #9d4edd;
    --secondary-glow: rgba(157, 78, 221, 0.45);
    --accent-cyan: #2ec4b6;
    --accent-cyan-glow: rgba(46, 196, 182, 0.4);
    --accent-yellow: #ffc107;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.09);
    --glass-card-bg: rgba(20, 10, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-neon: rgba(255, 74, 133, 0.35);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 0 25px rgba(255, 74, 133, 0.12);
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-fancy: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background floating particles */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: var(--primary-color);
    opacity: 0.2;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
    0% { transform: translateY(110vh) scale(0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.35; }
    85% { opacity: 0.35; }
    100% { transform: translateY(-10vh) scale(1.2) rotate(360deg); opacity: 0; }
}

/* Main Glassmorphism Container */
.container {
    width: 100%;
    max-width: 480px;
    min-height: 520px;
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-border-neon);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-xl);
    padding: 2.2rem 1.8rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 74, 133, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.screen {
    display: none;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.screen.active {
    display: flex;
}

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

/* Typography & Headings */
h1, h2 {
    font-family: var(--font-fancy);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #ff758c 40%, #ff4a85 70%, #9d4edd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 74, 133, 0.25));
    letter-spacing: -0.02em;
}

h1 { font-size: 1.8rem; line-height: 1.25; }
h2 { font-size: 1.5rem; line-height: 1.3; }

p {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}

/* Lock Stage */
.lock-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    width: 100%;
}

#pin-input {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
    width: 180px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid var(--glass-border-neon);
    color: #ffffff;
    border-radius: var(--radius-md);
    outline: none;
    letter-spacing: 6px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

#pin-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow), inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.shake-error {
    animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-10px); }
    40%, 80% { transform: translateX(10px); }
}

/* Catcher Stage */
#game-canvas {
    background: rgba(10, 5, 20, 0.5);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--glass-border-neon);
    width: 100%;
    height: 280px;
    touch-action: none;
    margin-bottom: 1rem;
    cursor: pointer;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 8px 25px rgba(0, 0, 0, 0.3);
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.8rem;
    margin-bottom: 0.6rem;
    font-family: var(--font-fancy);
    font-size: 0.95rem;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
}

.click-counter {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Memory Grid Stage */
.memory-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 360px;
    perspective: 1000px;
    margin-bottom: 1rem;
}

.memory-card {
    width: 100%;
    aspect-ratio: 1;
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border-neon);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.memory-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.memory-card.flipped {
    transform: rotateY(180deg);
}

.memory-card.matched {
    opacity: 0.7;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    pointer-events: none;
}

.memory-card .front, .memory-card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.memory-card .front {
    background: rgba(255, 74, 133, 0.15);
    transform: rotateY(180deg);
}

.memory-card .back {
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--font-fancy);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.memory-card .back::after {
    content: '?';
}

/* Wordle Stage */
.wordle-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 1.5rem;
}

.wordle-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.wordle-cell {
    width: 48px;
    height: 48px;
    border: 1.5px solid var(--glass-border-neon);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-fancy);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.wordle-cell.correct {
    background: rgba(46, 196, 182, 0.3);
    border-color: var(--accent-cyan);
    color: #ffffff;
    box-shadow: 0 0 15px var(--accent-cyan-glow);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wordle-cell.present {
    background: rgba(255, 193, 7, 0.3);
    border-color: var(--accent-yellow);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3);
    animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wordle-cell.absent {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

@keyframes popIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.wordle-keyboard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

#wordle-input {
    padding: 0.9rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--glass-border-neon);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-family: var(--font-sans);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    outline: none;
    transition: var(--transition-smooth);
}

#wordle-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 18px var(--primary-glow);
}

/* Anime Novel Stage */
.anime-scene {
    width: 100%;
    height: 240px;
    background: radial-gradient(circle at 50% 100%, rgba(157, 78, 221, 0.25), rgba(0, 0, 0, 0.4));
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--glass-border-neon);
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.6);
}

#anime-img {
    height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dialogue-box {
    width: 100%;
    background: rgba(15, 8, 25, 0.8);
    border: 1.5px solid var(--glass-border-neon);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
}

#anime-name {
    font-family: var(--font-fancy);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent-yellow);
    text-align: left;
    background: none;
    -webkit-text-fill-color: var(--accent-yellow);
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

#anime-text {
    text-align: left;
    font-size: 0.98rem;
    color: #ffffff;
    min-height: 55px;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.dialogue-choices {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.anime-btn {
    background: rgba(255, 74, 133, 0.15);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--glass-border-neon);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.anime-btn:hover {
    background: linear-gradient(135deg, rgba(255, 74, 133, 0.4), rgba(157, 78, 221, 0.4));
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

/* Clicker Stage */
.big-heart {
    font-size: 6rem;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s;
    display: inline-block;
    margin-top: 2rem;
    filter: drop-shadow(0 0 25px var(--primary-glow));
}

.big-heart:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 35px var(--primary-glow-strong));
}

.big-heart:active {
    transform: scale(0.88);
}

.progress-bar {
    width: 85%;
    height: 26px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50px;
    margin: 1.2rem auto;
    overflow: hidden;
    border: 1.5px solid var(--glass-border-neon);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
}

#love-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #ff758c, var(--secondary-color));
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.15s ease-out;
}

/* Whack-a-mole Stage */
.whack-grid {
    display: grid;
    grid-template-columns: repeat(3, 85px);
    gap: 16px;
    justify-content: center;
    margin-top: 1.5rem;
}

.hole {
    width: 85px;
    height: 85px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.6rem;
    cursor: pointer;
    border: 2px solid var(--glass-border-neon);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.hole:hover {
    border-color: var(--primary-color);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.hole:active {
    transform: scale(0.92);
    background: rgba(255, 74, 133, 0.2);
}

/* Tinder Swipe Stage */
.swipe-container {
    position: relative;
    width: 100%;
    height: 240px;
    perspective: 1000px;
    margin-bottom: 1.8rem;
}

.swipe-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 15, 45, 0.9), rgba(15, 8, 25, 0.95));
    border: 1.5px solid var(--glass-border-neon);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease-out;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    will-change: transform;
    cursor: grab;
    padding: 1.2rem;
    backdrop-filter: blur(12px);
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-icon {
    font-size: 3.8rem;
    margin-bottom: 0.6rem;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.swipe-title {
    font-family: var(--font-fancy);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    pointer-events: none;
    margin-bottom: 0.3rem;
}

.swipe-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    pointer-events: none;
}

.swipe-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.swipe-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-btn.no {
    background: rgba(255, 77, 77, 0.15);
    border: 2px solid #ff4d4d;
    color: #ff4d4d;
}

.swipe-btn.no:hover {
    background: rgba(255, 77, 77, 0.3);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    transform: translateY(-2px) scale(1.05);
}

.swipe-btn.yes {
    background: rgba(46, 196, 182, 0.15);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.swipe-btn.yes:hover {
    background: rgba(46, 196, 182, 0.3);
    box-shadow: 0 0 20px var(--accent-cyan-glow);
    transform: translateY(-2px) scale(1.05);
}

.swipe-btn:active {
    transform: scale(0.9);
}

/* Stamp Overlays for Swipe */
.stamp-overlay {
    position: absolute;
    top: 20px;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: var(--font-fancy);
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
    z-index: 10;
}

.stamp-like {
    right: 20px;
    color: #2ec4b6;
    border: 3px solid #2ec4b6;
    transform: rotate(15deg);
    box-shadow: 0 0 20px rgba(46, 196, 182, 0.8), inset 0 0 10px rgba(46, 196, 182, 0.3);
    text-shadow: 0 0 10px rgba(46, 196, 182, 0.8);
}

.stamp-nope {
    left: 20px;
    color: #ff4d4d;
    border: 3px solid #ff4d4d;
    transform: rotate(-15deg);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.8), inset 0 0 10px rgba(255, 77, 77, 0.3);
    text-shadow: 0 0 10px rgba(255, 77, 77, 0.8);
}

/* STAGE 10: CONTRACT REDESIGN (.contract-paper / .glass-contract) */
.contract-paper, .glass-contract {
    background: rgba(15, 8, 25, 0.85);
    border: 1.5px solid var(--primary-color);
    box-shadow: 0 0 35px var(--primary-glow), inset 0 0 20px rgba(255, 74, 133, 0.08);
    border-radius: var(--radius-lg);
    width: 100%;
    max-height: 480px;
    overflow-y: auto;
    font-family: var(--font-sans);
    color: var(--text-main);
    padding: 1.4rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2);
}

.contract-paper::-webkit-scrollbar {
    width: 6px;
}

.contract-paper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.contract-header {
    text-align: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--glass-border-neon);
}

.contract-badge-top {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-color);
    background: rgba(255, 74, 133, 0.12);
    border: 1px solid var(--glass-border-neon);
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.contract-subtitle {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0;
}

.contract-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: var(--transition-smooth);
}

.contract-section:hover {
    border-color: var(--glass-border-neon);
    background: rgba(255, 255, 255, 0.04);
}

.section-title {
    font-family: var(--font-fancy);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
}

#contract-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
}

.contract-category {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 74, 133, 0.2);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.category-title {
    font-family: var(--font-fancy);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 8px rgba(46, 196, 182, 0.3);
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.neon-pill {
    background: linear-gradient(135deg, rgba(255, 74, 133, 0.2), rgba(157, 78, 221, 0.25));
    border: 1px solid var(--glass-border-neon);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(255, 74, 133, 0.2);
    transition: var(--transition-smooth);
}

.neon-pill:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-1px);
}

.obligations-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.obligations-list li {
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: left;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.4;
}

.obligations-list li::before {
    content: '💖';
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

.datetime-picker {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input[type="date"], input[type="time"] {
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--glass-border-neon);
    color: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: var(--transition-smooth);
}

input[type="date"]:focus, input[type="time"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}

.sig-hint {
    font-size: 0.82rem;
    color: var(--text-dim);
    text-align: left;
    margin-bottom: 0.6rem;
}

.signature-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0.6rem;
}

#signature-pad {
    border: 1.5px dashed var(--primary-color);
    background: rgba(0, 0, 0, 0.4);
    border-radius: var(--radius-md);
    width: 100%;
    height: 120px;
    cursor: crosshair;
    touch-action: none;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: var(--transition-smooth);
}

#signature-pad:hover {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-glow);
}

.sig-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

#clear-sig {
    padding: 6px 14px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: auto;
}

#clear-sig:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: #ff4d4d;
    color: #ffffff;
}

/* Global Buttons & CTA */
.btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    padding: 0.95rem 2rem;
    border-radius: 50px;
    font-family: var(--font-fancy);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: var(--transition-smooth);
    width: 100%;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 28px var(--primary-glow-strong);
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-glow {
    animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 6px 20px var(--primary-glow); }
    50% { box-shadow: 0 8px 30px var(--primary-glow-strong), 0 0 15px var(--secondary-glow); }
}

/* Success Stage */
.success-checkmark {
    font-size: 4.5rem;
    color: var(--accent-cyan);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 25px var(--accent-cyan-glow));
    animation: scaleIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0) rotate(-45deg); opacity: 0; }
    to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 420px) {
    .container {
        padding: 1.6rem 1.2rem;
        border-radius: 22px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .wordle-cell {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .whack-grid {
        grid-template-columns: repeat(3, 72px);
        gap: 12px;
    }

    .hole {
        width: 72px;
        height: 72px;
        font-size: 2.2rem;
    }

    .swipe-container {
        height: 220px;
    }

    .contract-paper {
        padding: 1rem;
    }
}

/* Constructor (Cards) */
.group-title { font-size: 0.9rem; text-align: left; margin: 0.5rem 0 0.8rem 4px; color: var(--primary-color); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.choices-container { width: 100%; max-height: 380px; overflow-y: auto; padding-right: 4px; margin-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.2); }
.choices-container::-webkit-scrollbar { width: 6px; }
.choices-container::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; }
.activities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.5rem; }
.card { background: rgba(0,0,0,0.4); border: 1.5px solid var(--glass-border-neon); border-radius: var(--radius-lg); padding: 0.8rem; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth); text-align: center; min-height: 100px; position: relative; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.card-icon { font-size: 1.8rem; margin-bottom: 0.5rem; transition: transform 0.3s; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); }
.card-title { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.card:hover { border-color: var(--primary-color); box-shadow: 0 0 15px var(--primary-glow); transform: translateY(-3px); }
.card.selected { background: linear-gradient(135deg, rgba(255,74,133,0.15), rgba(157,78,221,0.15)); border: 1.5px solid var(--accent-cyan); box-shadow: 0 0 15px var(--accent-cyan-glow); }
.card.selected .card-icon { transform: scale(1.15) rotate(5deg); filter: drop-shadow(0 0 10px var(--accent-cyan-glow)); }
.card.selected .card-title { color: var(--text-main); }
.badge { position: absolute; top: 8px; right: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-cyan); transform: scale(0); transition: transform 0.2s; box-shadow: 0 0 8px var(--accent-cyan); }
.card.selected .badge { transform: scale(1); }
@media (max-width: 420px) {
    .activities-grid { grid-template-columns: 1fr; }
}
