/* Gift card section (2 Dec 2026). Own class names (gc-) so none of the old .gift / .t7 rules apply.
   The card keeps credit card proportions: 85.6 x 54 mm, ratio 1.586. */
.gc {
    --gc-ink: #1c2800;
    --gc-green: #5c7900;
    --gc-lime: #c2f542;
    --gc-w: min(calc(100vw - 32px), 420px);
    position: relative;
    padding: 56px 16px 64px;
    color: #151518;
    background: linear-gradient(#f8fbe7, #f1f9d6);
    overflow: hidden;
}
.gc__inner {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "head" "line" "card" "more";
    justify-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.gc__head { grid-area: head; margin: 0; font-size: clamp(32px, 8.6vw, 56px); font-weight: 600; line-height: 1.04; letter-spacing: -0.028em; text-align: center; text-wrap: balance; }
.gc__head em {
    font-style: normal;
    color: transparent;
    background: linear-gradient(#86ab08 0%, #5c7900 58%, #3f5400 100%);
    -webkit-background-clip: text;
    background-clip: text;
    padding: 0 0.06em;
}
.gc__line { grid-area: line; display: flex; align-items: center; gap: 12px; margin: 10px 0 0; font-size: clamp(22px, 5.6vw, 34px); font-weight: 600; letter-spacing: -0.02em; color: #2a3600; transition: opacity 0.4s ease; }
.gc__line svg { width: 1.1em; height: 1.1em; color: var(--gc-green); transform: rotate(90deg); }

/* The card and the pirate on its top edge. */
.gc__cardwrap {
    --cw: var(--gc-w);
    --ph: calc(var(--cw) / 1.586 * 0.82);
    grid-area: card;
    position: relative;
    width: var(--cw);
    margin-top: calc(var(--ph) * 0.56 + 20px);
}
.gc-card {
    container-type: inline-size;
    position: relative;
    width: 100%;
    aspect-ratio: 85.6 / 54;
    border-radius: calc(var(--cw) * 0.05);
    background: radial-gradient(120% 100% at 0% 0%, #f1f9dc, #fffef9 62%);
    box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 0 0 1px rgb(92 121 0 / 0.14), 0 2px 6px rgb(40 50 10 / 0.06), 0 22px 44px -20px rgb(40 50 10 / 0.35), 0 40px 80px -40px rgb(92 121 0 / 0.4);
    overflow: hidden;
    isolation: isolate;
}
.gc-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 6.5cqw; }
.gc-prize__label { display: flex; align-items: center; gap: 0.4em; margin: 0; font-size: max(13px, 3.9cqw); font-weight: 700; color: var(--gc-green); }
.gc-prize__label svg { width: 1.15em; height: 1.15em; }
.gc-prize__big { max-width: 70%; margin: 2.4cqw 0 0; font-size: 7.4cqw; font-weight: 600; line-height: 1.08; letter-spacing: -0.024em; color: #151518; }
.gc-prize__big .nb { white-space: nowrap; }
.gc-claim {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin-top: auto;
    height: clamp(40px, 11.5cqw, 60px);
    padding: 0 1.25em;
    border: 2px solid var(--gc-ink);
    border-radius: 999px;
    font-size: max(14px, 4.1cqw);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--gc-ink);
    background: var(--gc-lime);
    box-shadow: 3px 3px 0 var(--gc-ink);
    text-decoration: none;
    transition: transform 0.18s var(--ease-out, ease), box-shadow 0.18s var(--ease-out, ease);
}
.gc-claim svg { width: 1.15em; height: 1.15em; flex: none; }
.gc-claim:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--gc-ink); }
.gc-claim:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--gc-ink); }
.gc-claim:focus-visible { outline: 3px solid var(--gc-green); outline-offset: 3px; }

.gc-foil { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity 0.6s ease; }
.gc-card.is-revealed .gc-foil { opacity: 0; pointer-events: none; }
.gc-tap {
    position: absolute;
    right: 6.5cqw;
    bottom: 6.5cqw;
    z-index: 3;
    height: clamp(34px, 10cqw, 50px);
    padding: 0 1.1em;
    border: 2px solid var(--gc-ink);
    border-radius: 999px;
    font: 600 max(13px, 3.6cqw) / 1 var(--font, system-ui), sans-serif;
    color: var(--gc-ink);
    background: rgb(255 255 255 / 0.92);
    box-shadow: 2px 2px 0 var(--gc-ink);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.18s ease;
}
.gc-tap:hover { transform: translate(-1px, -1px); }
.gc-tap:focus-visible { outline: 3px solid var(--gc-green); outline-offset: 3px; }
.gc-card.is-revealed .gc-tap { opacity: 0; pointer-events: none; }
.gc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.gc-burst { position: absolute; left: 50%; top: 50%; z-index: 4; pointer-events: none; }
.gc-burst i { position: absolute; left: 0; top: 0; width: 8px; height: 12px; border-radius: 2px; }

/* The pirate keeps the site's guide markup (.scene-girl > .girl[data-girl] > .girl__hop > .girl__body > .girl__pose), so the
   one-pirate rule (night.js) and his step-in (voyage.js) still work; here only his place and size are set. */
#gift.gc .gc-scene { position: absolute; inset: auto; right: 5%; top: calc(var(--ph) * -0.575); z-index: 5; width: calc(var(--ph) * 0.609); height: var(--ph); margin: 0; padding: 0; transform: none; pointer-events: none; }
#gift.gc .gc-scene .girl { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; --h: var(--ph); }
#gift.gc .gc-scene :is(.girl__hop, .girl__body) { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
#gift.gc .gc-scene .girl__pose { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; filter: drop-shadow(0 10px 10px rgb(40 50 10 / 0.18)); }
.gc-say {
    position: absolute;
    right: calc(5% + var(--ph) * 0.5);
    top: calc(var(--ph) * -0.56);
    z-index: 6;
    margin: 0;
    padding: 10px 14px;
    border: 2px solid var(--gc-ink);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    color: #151518;
    background: #fff;
    box-shadow: 0 10px 22px -12px rgb(40 50 10 / 0.45);
    pointer-events: none;
}
.gc-say::after {
    content: "";
    position: absolute;
    right: -9px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-top: 2px solid var(--gc-ink);
    border-right: 2px solid var(--gc-ink);
    background: #fff;
    transform: translateY(-50%) rotate(45deg) skew(8deg, 8deg);
}

/* The audit list: hidden until the card is scratched. */
.gc-more { grid-area: more; display: grid; grid-template-rows: 0fr; width: var(--gc-w); opacity: 0; transition: grid-template-rows 0.5s var(--ease-out, ease), opacity 0.4s ease 0.15s; }
.gc-more > div { min-height: 0; overflow: hidden; }
.gc.is-revealed .gc-more { grid-template-rows: 1fr; opacity: 1; }
.gc-more__plus { margin: 22px 0 10px; font-size: 17px; font-weight: 600; color: #2a3600; }
.gc-more ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gc-more li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.4; color: #4a4c44; }
.gc-more li svg { position: absolute; left: 0; top: 2px; width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: var(--gc-ink); background: var(--gc-lime); }

@media (min-width: 900px) {
    .gc { --gc-w: clamp(475px, calc(40vw / var(--bpz, 1)), 550px); padding: 72px var(--pad, 40px) 80px; }
    .gc__inner {
        grid-template-columns: minmax(0, 540px) auto;
        grid-template-areas: "head card" "sub card";
        justify-content: center;
        grid-template-rows: auto 1fr;
        justify-items: start;
        align-items: start;
        column-gap: clamp(40px, 6vw, 96px);
    }
    .gc__head { text-align: left; font-size: clamp(38px, calc(4.1vw / var(--bpz, 1)), 60px); align-self: end; }
    .gc__line, .gc-more { grid-area: sub; }
    .gc__line { margin-top: 18px; }
    .gc__line svg { transform: none; }
    .gc.is-revealed .gc__line { opacity: 0; pointer-events: none; }
    .gc-more { width: auto; max-width: 30em; }
    .gc-more__plus { margin-top: 18px; }
    .gc__cardwrap { margin-top: calc(var(--ph) * 0.56); align-self: center; }
    .gc__inner { align-items: center; }
    .gc-say { font-size: calc(var(--cw) * 0.0417); padding: 0.62em 0.9em; border-radius: 1em; }
}
@media (prefers-reduced-motion: reduce) {
    .gc-foil, .gc-more, .gc__line, .gc-tap, .gc-claim { transition: none; }
}
@media (min-width: 900px) {
    .gc__line, .gc-more { align-self: start; }
}
/* On the site: the section's ground under the top band that the wave rules paint (#f8fbe7 into #f1f9d6, the old .gift colour). */
#gift.gc { background-color: #f1f9d6; }
/* Desktop: the words sit in the middle of the card's height, and the audit list keeps its room before the scratch,
   so nothing moves when the card is scratched. */
@media (min-width: 900px) {
    .gc__inner { grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". card" "head card" "sub card" ". card"; }
    .gc__head { align-self: end; }
    .gc-more { grid-template-rows: 1fr; visibility: hidden; transition: opacity 0.4s ease 0.15s, visibility 0s linear 0.55s; }
    .gc.is-revealed .gc-more { visibility: visible; transition: opacity 0.4s ease 0.15s, visibility 0s; }
}
