:root {
    --bg-color: #f8f9fa;
    --primary-color: #ff9ecd;
    /* Pink */
    --secondary-color: #8ec5fc;
    /* Blue */
    --text-color: #212529;
    --white: #ffffff;
    --pixel-border: 4px solid #000;
    --pixel-shadow: 4px 4px 0px #000;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Galmuri', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.hidden {
    display: none !important;
}

.active {
    display: flex !important;
}

/* Intro Screen */
#intro-screen {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(180deg, #e0f7fa 0%, #fff 100%);
    text-align: center;
}

.pixel-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 2rem;
    color: var(--text-color);
    text-shadow: 2px 2px 0 #ff9ecd;
    white-space: nowrap;
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
}

.pixel-char {
    width: 150px;
    image-rendering: pixelated;
}

.bounce {
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-10px);
    }
}

.date-text {
    font-size: 1.2rem;
    margin: 2rem 0;
}

/* Buttons & Inputs */
.pixel-btn {
    background-color: var(--primary-color);
    border: var(--pixel-border);
    box-shadow: var(--pixel-shadow);
    padding: 15px 30px;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.pixel-btn:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.pixel-btn.small {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-width: 2px;
    box-shadow: 2px 2px 0 #000;
}

.pixel-input {
    border: 2px solid #000;
    padding: 10px;
    font-family: inherit;
    width: 100%;
    margin-bottom: 10px;
    background: #fff;
    box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* Main Content */
#main-content {
    flex-direction: column;
    padding-bottom: 50px;
}

.pixel-header {
    text-align: center;
    padding: 20px;
    background-color: var(--secondary-color);
    border-bottom: var(--pixel-border);
    margin-bottom: 20px;
}

.pixel-header p {
    white-space: nowrap;
    margin: 10px 0 0 0;
    font-size: clamp(0.8rem, 4vw, 1rem);
}

.character-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
}

.game-scene {
    position: relative;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    padding-top: 20px;
}

.interactive-area {
    cursor: pointer;
    transition: transform 0.1s;
}

.interactive-area:active {
    transform: scale(0.98);
}

.pixel-counter {
    font-size: 1.5rem;
    color: #ff4d4d;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
    margin-bottom: 10px;
    font-family: 'Press Start 2P', cursive;
}

.sprite-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.couple-sprite {
    width: 100px;
    image-rendering: pixelated;
    z-index: 2;
}

.garland-decor {
    width: 140px;
    height: 40px;
    background-image: url('assets/FlowerGarland.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    margin-top: -10px;
    z-index: 1;
}

.dialog-box {
    border: var(--pixel-border);
    padding: 15px;
    background: #fff;
    position: relative;
    display: inline-block;
}

.dialog-box::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #000;
}

/* Cards */
.pixel-card {
    margin: 20px;
    padding: 20px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
}

.pixel-card h3 {
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    border: 2px solid #000;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

/* Guestbook */
.pixel-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.pixel-list li {
    border-bottom: 1px dotted #999;
    padding: 10px 0;
    font-size: 0.9rem;
}

.pixel-list li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
}

/* RSVP Form */
.form-group {
    margin-bottom: 15px;
}

.radio-group label {
    margin-right: 15px;
    cursor: pointer;
}

/* Mute Button */
.mute-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100;
    padding: 5px 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('assets/decor.png');
    background-size: cover;
    background-position: 0 0;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

.pixel-heart {
    position: absolute;
    font-size: 24px;
    color: #ff4d4d;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 0 #000;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Image Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    image-rendering: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.dialog-box {
    border: var(--pixel-border);
    padding: 15px;
    background: #fff;
    position: relative;
    display: inline-block;
}

.dialog-box::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #000;
}

/* Cards */
.pixel-card {
    margin: 20px;
    padding: 20px;
    border: 2px solid #000;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    background: #fff;
}

.pixel-card h3 {
    border-bottom: 2px dashed #ccc;
    padding-bottom: 10px;
    margin-top: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    border: 2px solid #000;
    aspect-ratio: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
}

/* Guestbook */
.pixel-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.pixel-list li {
    border-bottom: 1px dotted #999;
    padding: 10px 0;
    font-size: 0.9rem;
}

.pixel-list li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
}

/* RSVP Form */
.form-group {
    margin-bottom: 15px;
}

.radio-group label {
    margin-right: 15px;
    cursor: pointer;
}

/* Mute Button */
.mute-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100;
    padding: 5px 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('assets/decor.png');
    background-size: cover;
    background-position: 0 0;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

.pixel-heart {
    position: absolute;
    font-size: 24px;
    color: #ff4d4d;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 0 #000;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Image Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    image-rendering: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Location Section */
.location-details {
    margin-bottom: 15px;
    text-align: center;
}

.venue-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.9rem;
    color: #666;
}

.map-area {
    margin: 15px 0;
    border: 2px solid #000;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.map-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.map-buttons a {
    text-decoration: none;
    color: #000;
    flex: 1;
    text-align: center;
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    word-break: keep-all;
}

/* RSVP Form */
.form-group {
    margin-bottom: 15px;
}

.radio-group label {
    margin-right: 15px;
    cursor: pointer;
}

/* Mute Button */
.mute-btn {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 100;
    padding: 5px 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.8);
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url('assets/decor.png');
    background-size: cover;
    background-position: 0 0;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
}

.pixel-heart {
    position: absolute;
    font-size: 24px;
    color: #ff4d4d;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 2px 2px 0 #000;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) scale(1.5);
        opacity: 0;
    }
}

/* Image Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border: 4px solid #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    image-rendering: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prev-slide,
.next-slide {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 1001;
}

.next-slide {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev-slide:hover,
.next-slide:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Location Section */
.location-details {
    margin-bottom: 15px;
    text-align: center;
}

.venue-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.venue-address {
    font-size: 0.9rem;
    color: #666;
}

.map-area {
    margin: 15px 0;
    border: 2px solid #000;
}

.map-placeholder {
    width: 100%;
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.map-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.transport-info h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.transport-info p {
    margin: 5px 0;
}


.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row .pixel-input {
    flex: 1;
    margin-bottom: 0;
}



.pixel-btn.tiny:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.edit-btn {
    background: #4a90e2;
    border-color: #357abd;
}

.edit-btn:hover {
    background: #357abd;
}

.delete-btn {
    background: #e74c3c;
    border-color: #c0392b;
}

.delete-btn:hover {
    background: #c0392b;
}

/* DungGeunMo 폰트 유지가 필요한 요소들 */
.pixel-title,
.pixel-header,
.pixel-header h2,
.pixel-header p,
.pixel-btn,
h1,
h2,
h3,
h4,
h5,
h6,
.pixel-card h3,
.game-title,
.pixel-counter {
    font-family: 'DungGeunMo', 'Press Start 2P', cursive !important;
}

/* Galmuri 폰트 명시적 적용 */
.venue-name,
.venue-address,
.transport-details,
.info-details,
.dialog-box,
.guestbook-item,
.guest-message,
.story-text,
input,
textarea,
button {
    font-family: 'Galmuri', monospace !important;
}

/* 이미지 카운터 */
.image-counter {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 1.2rem;
    font-family: 'DungGeunMo', 'Press Start 2P', cursive;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 1001;
}

.h3 {
    font-size: 1.5rem;
    font-family: 'DungGeunMo', 'Press Start 2P', cursive;
}


/* 동행 인원 선택 버튼 */
.count-selector {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.count-btn {
    flex: 1;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Galmuri', monospace;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #666;
}

.count-btn:hover {
    border-color: #ff9ecd;
    background: #fff5f8;
}

.count-btn.active {
    background: #ff9ecd;
    border-color: #ff9ecd;
    color: #fff;
    font-weight: bold;
}

/* RSVP 저장하기 버튼 오른쪽 정렬 */
#rsvp-form button[type="submit"] {
    display: block;
    margin-left: auto;
    margin-right: 0;
}

/* Gallery Overlay */
.gallery-item {
    position: relative;
    cursor: pointer;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    pointer-events: none;
}

/* 캐릭터 그룹 (말풍선 + 캐릭터) */
.character-group {
    display: flex;
    align-items: center;
    /* 세로 중앙 정렬 */
    justify-content: center;
    /* 가로 중앙 정렬 */
    gap: 10px;
    /* 요소 간 간격 */
    width: 100%;
    margin-bottom: 5px;
    /* 가랜드와의 간격 */
}

/* 캐릭터 말풍선 스타일 */
.character-bubble {
    position: relative;
    /* absolute 제거 */
    background: linear-gradient(135deg, #fff 0%, #fff5f8 100%);
    border: 3px solid #ffb3d9;
    border-radius: 20px;
    padding: 15px 10px;
    min-width: 100px;
    /* 최소 너비 설정 */
    max-width: 140px;
    /* 최대 너비 제한 */
    z-index: 5;
    animation: bubblePop 0.5s ease-out;
    box-shadow: 0 4px 12px rgba(255, 158, 205, 0.3);
    flex: 1;
    /* 공간 균등 분배 시도 */
}

/* 신랑 말풍선 (왼쪽) */
.groom-bubble {
    /* top, left, transform 제거 */
    order: 1;
    /* 순서 명시 */
    border-color: #89CFF0;
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
    margin-right: -10px;
    /* 캐릭터 쪽으로 살짝 당기기 */
}

.groom-bubble::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid #89CFF0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

/* 신부 말풍선 (오른쪽) */
.bride-bubble {
    /* top, right, transform 제거 */
    order: 3;
    /* 순서 명시 */
    border-color: #ffb3d9;
    margin-left: -10px;
    /* 캐릭터 쪽으로 살짝 당기기 */
}

.bride-bubble::after {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-right: 12px solid #ffb3d9;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

.bubble-content {
    text-align: center;
}

.bubble-name {
    font-family: 'DungGeunMo', 'Press Start 2P', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    letter-spacing: -1px;
    white-space: nowrap;
    /* 줄바꿈 방지 */
}

.groom-bubble .bubble-name {
    color: #0288d1;
}

.bride-bubble .bubble-name {
    color: #d81b60;
}

.bubble-parents {
    font-family: 'Galmuri', monospace;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
    word-break: keep-all;
    /* 단어 단위 줄바꿈 */
}

@keyframes bubblePop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.bride-bubble {
    animation-name: bubblePop;
    /* 동일한 애니메이션 사용 */
}

/* 커플 스프라이트 크기 */
.couple-sprite {
    display: block;
    width: 120px;
    /* 고정 크기 또는 반응형 */
    max-width: 30vw;
    /* 화면 작을 때 줄어들게 */
    height: auto;
    order: 2;
    /* 순서 명시 */
    z-index: 10;
    /* 말풍선보다 위에 오도록 */
}

/* 가랜드: 캐릭터 아래 중앙 정렬 */
.garland-decor {
    position: relative;
    /* absolute 제거 */
    display: block;
    width: 140px;
    height: 40px;
    background-image: url('assets/FlowerGarland.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    image-rendering: pixelated;
    margin: -15px auto 0;
    /* 캐릭터 발 밑으로 살짝 겹치게 */
    z-index: 1;
}

/* 캐릭터 + 가랜드 전체 컨테이너 */
.sprite-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    /* 너무 넓어지지 않게 */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}

/* 메인 대사 박스 */
.dialog-box {
    max-width: 90%;
    margin: 10px auto;
    padding: 10px;
    box-sizing: border-box;
    font-size: 0.9rem;
    text-align: center;
}

.dialog-box p {
    margin: 0;
    word-break: keep-all;
}

/* 반응형 - 태블릿 및 모바일 */
@media (max-width: 768px) {
    .character-bubble {
        min-width: auto;
        padding: 10px 8px;
    }

    .bubble-name {
        font-size: 0.8rem;
    }

    .bubble-parents {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .character-group {
        gap: 5px;
    }

    .character-bubble {

        .groom-bubble::after,
        .bride-bubble::after {
            display: none;
            /* 혹은 크기를 줄여서 유지할 수도 있음 */
        }

        .groom-bubble {
            margin-right: 0;
        }

        .bride-bubble {
            margin-left: 0;
        }
    }

    @media (max-width: 360px) {
        .couple-sprite {
            width: 80px;
        }

        .character-bubble {
            padding: 2px 1px;
        }

        .bubble-name {
            font-size: 2rem;
        }
    }
}

/* 게스트북 스타일 */
.guestbook-section {
    margin-bottom: 30px;
}

/* 폼 스타일 */
#guestbook-form {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row .pixel-input {
    flex: 1;
    margin-bottom: 0;
}

#guestbook-form .pixel-input {
    margin-bottom: 10px;
}

#guestbook-form textarea {
    min-height: 80px;
    resize: vertical;
}

/* 비밀번호 입력 필드 – 숫자 4자리 인풋만 심플하게 */
#guest-password {
    text-align: center;
    letter-spacing: 0.1em;
}

/* 숫자 input 스피너 제거 (number 쓸 때 대비) */
#guest-password::-webkit-outer-spin-button,
#guest-password::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#guest-password[type=number] {
    -moz-appearance: textfield;
}

/* 메시지 리스트 + 카드 */
.guestbook-messages {
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.guestbook-item {
    position: relative;
    background: #fff;
    border: 2px solid #ddd;
    padding: 15px;
    padding-right: 100px;
    /* 오른쪽 버튼 공간 */
    margin-bottom: 15px;
    border-radius: 4px;
    transition: all 0.2s;
}

.guestbook-item:hover {
    background: #f9f9f9;
    border-color: #ff9ecd;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* 상단: 이름 / 날짜 줄 */
.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.guest-header strong {
    font-size: 1em;
    color: #ff9ecd !important;
    /* 분홍 이름 */
}

.guest-date {
    font-size: 0.75em;
    color: #999 !important;
    /* 회색 날짜 */
}

/* 본문 메시지 */
.guest-message {
    margin: 10px 0;
    line-height: 1.6;
    color: #000 !important;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 수정/삭제 버튼 – 기본은 숨김, hover 때만 보이게 */
.guest-actions {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    display: flex;
    gap: 5px;
    /* 가로 배치 간격 */
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.guestbook-item:hover .guest-actions {
    opacity: 1;
    pointer-events: auto;
}

/* 작은 픽셀 버튼 공통 */
.pixel-btn.tiny {
    padding: 4px 8px;
    font-size: 0.65em;
    min-width: 45px;
    border-width: 2px;
    box-shadow: 2px 2px 0 #000;
}

.pixel-btn.tiny:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.edit-btn {
    background: #4a90e2;
    border-color: #357abd;
}

.edit-btn:hover {
    background: #357abd;
}

.delete-btn {
    background: #e74c3c;
    border-color: #c0392b;
}

.delete-btn:hover {
    background: #c0392b;
}

/* 인트로 첫 화면 여백 */
.intro-content {
    padding: 0 16px;
    /* 좌우 16px 쿠션 */
}

@media (max-width: 360px) {
    .pixel-title {
        font-size: 1.3rem;
        /* 기존 clamp보다 살짝 더 작게 */
        letter-spacing: 0.05em;
        /* 자간도 조금만 줄이기(선택) */
    }
}

/* Game Trigger Text */
.game-trigger-text {
    text-align: center;
    margin: 5px 0;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
    font-family: 'Gowun Dodum', sans-serif;
    font-weight: bold;
}

/* Profile Section */
.profile-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* Allow wrapping so buttons go to next line */
    gap: 5px;
    margin-top: 10px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.profile-card {
    flex: 1;
    min-width: 0;
    /* Allow shrinking */
    background: #fff;
    border: 2px solid #000;
    padding: 15px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.6;
    font-family: 'Gowun Dodum', sans-serif;
    word-break: keep-all;
}

.profile-card h4 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 5px;
    text-align: center;
    font-family: 'Gowun Dodum', sans-serif;
}

.groom-profile h4 {
    color: #89CFF0;
}

.bride-profile h4 {
    color: #ff9ecd;
}

.profile-card p {
    margin: 5px 0;
}

/* Responsive adjustment for very small screens */
/* Responsive adjustment for very small screens */
@media (max-width: 360px) {
    /* Profile section kept as row */
}