/* v2: phones, top 5, houses, live lab, verdicts, layering, events, work page, Nic's controls */
.hero-art { position: relative; min-height: 460px; }
.hero-photo { position: absolute; right: 0; top: 0; width: 78%; aspect-ratio: 916/1060; border-radius: 200px 200px 28px 28px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 30px 60px rgba(0,0,0,.55); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-phone { position: absolute; left: 0; bottom: -10px; width: 150px; z-index: 3; }
.hero-phone .ph-cap { display: none; }
.hero-art .sticker { right: -6px; top: 18px; width: 108px; height: 108px; font-size: 13px; }

/* phone mockup (same look as the Exam Zone carousel) */
.phones { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.phones > * { scroll-snap-align: start; }
.phone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.vitem { min-width: 0; }
.phone { display: block; width: 100%; padding: 0; border: 9px solid #141824; border-radius: 30px; background: #000; overflow: hidden; box-shadow: 0 18px 36px rgba(0,0,0,.5), 0 0 0 1px #2b2f3d; position: relative; cursor: pointer; transition: transform .2s ease; }
.phone:hover { transform: translateY(-4px); }
.phone::before { content: ""; position: absolute; z-index: 3; top: 6px; left: 50%; transform: translateX(-50%); width: 34%; height: 11px; border-radius: 8px; background: #141824; }
.ph-screen { display: block; position: relative; aspect-ratio: 9/17; overflow: hidden; border-radius: 21px; }
.ph-screen img { width: 100%; height: 100%; object-fit: cover; }
.ph-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.85); display: grid; place-items: center; }
.ph-play::before { content: ""; border-left: 14px solid #fff; border-block: 9px solid transparent; margin-left: 4px; }
.ph-cap { margin: 10px 2px 0; font-size: 13px; font-weight: 700; line-height: 1.3; color: #e4e4e7; }
.player-box { width: min(372px, 94vw); border: 10px solid #141824; border-radius: 44px; box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px #2b2f3d; }
.player-box iframe { height: min(76vh, 660px); }
.player-x { top: 14px; right: 14px; }

/* top 5 */
.top5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.t5 { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; padding-bottom: 14px; transition: transform .2s ease; }
.t5:hover { transform: translateY(-4px); }
.t5-n { position: absolute; z-index: 2; top: 8px; left: 10px; font: 400 44px/1 var(--h); color: var(--y); text-shadow: 0 3px 0 #000, 2px 2px 0 #000, -2px 2px 0 #000; }
.t5-img { aspect-ratio: 1; background: #fff; display: block; }
.t5-img img { width: 100%; height: 100%; object-fit: cover; }
.t5-b { font: 800 11px/1.2 var(--b); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 12px 14px 4px; }
.t5-name { font: 400 18px/1.1 var(--h); text-transform: uppercase; margin: 0 14px; }
.t5-s { margin: 8px 14px 0; font: 400 20px var(--h); color: var(--y); }
.t5-s small, .vbadge small, .v-score small { font: 700 11px var(--b); color: var(--muted); margin-left: 2px; }

/* houses */
.houses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.house { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: border-color .2s ease, transform .2s ease; text-align: left; color: inherit; }
.house:hover { border-color: var(--y); transform: translateY(-3px); }
.h-stack { display: flex; margin-bottom: 6px; }
.h-stack img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); margin-left: -16px; background: #fff; }
.h-stack img:first-child { margin-left: 0; }
.h-name { font: 400 20px/1.1 var(--h); text-transform: uppercase; }
.h-sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.house-text { justify-content: flex-end; min-height: 140px; background: linear-gradient(135deg, #1d1a08, var(--card)); }
.house-text .h-name { font-size: 26px; color: var(--y); }

/* events */
.next-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.next { display: flex; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; text-decoration: none; }
.next:hover { border-color: var(--y); }
.next-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--y); display: grid; place-items: center; font-size: 24px; flex: none; }
.next b { display: block; font-size: 17px; }
.next span span { font-size: 14px; color: var(--muted); font-weight: 600; }
.ev-lead { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; padding: 22px; }
.ev-lead .kicker { margin-bottom: 8px; }

/* verdicts */
.vbadge { position: absolute; z-index: 2; left: 10px; bottom: 10px; background: var(--ink); color: var(--y); font: 400 15px/1 var(--h); padding: 8px 10px; border-radius: 12px; }
.verdict { background: var(--bg2); border: 2px solid var(--line); border-radius: 22px; padding: 16px 18px; margin: 18px 0; }
.v-head { display: flex; gap: 14px; align-items: center; }
.v-score { font: 400 40px/1 var(--h); color: var(--y); }
.v-head b { display: block; font: 400 17px var(--h); text-transform: uppercase; }
.v-ex { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8a8a92; border: 1px dashed #4a4a52; border-radius: 999px; padding: 2px 8px; }
.v-says { margin: 12px 0 0; font-size: 16px; font-style: italic; color: #e8e8ea; }
.v-rows { display: grid; gap: 8px; margin-top: 12px; }
.v-row, .ab { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.v-row b, .ab b { text-align: right; }
.v-tr { height: 10px; background: #26262b; border-radius: 6px; overflow: hidden; }
.v-tr i { display: block; height: 100%; background: var(--y); border-radius: 6px; }
.quick-o { background: transparent; border: 2px solid #3a3a40; color: #fff; display: inline-flex; align-items: center; }
.fcard.is-coll .ph, .frame.white { background: #fff; }
.insp-badge.plain { border-color: #3a3a40; color: #ddd; background: none; }

/* live lab */
.lab .presets { margin: 0 0 14px; }
.blend-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.blend .blend-chips { margin: 12px 0; }
.blend-m { display: none; }
.live { display: grid; gap: 8px; margin-bottom: 12px; }
.live .empty { margin: 4px 0; }
.live-i { display: flex; gap: 10px; align-items: center; text-decoration: none; background: #1f1f23; border-radius: 12px; padding: 6px; animation: pop .25s ease; }
.live-i:hover { background: #29292e; }
.live-i img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: #fff; flex: none; }
.live-i b { display: block; font-size: 14px; line-height: 1.2; }
.live-i small { color: var(--muted); font-size: 12px; font-weight: 600; }
.live-p { margin-left: auto; font: 400 15px var(--h); color: var(--y); padding-right: 6px; white-space: nowrap; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.on-n { color: var(--y); font-weight: 800; }
.kindseg { display: inline-flex; gap: 2px; font-size: 13px; background: #18181b; border-radius: 999px; padding: 3px; }
.kindseg button { border: 0; background: none; color: #9a9aa2; font-weight: 700; padding: 6px 12px; border-radius: 999px; min-height: 34px; font-size: 13px; }
.kindseg button.on { background: #2c2c31; color: #fff; }
.labbar { display: none; }
.sheet { width: 100%; max-width: 560px; height: 78vh; margin-top: auto; border-radius: 24px 24px 0 0; border-left: 0; }
#labSheet { align-items: flex-end; justify-content: center; }
#labSheet .mini .live-p { margin-left: auto; }

/* layering */
.layer-pick { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.lp { display: flex; gap: 10px; align-items: center; background: var(--card); border: 2px solid var(--line); border-radius: 14px; padding: 6px 12px 6px 6px; text-align: left; }
.lp img { width: 42px; height: 42px; border-radius: 9px; object-fit: cover; background: #fff; }
.lp b { display: block; font-size: 14px; }
.lp small { color: var(--muted); font-size: 12px; font-weight: 600; }
.lp.on { border-color: var(--y); background: #26210a; }
#layerSel { background: #1b1b1f; border: 2px solid #2f2f35; color: var(--text); border-radius: 14px; padding: 10px 12px; font: 600 14px var(--b); min-height: 54px; max-width: 100%; }
.layer-out { background: var(--bg2); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.lo-pair { display: flex; align-items: center; gap: 10px; }
.lo-pair img { width: 70px; height: 70px; border-radius: 14px; object-fit: cover; background: #fff; }
.lo-plus { font: 400 28px var(--h); color: var(--y); }
.lo-line { font-size: 17px; margin: 14px 0 4px; }
.lo-line b { color: var(--y); }
.lo-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 4px 0 14px; }
.lo-cols b { font-size: 14px; }
.lo-cols .chips { margin-top: 8px; }
.lo-cols .chip { font-size: 12px; padding: 4px 10px; min-height: 30px; }

/* work */
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 36px; align-items: center; }
.work-photo { border-radius: 160px 160px 26px 26px; overflow: hidden; border: 4px solid var(--ink); aspect-ratio: 916/1060; max-width: 360px; width: 100%; justify-self: end; box-shadow: 12px 12px 0 var(--ink); }
.work-photo img { width: 100%; height: 100%; object-fit: cover; }
.btn-ink-o { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.nums-note { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: #3a3a3a; }
.aud { display: grid; grid-template-columns: 1fr 1.4fr; gap: 26px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.aud-bars { display: grid; gap: 12px; }
.wall span { font: 400 clamp(18px, 2.6vw, 28px)/1.2 var(--h); text-transform: uppercase; color: #3d3d44; }

/* Nic's controls */
.admin .lab-search input { box-shadow: none; }
.pin-form { display: flex; gap: 10px; }
.pin-form input { flex: 1; border: 0; border-radius: 14px; padding: 14px 16px; font: 700 18px var(--b); min-width: 0; }
.slots, .scored { display: grid; gap: 8px; margin: 14px 0; }
.slot { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; min-height: 60px; }
.slot .t5-n { position: static; font-size: 26px; width: 28px; text-align: center; }
.slot img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; background: #fff; }
.sl-t { flex: 1; min-width: 0; }
.sl-t b { display: block; font-size: 15px; }
.sl-t small { color: var(--muted); font-size: 12px; font-weight: 600; }
.sl-b { display: flex; gap: 6px; }
.sl-b button, .ad-r button { border: 1px solid #3a3a40; background: #1f1f23; border-radius: 10px; min-width: 40px; min-height: 40px; font-weight: 800; padding: 0 10px; }
.sl-b button[disabled], .ad-r button[disabled] { opacity: .35; }
.ad-r { display: flex; gap: 10px; align-items: center; padding: 8px 12px; color: var(--ink); }
.ad-r img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.ad-r span { flex: 1; min-width: 0; }
.ad-r b { display: block; font-size: 14px; }
.ad-r small { font-size: 12px; color: #66666e; }
.ad-r button { background: #f3f3f3; color: var(--ink); border-color: #ddd; }
.v-card { background: var(--bg2); border: 2px solid var(--y); border-radius: 18px; padding: 14px; display: grid; gap: 10px; margin: 12px 0; }
.v-ed { display: grid; grid-template-columns: 110px 1fr 36px; gap: 10px; align-items: center; font-weight: 700; font-size: 14px; }
.v-ed input[type=range] { width: 100%; accent-color: var(--y); height: 30px; }
.v-ed.v-says { grid-template-columns: 1fr; }
.v-ed textarea { background: #1b1b1f; border: 2px solid #2f2f35; color: #fff; border-radius: 12px; padding: 10px; font: 500 15px var(--b); }
.publish { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; background: rgba(11,11,12,.92); padding: 12px; border-radius: 18px; border: 1px solid var(--line); margin-top: 20px; }
.publish .btn-y { flex: 1; }

/* buy full size hand-off */
.buybox { position: relative; width: min(400px, 100%); background: var(--bg2); border: 2px solid var(--y); border-radius: 26px; padding: 22px; margin-top: 6vh; }
.buybox img { width: 120px; height: 120px; border-radius: 18px; object-fit: cover; background: #fff; }
.buybox h3 { margin: 0; font: 400 26px/1.05 var(--h); text-transform: uppercase; }
.code { display: flex; align-items: center; gap: 10px; background: #26210a; border: 2px dashed var(--y); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.code span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.code b { flex: 1; font: 400 20px var(--h); color: var(--y); }
.buy-row .btn-w { box-shadow: none; }

/* rates card request */
.rq { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.rq-card { position: relative; background: var(--bg2); border: 2px solid var(--line); border-radius: 26px; padding: 22px; transform: rotate(-1.5deg); box-shadow: 10px 10px 0 var(--y); }
.rq-top { display: flex; gap: 14px; align-items: center; }
.rq-top img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 40% 25%; border: 3px solid #fff; }
.rq-logo { display: block; font: 700 26px/1 var(--logo); }
.rq-top span { font-size: 12px; color: var(--y); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rq-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.rq-nums div { background: var(--y); color: var(--ink); border-radius: 14px; padding: 10px; }
.rq-nums b { display: block; font: 400 22px/1 var(--h); }
.rq-nums span { font-size: 11px; font-weight: 800; }
.rq-rates div { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.rq-rates i { width: 54px; height: 14px; border-radius: 6px; background: repeating-linear-gradient(90deg, #3a3a40 0 6px, #2a2a2f 6px 12px); filter: blur(1.5px); }
.rq-lock { position: absolute; right: 18px; bottom: -16px; background: var(--ink); border: 2px solid var(--y); color: var(--y); font-weight: 800; font-size: 13px; padding: 7px 14px; border-radius: 999px; }
.rq-form { display: grid; gap: 12px; }
.rq-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.rq-form small { color: var(--muted); font-weight: 600; }
.rq-form input, .rq-form textarea { background: #1b1b1f; border: 2px solid #2f2f35; color: #fff; border-radius: 14px; padding: 12px 14px; font: 500 16px var(--b); }
.rq-form input:focus, .rq-form textarea:focus { border-color: var(--y); outline: none; }
.rq-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-done { background: #26210a; border: 2px solid var(--y); border-radius: 18px; padding: 18px; }
.rq-done b { font: 400 20px var(--h); text-transform: uppercase; }
.rq-done p { margin: 6px 0 0; color: #e4e4e7; }
.stat-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-ed label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; }
.stat-ed input { background: #1b1b1f; border: 2px solid #2f2f35; color: #fff; border-radius: 12px; padding: 10px; font: 700 17px var(--b); min-width: 0; }
.req { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.req small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.req p { margin: 6px 0 0; font-size: 14px; color: #d6d6d9; }
.req.done { opacity: .55; }
@media (max-width: 900px) { .rq { grid-template-columns: 1fr; gap: 40px; } .rq-card { max-width: 420px; } }
@media (max-width: 620px) { .stat-ed { grid-template-columns: 1fr; } .req { flex-direction: column; } }

/* header search box on wide screens */
.hsearch { display: none; }

@media (max-width: 1080px) {
  .top5 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .top5 > * { scroll-snap-align: start; }
  .houses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-art { min-height: 0; height: 430px; max-width: 460px; width: 100%; margin: 6px auto 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-photo { justify-self: start; max-width: 260px; }
  .aud { grid-template-columns: 1fr; }
  .lo-cols { grid-template-columns: 1fr; }
  .ev-lead { grid-template-columns: 150px 1fr; gap: 18px; padding: 16px; }
  /* lab on phones: picked chips at the top, live matches in a bar at the bottom */
  .blend { display: none; }
  .blend-m { display: flex; margin: 0 0 12px; }
  body.on-lab .labbar:not([hidden]) { display: block; position: fixed; z-index: 40; left: 10px; right: 10px; bottom: 10px; }
  body.on-lab main { padding-bottom: 90px; }
  .labbar button { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--y); color: var(--ink); border: 0; border-radius: 20px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 4px 0 #b8940a; text-align: left; }
  .lb-thumbs { display: flex; flex: none; }
  .lb-thumbs img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--y); margin-left: -12px; object-fit: cover; background: #fff; }
  .lb-thumbs img:first-child { margin-left: 0; }
  .lb-txt { flex: 1; min-width: 0; }
  .lb-txt b { display: block; font: 400 17px/1.1 var(--h); text-transform: uppercase; }
  .lb-txt small { display: block; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lb-go { font-weight: 800; font-size: 14px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 14px; flex: none; }
  .lb-go:empty { display: none; }
}
@media (min-width: 1240px) {
  .hsearch { display: flex; align-items: center; gap: 8px; background: #1b1b1f; border: 1px solid #2c2c31; border-radius: 999px; padding: 0 14px; height: 44px; min-width: 170px; color: #8d8d95; font-weight: 600; font-size: 14px; }
  .hsearch svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .hsearch:hover { border-color: var(--y); color: #fff; }
  #openSearch { display: none; }
}
@media (max-width: 620px) {
  .hero-art { height: 380px; }
  .hero-photo { width: 76%; }
  .hero-phone { width: 118px; }
  .phones { grid-auto-columns: 142px; gap: 14px; }
  .phone-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .phone { border-width: 7px; border-radius: 26px; }
  .ph-screen { border-radius: 19px; }
  .top5 { grid-auto-columns: 62%; }
  .houses { gap: 10px; }
  .house { padding: 14px 12px; }
  .h-stack img { width: 46px; height: 46px; margin-left: -14px; }
  .h-name { font-size: 16px; }
  .house-text .h-name { font-size: 20px; }
  .ev-lead { grid-template-columns: 1fr; }
  .ev-lead .phone { max-width: 170px; }
  .v-row, .ab, .v-ed { grid-template-columns: 96px 1fr 34px; font-size: 13px; }
  .nums { gap: 10px; }
  .moods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mood { min-height: 150px; padding: 16px; }
  .mood h3 { font-size: 19px; }
  .mood p { font-size: 12px; }
  .mood .em { font-size: 30px; }
}
