/* Presentation layout and visual states for the CNN math slide deck. */
:root{
  --cloud:#F4F5F0;
  --ink:#111827;
  --muted:#64748b;
  --line:#d9ded6;
  --blue:#2563eb;
  --teal:#0f766e;
  --rose:#e11d48;
  --amber:#d97706;
  --green:#16a34a;
  --panel:#ffffffcc;
  --shadow:0 24px 70px rgba(15,23,42,.12);
  --radius:30px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:'Noto Sans KR',sans-serif;color:var(--ink);background:radial-gradient(circle at 18% 10%,#fff 0,#fff8 18%,transparent 38%),linear-gradient(135deg,var(--cloud),#eef2ff 52%,#f8fafc);overflow:hidden}
body{display:flex;align-items:center;justify-content:center;padding:22px}
.deck{width:min(1440px,96vw);aspect-ratio:16/9;position:relative;background:linear-gradient(145deg,#fffefb,#f8fafc 60%,#eef2ff);border:1px solid rgba(148,163,184,.35);border-radius:36px;box-shadow:var(--shadow);overflow:hidden}
.deck:before{content:"";position:absolute;inset:-20% auto auto -10%;width:44%;height:70%;background:radial-gradient(circle,#fff 0,#ffffff80 40%,transparent 70%);filter:blur(2px)}
.slide{position:absolute;inset:0;padding:64px 78px 62px;display:none;opacity:0;transform:translateX(40px);transition:opacity .35s ease, transform .35s ease}
.slide.active{display:grid;opacity:1;transform:translateX(0)}
.two{grid-template-columns:1fr 1.05fr;gap:48px;align-items:center}
.center{place-items:center;text-align:center}
.top{align-content:start}
.title{font-size:64px;line-height:1.08;letter-spacing:-.055em;margin:0;font-weight:900;color:#0f172a}
.title .accent{color:var(--blue)}
.subtitle{font-size:24px;color:#475569;margin:18px 0 0;font-weight:700;line-height:1.5}
.kicker{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:9px 15px;color:#334155;font-weight:800;font-size:15px;margin-bottom:22px;box-shadow:0 10px 25px rgba(15,23,42,.06)}
.kicker:before{content:"";width:10px;height:10px;border-radius:999px;background:var(--blue)}
.card{background:var(--panel);border:1px solid rgba(148,163,184,.34);border-radius:var(--radius);box-shadow:0 18px 55px rgba(15,23,42,.08);padding:30px;backdrop-filter:blur(10px)}
.big-card{padding:40px}
.small{font-size:18px;color:#475569;line-height:1.7;font-weight:600}
.lead{font-size:30px;line-height:1.45;font-weight:800;letter-spacing:-.025em;margin:0;color:#1e293b}
.mini{font-size:15px;color:var(--muted);font-weight:700;line-height:1.55}
.tag{display:inline-block;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-weight:900;padding:6px 10px;font-size:14px;margin-right:6px}
.flow{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.node{background:#fff;border:2px solid #dbe4f0;border-radius:22px;padding:18px 22px;min-width:132px;text-align:center;font-size:18px;font-weight:900;box-shadow:0 10px 26px rgba(15,23,42,.08);transition:.35s}
.node.active{border-color:var(--blue);background:#eff6ff;color:#1d4ed8;transform:translateY(-8px)}
.arrow{font-size:34px;color:#94a3b8;font-weight:900}
.btn{appearance:none;border:0;background:#111827;color:#fff;font-family:inherit;font-weight:900;font-size:17px;border-radius:18px;padding:13px 20px;cursor:pointer;box-shadow:0 14px 30px rgba(15,23,42,.18);transition:.2s}
.btn:hover{transform:translateY(-2px);background:#1d4ed8}.btn.alt{background:#fff;color:#0f172a;border:1px solid #cbd5e1;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
.matrix{display:grid;gap:0;justify-content:center;align-content:center;margin:auto;border-left:1px solid #cbd5e1;border-top:1px solid #cbd5e1;width:max-content;background:#fff}
.m3{grid-template-columns:repeat(3,58px)}.m4{grid-template-columns:repeat(4,54px)}.m2{grid-template-columns:repeat(2,64px)}
.cell{height:58px;border-radius:0;background:#fff;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:900;transition:.35s;box-shadow:none;aspect-ratio:1/1}
.cell.dim{opacity:.35}.cell.hot{background:#dbeafe;color:#1d4ed8;z-index:2}.cell.good{background:#dcfce7;color:#15803d}.cell.bad{background:#ffe4e6;color:#be123c}.cell.zero{background:#f1f5f9;color:#94a3b8}.cell.max{background:#fef3c7;color:#92400e;box-shadow:inset 0 0 0 2px #f59e0b;z-index:2}
.calc-line{font-size:28px;font-weight:900;color:#0f172a;text-align:center;margin-top:26px;min-height:46px;letter-spacing:-.02em}
.caption{font-size:17px;color:#64748b;text-align:center;font-weight:700;margin-top:14px;line-height:1.55}
.demo-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}
.formula{background:#0f172a;color:#fff;border-radius:24px;padding:22px 26px;font-size:28px;font-weight:900;text-align:center;box-shadow:0 14px 40px rgba(15,23,42,.18)}
.image-grid{display:grid;grid-template-columns:repeat(5,38px);gap:0;justify-content:center;border-left:1px solid #cbd5e1;border-top:1px solid #cbd5e1;width:max-content;margin:0 auto;background:#fff}
.px{width:38px;height:38px;border-radius:0;border-right:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1;background:#fff;transition:.25s}.px.on{background:#1d4ed8}.px.mid{background:#93c5fd}.px.window{box-shadow:inset 0 0 0 3px #f59e0b;z-index:3}.px.edge{background:#334155}.px.blank{background:#f8fafc}
.progress{position:absolute;left:34px;right:34px;bottom:22px;height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden}.bar{height:100%;width:0;background:linear-gradient(90deg,#2563eb,#0f766e);border-radius:999px;transition:.35s}
.nav{position:absolute;right:34px;bottom:42px;display:flex;align-items:center;gap:9px;z-index:20}.nav button{border:1px solid #cbd5e1;background:#fff;border-radius:14px;padding:8px 13px;font-weight:900;cursor:pointer}.count{display:flex;align-items:center;gap:4px;font-weight:900;color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:14px;padding:7px 10px}.count input{width:42px;border:0;background:transparent;color:#0f172a;font:inherit;font-weight:900;text-align:right;outline:none}.count input::-webkit-outer-spin-button,.count input::-webkit-inner-spin-button{margin:0}
.dots{position:absolute;left:50%;bottom:42px;transform:translateX(-50%);display:flex;gap:6px;z-index:20}.dot{width:7px;height:7px;border-radius:999px;background:#cbd5e1}.dot.active{width:22px;background:#2563eb}
.quote{font-size:42px;line-height:1.35;font-weight:900;letter-spacing:-.045em;color:#0f172a;margin:0}.quote b{color:#1d4ed8}.question{font-size:42px;font-weight:900;line-height:1.28;letter-spacing:-.04em}.answer-box{min-height:130px;border:2px dashed #cbd5e1;border-radius:28px;padding:24px;background:#fff;color:#94a3b8;font-size:22px;font-weight:800}
.soft-bars{display:flex;align-items:end;justify-content:center;gap:22px;height:260px}.soft-bar{width:90px;border-radius:20px 20px 8px 8px;background:#dbeafe;border:1px solid #bfdbfe;display:flex;align-items:flex-end;justify-content:center;padding-bottom:12px;font-weight:900;color:#1d4ed8;transition:.7s;height:44px}.soft-bar.pick{background:#dcfce7;color:#15803d;border-color:#86efac}
.slider-row{display:grid;grid-template-columns:180px 1fr 76px;gap:18px;align-items:center;margin:18px 0;font-weight:900}.slider-row input{accent-color:#2563eb}.pill{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-weight:900;padding:8px 12px}.loss{font-size:54px;font-weight:900;color:#1d4ed8;text-align:center}.try-table{width:100%;border-collapse:collapse;font-size:16px}.try-table th,.try-table td{border:1px solid #dbe4f0;padding:12px;text-align:left}.try-table th{background:var(--cloud);font-weight:900}.try-table td{background:#fff;font-weight:700;color:#334155}
.icon-stack{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.icon-card{background:#fff;border:1px solid #dbe4f0;border-radius:24px;padding:22px;min-height:148px}.icon-card h3{margin:0 0 8px;font-size:22px}.icon-card p{margin:0;color:#64748b;font-weight:700;line-height:1.55}.page-mark{position:absolute;top:38px;right:48px;color:#94a3b8;font-weight:900;font-size:14px}.print-hint{position:absolute;left:46px;bottom:40px;color:#94a3b8;font-size:13px;font-weight:700}
@keyframes pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}.pulse{animation:pulse .8s ease infinite}

.bullets{list-style:none;padding:0;margin:0;display:grid;gap:14px}
.bullets li{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:start;background:#fff;border:1px solid #dbe4f0;border-radius:20px;padding:16px 18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.bullets b{font-size:16px;color:#1d4ed8}
.bullets span{font-size:17px;line-height:1.55;color:#475569;font-weight:700}
.compare-wrap{display:grid;grid-template-columns:1.1fr auto .95fr;gap:18px;align-items:center}
.mini-stack{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.mini-panel{background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:12px}
.mini-panel p,.matrix-title{margin:0 0 8px;text-align:center;font-size:14px;color:#64748b;font-weight:900}
.m5{grid-template-columns:repeat(5,52px)} .m7{grid-template-columns:repeat(7,40px)} .m2 .cell{height:64px}.m3 .cell{height:58px}.m4 .cell{height:54px}.m5 .cell{height:52px}.m7 .cell{height:40px}
.cell.sm{height:50px;font-size:18px;border-radius:0}.cell.tiny{height:38px;font-size:14px;border-radius:0}
.cell.pad{background:#eef2ff;color:#94a3b8;border-style:dashed}
.cell.pad.hot{background:#dbeafe;color:#1d4ed8;border-style:solid;box-shadow:inset 0 0 0 2px #2563eb;z-index:2}
.matrix-box{display:grid;justify-content:center;gap:10px}
.size-note{font-size:16px;color:#475569;font-weight:800;text-align:center;margin-top:12px;line-height:1.5}
.formula-lite{background:#fff;border:1px solid #dbe4f0;border-radius:18px;padding:16px 18px;font-size:21px;font-weight:900;color:#0f172a;text-align:center}
.legend{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}.legend span{background:#fff;border:1px solid #dbe4f0;border-radius:999px;padding:7px 12px;font-size:14px;font-weight:800;color:#475569}.triple-stack{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tiny-label{margin:0 0 8px;text-align:center;font-size:14px;color:#475569;font-weight:900}.sum-pill{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:44px;border-radius:14px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:20px;font-weight:900}.sum-pill.active{background:#dcfce7;border-color:#86efac;color:#15803d}.note{font-size:16px;color:#64748b;font-weight:700;line-height:1.6}


.conv-layout{display:grid;grid-template-columns:1fr .62fr 1fr;gap:22px;align-items:center}
.filter-card{background:#fff;border:1px solid #dbe4f0;border-radius:20px;padding:16px;display:grid;gap:10px;justify-items:center}
.window-note{font-size:15px;font-weight:800;color:#475569;text-align:center;line-height:1.5}
.output-title{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px}.output-title span{font-size:14px;font-weight:900;color:#64748b}


.math{font-family:'Noto Sans KR',sans-serif;background:#0f172a;color:#fff;border-radius:22px;padding:18px 22px;font-size:26px;font-weight:900;text-align:center;letter-spacing:-.02em;line-height:1.45}
.math.light{background:#fff;color:#0f172a;border:1px solid #dbe4f0}
.cnn-flow{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.cnn-block{background:#fff;border:2px solid #dbe4f0;border-radius:22px;min-width:125px;padding:18px 16px;text-align:center;font-weight:900;font-size:17px;box-shadow:0 10px 26px rgba(15,23,42,.06);transition:.35s}
.cnn-block small{display:block;color:#64748b;font-size:13px;margin-top:5px;font-weight:800}
.cnn-block.active{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;transform:translateY(-8px)}
.stacked-map{display:flex;gap:8px;align-items:center;justify-content:center;min-height:150px}
.map-card{width:86px;height:86px;border:1px solid #cbd5e1;background:#fff;box-shadow:8px 8px 0 #dbeafe;display:grid;place-items:center;font-weight:900;color:#1d4ed8;transition:.35s}
.map-card.active{background:#dbeafe;transform:translateY(-6px)}

@media(max-width:900px){.slide{padding:42px 38px 58px}.title{font-size:42px}.two{grid-template-columns:1fr}.quote,.question{font-size:32px}.m3{grid-template-columns:repeat(3,52px)}.cell{height:50px}.card{padding:22px}.nav{right:18px}.dots{display:none}}
