:root {
    --sakura-pink: #ffb7c5;
    --sakura-white: #fff5f7;
    --sakura-deep: #ff8fa3;
    --bg-dark: #0d0d16;
    --card-bg: rgba(255, 255, 255, 0.08);
}

body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at center, #fff9fb 0%, #ffe4e9 100%);
    color: #5d4037;
    font-family: 'Noto Sans KR', sans-serif;
    min-height: 100vh;
}

.navbar {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #ff8fa3;
    padding: 1rem 0;
    box-shadow: 0 0 10px rgba(255, 92, 138, 0.2);
}

.logo {
    color: #ff5c8a;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(255, 92, 138, 0.5);
    margin-left: 2rem;
}

.intro-card-container {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.input-section {
    flex: 1;
    background: rgba(45, 25, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 145, 164, 0.4);
    box-shadow: 0 0 20px rgba(255, 145, 164, 0.15);
    max-height: 90vh;
    overflow-y: auto;
}

.input-section h2 {
    color: #ff8fa3;
    margin-top: 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0c0;
    font-weight: 600;
}

input[type="text"], textarea, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 183, 197, 0.3);
    color: #fff;
    padding: 0.8rem;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s;
}

input[type="text"]:focus, textarea:focus {
    border-color: var(--sakura-pink);
    box-shadow: 0 0 8px var(--sakura-pink);
    outline: none;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--sakura-white), var(--sakura-pink));
    border: none;
    color: white;
    padding: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(255, 0, 212, 0.4);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: #ff8fa3;
}

.preview-section {
    flex: 1.5;
    position: sticky;
    top: 2rem;
}

.card-canvas-container {
    background: #000;
    padding: 15px;
    border-radius: 15px;
    border: 2px solid var(--sakura-deep);
}

canvas {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.tier-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.tier-item {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
    text-align: center;
}

.tier-item:hover {
    background: rgba(255, 145, 164, 0.1);
    border-color: var(--sakura-white);
}

.tier-item.active {
    background: rgba(255, 145, 164, 0.3);
    border-color: #ff8fa3;
    box-shadow: 0 0 15px #ff8fa3;
    transform: scale(1.1);
}

.upload-box {
    background: rgba(255, 183, 197, 0.2);
    border: 2px dashed #ff8fa3 !important;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

input[type="file"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #fce4ec;
    padding: 5px;
}

input[type="file"]::-webkit-file-upload-button {
    background: var(--sakura-pink);
    border: 1px solid var(--sakura-deep);
    border-radius: 4px;
    color: #5d4037;
    padding: 5px 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--sakura-deep);
    color: white;
}

.tier-item img {
    width: 40px;
    height: 40px;
}

.selected-characters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.char-slot {
    width: 80px;
    height: 100px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed var(--sakura-white);
    border-radius: 6px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.char-slot:hover {
    box-shadow: 0 0 10px var(--sakura-white);
}

.search-results {
    position: absolute;
    background: #2d191e;
    border: 1px solid var(--sakura-pink);
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 8px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.search-results.active {
    display: block;
}

.search-item {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.search-item:hover {
    background: rgba(255, 145, 164, 0.3);
}

.search-item img {
    width: 35px;
    height: 35px;
    border-radius: 4px;
}
