/* Piezas comunes del estilo "álbum": foto de cabecera, nota a mano, mancha lima, tarjetas de colores. */
:root { --cream: #eff3dc; }

/* Cabecera con foto a todo el ancho */
.phead { position: relative; margin: 0 0 18px; }
.phead .photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0 0 36px 36px; background: #0e0e0e; }
.phead .top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
              padding: calc(14px + env(safe-area-inset-top, 0)) 16px; }
.phead .top .brand { color: #fff; }
.roundbtn { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; border: 0; cursor: pointer; }
.roundbtn svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .phead .photo { aspect-ratio: 16 / 8; border-radius: 36px; } .albumwrap { max-width: 720px; margin: 0 auto; } }

/* Mancha lima (etiqueta orgánica, ladeada) */
.blob { position: absolute; right: 16px; bottom: 14px; min-width: 108px; height: 84px; padding: 0 14px; display: grid; place-items: center;
        text-align: center; color: #111; font-weight: 800; line-height: 1.05; transform: rotate(-6deg); }
.blob svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--lime); }
.blob span { position: relative; font-size: .82rem; }
.blob b { display: block; font-size: 1.7rem; }

/* Rayitas de energía */
.energy { position: absolute; width: 34px; height: 34px; stroke: var(--lime); stroke-width: 3; fill: none; stroke-linecap: round; }

/* Título grande con nota a mano al costado */
.titlerow { position: relative; }
.bigt { font-size: 2.6rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 8px 0 8px; }
.bigt em { font-style: normal; color: var(--lime); }
.scribble { position: absolute; right: 4px; bottom: -50px; transform: rotate(-5deg); font-family: "Caveat", cursive; color: var(--lime);
            font-size: 1.3rem; line-height: 1; text-align: right; }
.scribble svg { display: block; width: 80px; height: 12px; margin: 2px 0 0 auto; stroke: var(--lime); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.lead { color: #cfcfca; margin: 56px 0 18px; max-width: 440px; }
:root[data-theme="light"] .lead { color: #3a3d36; }

/* Tres cifras en una caja con separadores */
.tri { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-radius: 22px; margin: 0 0 22px; }
.tri div { padding: 14px 8px; text-align: center; }
.tri div + div { border-left: 1px solid var(--line); }
.tri b { display: block; font-size: 1.35rem; font-weight: 800; }
.tri span { color: var(--muted); font-size: .78rem; }

/* Tarjetas de colores que se alternan (lima, crema, blanco, negro) */
.c-lime { background: var(--lime) !important; color: #111 !important; }
.c-cream { background: var(--cream) !important; color: #111 !important; }
.c-white { background: #fff !important; color: #111 !important; }
.c-dark { background: #1f1f1f !important; color: #fff !important; }
.c-lime span, .c-cream span, .c-white span { color: #3d4232 !important; }
.tilt-l { transform: rotate(-1.6deg); } .tilt-r { transform: rotate(1.4deg); }

/* Pasos numerados en tarjetas que se deslizan de lado */
.steps3 { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
          padding: 6px 16px 14px; margin: 0 -16px 8px; scroll-padding-left: 16px; scrollbar-width: none; }
.steps3::-webkit-scrollbar { display: none; }
.steps3 > div { scroll-snap-align: start; border-radius: 26px; padding: 16px; min-height: 150px; display: flex; flex-direction: column;
                justify-content: space-between; }
.steps3 b { font-size: 3.4rem; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.steps3 p { margin: 0; font-weight: 600; line-height: 1.3; }
.swipehint { font-family: "Caveat", cursive; color: var(--lime); font-size: 1.2rem; text-align: right; margin: -6px 4px 10px; }

/* Subida: imagen arriba del paso 1 */
.stepimg { position: relative; margin: 4px -4px 6px; }
.stepimg img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 24px; display: block; }
.stepimg .scribble { left: 14px; right: auto; top: 12px; bottom: auto; text-align: left; transform: rotate(-6deg); }
.stepimg .scribble svg { margin: 2px 0 0; }
.step h2 { font-size: 2rem; }
.drop { padding: 22px 16px; }
/* Inicio sin partidos */
.emptyimg { width: 100%; max-width: 360px; margin: 0 auto 6px; border-radius: 24px; display: block; }

/* Partido: mancha lima con la duración sobre la foto */
.jobhero .jblob { position: absolute; left: auto; right: 30px; top: 14px; bottom: auto; padding: 0 12px; transform: rotate(5deg); min-width: 92px; height: 70px; z-index: 2; }
.jobhero .jblob b { font-size: 1.4rem; }
.jobhero .jblob span span { display: block; font-size: .72rem; }
.jobhero h1 { font-size: 2.2rem; letter-spacing: -.03em; }

.step { flex-shrink: 0; }

/* Botones de opción: fotos y números gigantes */
.choice.pchoice, .choice.nchoice { position: relative; overflow: visible; border: 0; justify-content: flex-end; transition: transform .2s, filter .2s, opacity .2s; }
.choice .sticker { position: absolute; top: -10px; right: -6px; font-family: "Caveat", cursive; font-style: normal; font-size: 1.25rem; font-weight: 600;
  background: #fff; color: #111; padding: 2px 12px 4px; border-radius: 14px 18px 12px 16px; transform: rotate(8deg) scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
  box-shadow: 0 6px 16px rgba(0,0,0,.4); z-index: 2; }
.choice.on .sticker { transform: rotate(8deg) scale(1); }

/* Con foto */
.choice.pchoice { min-height: 190px; padding: 14px; border-radius: 26px; color: #fff;
  background: linear-gradient(180deg, rgba(10,10,10,0) 35%, rgba(10,10,10,.92) 100%), var(--img) center / cover no-repeat, #0e0e0e; }
.choice.pchoice:not(.on) { filter: grayscale(1) brightness(.55); }
.choice.pchoice.on { box-shadow: 0 0 0 3px var(--lime); transform: rotate(-1.5deg); }
.choice.pchoice b { font-size: 1.25rem; }
.choice.pchoice span { color: #d6d6d0 !important; }
.choice.pchoice.on span { color: var(--lime) !important; }

/* Con número gigante */
.choice.nchoice { min-height: 150px; padding: 12px 14px; border-radius: 26px; background: #2a2a2a; color: #fff; }
.choice.nchoice .bignum { position: absolute; left: 12px; top: 2px; font-style: normal; font-size: 5.4rem; font-weight: 800; line-height: 1;
  letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px #5a5a55; transition: color .2s, -webkit-text-stroke-color .2s; }
.choice.nchoice .vs { position: absolute; right: 14px; top: 16px; font-family: "Caveat", cursive; font-style: normal; font-size: 1.2rem; color: var(--muted); transform: rotate(-6deg); }
.choice.nchoice b { position: relative; font-size: 1.05rem; }
.choice.nchoice span { position: relative; color: var(--muted); }
.choice.nchoice:hover .bignum { -webkit-text-stroke-color: var(--lime); }
.choice.nchoice.on { background: var(--lime); color: #111; transform: rotate(1.5deg); }
.choice.nchoice.on .bignum { color: #111; -webkit-text-stroke-color: #111; }
.choice.nchoice.on .vs, .choice.nchoice.on span { color: #3a4a10; }
.choices:has(.nchoice), .choices:has(.pchoice) { gap: 14px; padding-top: 10px; }
:root[data-theme="light"] .choice.nchoice:not(.on) { background: #fff; color: #111; }

/* Canchas: pasto cortado, mini cancha con la formación del equipo, número junto al nombre */
.choice.nchoice { min-height: 0; padding: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto;
  align-items: end; gap: 0 8px; background: repeating-linear-gradient(90deg, #2c2c2c 0 18px, #262626 18px 36px); }
.choice.nchoice.on { background: repeating-linear-gradient(90deg, #d9ff45 0 18px, #cdf03c 18px 36px); }
.choice.nchoice .form { grid-column: 1 / -1; width: 100%; height: auto; display: block; margin: 0 0 10px; }
.choice.nchoice .bignum { position: static; grid-column: 2; grid-row: 2 / 4; align-self: end; font-size: 3.2rem; line-height: .8;
  color: transparent; -webkit-text-stroke: 1.6px rgba(255,255,255,.45); }
.choice.nchoice b { grid-column: 1; grid-row: 2; }
.choice.nchoice span { grid-column: 1; grid-row: 3; }
.choice.nchoice .sticker { top: 6px; right: 6px; }
.form rect, .form line, .form .cc { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.2; }
.form .mine circle { fill: var(--lime); }
.form .mine circle.gk { fill: #fff; }
.form text { fill: rgba(255,255,255,.45); font: 800 14px "Plus Jakarta Sans", sans-serif; }
.choice.nchoice.on .form rect, .choice.nchoice.on .form line, .choice.nchoice.on .form .cc { stroke: rgba(0,0,0,.35); }
.choice.nchoice.on .form .mine circle, .choice.nchoice.on .form .mine circle.gk { fill: #111; }
.choice.nchoice.on .form text { fill: rgba(0,0,0,.5); }
.choice.nchoice.on .bignum { color: #111; -webkit-text-stroke: 0; }
.choice.nchoice.free .form > rect:first-child, .choice.nchoice.free .form line, .choice.nchoice.free .form .cc,
.choice.nchoice.free .form > rect { stroke-dasharray: 3 3; }
.form .ruler { fill: none; stroke: var(--lime); stroke-width: 1.6; }
.choice.nchoice.on .form .ruler { stroke: #111; }

/* Consejos ilustrados (Grabar): tarjetas tipo lámina, dibujo + número + texto, sin deslizar */
.tipcards { display: grid; gap: 14px; margin: 0 0 22px; }
.tip3 { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; border-radius: 26px; padding: 14px 16px 14px 12px; }
.tip3:nth-child(1) { transform: rotate(-1.2deg); }
.tip3:nth-child(2) { transform: rotate(1deg); }
.tip3:nth-child(3) { transform: rotate(-.8deg); }
.tipart { width: 120px; height: 80px; fill: none; stroke: #111; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tipart .thin { stroke-width: 1.4; opacity: .55; }
.tipart .fill { fill: #111; stroke: none; }
.tipart .ok { stroke: #2f7a00; stroke-width: 4; }
.tipart .no { stroke: #d63a2f; stroke-width: 4; }
.tipart .faded { opacity: .35; }
.tipart text { fill: #111; stroke: none; font: 800 13px "Plus Jakarta Sans", sans-serif; }
.tip3 b { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #111; color: var(--lime);
          font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.tip3 p { margin: 0; font-size: .95rem; line-height: 1.3; color: #1d2015; font-weight: 500; }
.tip3 p strong { font-weight: 800; color: #111; }
.tip3 .hand { position: absolute; right: 14px; top: -12px; font-family: "Caveat", cursive; font-size: 1.25rem; font-weight: 600;
              background: #111; color: var(--lime) !important; padding: 1px 12px 3px; border-radius: 14px 18px 12px 16px; transform: rotate(6deg);
              box-shadow: 0 4px 10px rgba(0,0,0,.35); font-size: 1.35rem; }
.tipart .arc, .tipart .arcend { stroke: #111; stroke-width: 2.6; }

/* Botón principal: una pincelada lima pintada a mano, texto en negrita cursiva y flecha dibujada */
.primary { background: transparent !important; color: #111 !important; position: relative; isolation: isolate; overflow: visible;
  min-height: 64px; padding: 0 26px !important; justify-content: center !important; gap: 14px; box-shadow: none !important;
  font-size: 1.12rem; font-weight: 800; font-style: italic; letter-spacing: -.01em; }
.primary::before { content: ""; position: absolute; inset: -2px -6px; z-index: -1; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2080%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M14%2014%20C%2060%204%2C%20140%2010%2C%20210%206%20S%20340%202%2C%20388%2010%20L%20396%2018%20L%20384%2024%20L%20398%2034%20L%20386%2044%20L%20397%2056%20L%20380%2066%20C%20320%2076%2C%20240%2070%2C%20170%2075%20S%2050%2078%2C%2012%2070%20L%204%2062%20L%2016%2054%20L%202%2044%20L%2014%2036%20L%203%2026%20Z%27/%3E%3Cpath%20d%3D%27M30%206%20L%2060%202%20L%2050%208%20Z%20M330%2074%20L%20372%2078%20L%20350%2070%20Z%20M6%2074%20L%2030%2079%20L%2022%2072%20Z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%20400%2080%27%20preserveAspectRatio%3D%27none%27%3E%3Cpath%20d%3D%27M14%2014%20C%2060%204%2C%20140%2010%2C%20210%206%20S%20340%202%2C%20388%2010%20L%20396%2018%20L%20384%2024%20L%20398%2034%20L%20386%2044%20L%20397%2056%20L%20380%2066%20C%20320%2076%2C%20240%2070%2C%20170%2075%20S%2050%2078%2C%2012%2070%20L%204%2062%20L%2016%2054%20L%202%2044%20L%2014%2036%20L%203%2026%20Z%27/%3E%3Cpath%20d%3D%27M30%206%20L%2060%202%20L%2050%208%20Z%20M330%2074%20L%20372%2078%20L%20350%2070%20Z%20M6%2074%20L%2030%2079%20L%2022%2072%20Z%27/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: rotate(-1deg); transition: transform .3s cubic-bezier(.3,1.5,.5,1), filter .2s; }
.primary::after { content: "" !important; width: 58px; height: 26px; flex: none; background: #111;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2072%2032%27%3E%3Cpath%20d%3D%27M2%2020.5%20C%2010%2017%2C%2018%2023.5%2C%2028%2019%20S%2044%2012.5%2C%2054%2015.2%20L%2054.6%2018.6%20C%2044%2016.8%2C%2036%2022.5%2C%2027%2024.6%20S%209%2024%2C%202.6%2022.4%20Z%27/%3E%3Cpath%20d%3D%27M46%204.5%20C%2052%208.5%2C%2060%2012.5%2C%2069%2016.2%20C%2070.4%2016.8%2C%2070.3%2018.2%2C%2069%2018.8%20C%2061%2022.5%2C%2053%2026.5%2C%2047.5%2030.5%20C%2045.6%2031.6%2C%2044%2029.7%2C%2045.6%2028.2%20C%2051%2024%2C%2057%2020.5%2C%2062.5%2017.6%20C%2056.5%2014.6%2C%2050.5%2011.2%2C%2044.6%207.4%20C%2043%206.3%2C%2044.4%203.6%2C%2046%204.5%20Z%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2726.5%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2727.6%27%20r%3D%27.9%27/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2072%2032%27%3E%3Cpath%20d%3D%27M2%2020.5%20C%2010%2017%2C%2018%2023.5%2C%2028%2019%20S%2044%2012.5%2C%2054%2015.2%20L%2054.6%2018.6%20C%2044%2016.8%2C%2036%2022.5%2C%2027%2024.6%20S%209%2024%2C%202.6%2022.4%20Z%27/%3E%3Cpath%20d%3D%27M46%204.5%20C%2052%208.5%2C%2060%2012.5%2C%2069%2016.2%20C%2070.4%2016.8%2C%2070.3%2018.2%2C%2069%2018.8%20C%2061%2022.5%2C%2053%2026.5%2C%2047.5%2030.5%20C%2045.6%2031.6%2C%2044%2029.7%2C%2045.6%2028.2%20C%2051%2024%2C%2057%2020.5%2C%2062.5%2017.6%20C%2056.5%2014.6%2C%2050.5%2011.2%2C%2044.6%207.4%20C%2043%206.3%2C%2044.4%203.6%2C%2046%204.5%20Z%27/%3E%3Ccircle%20cx%3D%276%27%20cy%3D%2726.5%27%20r%3D%271.3%27/%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2727.6%27%20r%3D%27.9%27/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.primary:hover::before { transform: rotate(-1deg) scaleX(1.04); }
.primary:hover::after { transform: translateX(7px) rotate(-4deg); }
.primary:active::after { transform: translateX(12px) scale(1.05); }
.primary:active::before { transform: rotate(1deg) scale(.97); filter: brightness(.95); }
.primary:disabled { opacity: 1; }
.primary:disabled::before { background: #3a3a3a; }
.primary:disabled { color: #8a8a85 !important; }
.primary:disabled::after { background: #8a8a85; }
.primary:focus-visible { outline: none; }
.primary:focus-visible::before { filter: drop-shadow(0 0 0 #fff) brightness(1.08); }

/* Elegir desde Google Drive: lámina de álbum con cinta y sticker */
.drivebox { margin-top: 12px; }
.orline { display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; }
.orline::before, .orline::after { content: ""; flex: 1; height: 2px; background: #2c2c2c; border-radius: 2px; }
.orline span { font-family: "Caveat", cursive; font-size: 1.35rem; color: var(--lime); transform: rotate(-4deg); }
.drivecard { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 0; cursor: pointer;
  padding: 18px 16px 16px 84px; border: 0; color: #141414; background: #eff3dc; border-radius: 6px 18px 8px 16px;
  transform: rotate(-1.2deg); box-shadow: 0 10px 22px rgba(0,0,0,.35); transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.drivecard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(60,80,20,.07) 21px 22px); }
.drivecard:hover { transform: rotate(0) translateY(-2px); }
.drivecard:active { transform: rotate(.6deg) scale(.98); }
.drivecard .tape { position: absolute; top: -9px; left: 50%; width: 78px; height: 20px; transform: translateX(-50%) rotate(3deg);
  background: rgba(214,255,60,.75); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 45%); }
.drivecard .dlogo { position: absolute; left: -10px; top: 50%; width: 76px; height: 76px; margin-top: -40px; border-radius: 50%;
  background: #fff; display: grid; place-items: center; transform: rotate(-12deg); box-shadow: 0 6px 14px rgba(0,0,0,.35);
  border: 3px dashed #d9dfc4; transition: transform .3s cubic-bezier(.3,1.6,.5,1); }
.drivecard:hover .dlogo { transform: rotate(4deg) scale(1.06); }
.drivecard .dlogo svg { width: 38px; height: 38px; }
.drivecard .dtxt { flex: 1; min-width: 0; position: relative; z-index: 1; }
.drivecard .dhand { display: block; font-family: "Caveat", cursive; font-style: normal; font-size: 1.2rem; color: #5a6b12; line-height: 1; margin-bottom: 2px; }
.drivecard .dtxt b { display: block; font-size: 1.12rem; font-weight: 800; font-style: italic; letter-spacing: -.01em; line-height: 1.15; }
.drivecard .dtxt span { display: block; font-size: .84rem; color: #4a4f3e; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drivecard .barrow { width: 46px; height: 22px; flex: none; fill: #141414; position: relative; z-index: 1; transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
.drivecard:hover .barrow { transform: translateX(5px) rotate(-4deg); }
.drivecard.ok { background: var(--lime); }
.drivecard.ok .dhand { color: #2c3a00; }
.drivecard.ok .tape { background: rgba(255,255,255,.7); }
.drivenote { font-size: .82rem; color: var(--muted); margin: 8px 4px 0; }
.driveswap { display: inline-block; margin: 6px 4px 0; font-size: .85rem; font-weight: 700; color: var(--lime); cursor: pointer; }
.dsteps { display: grid; gap: 8px; margin: 4px 0 6px; }
.dsteps div { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border-radius: 18px; padding: 12px 14px; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.dsteps i { width: 28px; height: 28px; border-radius: 10px; background: var(--lime); color: #111; display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
/* The duration blob must not cover the match name */
.jobhero h1 { overflow-wrap: anywhere; padding-right: 104px; font-size: 1.7rem;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
