:root {
    --bg-color: #ecffed;
    --mainbox-bg: #ffe4e1;
    --text-main: #333333;
    --title-color: #006276;
    --sub-color: #48dbfb;
    --primary-color: #fffaf0;
    --accent-mint: #4db6ac;
    
    --font-family: "맑은 고딕", sans-serif;
    --border-radius-lg: 24px;
    --border-radius-sm: 12px;

    --frame-line-color: #2c2c2e;
    --frame-border-width: 2px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    user-select: none;
}

body {
    background-color: #f0f4f1;
    background-image: linear-gradient(120deg, rgba(255,255,255,0.6) 0%, rgba(220,235,224,0.4) 100%);
    color: var(--text-main);
    font-family: var(--font-family);
    text-align: center;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.iphone-frame {
    position: relative;
    width: 393px;
    height: 852px;
    background-color: var(--bg-color);
    border: var(--frame-border-width) solid var(--frame-line-color);
    border-radius: 54px;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    zoom: 0.8;
    overflow: hidden;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color); /* 크림색 배경 적용 */
    border-radius: 46px;
    overflow: hidden;
    overflow-y: auto;
    padding: 70px 16px 20px 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.iphone-screen::-webkit-scrollbar {
    display: none;
}

.iphone-screen {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dynamic-island {
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    background-color: var(--frame-line-color);
    border-radius: 20px;
    z-index: 1000;
}

.hanok-bg-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 393 260' preserveAspectRatio='none'%3E%3Cpath d='M0 260L0 180C50 160 100 170 150 150C200 130 250 140 300 120L393 100L393 260Z' fill='%23d0e8d0' opacity='0.7'/%3E%3Cpath d='M0 260L0 210C70 190 140 200 210 180C280 160 340 175 393 160L393 260Z' fill='%23b2d8b2' opacity='0.8'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
    pointer-events: none;
    z-index: 1;
}

.main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 0 10px 0;
}

.header-section {
    text-align: center;
    margin-top: 100px;
}

.game-title {
    font-size: 26px;
    color: var(--title-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: -0.5px;
    font-weight: bold;
}

.mascot-badge {
    display: inline-block;
    background-color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--accent-mint);
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.08);
    border: 1px solid #e0f2f1;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin: 10px 0;
}

.category-card {
    background-color: #ffffff;
    border: 2px solid transparent;
    border-radius: var(--border-radius-sm);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-3px);
    background-color: #e0f2f1;
    border-color: var(--accent-mint);
}

.category-card:active {
    transform: scale(0.96);
}

.category-icon {
    font-size: 30px;
    margin-bottom: 6px;
}

.category-name {
    font-size: 15px;
    color: var(--text-main);
    letter-spacing: -0.5px;
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    body {
        background-color: var(--bg-color);
        display: block;
    }

.iphone-frame {
    width: 100% !important;
    height: 100vh !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    zoom: 1 !important;
}

.iphone-screen {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    padding: 40px 16px 20px 16px !important;
}

.dynamic-island {
    display: none;
    }
}

.main-content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    padding-bottom: 20px;
}


.footer-section {
    text-align: center;
    font-size: 12px;
    color: #11686f;
    margin-top: auto; 
    padding-bottom: 10px;
    font-size : 18px;
}

.quiz-category img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.quiz-category p {
    color: #020202;
    font-family: sans-serif;
    font-weight : bold
}