/* Grand-opening lead magnet — cards & dice aesthetic, glass edge */
.portal-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px;
    box-sizing: border-box;
}

.portal-overlay.portal-overlay--visible {
    display: flex;
}

.portal-content {
    background: rgba(255, 255, 255, 0.97);
    padding: 36px 28px 32px;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    position: relative;
    text-align: center;
    border: 2px solid #f59e0b;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.portal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: #525252;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    padding: 6px 8px;
    border-radius: 8px;
}

.portal-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #171717;
}

/* Pip dice (replaces emoji) — matches Band9AI card-back dice language */
.portal-header-dice {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.portal-dice-face {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f4f5 100%);
    border: 2px solid #d4d4d8;
    box-shadow:
        0 2px 0 rgba(255, 255, 255, 0.9) inset,
        0 4px 12px rgba(15, 23, 42, 0.12);
}

.portal-dice-pip {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #27272a, #09090b);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.portal-dice-face.pattern-5 .portal-dice-pip:nth-child(1) {
    top: 22%;
    left: 22%;
}
.portal-dice-face.pattern-5 .portal-dice-pip:nth-child(2) {
    top: 22%;
    right: 22%;
}
.portal-dice-face.pattern-5 .portal-dice-pip:nth-child(3) {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.portal-dice-face.pattern-5 .portal-dice-pip:nth-child(4) {
    bottom: 22%;
    left: 22%;
}
.portal-dice-face.pattern-5 .portal-dice-pip:nth-child(5) {
    bottom: 22%;
    right: 22%;
}

.portal-header h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0a0a;
    line-height: 1.25;
    margin: 0 0 12px;
}

@media (min-width: 480px) {
    .portal-header h2 {
        font-size: 1.5rem;
    }
}

.portal-header p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #404040;
    margin: 0;
}

.portal-action {
    margin-top: 22px;
}

.btn-start {
    background: #000;
    color: #fff;
    padding: 14px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    border: 2px solid #000;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    width: 100%;
    font-family: 'Times New Roman', Times, serif;
}

.btn-start:hover {
    transform: scale(1.02);
    background: #ea580c;
    border-color: #ea580c;
}

.btn-start:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 3px;
}

.portal-divider {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 22px 0 14px;
}

.portal-content .small-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #737373;
    margin: 0 0 10px;
    font-weight: 600;
}

.mini-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    justify-content: center;
}

.mini-card {
    border: 1px solid #d4d4d4;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    flex: 1 1 90px;
    min-width: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 600;
    color: #171717;
}

.mini-card span {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.mini-card.highlight {
    border-color: #f59e0b;
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
    font-weight: 700;
}

.mini-card:hover {
    transform: translateY(-3px);
    border-color: #000;
}

.mini-card:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .mini-cards {
        flex-direction: column;
    }
    .mini-card {
        flex: 1 1 auto;
    }
}
