/* Toca el objetivo — estilos propios (pastel, botones grandes). Se carga DESPUÉS de css/app.css (que no se toca). */
body.objetivo { background: #F7F3FC; color: #2f3b38; font-family: "Baloo 2", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; }
.o-view[hidden] { display: none !important; }
.o-home, .o-exv, .o-evol { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(1rem + env(safe-area-inset-top)) max(1.3rem, env(safe-area-inset-right)) calc(1.5rem + env(safe-area-inset-bottom)) max(1.3rem, env(safe-area-inset-left)); max-width: 1220px; margin: 0 auto; }
.o-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap; }
.o-head .home-back { margin: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.1rem; }
.o-title { flex: 1 1 320px; }
.o-title h1 { margin: 0; font-size: 2.3rem; color: #3d3360; line-height: 1.1; }
.o-sub { margin: 0.15rem 0 0; font-size: 1.15rem; color: #6d6488; }
.o-sub span { color: #FF8FA3; }
.o-headbtns { display: flex; gap: 0.6rem; align-items: center; }
.o-chip { font: inherit; font-size: 1.1rem; font-weight: 700; background: #fff; color: #3d3360; border: 2px solid #d8cdef; border-radius: 99px; padding: 0.55rem 1.1rem; cursor: pointer; }
.o-round { font-size: 1.6rem; width: 3.3rem; height: 3.3rem; border-radius: 50%; border: 2px solid #d8cdef; background: #fff; cursor: pointer; color: #3d3360; }
.o-chip:active, .o-round:active, .o-card:active, .o-start:active, .o-lv:active { transform: scale(0.97); }
/* tarjetas */
.o-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.o-card { position: relative; display: flex; flex-direction: column; gap: 0.25rem; text-align: left; font: inherit; color: #2f3b38; border: 3px solid rgba(255,255,255,0.95);
  border-radius: 28px; padding: 0.9rem 1.1rem 1rem; min-height: 250px; cursor: pointer; box-shadow: 0 6px 20px rgba(90,80,120,0.12); }
.o-card .o-num { position: absolute; top: 0.8rem; left: 0.9rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255,255,255,0.85); font-weight: 900; display: flex; align-items: center; justify-content: center; color: #6d6488; }
.o-card .o-art { width: 100%; height: 108px; }
.o-card .o-name { font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.o-card .o-desc { font-size: 1rem; color: #4d5160; line-height: 1.25; }
.o-card .o-prog { display: flex; gap: 0.35rem; margin-top: auto; padding-top: 0.45rem; align-items: center; font-size: 0.9rem; color: #555; flex-wrap: wrap; }
.o-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 1.9rem; height: 1.9rem; border-radius: 99px; background: rgba(255,255,255,0.7); font-size: 0.8rem; font-weight: 800; color: #999; padding: 0 0.35rem; }
.o-dot.on { background: #fff; color: #3d3360; box-shadow: inset 0 0 0 2px #b9a8e0; }
.c-sky { background: linear-gradient(160deg, #E3F1FF, #CFE6FB); } .c-lemon { background: linear-gradient(160deg, #FFF6D6, #FFEBB0); }
.c-mint { background: linear-gradient(160deg, #DDF6EC, #C6EEDD); } .c-peach { background: linear-gradient(160deg, #FFEBE1, #FFD9C9); }
.c-lilac { background: linear-gradient(160deg, #F0E8FC, #E2D5F7); } .c-rose { background: linear-gradient(160deg, #FFE8EF, #FFD4E1); }
.c-green { background: linear-gradient(160deg, #E2F7E8, #CBEFD6); } .c-aqua { background: linear-gradient(160deg, #DFF6F6, #C8EEEE); }
.o-foot { margin-top: 1.3rem; }
/* ejercicio */
.o-exbody { display: grid; grid-template-columns: minmax(260px, 0.9fr) 1.4fr; gap: 1.3rem; align-items: start; }
@media (max-width: 900px) { .o-exbody { grid-template-columns: 1fr; } }
.o-exart { border-radius: 28px; padding: 1rem; border: 3px solid #fff; box-shadow: 0 6px 20px rgba(90,80,120,0.12); }
.o-exart svg { width: 100%; height: auto; display: block; }
.o-how { font-size: 1.2rem; margin: 0 0 1rem; color: #3b3f4d; background: #fff; border-radius: 18px; padding: 0.8rem 1rem; }
.o-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; margin-bottom: 1rem; }
.o-levels.small { max-width: 760px; }
.o-lv { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; padding: 0.8rem 0.4rem; border-radius: 20px; border: 3px solid transparent; cursor: pointer; text-align: center; color: #2f3b38; min-height: 7.2rem; }
.o-levels.small .o-lv { min-height: 0; padding: 0.55rem 0.3rem; }
.o-lv .i { font-size: 1.8rem; line-height: 1; } .o-lv b { font-size: 1.3rem; } .o-lv small { font-size: 0.85rem; color: #555; line-height: 1.15; }
.o-lv.facil { background: #bfe8cf; } .o-lv.medio { background: #bcd9f2; } .o-lv.dificil { background: #d9c8f0; } .o-lv.experto { background: #f2d2b6; }
.o-lv.sel { border-color: #3d3360; box-shadow: 0 6px 16px rgba(61,51,96,0.22); transform: translateY(-2px); }
.o-startrow { display: flex; gap: 0.8rem; }
.o-start { flex: 2; font: inherit; font-size: 1.7rem; font-weight: 900; padding: 1rem; border: none; border-radius: 22px; background: #3d3360; color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(61,51,96,0.3); }
.o-evolbtn { flex: 1; font: inherit; font-size: 1.25rem; font-weight: 800; padding: 1rem; border-radius: 22px; border: 3px solid #3d3360; background: #fff; color: #3d3360; cursor: pointer; }
.o-fsopt { display: flex; gap: 0.5rem; align-items: center; margin: 0.8rem 0.2rem; font-size: 1.1rem; }
.o-fsopt input { width: 1.5rem; height: 1.5rem; }
.o-lastres { font-size: 1rem; color: #444; }
.o-lastres table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.o-lastres th, .o-lastres td, .o-table th, .o-table td { padding: 0.45rem 0.55rem; border-bottom: 1px solid #eee; text-align: left; }
.o-lastres th, .o-table th { background: #f0ebf8; font-size: 0.88rem; }
.o-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 0.98rem; }
.o-table td.inc { color: #999; }
.o-table .del { font-size: 0.95rem; padding: 0.45rem 0.7rem; border-radius: 10px; border: 2px solid #b01a1a; color: #b01a1a; background: #fff; cursor: pointer; }
.ochart { max-width: 900px; margin-bottom: 1rem !important; }
/* juego */
.o-game { position: fixed; inset: 0; display: flex; flex-direction: column; background: #FFFDF8; touch-action: none; }
.o-hud { flex: 0 0 auto; display: flex; align-items: center; gap: 0.6rem; padding: calc(0.4rem + env(safe-area-inset-top)) max(0.7rem, env(safe-area-inset-right)) 0.4rem max(0.7rem, env(safe-area-inset-left));
  background: #ECE3FA; border-bottom: 2px solid #fff; min-height: 62px; }
.o-hname { font-weight: 800; font-size: 1.15rem; color: #3d3360; white-space: nowrap; }
.o-counters { display: flex; gap: 0.45rem; margin-left: auto; font-variant-numeric: tabular-nums; }
.o-counters span { background: #fff; border-radius: 99px; padding: 0.25rem 0.75rem; font-size: 1.1rem; white-space: nowrap; }
.o-counters b { color: #3d3360; }
.o-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.25rem; background: #fff; border-radius: 99px; padding: 0.25rem 0.8rem; min-width: 4.4rem; text-align: center; }
.o-hbtn { font: inherit; font-size: 1.3rem; min-width: 3rem; height: 3rem; border-radius: 16px; border: 2px solid #c9badf; background: #fff; cursor: pointer; padding: 0 0.6rem; color: #3d3360; }
.o-hbtn.strong { font-size: 1.1rem; font-weight: 800; border-color: #3d3360; }
.o-stage { position: relative; flex: 1 1 auto; overflow: hidden; touch-action: none; background: radial-gradient(circle at 30% 20%, #FFFFFF, #FFF8EE 70%); }
.o-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.o-hint { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,0.9); color: #4d4470; font-size: 1.15rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 99px; pointer-events: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.06); max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.o-go { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(0.6); font-size: 3.2rem; font-weight: 900; color: #3d3360; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s; text-shadow: 0 3px 0 #fff; }
.o-go.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.o-zonelbl { font-size: 4.2px; fill: #9a8cbc; font-weight: 700; }
/* objetos SVG */
.o-tgt, .o-num, .o-cb, .o-piece, .o-hole, .o-bub, .o-dart { transform-box: fill-box; transform-origin: center; }
.pop-in { animation: oPopIn 0.28s cubic-bezier(.3,1.6,.6,1); }
@keyframes oPopIn { from { opacity: 0; } to { opacity: 1; } }
.o-shake { animation: oShake 0.35s ease; }
@keyframes oShake { 20% { opacity: 0.55; } 40% { opacity: 1; } 60% { opacity: 0.55; } 100% { opacity: 1; } }
.o-burst { animation: oBurst 0.55s ease-out forwards; }
@keyframes oBurst { from { opacity: 0.9; } to { opacity: 0; } }
.o-ftext { font-size: 6px; font-weight: 900; paint-order: stroke; stroke: #fff; stroke-width: 1.4px; animation: oFloat 0.9s ease-out forwards; }
@keyframes oFloat { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-7px); } }
.o-missmk { fill: none; stroke: #b9b0c9; stroke-width: 0.8; animation: oBurst 0.9s ease-out forwards; }
.o-done { opacity: 0.32; transition: opacity 0.3s; }
.o-numt { font-weight: 900; fill: #3d3360; paint-order: stroke; stroke: #fff; stroke-width: 0.9px; }
.o-fade { opacity: 0 !important; transition: opacity 0.35s; }
.o-hit { opacity: 0 !important; transition: opacity 0.25s; }
.o-drag path:last-child { filter: drop-shadow(0 1.5px 1.2px rgba(60,50,90,0.35)); }
.o-filled path { stroke-dasharray: none !important; }
.o-path { stroke: #F3D9CF; stroke-width: 1.4; stroke-dasharray: 2 2.4; stroke-linecap: round; }
.o-pen { fill: #3d3360; opacity: 0.75; pointer-events: none; }
.o-halo { stroke-width: 1.6; stroke: transparent; }
.o-halo.in { stroke: #6CC497; } .o-halo.out { stroke: #FFB067; }
.o-wait { animation: oPulse 1.4s ease-in-out infinite; }
@keyframes oPulse { 50% { opacity: 0.65; } }
.o-prog { stroke: #9c86d1; stroke-linecap: round; transition: stroke 0.2s; } .o-prog.in { stroke: #6CC497; } .o-prog.out { stroke: #FFB067; }
/* resumen */
.o-sumbox { width: min(94vw, 760px); max-height: 92dvh; overflow-y: auto; font-family: inherit; }
.o-sumbox h2 small { font-weight: 500; color: #6d6488; font-size: 1rem; }
.o-phrase { font-size: 1.3rem; font-weight: 800; color: #d6587a; margin: -0.3rem 0 0.8rem; }
.o-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.7rem; margin-bottom: 0.8rem; }
.o-sum div { background: #f6f2fc; border-radius: 16px; padding: 0.65rem; text-align: center; }
.o-sum span { display: block; color: #555; font-size: 0.95rem; }
.o-sum b { display: block; font-size: 1.9rem; margin-top: 0.1rem; color: #3d3360; }
.o-sum b small { font-size: 0.95rem; font-weight: 600; color: #777; }
.o-sum i { display: block; font-style: normal; font-size: 0.85rem; margin-top: 0.1rem; }
.o-sum i.up { color: #1a7a3a; } .o-sum i.dn { color: #b0571a; } .o-sum i.eq { color: #888; }
.o-inc { background: #fff6e0; border-radius: 12px; padding: 0.5rem 0.8rem; color: #7a5a10; }
.tbox .tbtn.big { font-size: 1.25rem; padding: 1rem; }
.tbox .tbtn.prim { background: #3d3360; color: #fff; border-color: #3d3360; }
.o-setbox { width: min(96vw, 780px); max-height: 94dvh; overflow-y: auto; }
.o-setbox .srow span { width: 9.5rem; flex: 0 0 auto; }
.o-setbox .seg { padding: 0.65rem 0.4rem; font-size: 1rem; }
.o-cal { margin: 0.4rem 0 0.2rem; }
.o-calbar { height: 54px; border-radius: 8px; background: repeating-linear-gradient(90deg, #C3B1E1 0 2px, #ECE3FA 2px 10px); border: 2px solid #7e63b3; }
/* pantalla completa (sólo CSS; la API se pide si existe) */
body.o-imm .o-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 5; background: transparent; border: none; pointer-events: none; min-height: 0; padding-top: calc(4px + env(safe-area-inset-top)); }
body.o-imm .o-hud .o-hbtn, body.o-imm .o-hname { display: none; }
body.o-imm .o-counters { margin-left: 0; opacity: 0.8; } body.o-imm .o-counters span, body.o-imm .o-timer { font-size: 0.95rem; padding: 0.15rem 0.6rem; background: rgba(255,255,255,0.75); }
.o-exit { position: fixed; top: calc(6px + env(safe-area-inset-top)); right: calc(6px + env(safe-area-inset-right)); width: 62px; height: 62px; z-index: 45; display: none; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(61,51,96,0.55); color: #fff; opacity: 0.5; transition: opacity 0.3s; touch-action: none; }
body.o-imm .o-exit { display: flex; } .o-exit.on { opacity: 1; }
body.o-imm.o-zurdo .o-exit { right: auto; left: calc(6px + env(safe-area-inset-left)); }
.o-exit svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.o-exit circle { fill: none; stroke-width: 7; } .o-exit circle.bg { stroke: rgba(255,255,255,0.3); }
.o-exit circle.ring { stroke: #fff; stroke-dasharray: 213.6; stroke-dashoffset: 213.6; stroke-linecap: round; }
.o-exit span { position: relative; font-weight: 800; font-size: 1.25rem; text-align: center; line-height: 1; }
.o-exit small { display: block; font-size: 0.62rem; font-weight: 700; }
.diag.on { display: block; }
.tbox .tbtn, .tbox .seg, .tbox select, .tbox input { font-family: inherit; }
