html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Kaisei Opti', serif;
}

/* CMSのwrapperの余白をリセット */
#wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

#app-wrapper {
    position: relative;
    width: 100%;
    min-height: 85vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Kaisei Opti', serif;
    background: repeating-linear-gradient(45deg,
            #ff1a1a,
            #ff1a1a 10px,
            #e60000 10px,
            #e60000 20px);
}

.game-container {
    background: transparent;
    padding: 0;
    text-align: center;
    max-width: 400px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
}

h1 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Question screen contents */
.question-container {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 60px;
    padding-bottom: 5vh;
    box-sizing: border-box;
}

.question-frame-wrapper {
    position: relative;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
}

.question-frame {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.2));
}

.question-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    width: 80%;
    text-align: center;
    margin: 0;
    font-family: 'Kaisei Opti', serif;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.choice-img-btn {
    cursor: pointer;
    max-width: 200px;
    height: auto;
    transition: transform 0.1s;
    border: none;
    outline: none;
    display: block;
}

/* 「いいえ」ボタン：上の暗い縁だけカット */
#btn-no {
    clip-path: inset(8px 0 0 0);
}

.choice-img-btn:active {
    transform: scale(0.95);
}

.question-cloche {
    margin-top: -10px;
    max-height: 40vh;
    height: auto;
}

/* Start screen contents */
.start-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.start-desc {
    color: white;
    font-family: 'Kaisei Opti', serif;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    font-size: 1.1rem;
    margin: 10px 0 20px 0;
}

.start-btn {
    transition: transform 0.1s;
}

.start-btn:active {
    transform: scale(0.95);
}

/* Result screen contents */
.result-container {
    text-align: center;
    width: 100%;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    overflow: hidden;
    padding: 60px 0.5rem 5vh;
}

.result-title {
    color: white;
    font-family: 'Kaisei Opti', serif;
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.result-frame-wrapper {
    position: relative;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 30px;
}

.result-frame {
    width: 100%;
    height: auto;
    display: block;
}

.result-comment-box {
    margin: 0 auto 30px auto;
    width: 80%;
    position: relative;
    text-align: left;
}

.result-comment-box::before,
.result-comment-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid #fff9ea;
    background: transparent;
}

.result-comment-box::before {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 10px 0 0 0;
}

.result-comment-box::after {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 10px 0;
}

.comment-label {
    display: none;
    /* Hide old label */
}

.comment-text {
    color: white;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.retry-button {
    cursor: pointer;
    max-height: 12vh;
    max-width: 95%;
    object-fit: contain;
    transition: transform 0.1s;
}

.retry-button:active {
    transform: scale(0.95);
}