*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #4682B4;
    font-family: Arial, Helvetica, sans-serif;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

#t1 {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
    touch-action: none;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal {
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    min-width: 280px;
    max-width: min(90vw, 480px);
    width: 100%;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.modal-title {
    background: #1e90ff;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    padding: 12px 16px;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-content {
    padding: 16px;
    font-size: 0.95rem;
    color: #222;
    max-height: 55vh;
    overflow-y: auto;
    line-height: 1.5;
}

.modal-content p {
    margin-bottom: 8px;
}

.modal-content ul {
    padding-left: 20px;
}

.modal-content li {
    margin: 6px 0;
}

.modal-content strong {
    font-size: 1.1rem;
}

.modal-content em {
    color: #444;
}

.modal-content center h1 {
    font-size: 1.4rem;
    color: #cc2200;
    margin-bottom: 8px;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 14px;
    background: #f0f0f0;
    border-top: 1px solid #ccc;
}

.modal-btn {
    padding: 8px 22px;
    border: 2px solid #555;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    background: #e0e0e0;
    color: #222;
    touch-action: manipulation;
    transition: background 0.1s, transform 0.1s;
}

.modal-btn:hover,
.modal-btn:active {
    background: #c8c8c8;
    transform: scale(0.97);
}

.modal-btn.btn-green {
    background: #2e8b2e;
    color: #fff;
    border-color: #1a5c1a;
}

.modal-btn.btn-green:hover,
.modal-btn.btn-green:active {
    background: #3aaa3a;
}

.modal-btn.btn-share {
    background: #1565c0;
    color: #fff;
    border-color: #0d47a1;
}

.modal-btn.btn-share:hover,
.modal-btn.btn-share:active {
    background: #1976d2;
}

.nq-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    background: #e0e0e0;
    color: #222;
    touch-action: manipulation;
    transition: background 0.1s;
}

.nq-btn:hover,
.nq-btn:active {
    background: #c8c8c8;
}

.nq-btn.nq-active {
    background: #004CB3;
    color: #fff;
    border-color: #003080;
}

.nq-btn.nq-active:hover,
.nq-btn.nq-active:active {
    background: #1565c0;
}
