:root {
    --bg-body: #30444a;
    --bg-header: #172125;
    --titleheader: #1e1f28d0;
    --title: #acc167;
    --text: #092c36;
    --accent: #8b9d8f;
    --border: #2a373b;
}

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

html,
body {
    width: 100%;
    background-color: var(--bg-body);
    font-family: 'Courier New', Courier, monospace;
    color: var(--text);
}

body {
    font-family: Arial, sans-serif;
    max-width: 900px;
    margin: 50px auto;
    background-color: #14280e;
    color: #333;
}

.header {
    background-color: #ebe8e8;
    color: #1d1c1cc2;
    font-family: 'Courier New', Courier, monospace;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    text-align: left;
    padding: 40px 0 40px 20px;
}

.header h2 {
    color: var(--titleheader);
    padding: 0 20px;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: .02em;
}

.header h3 {
    color: var(--titleheader);
    padding: 0 20px 10px;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: .02em;
}

.header p {
    padding: 0 20px;
    color: var(--text);
    font-weight: 400;
    font-size: 1.2rem;
}

.container {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container h1 {
    color: var(--title);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.container h2 {
    color: var(--title);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    padding: 20px;
    max-width: 300px;
    flex: 1;
}

.card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.card h3 {
    margin-top: 0;
    color: #2c3e50;
}

.card p {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.card .meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
}

button {
    margin: 10px 0;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    background-color: #0052ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    transition: background .3s;
    width: 100%;
}

button:hover {
    background-color: #0039b3;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

button.reveal {
    background-color: #333;
    margin-top: 5px;
}

button.reveal:hover {
    background-color: #000;
}

#status {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
    min-height: 24px;
}

.error {
    color: #d32f2f;
}

.success {
    color: #2e7d32;
}

.info {
    color: #1976d2;
}

.hidden {
    display: none;
}

.badge-soon {
    background: #eee;
    color: #666;
    margin-top: 20px;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}

.own-ok {
    color: #2e7d32;
    font-weight: bold;
    margin: 8px 0;
    text-align: center;
}

/* ---- v2.0.0 MellonKeyDecrypt addition: author line under the title ---- */
.author {
    color: var(--accent);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: .04em;
    margin-bottom: 1.5rem;
    text-align: center;
}

.footer {
    padding: 20px;
    margin-top: 24px;
    color: #A0A5B5;
    font-size: 1rem;
    text-align: center;
    line-height: 1.6;
}


.footer a {
    color: #A8E6A3;
    text-decoration: underline;
}

.footer a:hover {
    color: #C8F5C3;
}

body.modal-open { overflow: hidden; }

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

.modal {
    width: 100%; max-width: 440px;
    max-height: 85vh; overflow-y: auto;
    background: #131c16;
    color: #e8f0ea;
    border: 1px solid rgba(212, 169, 78, .4);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
    padding: 22px 24px;
    text-align: left;
}
.modal h3 { margin: 0 0 10px; font-size: 20px; color: #e9c46a; }
.modal h4 { margin: 14px 0 4px; font-size: 14px; color: #e9c46a; }
.modal p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.modal-small { font-size: 12px !important; opacity: .75; }
.modal-center { text-align: center; }
.modal a { color: #e9c46a; text-decoration: underline; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 14px; cursor: pointer; }
.consent-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: #e9c46a; cursor: pointer; flex: none; }

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

.btn-primary, .btn-secondary {
    min-height: 44px; padding: 10px 18px; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: #e9c46a; border: 1px solid #e9c46a; color: #171204; }
.btn-primary:hover:not(:disabled) { background: #f2d488; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: transparent; border: 1px solid rgba(233, 196, 106, .5); color: #e9c46a; }
.btn-secondary:hover { background: rgba(233, 196, 106, .1); }
.btn-block { display: block; width: 100%; margin-top: 12px; }

.mint-list { list-style: none; margin: 8px 0; padding: 0; font-size: 14px; line-height: 1.5; }
.mint-list li { margin: 6px 0; }
.mint-list li::before { content: "· "; color: #e9c46a; font-weight: 700; }

.mint-pii { border: 1px solid rgba(233, 196, 106, .35); border-radius: 8px; padding: 10px 12px; font-size: 13px !important; }

/* Aviso legal debajo del botón Mint SBT */
.mint-warning { font-size: 12px; line-height: 1.45; opacity: .8; margin: 0; }

.spinner {
    width: 28px; height: 28px; margin: 10px auto;
    border: 3px solid rgba(233, 196, 106, .3);
    border-top-color: #e9c46a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mint-hash { word-break: break-all; font-family: monospace; font-size: 12px; opacity: .85; }
.mint-error-text { color: #ff9d9d; word-break: break-word; }
