:root {
  --night: #0A1410;
  --night-2: #0F1D16;
  --panel: #13241B;
  --panel-2: #183022;
  --line: rgba(244, 247, 242, 0.1);
  --line-2: rgba(244, 247, 242, 0.2);
  --grass: #1F7A45;
  --grass-hi: #2FA35E;
  --chalk: #F4F7F2;
  --stand: #8FA096;
  --gold: #3BEB1A;
  --gold-rgb: 59, 235, 26;
  --joker: #E3B94F;
  --red: #F06A6A;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  --r: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 16px/1.5 var(--body);
  color: var(--chalk);
  background:
    radial-gradient(1200px 520px at 50% -180px, rgba(47, 163, 94, 0.18), transparent 70%),
    var(--night);
  background-attachment: fixed;
}
button, input { font: inherit; color: inherit; }
img { display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: 0.01em; }
h1:focus, h2:focus { outline: none; }
p { margin: 0; }
.muted { color: var(--stand); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.screen { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Botones ---------- */
.btn {
  --bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.1rem;
  border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { --bg: var(--grass); border-color: var(--grass-hi); }
.btn.primary:hover:not(:disabled) { --bg: #248A4F; }
.btn.ghost:hover:not(:disabled) { border-color: var(--chalk); }
.btn.small { min-height: 36px; font-size: 1rem; padding: 0 .8rem; }
.btn.big { min-height: 56px; padding: 0 1.8rem; font-size: 1.35rem; flex-direction: column; gap: 0; line-height: 1.1; }
.btn.big small { font-family: var(--body); font-weight: 500; font-size: .8rem; color: var(--stand); letter-spacing: 0; }
.icon-btn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer; font-size: 1.4rem; line-height: 1;
}
.icon-btn:hover { border-color: var(--chalk); }
.link { background: none; border: 0; padding: 0; color: var(--chalk); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.input {
  width: 100%; min-height: 46px; padding: 0 .9rem;
  background: var(--night-2); border: 1px solid var(--line-2); border-radius: 6px;
  font-size: 1rem;
}
.input:focus { border-color: var(--grass-hi); outline: none; box-shadow: 0 0 0 3px rgba(47, 163, 94, .25); }
.input.small { min-height: 36px; width: 140px; }
.input.search { padding-left: 2.4rem; background: var(--night-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238FA096' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") no-repeat .8rem 50%; }

/* ---------- Barra superior ---------- */
.topbar {
  display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 20, 16, .75); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.brand {
  background: none; border: 0; cursor: pointer; padding: 0;
  font: italic 800 1.6rem/1 var(--display); letter-spacing: .01em;
}
.brand b { color: var(--gold); font-weight: 800; }
.brand img { display: block; height: 40px; width: auto; }
.home-logo { width: min(440px, 82vw); height: auto; margin-bottom: .2rem; filter: drop-shadow(0 18px 50px rgba(var(--gold-rgb), .16)); }
.home-logo-h1 { margin: 0; line-height: 0; }
.top-actions { margin-left: auto; display: flex; gap: .5rem; }

/* ---------- Inicio ---------- */
.screen-home { justify-content: center; }
.home {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 3rem 1.25rem 2rem; gap: 1.25rem;
}
.home-mark { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: .5rem; }
.home-mark span { font: italic 800 3.4rem/1 var(--display); color: var(--chalk); position: relative; }
.home-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, #1A3F2A 0 22.5deg, #143222 22.5deg 45deg);
  border: 6px solid #07100B; box-shadow: 0 0 0 2px var(--gold), 0 30px 80px rgba(47, 163, 94, .25);
  animation: idle-spin 18s linear infinite;
}
.home-ring::after { content: ''; position: absolute; inset: 34%; border-radius: 50%; background: var(--night); border: 2px solid var(--gold); }
@keyframes idle-spin { to { transform: rotate(360deg); } }
.wordmark { font: italic 800 clamp(3.6rem, 12vw, 7.5rem)/.9 var(--display); letter-spacing: -.01em; }
.wordmark span { color: var(--gold); }
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px)); justify-content: center; gap: 1.2rem; width: 100%; max-width: 820px; margin-top: .6rem; text-align: left; }
.mode-card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); }
.mode-card:not(.soon):hover { border-color: var(--grass-hi); }
.mode-card.soon { opacity: .6; }
.mode-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.1rem 1.2rem 1.3rem; flex: 1; }
.mode-body h2 { font: italic 800 2rem/1 var(--display); display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.mode-body p { color: #C9D4CD; font-size: .98rem; }
.mode-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.soon-tag { font: 600 .85rem var(--display); font-style: normal; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--stand); }
.art { position: relative; height: 150px; overflow: hidden; background: repeating-linear-gradient(180deg, #1C6A3C 0 25px, #18603A 25px 50px); }
.art-wheel {
  position: absolute; left: 50%; top: 58%; width: 210px; height: 210px; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(#143222 0 22.5deg, #1F4A30 22.5deg 45deg); border: 6px solid #07100B; box-shadow: 0 0 0 2px var(--gold);
  animation: art-spin 24s linear infinite;
}
@keyframes art-spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }
.art-wheel::after { content: ''; position: absolute; inset: 38%; border-radius: 50%; background: var(--night); border: 2px solid var(--gold); }
.art-pointer { position: absolute; left: 50%; top: 4px; width: 22px; height: 26px; transform: translateX(-50%); background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.art-card {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 102px; border-radius: 8px;
  background: linear-gradient(170deg, #1C3326, #101D16); border: 1.5px solid var(--gold);
}
.art-card.c1 { transform: translate(-130%, -45%) rotate(-12deg); }
.art-card.c2 { transform: translate(-50%, -55%); }
.art-card.c3 { transform: translate(30%, -45%) rotate(12deg); }
.home-lead { max-width: 34rem; color: #C9D4CD; font-size: 1.1rem; }
.home-actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: .5rem; }
.data-status { font-size: .85rem; color: var(--stand); min-height: 1.3em; }
.studio {
  display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--line); color: var(--stand); font: 600 1rem var(--display); letter-spacing: .04em;
}
.agl-mark { display: block; height: 24px; width: auto; opacity: .85; transition: opacity .15s; }
.agl-mark:hover { opacity: 1; }
.foot-right { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.studio { align-items: center; }
.studio a { color: var(--stand); font-family: var(--body); font-weight: 500; font-size: .9rem; letter-spacing: 0; }

/* ---------- Configuración ---------- */
.stepper { display: flex; gap: .25rem; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; }
.stepper button {
  display: flex; align-items: center; gap: .45rem; background: none; border: 0; padding: .35rem .6rem; border-radius: 6px;
  color: var(--stand); font: 600 1.05rem var(--display); cursor: pointer;
}
.stepper button:disabled { cursor: default; opacity: .6; }
.step-n { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font-size: .9rem; }
.stepper .current button { color: var(--chalk); }
.stepper .current .step-n { background: var(--grass); border-color: var(--grass-hi); }
.stepper .done .step-n { border-color: var(--grass-hi); color: var(--grass-hi); }
.setup-body { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2rem) 7rem; display: flex; flex-direction: column; gap: 1rem; }
.setup-body > h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; font-weight: 800; }
.setup-footer {
  position: sticky; bottom: 0; display: flex; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 3vw, 2rem); background: rgba(10, 20, 16, .92); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}

.name-list { display: flex; flex-direction: column; gap: .6rem; max-width: 480px; }
.name-row { display: flex; align-items: center; gap: .6rem; }
.name-n { width: 28px; font: 700 1.3rem var(--display); color: var(--stand); text-align: right; }
.name-list + .btn { align-self: flex-start; margin-left: 2.1rem; }

.clubs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 2rem; align-items: start; }
.clubs-left { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.clubs-right { position: sticky; top: 90px; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); }
.tab {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem .9rem .45rem; cursor: pointer;
  font: 600 1.15rem var(--display); color: var(--stand);
}
.tab[aria-selected="true"] { color: var(--chalk); border-color: var(--grass-hi); }
.search-results { display: flex; flex-direction: column; gap: 2px; max-height: 340px; overflow: auto; }
.search-results:empty { display: none; }
.result {
  display: flex; align-items: center; gap: .8rem; padding: .55rem .7rem; text-align: left;
  background: var(--panel); border: 0; border-radius: 6px; cursor: pointer;
}
.result:hover { background: var(--panel-2); }
.result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.result-main b { font-weight: 600; }
.result-main small { color: var(--stand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-act { font: 600 1rem var(--display); color: var(--grass-hi); white-space: nowrap; }
.result.added .result-act { color: var(--stand); }
.league-dot { width: 32px; height: 32px; border-radius: 50%; border: 2px dashed var(--line-2); flex: none; }
.crest { object-fit: contain; flex: none; }
.chosen-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.chosen-head h3 { font-size: 1.4rem; margin-right: auto; }
.count { font: 500 1rem var(--body); color: var(--stand); }
.club-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .3rem .25rem .45rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: .92rem;
}
.chip-x { width: 24px; height: 24px; border-radius: 50%; border: 0; background: transparent; color: var(--stand); cursor: pointer; font-size: 1.05rem; line-height: 1; }
.chip-x:hover { background: var(--panel-2); color: var(--chalk); }
.empty-note { color: var(--stand); padding: 1rem; border: 1px dashed var(--line-2); border-radius: var(--r); width: 100%; }
.saved-wheels { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: .92rem; }
.saved { display: inline-flex; align-items: center; gap: .15rem; }
.error-note { color: var(--red); }
.loading { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .5; } }

.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.rule { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.rule.wide { grid-column: 1 / -1; }
.rule h3 { font-size: 1.35rem; }
.rule p { font-size: .9rem; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.seg-btn {
  min-height: 38px; padding: 0 .85rem; border-radius: 6px; cursor: pointer;
  background: var(--night-2); border: 1px solid var(--line-2); font: 600 1.02rem var(--display);
}
.seg-btn:hover { border-color: var(--chalk); }
.seg-btn.on { background: var(--grass); border-color: var(--grass-hi); }
.seg.small .seg-btn { min-height: 32px; font-size: .95rem; padding: 0 .65rem; }
.seg-custom { display: inline-flex; align-items: center; gap: .4rem; padding: 0 .3rem 0 .7rem; border: 1px solid var(--line-2); border-radius: 6px; font: 600 1rem var(--display); color: var(--stand); }
.seg-custom.on { border-color: var(--grass-hi); color: var(--chalk); }
.seg-custom input { width: 56px; min-height: 32px; background: transparent; border: 0; color: var(--chalk); }

.formation-pickers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.formation-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.formation-card h3 { font-size: 1.6rem; font-style: italic; font-weight: 800; }
.formation-preview { max-width: 260px; align-self: center; width: 100%; }

/* ---------- Ruleta ---------- */
.wheel { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 1; }
.wheel-canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer {
  position: absolute; left: 50%; top: -6px; width: 30px; height: 36px; transform: translateX(-50%);
  background: var(--gold); clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5));
}
.clubs-right .wheel { max-width: 380px; }

/* ---------- Juego ---------- */
.play-top { gap: 1rem 2rem; }
.turn { display: flex; flex-direction: column; line-height: 1; }
.turn-label { font-size: .8rem; color: var(--stand); }
.turn-name { font: italic 800 clamp(1.8rem, 4vw, 2.4rem)/1 var(--display); }
.turn-meta { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.meter { display: flex; align-items: center; gap: .75rem; }
.meter-num { font: 800 2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.meter-num small { font-size: 1.1rem; color: var(--stand); font-weight: 600; }
.meter-bar { width: 120px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter-bar span { display: block; height: 100%; background: var(--grass-hi); transition: width .4s var(--ease); }
.counters { display: flex; flex-direction: column; font-size: .85rem; color: var(--stand); line-height: 1.35; }
.counters b { color: var(--chalk); font: 700 1rem var(--display); }

.play {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 440px); gap: clamp(1rem, 4vw, 3.5rem);
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem); align-items: start;
}
.arena { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.arena .wheel { max-width: min(520px, 62vh); }
.btn.spin { min-height: 60px; min-width: 260px; font-size: 1.6rem; font-style: italic; font-weight: 800; }
.last-club { width: 100%; max-width: 520px; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.last-line { display: inline-flex; align-items: center; gap: .4rem; }
.result-card {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: .9rem 1.1rem; border-radius: var(--r); background: var(--panel); border: 1px solid var(--gold);
  animation: reveal .35s var(--ease);
}
.result-card > div { display: flex; flex-direction: column; }
.result-card strong { font: italic 800 2rem/1 var(--display); }
.result-card small { color: var(--stand); }
.result-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
@keyframes reveal { from { opacity: 0; transform: scale(.96); } }

.squad { display: flex; flex-direction: column; gap: .8rem; position: sticky; top: 100px; }
.squad-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.squad-head h2 { font-size: 1.6rem; font-style: italic; font-weight: 800; }
.squad-head p { font-size: .88rem; }

.play-foot { border-top: 1px solid var(--line); padding: .8rem clamp(1rem, 3vw, 2rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.strip { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.strip li { display: flex; gap: .5rem; align-items: baseline; padding: .3rem .7rem; border-radius: 6px; border: 1px solid var(--line); font-size: .92rem; }
.strip li.current { border-color: var(--grass-hi); background: rgba(31, 122, 69, .2); }
.strip li.complete .strip-n { color: var(--grass-hi); }
.strip-name { font-weight: 600; }
.strip-n { font: 700 1rem var(--display); color: var(--stand); }
.rules-line { font-size: .85rem; color: var(--stand); }

/* ---------- Cancha ---------- */
.pitch {
  position: relative; width: 100%; aspect-ratio: 68 / 100; border-radius: 10px; overflow: hidden;
  background: repeating-linear-gradient(180deg, #1C6A3C 0 10%, #18603A 10% 20%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .35);
  container-type: inline-size;
}
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 21cqw; padding: 0; background: none; border: 0; color: var(--chalk);
}
button.slot { cursor: pointer; }
.slot-empty {
  width: 13cqw; height: 13cqw; border-radius: 50%; display: grid; place-items: center;
  border: 2px dashed rgba(244, 247, 242, .55); background: rgba(10, 20, 16, .35);
  font: 700 3.6cqw/1 var(--display); color: rgba(244, 247, 242, .85);
}
.slot-photo { position: relative; }
.slot-photo .photo {
  width: 13cqw; height: 13cqw; border-radius: 50%; object-fit: cover; object-position: top;
  border: 2px solid var(--chalk); background: #16241C;
}
.slot-crest { position: absolute; right: -3px; bottom: -2px; width: 5.6cqw; height: 5.6cqw; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.slot-name {
  max-width: 100%; padding: 1px 6px; border-radius: 3px; background: rgba(10, 20, 16, .85);
  font: 600 3.3cqw/1.25 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.slot.valid .slot-empty, .slot.valid .slot-photo .photo { border: 2px solid var(--grass-hi); background: rgba(47, 163, 94, .35); box-shadow: 0 0 0 4px rgba(47, 163, 94, .3); }
.slot.replace .slot-photo .photo { border: 2px dashed var(--gold); }
.slot.blocked { opacity: .35; }
.slot.selected .slot-photo .photo, .slot.selected .slot-empty { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .45); }
button.slot:hover .slot-empty, button.slot:hover .photo { transform: scale(1.06); }
.slot .slot-empty, .slot .photo { transition: transform .15s var(--ease); }
.slot.just .photo { animation: land .6s var(--ease); }
@keyframes land { from { transform: scale(1.5); opacity: 0; } }
.slot-tag { font: 700 2.8cqw/1 var(--display); color: var(--night); background: var(--joker); padding: 2px 4px; border-radius: 3px; }
.pitch.compact .slot-name { font-size: 3.6cqw; }

/* ---------- Paneles ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 9, 7, .78); backdrop-filter: blur(4px); padding: 1rem;
  animation: fade .18s ease;
}
.overlay.leaving { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 980px; max-height: calc(100vh - 2rem); overflow: auto;
  background: var(--night-2); border: 1px solid var(--line-2); border-radius: 12px;
  animation: rise .22s var(--ease);
}
.sheet:focus { outline: none; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.sheet-small { max-width: 440px; padding: 1.4rem; display: flex; flex-direction: column; gap: 1.2rem; }
.confirm-text { font-size: 1.05rem; }
.row-end { display: flex; justify-content: flex-end; gap: .6rem; }

.picker { display: flex; flex-direction: column; height: min(860px, calc(100vh - 2rem)); overflow: hidden; }
.picker-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.picker-title { flex: 1; min-width: 0; }
.picker-title h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-style: italic; font-weight: 800; }
.picker-title p { font-size: .9rem; }
.picker-head-actions { display: flex; align-items: center; gap: .5rem; }
.picker-list-view, .picker-detail { flex: 1; min-height: 0; overflow: auto; padding: 1rem 1.2rem 1.4rem; }
.picker-tools { display: flex; flex-direction: column; gap: .7rem; position: sticky; top: -1rem; padding: 1rem 0 .7rem; margin-top: -1rem; background: var(--night-2); z-index: 1; }
.player-list { display: flex; flex-direction: column; gap: 2px; }
.player-row {
  display: flex; align-items: center; gap: .9rem; padding: .5rem .7rem; text-align: left;
  background: var(--panel); border: 0; border-radius: 6px; cursor: pointer;
}
.player-row:hover:not(:disabled) { background: var(--panel-2); }
.player-row:disabled { cursor: not-allowed; opacity: .5; }
.player-row .photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: #16241C; flex: none; }
.pr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-main b { font-weight: 600; font-size: 1.05rem; }
.pr-main small { color: var(--stand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-why { font-size: .85rem; color: var(--gold); white-space: nowrap; }
.tag { font: 600 .85rem var(--display); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--line-2); color: var(--stand); white-space: nowrap; }
.tag.now { color: var(--grass-hi); border-color: rgba(47, 163, 94, .5); }
.more { margin: .8rem auto 0; }
.pad { padding: 1.5rem .5rem; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--r); margin-bottom: 1rem; }
.back { margin-bottom: 1rem; }
.detail-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.detail-pitch { display: flex; flex-direction: column; gap: .5rem; max-width: 380px; }
.detail-pitch h3 { font-size: 1.5rem; }
.detail-pitch .pitch { margin-top: .4rem; }

.fut-card {
  --cut: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
  padding: 1.5px; background: var(--gold); clip-path: var(--cut);
  animation: reveal .3s var(--ease);
}
.fut-inner {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem;
  padding: 1.1rem 1rem 2.6rem; clip-path: var(--cut);
  background: linear-gradient(170deg, #1C3326 0%, #101D16 70%);
}
.fut-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.fut-pos { font: 800 1.5rem/1 var(--display); color: var(--gold); }
.fut-photo { width: 160px; height: 160px; object-fit: cover; object-position: top; border-radius: 50%; border: 2px solid rgba(var(--gold-rgb), .6); background: #16241C; }
.fut-name { font: italic 800 1.7rem/1.05 var(--display); margin-top: .4rem; }
.fut-meta { font-size: .88rem; color: #C9D4CD; }

.handover { max-width: 420px; padding: 2.2rem 1.6rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
.handover-name { font: italic 800 3.6rem/1 var(--display); margin-bottom: .2rem; }
.handover .btn { margin-top: 1rem; }

/* ---------- Resultados ---------- */
.results { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 2rem clamp(1rem, 3vw, 2rem) 3rem; display: flex; flex-direction: column; gap: 1.2rem; }
.results-head h1 { font: italic 800 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); }
.results-head p { margin-top: .5rem; }
.results-tabs { flex-wrap: wrap; }
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.team { display: flex; flex-direction: column; gap: .7rem; }
.team.compact { cursor: pointer; padding: .8rem; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); transition: border-color .15s; }
.team.compact:hover { border-color: var(--grass-hi); }
.team-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.team-head h2 { font-size: 1.8rem; font-style: italic; font-weight: 800; }
.team-f { font: 600 1.1rem var(--display); color: var(--stand); }
.team:not(.compact) { display: grid; grid-template-columns: minmax(280px, 480px) minmax(0, 1fr); gap: 1.2rem 2.5rem; align-items: start; }
.team:not(.compact) .team-head, .team:not(.compact) .fit-line { grid-column: 1 / -1; }
.lineup { display: flex; flex-direction: column; gap: 2px; }
.lu-row {
  width: 100%; text-align: left; border: 0; color: inherit; font: inherit; display: grid; grid-template-columns: 44px 32px minmax(0, 1fr) auto 112px; align-items: center; gap: .7rem; padding: .4rem .6rem; background: var(--panel); border-radius: 6px; }
.lu-pos { font: 700 1rem var(--display); color: var(--stand); }
.lineup .photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: top; }
.lu-empty { width: 32px; height: 32px; border-radius: 50%; border: 1px dashed var(--line-2); }
.lu-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-club { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; color: var(--stand); white-space: nowrap; }

button.lu-row { cursor: pointer; }
button.lu-row:hover { background: var(--panel-2); }

.chip.joker { border-color: var(--joker); }
.joker-btn { border-color: rgba(227, 185, 79, .6); color: var(--joker); }

.pos-filter { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.pos-row2 { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem; }
.seg.slots .seg-btn { min-width: 44px; }
.seg-btn.free { border-color: rgba(47, 163, 94, .6); }
.alt-check { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; color: var(--stand); cursor: pointer; }
.alt-check input { accent-color: var(--grass-hi); width: 16px; height: 16px; }
.tools-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.switch {
  display: inline-flex; align-items: center; gap: .55rem; margin-left: auto; padding: .3rem .2rem; border: 0; background: none; cursor: pointer;
  font: 600 1rem var(--display); color: var(--chalk);
}
.switch-track { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--line-2); transition: background .15s; flex: none; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--chalk); transition: transform .15s var(--ease); }
.switch[aria-checked="true"] .switch-track { background: var(--grass); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(18px); }
.memory-hint { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.2rem; border: 1px dashed var(--line-2); border-radius: var(--r); }
.fl.mem { color: var(--gold); }
.slot-name.from-memory { box-shadow: inset 0 -2px 0 var(--gold); }

/* ---------- Ficha del jugador ---------- */
.player-row-wrap { display: flex; gap: 2px; }
.player-row-wrap .player-row { flex: 1; min-width: 0; }
.pr-info {
  flex: none; width: 64px; border: 0; border-radius: 6px; background: var(--panel); cursor: pointer;
  font: 600 .95rem var(--display); color: var(--stand);
}
.pr-info:hover { background: var(--panel-2); color: var(--chalk); }
.tm-link { color: var(--stand); }
.can-play { font-size: .92rem; }
.can-play b { font-family: var(--display); font-size: 1.05rem; color: var(--grass-hi); }
.fut-more { margin-top: .4rem; }
.slot.natural .slot-empty { border-style: solid; }
.slot-tag.f3 { background: var(--grass-hi); color: var(--night); }
.slot-tag.f2 { background: var(--chalk); color: var(--night); }
.slot-tag.f1 { background: #E8A23A; color: var(--night); }
.slot-tag.f0 { background: #5A2326; color: #FFD9D9; }
.slot.fit-1 .slot-empty { border-color: rgba(232, 162, 58, .8); background: rgba(232, 162, 58, .12); box-shadow: none; }
.slot.fit-2 .slot-empty { border-color: rgba(244, 247, 242, .8); background: rgba(244, 247, 242, .12); box-shadow: none; }
.fit-badge {
  position: absolute; left: -3px; bottom: -2px; width: 5.4cqw; height: 5.4cqw; min-width: 16px; min-height: 16px; border-radius: 50%;
  display: grid; place-items: center; font: 800 3.2cqw/1 var(--display); border: 1.5px solid var(--night);
}
.fit-badge.f1 { background: #E8A23A; color: var(--night); }
.fit-badge.f0 { background: var(--red); color: #1A0505; }
.slot.placed-fit-0 .slot-photo .photo { border-color: var(--red); }
.slot.placed-fit-1 .slot-photo .photo { border-color: #E8A23A; }
.lu-fit { font: 600 .9rem var(--display); color: var(--stand); text-align: right; }
.lu-fit.f3, .fl.f3 { color: var(--grass-hi); }
.lu-fit.f2, .fl.f2 { color: var(--chalk); }
.lu-fit.f1, .fl.f1 { color: #E8A23A; }
.lu-fit.f0, .fl.f0 { color: var(--red); }
.fit-line { display: flex; flex-wrap: wrap; gap: .35rem .9rem; font: 600 1rem var(--display); color: var(--stand); }
.pm.alt { color: var(--night); background: rgba(244, 247, 242, .7); }
.pm.weak { color: #E8A23A; background: rgba(10, 20, 16, .55); box-shadow: inset 0 0 0 1.5px #E8A23A; }
.pm.no { color: rgba(244, 247, 242, .28); background: rgba(10, 20, 16, .35); text-decoration: line-through; }
button.pm { cursor: pointer; border: 0; }
button.pm:hover { outline: 2px solid var(--gold); }
.pm-legend { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-size: .8rem; color: var(--stand); }
.pm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.pm-legend .k3 { background: var(--gold); }
.pm-legend .k2 { background: rgba(244, 247, 242, .7); }
.pm-legend .k1 { box-shadow: inset 0 0 0 1.5px #E8A23A; }
.pm-legend .k0 { background: rgba(10, 20, 16, .5); box-shadow: inset 0 0 0 1px var(--line-2); }
.pos-edit-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.fix-note { font-size: .8rem; color: var(--gold); }
.sheet-player { max-width: 860px; display: flex; flex-direction: column; }
.ps-head { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--night-2); z-index: 1; }
.ps-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); background: #16241C; flex: none; }
.ps-title { flex: 1; min-width: 0; }
.ps-title h2 { font: italic 800 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); }
.ps-sub { margin-top: .3rem; }
.ps-body { padding: 1.2rem 1.3rem 1.6rem; display: flex; flex-direction: column; gap: 1.3rem; }
.ps-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 1.3rem; align-items: start; }
.ps-block { display: flex; flex-direction: column; gap: .55rem; }
.ps-block h3 { font-size: 1.3rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.facts dt { color: var(--stand); }
.facts dd { margin: 0; font-weight: 500; }
.ps-pos { font: 600 1.1rem var(--display); }
.small { font-size: .85rem; }
.posmap {
  position: relative; width: 100%; aspect-ratio: 68 / 90; border-radius: 8px;
  background: repeating-linear-gradient(180deg, #1C6A3C 0 12.5%, #18603A 12.5% 25%);
  box-shadow: inset 0 0 0 1px rgba(244, 247, 242, .25);
}
.pm {
  position: absolute; transform: translate(-50%, -50%); min-width: 34px; padding: 2px 4px; border-radius: 4px; text-align: center;
  font: 700 .78rem/1.2 var(--display); color: rgba(244, 247, 242, .45); background: rgba(10, 20, 16, .35);
}
.pm.on, .pm.main { color: var(--night); background: var(--gold); }
.career { width: 100%; border-collapse: collapse; font-size: .93rem; }
.career th { text-align: left; color: var(--stand); font-weight: 500; padding: .35rem .5rem; border-bottom: 1px solid var(--line-2); }
.career td { padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
.career th:nth-child(n+3), .career td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.career tfoot td { font-weight: 700; border-bottom: 0; }
.c-club { display: inline-flex; align-items: center; gap: .5rem; }
.awards { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.awards li { padding: .2rem .6rem; border-radius: 999px; border: 1px solid rgba(var(--gold-rgb), .45); font-size: .88rem; }
.summary { color: #D3DCD6; max-width: 68ch; }
.ps-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ps-links a { text-decoration: none; color: var(--chalk); }
@media (max-width: 640px) {
  .ps-grid { grid-template-columns: 1fr; }
  .ps-grid .posmap { max-width: 240px; }
  .ps-head { padding: 1rem; }
  .ps-photo { width: 76px; height: 76px; }
  .pr-info { width: 52px; font-size: .85rem; }
  .lu-row { grid-template-columns: 40px 32px minmax(0, 1fr) 92px; }
  .lu-club { display: none; }
}

/* ---------- Aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translate(-50%, 20px); z-index: 40;
  max-width: min(92vw, 520px); padding: .75rem 1.1rem; border-radius: 8px;
  background: var(--chalk); color: var(--night); font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #1A0505; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .play { grid-template-columns: 1fr; }
  .squad { position: static; max-width: 460px; width: 100%; margin: 0 auto; }
  .clubs-layout { grid-template-columns: 1fr; }
  .clubs-right { position: static; order: -1; max-width: 280px; margin: 0 auto; width: 100%; }
  .team:not(.compact) { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .fut-card { max-width: 300px; margin: 0 auto; width: 100%; }
  .detail-pitch { margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .stepper .step-label { display: none; }
  .stepper .current .step-label { display: inline; }
  .turn-meta { margin-left: 0; width: 100%; justify-content: space-between; }
  .meter-bar { width: 80px; }
  .picker { height: calc(100vh - 1rem); }
  .overlay { padding: .5rem; }
  .picker-head { flex-wrap: wrap; }
  .picker-head-actions { width: 100%; justify-content: space-between; }
  .picker-head-actions .icon-btn { position: absolute; top: .9rem; right: .9rem; }
  .picker-head { position: relative; padding-right: 3.6rem; }
  .btn.spin { min-width: 0; width: 100%; }
  .setup-body { padding-top: 1.2rem; }
  .pr-why { display: none; }
  .pos-filter .seg.small { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pos-filter .seg.small::-webkit-scrollbar { display: none; }
  .pos-filter .seg-btn { flex: none; }
  .player-row .tag { display: none; }
  .picker-tools .tools-row { gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Cuenta ---------- */
.acc-btn {
  position: fixed; top: 14px; right: 66px; z-index: 6;
  display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .9rem 0 .7rem;
  border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); color: var(--chalk);
  font: 700 1.02rem var(--display); letter-spacing: .02em; cursor: pointer;
}
.acc-btn:hover { border-color: var(--chalk); }
.acc-btn svg { width: 18px; height: 18px; }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stand); }
.acc-dot[data-state="al día"] { background: var(--grass-hi); }
.acc-dot[data-state="sincronizando"] { background: var(--joker); }
.acc-dot[data-state="sin conexión"], .acc-dot[data-state="error"] { background: var(--red); }
.acc, .legal { width: min(100%, 34rem); margin: 0 auto; padding: 1.6rem 1rem 3rem; }
.acc-box { display: flex; flex-direction: column; gap: 1rem; }
.acc-lead { color: #C9D4CD; }
.acc-tabs .seg-btn { flex: 1; }
.acc-form { display: flex; flex-direction: column; gap: .9rem; }
.acc-field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
.acc-field .input { width: 100%; }
.acc-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.acc-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--grass-hi); }
.acc-form a, .acc-box a, .legal a { color: var(--chalk); text-underline-offset: 3px; }
.acc-error { color: var(--red); font-weight: 600; min-height: 1.2em; }
.acc-error:empty { display: none; }
.linkish { align-self: flex-start; background: none; border: 0; padding: .2rem 0; color: var(--stand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.acc-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.acc-email { font: 700 1.3rem var(--display); overflow-wrap: anywhere; }
.acc-status { font-size: .92rem; }
.acc-status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .5rem; background: var(--stand); vertical-align: 1px; }
.acc-status[data-state="al día"]::before { background: var(--grass-hi); }
.acc-status[data-state="sincronizando"]::before { background: var(--joker); }
.acc-status[data-state="sin conexión"]::before, .acc-status[data-state="error"]::before { background: var(--red); }
.acc-actions, .acc-choice { display: flex; gap: .6rem; flex-wrap: wrap; }
.acc-danger { border-color: rgba(240, 106, 106, .35); background: transparent; }
.acc-danger h2 { font-size: 1.3rem; }
.acc-danger .btn { align-self: flex-start; border-color: rgba(240, 106, 106, .6); color: var(--red); }
.legal h1 { font-size: 2.2rem; margin-bottom: .3rem; }
.legal section { margin-top: 1.6rem; }
.legal h2 { font-size: 1.45rem; margin-bottom: .5rem; }
.legal h3 { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.legal p, .legal ul { color: #C9D4CD; line-height: 1.6; }
.legal p + p { margin-top: .6rem; }
.legal ul { margin: .4rem 0; padding-left: 1.2rem; }
.legal li + li { margin-top: .35rem; }
.legal b { color: var(--chalk); }
.legal > p:last-child { margin-top: 2rem; }
:root[data-theme="light"] .acc-lead, :root[data-theme="light"] .legal p, :root[data-theme="light"] .legal ul { color: #3A4A41; }
:root[data-theme="light"] .acc-form a, :root[data-theme="light"] .acc-box a, :root[data-theme="light"] .legal a, :root[data-theme="light"] .legal b { color: #16221B; }
@media (max-width: 480px) {
  .acc-btn { right: 62px; padding: 0 .75rem 0 .6rem; }
}
.acc-google { display: flex; flex-direction: column; gap: .5rem; }
.acc-google-btn { gap: .6rem; }
.acc-google-btn svg { flex: none; }
.acc-or { text-align: center; color: var(--stand); font-size: .9rem; margin-top: .3rem; }

/* Insignia "Powered by Netlify" (abajo a la derecha, 184×48): si aparece, nada fijo abajo queda debajo de ella. El Modo Ruleta no se toca. */
:root { --nl-badge-h: 0px; }
:root.nl-badge { --nl-badge-h: 52px; }
.nl-badge .screen-draft-setup .setup-footer { padding-bottom: calc(.9rem + var(--nl-badge-h)); }
.nl-badge .screen:not(.screen-setup):not(.screen-play):not(.screen-results) { padding-bottom: var(--nl-badge-h); }
@media (max-width: 760px) {
  .nl-badge .screen-draft-play .dps-cta { bottom: calc(.6rem + env(safe-area-inset-bottom) + var(--nl-badge-h)); }
}

/* Cartas nuevas: sección del inicio y pantalla con todas las cartas especiales. */
.home-new { width: 100%; max-width: 820px; display: grid; gap: 1rem; text-align: left;
  padding: 1.1rem 1.2rem; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); }
.home-new-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.home-new-head h2 { font: italic 800 2rem/1 var(--ui, var(--body)); }
.home-new-head p { color: #C9D4CD; margin-top: .35rem; }
.home-new-head .btn { min-height: 40px; font-size: 1rem; }
.home-new-row { display: flex; gap: .9rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x proximity; }
.home-new-item { flex: none; display: grid; justify-items: center; gap: .4rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; scroll-snap-align: start; font: inherit; }
.home-new-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
.home-new-meta { font-size: .85rem; color: var(--stand); }
.home-new-meta b { color: var(--chalk); font-weight: 700; }

.newcards { width: min(100%, 52rem); margin: 0 auto; padding: 1.6rem 1rem 3rem; display: grid; gap: 1.4rem; }
.newcards h1 { font: italic 800 2.4rem/1 var(--ui, var(--body)); }
.nc-lead { color: #C9D4CD; margin-top: -.6rem; }
.nc-day { display: grid; gap: .8rem; }
.nc-day h2 { font: 700 1.05rem/1.2 var(--body); color: var(--stand); border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.nc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.nc-item { display: flex; gap: 1rem; align-items: center; padding: .9rem; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.nc-card { flex: none; }
.nc-body { display: grid; gap: .3rem; min-width: 0; }
.nc-type { display: flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--stand); }
.nc-new { padding: .2rem .45rem; border-radius: 999px; background: #F0C44C; color: #1B1406; letter-spacing: 0; text-transform: none; }
.nc-name { font: italic 800 1.5rem/1.05 var(--ui, var(--body)); }
.nc-detail { color: #DDE5E0; }
.nc-where { font-size: .9rem; color: var(--stand); }
.nc-back { justify-self: start; }
.newcards .dcard.fc-md { --h: 230px; }
@media (max-width: 480px) {
  .nc-item { flex-direction: column; align-items: stretch; text-align: center; }
  .nc-card { align-self: center; }
  .nc-type { justify-content: center; }
}
:root[data-theme="light"] .home-new { border-color: var(--line); box-shadow: 0 1px 2px rgba(22, 34, 27, .05), 0 12px 32px rgba(22, 34, 27, .07); }
:root[data-theme="light"] .home-new-head p, :root[data-theme="light"] .nc-lead, :root[data-theme="light"] .nc-detail { color: #47524C; }
:root[data-theme="light"] .home-new-meta b { color: #16221B; }
