html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #222;
    font-family: sans-serif;
    box-sizing: border-box;
}
#ad-area {
    width: 100%;
    height: 90px;
    background: #aaa;
    color: #333;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    letter-spacing: 2px;
    user-select: none;
}
#status-area {
    display: none;
}
#game-container {
    width: 100%;
    height: calc(100vh - 90px); /* 50px ad + 40px status */
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}
#game-canvas {
    background: #000;
    background-image: url("../img/background/background.png?1");
    background-size: cover;
    background-position: center;
    image-rendering: pixelated;
    display: block;
    touch-action: manipulation;
    box-shadow: 0 0 16px #0008;
}
#game-over-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #fff;
    font-size: 2em;
    font-weight: bold;
    display: none;
}
#reload-btn {
    margin-top: 24px;
    padding: 8px 8rem;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px #0004;
    transition: background 0.2s;
}
#reload-btn:hover {
    background: #f0f0f0;
}

#defeat-count-text {
    font-size:1.2rem;
}

#earned-zombie-points-text {
    font-size:1.2rem;
}
#max-kills-text {
    font-size:0.8rem;
}

#total-kills-text {
    font-size:0.8rem;
}

#story-text {
    font-size:1.5rem;
    margin-top:24px;
}

#inquiry-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.75);
}

#inquiry-modal .inquiry-dialog {
    width: min(92vw, 440px);
    padding: 18px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
}

#inquiry-modal .inquiry-title {
    font-size: 1.25rem;
    margin-bottom: 14px;
    color: #f4f4f4;
    font-weight: bold;
}

#inquiry-modal .inquiry-label {
    display: block;
    margin-bottom: 14px;
    color: #ddd;
    font-size: 0.95rem;
}

#inquiry-modal select,
#inquiry-modal textarea {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #181818;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.4;
    box-sizing: border-box;
}

#inquiry-modal textarea {
    min-height: 120px;
    resize: vertical;
}

#inquiry-modal .inquiry-note {
    margin: 8px 0 0;
    color: #b8b8b8;
    font-size: 0.84rem;
    line-height: 1.4;
}

#inquiry-modal .inquiry-note-en {
    display: block;
    color: #999;
    font-size: 0.78rem;
    margin-top: 2px;
}

#inquiry-modal .inquiry-error {
    margin-top: 12px;
    min-height: 20px;
    color: #f77;
    font-size: 0.88rem;
}

#inquiry-modal .inquiry-actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#inquiry-modal button {
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.95rem;
    cursor: pointer;
}

.legal-body {
    padding: 20px 18px 40px;
    color: #eee;
    line-height: 1.6;
}

.legal-section {
    margin-bottom: 18px;
    max-width: 760px;
}

.legal-section h2 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: #fff;
}

.legal-form {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.legal-label {
    display: block;
    color: #ddd;
    font-size: 0.95rem;
}

.legal-label input,
.legal-label select,
.legal-label textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #181818;
    color: #fff;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.legal-label textarea {
    min-height: 140px;
    resize: vertical;
}

.legal-note {
    font-size: 0.84rem;
    color: #b8b8b8;
    margin-top: 4px;
}

.legal-error {
    min-height: 24px;
    color: #f77;
    font-size: 0.95rem;
}

.legal-form button {
    width: min(100%, 200px);
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: #3f9;
    color: #111;
    font-weight: bold;
    cursor: pointer;
}

#inquiry-modal #inquiry-submit {
    background: #3f9;
    color: #111;
}

#inquiry-modal #inquiry-cancel {
    background: #555;
    color: #f4f4f4;
}