/* quickIntro.css
   QUICK INTRODUCTION pop-up (quickIntro.js). Frame and colours from the
   V-PopupStyle colour set (popupStyles.css); laid out here. Laptop: 1040 x 640
   in the middle of the 1600 x 900 game area. Mobile: picture above the text. */

#wg-quickintro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
    z-index: 5000;
}

#POP-QuickIntro {
    --qi-hit: #e0573f;
    --qi-dmg: #f0c063;
    --qi-cell: #e6d9b4;
    --qi-cell-line: #b8a77a;
    position: absolute;
    left: 280px;
    top: 130px;
    width: 1040px;
    height: 640px;
    box-sizing: border-box;
    display: grid;
    grid-template-rows: 58px 1fr 76px;
    z-index: 5001;
    font-family: 'Roboto Condensed', sans-serif;
}

#POP-QuickIntro button { font-family: 'Roboto Condensed', sans-serif; }
#POP-QuickIntro button:focus-visible { outline: 3px solid var(--pop-focus); outline-offset: 3px; }

/* Title bar */
#POP-QuickIntro .qi-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 14px 0 24px;
    background: var(--pop-head-bg);
    border-bottom: var(--pop-line);
}
#POP-QuickIntro .qi-head-title {
    flex: 1;
    font-family: var(--pop-title-font);
    font-size: 26px;
    letter-spacing: var(--pop-title-track);
    text-transform: uppercase;
    color: var(--pop-title);
}
#POP-QuickIntro .qi-count {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--pop-title);
    opacity: .75;
    font-variant-numeric: tabular-nums;
}
#POP-QuickIntro .qi-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--pop-x-bg);
    border: var(--pop-x-border);
    border-radius: var(--pop-radius-sm);
    cursor: pointer;
}
#POP-QuickIntro .qi-close::after { content: "\2715"; font-size: 22px; line-height: 1; color: var(--pop-x-ink); }
#POP-QuickIntro .qi-close:hover { filter: brightness(1.25); }

/* Steps: one shown at a time */
#POP-QuickIntro .qi-slides { position: relative; overflow: hidden; }
#POP-QuickIntro .qi-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 30px;
    padding: 26px 30px 18px 26px;
    opacity: 0;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease;
}
#POP-QuickIntro .qi-slide.qi-past { transform: translateX(-24px); }
#POP-QuickIntro .qi-slide.qi-on { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
    #POP-QuickIntro .qi-slide { transition: none; transform: none; }
}

#POP-QuickIntro .qi-pic {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #050905;
    border: var(--pop-line);
}
#POP-QuickIntro .qi-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
#POP-QuickIntro .qi-cover img { object-fit: cover; }

/* Step 5 diagram */
#POP-QuickIntro .qi-diagram { background: #1b2414; align-content: center; gap: 14px; }
#POP-QuickIntro .qi-grid5 {
    display: grid;
    grid-template-columns: repeat(5, 74px);
    grid-template-rows: repeat(5, 74px);
    border: 2px solid var(--qi-cell-line);
}
#POP-QuickIntro .qi-grid5 div {
    display: grid;
    place-items: center;
    background: var(--qi-cell);
    border: 1px solid var(--qi-cell-line);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #6b4300;
}
#POP-QuickIntro .qi-grid5 .qi-dmg { background: var(--qi-dmg); }
#POP-QuickIntro .qi-grid5 .qi-hit { background: var(--qi-hit); }
#POP-QuickIntro .qi-bomb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffe27a 0 30%, #e8a31b 31% 55%, #b11d0f 56%);
    box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(0, 0, 0, .5);
}
#POP-QuickIntro .qi-caption { color: #b9b493; font-size: 16px; text-align: center; }

/* Words */
#POP-QuickIntro .qi-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    color: var(--pop-ink);
}
#POP-QuickIntro .qi-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--pop-muted);
}
#POP-QuickIntro .qi-title {
    margin: 0;
    font-family: var(--pop-title-font);
    font-size: 34px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .02em;
    color: var(--pop-focus);
    text-wrap: balance;
}
#POP-QuickIntro .qi-text p { margin: 0; font-size: 20px; line-height: 1.38; }
#POP-QuickIntro .qi-text b { color: var(--pop-focus); }
#POP-QuickIntro .qi-text p.qi-lead { font-size: 23px; font-weight: 600; line-height: 1.3; color: var(--pop-focus); }
#POP-QuickIntro .qi-text p.qi-tip {
    font-size: 18px;
    color: var(--pop-muted);
    border-left: 4px solid var(--pop-muted);
    padding: 6px 0 6px 12px;
}
#POP-QuickIntro .qi-keys { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
#POP-QuickIntro .qi-keys li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 19px;
    line-height: 1.32;
}
#POP-QuickIntro .qi-swatch { width: 20px; height: 20px; margin-top: 2px; border: 1px solid rgba(0, 0, 0, .4); }
#POP-QuickIntro .qi-swatch-hit { background: var(--qi-hit); }
#POP-QuickIntro .qi-swatch-dmg { background: var(--qi-dmg); }
#POP-QuickIntro .qi-swatch-none { background: var(--qi-cell); }

/* Bottom bar: Skip, step diamonds, Back / Next */
#POP-QuickIntro .qi-foot {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 24px;
    border-top: var(--pop-line);
    background: rgba(0, 0, 0, .18);
}
#POP-QuickIntro .qi-skip {
    justify-self: start;
    padding: 6px 0;
    background: none;
    border: 0;
    color: var(--pop-muted);
    font-size: 17px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
#POP-QuickIntro .qi-dots { display: flex; gap: 10px; }
#POP-QuickIntro .qi-dots button {
    width: 14px;
    height: 14px;
    padding: 0;
    background: transparent;
    border: 2px solid var(--pop-muted);
    transform: rotate(45deg);
    cursor: pointer;
}
#POP-QuickIntro .qi-dots button.qi-on { background: var(--pop-focus); border-color: var(--pop-focus); }
#POP-QuickIntro .qi-nav { justify-self: end; display: flex; gap: 12px; }
#POP-QuickIntro .qi-btn {
    min-width: 120px;
    height: 46px;
    padding: 0 20px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pop-btn-ink);
    background: var(--pop-btn-bg);
    border: var(--pop-btn-border);
    border-radius: var(--pop-radius-sm);
    white-space: nowrap;
    cursor: pointer;
}
#POP-QuickIntro .qi-btn.qi-go { border: 3px solid var(--pop-focus); }
#POP-QuickIntro .qi-btn:hover:not(:disabled) { filter: brightness(1.2); }
#POP-QuickIntro .qi-btn:disabled { opacity: .35; cursor: default; }

/* Mobile: 900-wide portrait stage; picture above the text, larger type */
body.wg-mobile #POP-QuickIntro {
    left: 20px;
    top: 60px;
    width: 860px;
    height: 1380px;
    grid-template-rows: 80px 1fr 110px;
}
body.wg-mobile #POP-QuickIntro .qi-head-title { font-size: 34px; }
body.wg-mobile #POP-QuickIntro .qi-count { font-size: 24px; }
body.wg-mobile #POP-QuickIntro .qi-close { width: 60px; height: 60px; }
body.wg-mobile #POP-QuickIntro .qi-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 520px 1fr;
    gap: 24px;
    padding: 24px;
}
body.wg-mobile #POP-QuickIntro .qi-text { justify-content: start; gap: 18px; }
body.wg-mobile #POP-QuickIntro .qi-kicker { font-size: 21px; }
body.wg-mobile #POP-QuickIntro .qi-title { font-size: 46px; }
body.wg-mobile #POP-QuickIntro .qi-text p,
body.wg-mobile #POP-QuickIntro .qi-keys li { font-size: 29px; }
body.wg-mobile #POP-QuickIntro .qi-text p.qi-lead { font-size: 31px; }
body.wg-mobile #POP-QuickIntro .qi-text p.qi-tip { font-size: 26px; }
body.wg-mobile #POP-QuickIntro .qi-keys li { grid-template-columns: 30px 1fr; }
body.wg-mobile #POP-QuickIntro .qi-swatch { width: 28px; height: 28px; margin-top: 4px; }
body.wg-mobile #POP-QuickIntro .qi-skip { font-size: 25px; }
body.wg-mobile #POP-QuickIntro .qi-dots { gap: 11px; }
body.wg-mobile #POP-QuickIntro .qi-dots button { width: 18px; height: 18px; }
body.wg-mobile #POP-QuickIntro .qi-nav { gap: 10px; }
body.wg-mobile #POP-QuickIntro .qi-btn { min-width: 0; height: 72px; padding: 0 16px; font-size: 23px; letter-spacing: .04em; }
body.wg-mobile #POP-QuickIntro .qi-foot { padding: 0 20px; gap: 14px; }

/* Mobile, revised: full width under the menu, larger text, standard-height
   buttons; a long text scrolls under its picture. */
body.wg-mobile #POP-QuickIntro {
    left: 8px;
    top: 150px;
    width: 884px;
    height: 1350px;
    grid-template-rows: 84px 1fr 136px;
}
body.wg-mobile #POP-QuickIntro .qi-slide { grid-template-rows: 500px 1fr; gap: 20px; padding: 18px 22px 10px; }
body.wg-mobile #POP-QuickIntro .qi-pic img { object-fit: contain; }
body.wg-mobile #POP-QuickIntro .qi-cover img { object-fit: cover; }
body.wg-mobile #POP-QuickIntro .qi-text { overflow-y: auto; scrollbar-width: none; }
body.wg-mobile #POP-QuickIntro .qi-text::-webkit-scrollbar { display: none; }
body.wg-mobile #POP-QuickIntro .qi-text p,
body.wg-mobile #POP-QuickIntro .qi-keys li { font-size: 34px; line-height: 1.32; }
body.wg-mobile #POP-QuickIntro .qi-text p.qi-lead { font-size: 35px; }
body.wg-mobile #POP-QuickIntro .qi-text p.qi-tip { font-size: 31px; }
body.wg-mobile #POP-QuickIntro .qi-kicker { font-size: 26px; }
body.wg-mobile #POP-QuickIntro .qi-title { font-size: 48px; }
body.wg-mobile #POP-QuickIntro .qi-caption { font-size: 26px; }
body.wg-mobile #POP-QuickIntro .qi-foot { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 12px; }
body.wg-mobile #POP-QuickIntro .qi-skip { font-size: 28px; }
body.wg-mobile #POP-QuickIntro .qi-dots { justify-self: center; gap: 14px; }
body.wg-mobile #POP-QuickIntro .qi-dots button { width: 22px; height: 22px; }
body.wg-mobile #POP-QuickIntro .qi-btn { min-width: 190px; width: auto; height: 102px; padding: 0 18px; font-size: 36px; font-weight: 700; }
/* The picture fits its 500-high frame whole (cover pictures fill it). */
body.wg-mobile #POP-QuickIntro .qi-pic img { height: 100%; max-height: 496px; }
