/* PickCS Laravel build: additions on top of the approved mockup styles.css */
@font-face { font-family: "Kaushan"; src: url("fonts/KaushanScript-Regular.ttf") format("truetype"); font-display: swap; }
button { font: inherit; color: inherit; }
.inline { display: inline; }
.header .sign-in { background: none; border: 0; cursor: pointer; }
.flash-wrap { margin-top: 14px; display: grid; gap: 8px; }
.flash { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.flash.ok { background: rgba(61,220,151,.12); color: var(--green); border: 1px solid rgba(61,220,151,.3); }
.flash.bad { background: rgba(255,91,110,.12); color: var(--red); border: 1px solid rgba(255,91,110,.3); }
.link { color: var(--orange); text-decoration: underline; }

/* Nav pill like the reference */
.nav a.is-active { background: var(--orange-soft); color: #fff; border: 1px solid rgba(251,80,2,.45); }

/* Hero: script accent like the reference */
.hero-prizes-top h1 .accent.script {
  font-family: "Kaushan", cursive; font-style: normal; text-transform: none; font-weight: 400;
  font-size: 1.12em; letter-spacing: 0; display: inline-block; transform: rotate(-4deg) translateY(4px);
  background: linear-gradient(180deg, #ff9a3c, #fb5002 70%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(251,80,2,.45)); padding: 0 .08em;
}
.chip-gold { color: var(--gold); border-color: rgba(245,193,74,.45); }
.winners-box .wb-left { display: flex; gap: 14px; align-items: center; }
.wb-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-soft); border: 1px solid rgba(251,80,2,.35); }

/* How it works with icons (reference) */
.steps-icons .step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; min-height: 0; text-align: left; }
.steps-icons .step-num { grid-row: 1; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--orange-soft); border: 1px solid rgba(251,80,2,.5); margin: 0; }
.steps-icons .step-ico { grid-row: 1; font-size: 34px; align-self: center; }
.steps-icons .step > div:last-child { grid-column: 1 / -1; margin-top: 14px; }

/* Boards */
.panel-head h3 { display: flex; align-items: center; gap: 8px; }
.ph-ico { font-size: 18px; }
.tabs a.tab { cursor: pointer; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; font-size: 12px; font-weight: 700; }
.subtabs a { padding: 4px 10px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
.subtabs a.is-on { color: #fff; border-color: rgba(251,80,2,.6); background: var(--orange-soft); }
.subtabs .sep { color: var(--dim); padding: 4px 2px 4px 8px; }
.lb-head { border-top: 0 !important; color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding-top: 0 !important; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; background: rgba(245,193,74,.12); color: var(--gold); border: 1px solid rgba(245,193,74,.35); }
.info-note { margin: auto 0 0 !important; padding: 10px 12px !important; border-radius: 10px; background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.2); }

/* Results + "Be part of the action" */
.results-wrap { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; align-items: stretch; }
.action-card { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 22px; display: flex; flex-direction: column; justify-content: flex-end;
  background: radial-gradient(120% 80% at 50% 0%, rgba(167,139,250,.35), transparent 60%), linear-gradient(180deg, #2a1f6b, #120c3a 60%, #0a0a2a); border: 1px solid rgba(167,139,250,.35); min-height: 340px; }
.action-card .ac-skin { position: absolute; top: 24px; left: 50%; transform: translateX(-50%) rotate(-18deg); width: 92%; opacity: .25; }
.action-card .ac-trophy { font-size: 92px; text-align: center; margin: 0 0 auto; filter: drop-shadow(0 10px 30px rgba(251,160,40,.6)); }
.action-card h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; font-style: italic; font-size: 28px; line-height: 1; margin: 12px 0 6px; }
.action-card p { color: #c9d4e5; font-size: 14px; margin-bottom: 16px; }

/* Pick page */
.team-card { text-align: left; cursor: pointer; transition: border-color .15s, transform .15s; }
.team-card:hover:not([aria-disabled="true"]) { transform: translateY(-1px); border-color: var(--line-strong); }
.team-card .sel-mark, .team-card .cap-tag { display: none; }
.team-card.selected .sel-mark { display: grid; }
.team-card.hero .cap-tag { display: inline-flex; align-self: flex-start; }
.team-card.cant { opacity: .45; }
.team-card[aria-disabled="true"] { cursor: default; }
.games-line { margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--muted); }
.games-line.is-none { color: var(--dim); font-weight: 600; }
.pick-hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.pick-sched-note { color: var(--dim); font-size: 12px; margin-top: 4px; font-weight: 600; }
.team-card .rm-btn {
  display: none;
  margin-top: 8px;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: var(--bg-4);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  min-height: 28px;
}
.team-card.selected .rm-btn { display: inline-flex; align-items: center; }
.form .nf { font-size: 11px; color: var(--dim); }
.mono.ghost { background: transparent !important; border: 1px dashed var(--line-strong); color: var(--dim) !important; }
.slot.empty { opacity: .6; border-style: dashed; }
.slot-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto; }
.slot-btns { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cap-btn, .x-btn { width: auto; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--bg-4); cursor: pointer; font-size: 11px; font-weight: 800; line-height: 1; }
.cap-btn.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.x-btn:hover { color: var(--red); }
.btn-lock[disabled] { opacity: .55; cursor: not-allowed; }
.btn-lock.is-ready { cursor: pointer; }
.entry-opt { cursor: pointer; }
.redeem { display: flex; gap: 8px; }
.redeem input.field { flex: 1; min-width: 0; }
input.field, textarea.field, select.field { width: 100%; color: #fff; font: inherit; font-size: 13px; outline: none; }
input.field:focus, textarea.field:focus { border-color: rgba(251,80,2,.6); }
.ref-link { margin-top: 8px; font-size: 11px !important; color: var(--muted) !important; }
.share-img { width: 100%; border-radius: 12px; margin: 8px 0 10px; border: 1px solid var(--line); }
.share-preview .caption { min-height: 70px; resize: none; margin-bottom: 10px; }
.share-form { display: grid; gap: 8px; }
.entry-note.ok { color: var(--green); background: rgba(61,220,151,.08); border-color: rgba(61,220,151,.3); }
.btn-block { width: 100%; justify-content: center; }

/* Admin */
.admin-actions form { display: contents; }
.manual { display: flex !important; gap: 6px; align-items: center; }
.field.sc { width: 64px; }
.field.reply { width: 180px; }
.copy-link { font-size: 11px; color: var(--orange); margin-left: 8px; font-weight: 600; }
.admin-note { color: var(--muted); font-size: 13px; padding: 12px; }
.queue-row .url { word-break: break-all; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Auth / prose */
.auth-wrap { display: grid; place-items: center; }
.auth { width: min(440px, 100%); }
.auth h2 { margin-bottom: 8px; }
.auth form { display: grid; gap: 8px; margin: 14px 0; }
.auth .field-label { margin-top: 6px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 8px 0; }
.check input { flex: 0 0 auto; margin-top: 2px; }
.check > span { min-width: 0; flex: 1 1 auto; }
/* Links inside a checkbox label stay inline text. The whole label is the tap target. */
.check a.link, .auth .check a.link { display: inline; min-width: 0; min-height: 0; }
.narrow { width: min(820px, calc(100% - 32px)); }
.prose h3 { margin: 22px 0 8px; font-size: 18px; }
.prose ul { padding-left: 20px; color: #c9d4e5; display: grid; gap: 6px; }
.prose p { color: #c9d4e5; }
.request-mini { border-top: 1px solid var(--line); padding: 10px 0; font-size: 13px; }

/* ---------- Responsive (mockups were desktop-only) ---------- */
@media (max-width: 1100px) {
  .pick-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .pick-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pick-side > * { margin: 0 !important; }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 28px); }
  .header { height: auto; }
  .header-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 0; height: auto; }
  .logo img { height: 34px; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; gap: 2px; padding-bottom: 2px; scrollbar-width: none; }
  .nav a { white-space: nowrap; padding: 6px 10px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .header-actions .mock-tag { display: none; }
  .token-chip .sub { display: none; }
  .hero-prizes-top h1 { font-size: 46px; }
  .prize-pair, .steps, .two-up, .results-wrap, .todo-grid, .winners-grid { grid-template-columns: 1fr; }
  .prize-card { grid-template-columns: 1fr; }
  .winners-box { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mega-clock { font-size: 40px; }
  .hero-cta-row { flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .section-head { flex-direction: column; align-items: flex-start; }
  h2 { font-size: 34px; }
  .result-row { grid-template-columns: 26px minmax(0,1fr) 64px minmax(0,1fr); gap: 6px; padding: 8px; }
  .result-row .res-time { display: none; }
  .res-team .mono { display: none; }
  .res-team .name { font-size: 12.5px; }
  .series .score { font-size: 24px; }
  .action-card { min-height: 260px; }
  .supporter { flex-direction: column; align-items: flex-start; gap: 12px; }
  .pick-layout, .pick-side { grid-template-columns: 1fr; }
  .lineup { position: static; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .toolbar h1 { font-size: 34px; }
  .queue-row, .fix-row, .request-row, .code-row, .code-head { grid-template-columns: 1fr !important; gap: 8px; }
  .code-head { display: none; }
  .admin-actions { justify-content: flex-start; }
  .batch-form { grid-template-columns: 1fr 1fr; }
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
}
.nav a { white-space: nowrap; }
.header-actions { flex-shrink: 0; white-space: nowrap; }
.admin-page .nav a { padding: 8px 9px; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .checklist, .lineup { position: static !important; }
  .results-head { flex-wrap: wrap; gap: 8px; }
  .live-pill .ex { display: none; }
  .res-team .fp { white-space: nowrap; }
  .mobile-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 14px; background: rgba(6,21,48,.96); border: 1px solid rgba(251,80,2,.45); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 13px; flex-wrap: nowrap; }
  .mobile-bar span { white-space: nowrap; flex: 0 0 auto; }
  .mobile-bar b { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: 18px; }
  .mobile-bar .btn { margin-left: auto; padding: 8px 12px; flex: 0 0 auto; white-space: nowrap; }
  .pick-page .footer { padding-bottom: 80px; }
}
/* Team logos (cached locally), initials fallback */
.mono.has-logo { background: rgba(255,255,255,.06) !important; border: 1px solid var(--line); padding: 4px; overflow: hidden; }
.mono.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.draft-banner { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 22px; border-radius: 12px; border: 2px solid var(--gold); background: rgba(245,193,74,.12); }
.draft-banner strong { color: var(--gold); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.draft-banner span { color: #e8dcc0; font-size: 13.5px; }
.prose a.link { word-break: break-word; }
.flash.warn { background: rgba(245,193,74,.1); color: var(--gold); border: 1px solid rgba(245,193,74,.35); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link-btn { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font-weight: 700; min-height: 32px; }
.token-split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.token-split div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 6px; text-align: center; display: grid; }
.token-split b { font-family: "Barlow Condensed", sans-serif; font-style: italic; font-size: 22px; line-height: 1; }
.token-split span { font-size: 12px; font-weight: 700; }
.token-split small { font-size: 12px; color: var(--muted); }
/* Admin share queue */
.share-row { display: grid; grid-template-columns: minmax(0,1fr) 150px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--bg-2); transition: opacity .2s, border-color .2s; }
.share-row.busy { opacity: .6; }
.share-row.is-approved { border-color: rgba(61,220,151,.5); }
.share-row.is-rejected { border-color: rgba(255,91,110,.5); }
.share-row.done .share-card { opacity: .6; }
.share-card { display: flex; gap: 12px; align-items: center; min-width: 0; }
.share-thumb { width: 56px; height: 74px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg-4); }
.share-thumb.none { display: grid; place-items: center; background: linear-gradient(135deg, #111, #2a2a2a); border: 1px solid var(--line); }
.share-meta { min-width: 0; }
.share-title { font-size: 13px; font-weight: 600; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kbd-note kbd { background: var(--bg-4); border: 1px solid var(--line-strong); border-radius: 4px; padding: 1px 6px; font-size: 12px; }
/* Skins checklist */
.skin-head, .skin-row { display: grid; grid-template-columns: 110px 1fr 1.6fr 150px 80px 80px; gap: 10px; align-items: center; }
.skin-head { padding: 0 12px 8px; color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.skin-row { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; background: var(--bg-2); }
.skin-row.is-sent { border-color: rgba(61,220,151,.4); }
.tick { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; min-height: 44px; cursor: pointer; }
.tick input { width: 22px; height: 22px; accent-color: var(--green); }
.mail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }

/* ---------- Mobile polish pass (375/390/430 portrait, 844/932 landscape) ---------- */
@media (max-width: 1024px) {
  /* header wraps earlier so admin nav + actions never overflow in landscape */
  .header { height: auto; }
  .header-inner { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0; height: auto; }
  .nav { order: 3; flex: 1 0 100%; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav::-webkit-scrollbar { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-actions .mock-tag { display: none; }
  .logo { min-height: 44px; }
  /* 44px tap targets */
  .nav a, .sign-in, .header .btn, .btn, button.btn, .tab, .subtabs a, .sort, .chip[href], .footer-links a,
  input.field, select.field, .redeem .btn, .link-btn, .invite-row, .tick, .cap-btn, .x-btn, .team-card.selected .rm-btn {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .nav a, .tab, .subtabs a, .sort { padding-left: 12px; padding-right: 12px; justify-content: center; }
  .sign-in { padding: 0 10px; }
  .cap-btn, .x-btn, .team-card.selected .rm-btn { min-width: 44px; height: 44px; justify-content: center; font-size: 14px; border-radius: 10px; }
  .slot-btns { gap: 6px; }
  textarea.field { min-height: 88px; }
  input.field, select.field { font-size: 16px !important; padding: 10px 12px; } /* 16px stops iOS zoom */
  .btn { justify-content: center; }
  .token-chip { min-height: 36px; }
  .footer-links { gap: 4px 14px; }
  .auth .note-text a.link { display: inline-flex; align-items: center; min-height: 44px; }
  .check { min-height: 44px; }
  .check input { width: 22px; height: 22px; }
  /* text never below 12px */
  .kicker, .rarity, .label, .field-label, .batch-form label, .flag, .age, .mock-tag, .avatar, small, .hint, .meta, .chip, .bo,
  .fp, .lb-head, .lb-head span, .cr span, .w, .l, .trend, .cap-tag, .kind, .type-pill, .tier, .res-time, .sub, .note-text, .games-line, .pick-hint, .pick-sched-note,
  .eyebrow, .entry-note, .boost-hint, .budget-top span, .pi-hash, .pi-row, .share-preview .cap, .countdown .label, .code-head,
  .skin-head, .live-pill, .badge, .badge-pill, .supporter-price, .step p, .check-item small, .slot .meta, .form .nf, .series .bo,
  .res-team .fp, .side span, .winner-card .kind, .todo-card p, .queue-row .meta, .admin-note, .kbd-note kbd, .copy-link, .token-chip .sub,
  .entry-opt .meta, .entry-opt .kind, .footer-bottom, .footer-legal, .request-row .meta, .fix-row .meta, .tokens-panel .hint,
  .checklist .hint, .lineup h2, .share-title, .subhead, .lede { font-size: max(12px, 1em); }
  .kicker, .rarity, .label, .field-label, .flag, .age, .mock-tag, .avatar, small, .hint, .chip, .bo, .fp, .lb-head span, .cr span,
  .w, .l, .trend, .cap-tag, .kind, .type-pill, .tier, .live-pill, .badge, .pi-hash, .check-item small, .slot .meta, .countdown .label,
  .entry-opt .meta, .entry-opt .kind, .code-head, .skin-head, .winner-card .kind, .copy-link, .series .bo, .side span, .meta { font-size: 12px !important; }
  .avatar { width: 30px; height: 30px; }
  /* admin tables stack */
  .skin-head { display: none; }
  .skin-row { grid-template-columns: 1fr 1fr; }
  .skin-row input[name=trade_link], .skin-row .trade-cell { grid-column: 1 / -1; }
  .share-row { grid-template-columns: 1fr; }
  .share-row .admin-actions { justify-content: flex-start; }
  .share-row .admin-actions .btn { flex: 1; }
  .mail-list { grid-template-columns: 1fr; }
  .mail-list .todo-card { min-width: 0; }
  .todo-card { flex-wrap: wrap; }
  .field.reply { width: 100%; }
  .manual { flex-wrap: wrap; }
  .admin-actions form { display: flex; flex-wrap: wrap; gap: 8px; }
  .batch-form { grid-template-columns: 1fr 1fr; }
  .code-row { grid-template-columns: 1fr 1fr !important; }
  .queue-row, .fix-row, .request-row { grid-template-columns: 1fr !important; }
  .prose h2 { font-size: 34px; }
  .prose ul { padding-left: 18px; }
}
@media (max-width: 1024px) and (orientation: landscape) and (max-height: 500px) {
  .prize-pair, .steps, .two-up, .winners-grid, .todo-grid { grid-template-columns: 1fr 1fr; }
  .hero-prizes-top h1 { font-size: 52px; }
  .results-wrap { grid-template-columns: 1fr; }
  .action-card { min-height: 200px; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .mobile-bar { left: 50%; right: auto; transform: translateX(-50%); width: min(560px, calc(100% - 20px)); }
}
@media (max-width: 400px) {
  .team-card h3 { font-size: 13px; }
  .entry-opts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .result-row { grid-template-columns: 26px minmax(0,1fr) 58px minmax(0,1fr); }
  .mobile-bar { gap: 6px; padding: 10px 8px; }
  .mobile-bar .btn { padding: 8px 10px; }
}
@media (max-width: 1024px) {
  .entry-opt { min-height: 44px; min-width: 0; overflow: hidden; }
  .entry-opt strong { font-size: 13px; overflow-wrap: anywhere; }
  .pick-side, .pick-main, .toolbar, .checklist, .tokens-panel { min-width: 0; max-width: 100%; }
  .footer-links a, .lb-weeks a, .week-links a, .weeks a { min-width: 44px; justify-content: center; }
  a.copy-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  .auth a.link { min-width: 44px; justify-content: center; }
}
@media (max-width: 1024px) {
  .subtabs { flex-wrap: wrap; row-gap: 6px; }
  .subtabs a { min-width: 44px; }
}
