/* "Name the next Viper" page. Mobile first: one column, big tap targets. Two columns from 700px (iPad and up), roomier from 1100px. */
.vhero { padding: 28px 4vw 8px; max-width: 1180px; margin: 0 auto; }
.vhero h1 { font-size: clamp(2.6rem, 11vw, 5.4rem); line-height: .92; margin: 4px 0 10px; }
.vhero h1 em, .vcard h2 em { font-style: normal; color: var(--em); }
.vhero .lede { color: var(--mute); max-width: 560px; font-size: 1.05rem; }
.vhero .lede b { color: var(--white); font-weight: 600; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.vchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--white); font: inherit; font-size: .9rem; }
.vchip .d { width: 8px; height: 8px; border-radius: 50%; background: var(--em); }
.vshare { cursor: pointer; border-color: var(--em); color: var(--mint); touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vshare:hover { background: var(--em); color: var(--bg); }

.vgrid { display: grid; gap: 14px; padding: 14px 4vw 30px; max-width: 1180px; margin: 0 auto; grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "panel" "duel" "pitch"; }
.vcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; min-width: 0; }
.vcard h2 { font-size: 1.7rem; line-height: 1; margin-bottom: 4px; }
.vsub { color: var(--mute); font-size: .95rem; margin-bottom: 12px; }
.vleft { grid-area: left; position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; background: #0b1f17f2; backdrop-filter: blur(6px); }
.vpanel { grid-area: panel; position: relative; padding: 0; overflow: hidden; }
.vduel { grid-area: duel; }
.vpitch { grid-area: pitch; }

.vdots { display: flex; gap: 8px; }
.vdots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--em); }
.vdots i.on { background: var(--em); }
.vleft-t { font-size: 1.05rem; }
.vleft-t b { font-family: var(--display); font-size: 1.8rem; font-weight: 700; color: var(--white); margin-right: 4px; }
.vmsg { flex-basis: 100%; min-height: 0; font-size: .92rem; color: var(--mint); }
.vmsg:empty { display: none; }
.vmsg.err { color: #ff8f7a; }

.vph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 16px 6px; }
.vph h2 { margin: 0; flex: 1 1 auto; }
.vph input { flex: 1 1 170px; min-width: 0; }
.vhint { padding: 0 16px 8px; color: var(--mute); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.vscroll { max-height: 62vh; max-height: 62dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 12px 56px; scroll-behavior: auto; }
.vpanel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(to bottom, #0b1f1700, #0b1f17); pointer-events: none; transition: opacity .2s; }
.vpanel.atend::after { opacity: 0; }

.vlist { list-style: none; display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 76px; padding: 8px 8px 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: #0a1a13; }
.vrow.mine { border-color: var(--em); background: #0f2e21; }
.vrk { font-size: 1.5rem; color: var(--mute); text-align: center; }
.vrow:nth-child(1) .vrk { color: var(--gold); }
.vrow:nth-child(2) .vrk, .vrow:nth-child(3) .vrk { color: var(--white); }
.vnm { min-width: 0; display: block; }
.vnm b { display: block; font-size: 1.55rem; line-height: 1.05; overflow-wrap: anywhere; }
.vnm small { display: block; color: var(--mute); font-size: .82rem; margin-top: 2px; }
.vbar { display: block; height: 5px; background: var(--line); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--em); border-radius: 3px; transition: width .35s ease-out; }
.vnone { padding: 18px 6px; color: var(--mute); text-align: center; }

.vbtn { width: 72px; min-height: 60px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #0f2e21; color: var(--mint); border: 1px solid var(--em); font: inherit; font-size: .8rem; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; }
.vbtn:hover { background: #134030; }
.vbtn:active { transform: scale(.96); }
.vrow.mine .vbtn { background: var(--em); color: #03170d; font-weight: 600; }

.vfo { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.vfo > span { align-self: center; text-align: center; color: var(--mute); font-size: .85rem; }
.vfo button { min-height: 92px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: #0a1a13; color: var(--white); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; overflow-wrap: anywhere; }
.vfo button b { font-size: 1.5rem; line-height: 1; }
.vfo button small { color: var(--mute); font-size: .78rem; }
.vfo button:hover { border-color: var(--em); background: #0f2e21; }
.vfo button:active { transform: scale(.97); }
.vlink { margin-top: 10px; min-height: 44px; padding: 0 6px; background: none; border: 0; color: var(--mint); font: inherit; text-decoration: underline; cursor: pointer; touch-action: manipulation; }

.vform { display: flex; gap: 8px; }
.vform input { flex: 1; min-width: 0; }
.vform button { min-height: 52px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--em); color: #03170d; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.vform button:active { transform: scale(.97); }
.vpitch .vmsg { margin-top: 8px; }
.vgrid input[type=text], .vgrid input[type=search] { min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #0a1a13; color: var(--white); font: inherit; font-size: 16px; }
.vgrid input:focus { outline: 2px solid var(--em); outline-offset: 1px; }

@media (min-width: 700px) {
    .vgrid { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 1fr); grid-template-areas: "panel left" "panel duel" "panel pitch"; align-items: start; gap: 16px; }
    .vleft { position: static; backdrop-filter: none; background: var(--panel); }
    .vscroll { max-height: min(74vh, 800px); }
    .vpanel { position: sticky; top: 76px; }
}
@media (min-width: 1100px) {
    .vgrid { gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); }
    .vrow { min-height: 84px; }
    .vnm b { font-size: 1.75rem; }
    .vcard { padding: 20px; }
}
@media (hover: none) and (pointer: coarse) {
    .vbtn { width: 80px; min-height: 64px; }
    .vrow { min-height: 84px; }
}
@media (max-width: 380px) { .vnm b { font-size: 1.35rem; } .vbtn { width: 64px; } }
@media (prefers-reduced-motion: reduce) { .vbar i, .vpanel::after { transition: none; } .vbtn:active, .vfo button:active, .vform button:active { transform: none; } }
