/* Variant B2: B's layout and lightning in black, white and gold (Uku's pick, 23.11). Loads after ../b/b.css
   and only changes colours, corners and photos. Gold #C8A35A, black #0B0B0B and off-white #F5F3EF follow Monika's guide. */
:root {
    --paper: #0B0B0B;
    --paper-2: #151515;
    --ink: #F5F3EF;
    --ink-2: #CFCAC0;
    --mute: #A29D92;
    --line: rgba(245, 243, 239, .16);
    --blue: #C8A35A;
    --blue-2: #D8B872;
    --black: #0B0B0B;
    color-scheme: dark;
}
html { scrollbar-color: #4A463D var(--paper); }
::selection { background: var(--blue); color: var(--black); }
img { height: auto; }
.cut, .card-cut { height: 100%; }

/* Sharp corners everywhere. */
.chip, .lang button, .btn, .tag, .toast { border-radius: 0; }
.chip { border-color: var(--line); }

/* Poster: a warm spotlight behind Uku, gold surname, gold bolt. */
.poster { background: radial-gradient(70% 55% at 56% 42%, #2B2721 0%, #15130F 52%, var(--paper) 100%); }
.storm { background: radial-gradient(120% 75% at 62% 8%, #54421C 0%, #221A0B 45%, #090806 100%); }
/* UKU stays readable during a strike: the storm sits behind it. The body fades out under the surname. */
.storm { z-index: -3; }
.name .n1 { z-index: -2; }
.cut { -webkit-mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .3) 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, rgba(0, 0, 0, .3) 78%, transparent 100%); }
.cut { height: 74%; filter: grayscale(1) contrast(1.1) brightness(.94); }
.poster.lit .name .n1 { color: #FFF3D2; }
.poster.lit .cut { filter: grayscale(1) contrast(1.12) brightness(1.1); }
.flag { display: none; }
.tape dd { font-size: min(34px, 8.2vw); }

/* Cards: each portrait keeps its own area, so no text runs over the face: above the text on narrow
   cards, beside it on wide ones. Round 1 is a studio portrait, the free video a punch in gold light. */
.card { border: 1px solid var(--line); }
.card-ink, .card-blue, .card-blue:hover { min-height: 0; padding-top: 352px; background: var(--paper-2); color: var(--ink); }
.card-photo { position: absolute; z-index: -2; inset: 0 0 auto; width: 100%; height: 390px; object-fit: cover; object-position: 50% 42%; filter: grayscale(1) contrast(1.1) brightness(1.18); transition: transform .9s var(--ease); }
.card:hover .card-photo { transform: scale(1.025); }
.card-ink::after, .card-blue::after { background: linear-gradient(180deg, rgba(21, 21, 21, 0) 220px, var(--paper-2) 388px); }
.card-blue .card-photo { object-position: 50% 22%; filter: grayscale(1) contrast(1.08) brightness(1.04); }
/* Gold light on the backdrop: multiplied over the grey studio wall, strongest at the top right. */
.card-blue::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 390px; pointer-events: none; mix-blend-mode: multiply; background: linear-gradient(215deg, #E2B75F 0%, #C8A35A 38%, #6E5730 100%); }
.card p { max-width: 36ch; font-size: 16px; opacity: .84; }
.card h2 { max-width: none; }
.card-ink h2 { font-size: min(92px, 27cqi); line-height: .9; white-space: nowrap; }
.card-ink h2 b { font-weight: inherit; color: var(--blue); }
.card-blue h2 { font-size: min(60px, 16.4cqi); max-width: 13ch; }
.tag, .tag-paper { background: rgba(11, 11, 11, .55); color: var(--blue-2); border-color: var(--blue); }
.tag i { background: var(--blue-2); }
/* The dot pulses instead of disappearing, so the label never looks off-centre. */
@media (prefers-reduced-motion: no-preference) { .tag i { animation: pulse 1.8s ease-in-out infinite alternate; } }
@keyframes pulse { to { opacity: .4; } }
.card-play { position: absolute; z-index: 0; left: 20px; top: 20px; display: grid; place-items: center; width: 56px; height: 56px; background: var(--blue); color: var(--black); transition: background .25s; }
.card-play .ic { width: 24px; height: 24px; margin-left: 2px; fill: currentColor; stroke: none; }
.card:hover .card-play { background: var(--blue-2); }

/* Engraved icon set (Higgsfield, 23.11). Used as masks, so the gold stays exactly ours and can turn black on a gold hover.
   Small arrows and the copy mark stay thin line SVGs. */
.gi { display: block; flex: none; width: 44px; height: 44px; background: linear-gradient(150deg, #E6C98B, #C8A35A 52%, #AB8542); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.gi-shield { --i: url(../img/b2/ic/shield.webp); }
.gi-wind { --i: url(../img/b2/ic/wind.webp); }
.gi-drop { --i: url(../img/b2/ic/drop.webp); }
.gi-glove { --i: url(../img/b2/ic/glove.webp); }
.gi-cup { --i: url(../img/b2/ic/cup.webp); }
.gi-bolt { --i: url(../img/b2/ic/bolt.webp); }
.gi-bell { --i: url(../img/b2/ic/bell.webp); }
.gi-play { --i: url(../img/b2/ic/play.webp); }
.gi-list { --i: url(../img/b2/ic/list.webp); }
.gi-ticket { --i: url(../img/b2/ic/ticket.webp); }
.gi-tee { --i: url(../img/b2/ic/tee.webp); }
.gi-screen { --i: url(../img/b2/ic/screen.webp); }
.gi-ring { --i: url(../img/b2/ic/ring.webp); }
.gi-hands { --i: url(../img/b2/ic/hands.webp); }
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; }
.pillars { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 24px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.pillars li { display: grid; gap: 9px; justify-items: start; font: 500 12px/1.2 var(--body); color: var(--ink-2); }
.pillars .gi { width: 42px; height: 42px; }

/* Main button: gold frame, icon, caps, and a solid gold arrow field that fills the button on hover. */
.btn.go { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 58px; padding: 0 72px 0 14px; border: 1px solid var(--blue); background: var(--black); color: var(--ink); text-align: center; font: 700 14px/1.15 var(--body); letter-spacing: .07em; text-transform: uppercase; transition: color .3s; }
.btn.go[hidden] { display: none; }
.btn.go::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, #B58E45, #E0BF7C 55%, #C8A35A); transform: translateX(calc(100% - 58px)); transition: transform .55s var(--ease); }
.go-x { position: absolute; inset: 0 0 0 auto; width: 58px; display: grid; place-items: center; }
.btn.go .gi { width: 30px; height: 30px; transition: background .3s; }
.btn.go .gi-play { width: 24px; height: 24px; }
.btn.go:hover .gi, .card-blue:hover .btn.go .gi { background: var(--black); }
.btn.go .ic { width: 22px; height: 22px; stroke: var(--blue); transition: stroke .3s, transform .35s var(--ease); }
.btn.go .go-x .ic { stroke: var(--black); stroke-width: 1.9; }
.card-blue .btn.go { width: 100%; }
.btn.go:hover, .card-blue:hover .btn.go { color: var(--black); }
.btn.go:hover::before, .card-blue:hover .btn.go::before { transform: none; }
.btn.go:hover .ic, .card-blue:hover .btn.go .ic { stroke: var(--black); transform: none; }
.btn.go:hover .go-x .ic, .card-blue:hover .btn.go .go-x .ic { transform: translateX(4px); }

/* Tale of the tape: icon beside the fact, the two headline numbers in gold. */
.tape div { position: relative; }
.tape .gi { position: absolute; right: 0; top: 14px; width: 42px; height: 42px; }
.tape div:nth-child(odd) .gi { right: 14px; }
.tape div:nth-child(-n+2) dd { color: var(--blue); font-size: 52px; line-height: .95; }
.tape { border-top-color: var(--blue); }
/* Estonian flag; the hairline keeps the black stripe visible on black. */
.tape .ee { position: absolute; right: 0; top: 18px; width: 36px; height: auto; outline: 1px solid rgba(245, 243, 239, .28); }

/* Link rows */
.rows { border-top-color: var(--blue); }
.rows a { grid-template-columns: 44px 1fr 24px; column-gap: 14px; padding: 17px 4px 16px; }
.rows b { grid-column: 2; font-size: min(30px, 6.5vw); transition: color .25s; }
.rows small { grid-column: 2; }
.rows .gi { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.rows a svg:last-child { grid-column: 3; stroke: var(--blue); stroke-width: 1.7; }
.rows a:hover { background: linear-gradient(100deg, #B58E45, #E0BF7C 55%, #C8A35A); color: var(--black); }
.rows a:hover svg:last-child { stroke: var(--black); }
.rows a:hover .gi { background: var(--black); }
.code { position: relative; border-color: var(--blue); }
.code b { color: var(--blue); }
.code .ic { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; }
.code:hover { background: var(--paper-2); color: var(--ink); }
.code.done, .code.done b { color: var(--black); }
.code.done .ic { stroke: var(--black); }
.sponsors { border-top-color: var(--blue); }
.end { border-top-color: var(--blue); }
.uj { display: block; width: 74px; height: 79px; margin: 6px auto 24px; background: var(--blue); -webkit-mask: url(../img/cd/uj-logo-white.png) center / contain no-repeat; mask: url(../img/cd/uj-logo-white.png) center / contain no-repeat; }
.poster.lit .name .n2 { color: #F0D69A; transition: color .05s; }
.name .n2 { transition: color .6s ease-out; }

.btn-paper, .btn-blue { background: var(--blue); color: var(--black); }
.btn-paper:hover, .btn-blue:hover { background: var(--blue-2); }
.btn-ink { background: var(--blue); color: var(--black); }
.form input { border: 1px solid var(--line); }
.form input:focus-visible { outline-width: 2px; }

.rows a:hover small { color: #3A3222; }
.code.done, .code.done span, .code.done small { color: var(--black); }
.sponsors img { filter: invert(1); }
.sponsors a:hover img { filter: none; }
.socials a { background: var(--paper-2); }

/* Phones: the Estonian waitlist label stays on one line. */
@media (max-width: 759px) {
    .btn.go { gap: 10px; padding: 0 64px 0 10px; font-size: min(13.5px, 3.3vw); letter-spacing: .03em; }
    .go-x { width: 54px; }
    .btn.go::before { transform: translateX(calc(100% - 54px)); }
    .btn.go:hover::before { transform: none; }
}
@media (min-width: 760px) {
    .cut { height: 86%; }
    .tape dd { font-size: 34px; }
    .tape div:nth-child(-n+2) dd { font-size: 64px; }
    .rows b { font-size: 34px; }
    .uj { margin: 0; }
    .btn.go { min-width: 280px; }
}
@media (min-width: 1100px) {
    .card-ink, .card-blue, .card-blue:hover { min-height: 600px; padding-top: 32px; }
    .card-photo { inset: 0 0 0 auto; width: 66%; height: 100%; object-position: 50% 50%; }
    .card-blue .card-photo { object-position: 42% 20%; }
    .card-blue::before { inset: 0 0 0 auto; width: 66%; height: 100%; }
    .card-ink::after, .card-blue::after { background: linear-gradient(90deg, var(--paper-2) 35%, rgba(21, 21, 21, 0) 68%), linear-gradient(0deg, var(--paper-2) 60px, rgba(21, 21, 21, 0) 270px); }
    .card-ink h2 { font-size: clamp(60px, 15.5cqi, 92px); }
    .card-blue h2 { font-size: clamp(50px, 12.6cqi, 76px); max-width: 8ch; }
    .card p { max-width: 24ch; }
    .card-ink .pillars { max-width: 380px; }
    .card-play { left: 32px; top: 32px; width: 64px; height: 64px; }
    .card-blue .btn.go { width: auto; }
}
