:root {
  --bg: #061018;
  --card: #0d1c28;
  --line: rgba(255, 255, 255, 0.1);
  --t: #f4f8fb;
  --m: #9bb0c0;
  --a: #2ec4a0;
  --b: #5b9dff;
  --c: #ff7a59;
  --f: "Outfit", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--f);
  background: var(--bg);
  color: var(--t);
  overflow: hidden;
}

.top {
  position: fixed;
  z-index: 30;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(6, 16, 24, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.top strong { color: var(--a); font-weight: 700; }
#n { color: var(--m); font-weight: 600; font-variant-numeric: tabular-nums; }

.prog {
  position: fixed;
  z-index: 31;
  top: 48px; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.prog span {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--a), var(--b));
  transition: width .25s ease;
}

#deck {
  height: 100%;
  padding-top: 51px;
  padding-bottom: 64px;
}

.s {
  display: none;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.s.on { display: block; animation: fade .3s ease; }

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--a);
  color: #042018;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}
h1 span { color: var(--b); }

h2 {
  font-size: clamp(1.45rem, 5.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }

/* COVER */
.cover {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
}
.cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6,16,24,.35) 0%, rgba(6,16,24,.55) 40%, rgba(6,16,24,.96) 78%);
}
.cover-body {
  position: relative;
  z-index: 2;
  padding: 20px 16px 24px;
  max-width: 640px;
}
.cover-body p {
  color: #c5d5e0;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 14px;
  max-width: 34rem;
}
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 0.82rem;
  font-weight: 600;
}

/* PAD SLIDES */
.pad {
  padding: 18px 16px 28px;
  max-width: 960px;
  margin: 0 auto;
}

.cards {
  display: grid;
  gap: 10px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.c1 { background: rgba(46,196,160,.15); color: var(--a); }
.c2 { background: rgba(91,157,255,.15); color: var(--b); }
.c3 { background: rgba(255,122,89,.15); color: var(--c); }

.card b {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.card p {
  color: var(--m);
  font-size: 0.9rem;
  line-height: 1.45;
}
.card em { color: var(--t); font-style: normal; font-weight: 600; }
.src {
  margin-top: 12px;
  font-size: 0.72rem;
  color: rgba(155,176,192,.65);
}

.list { display: grid; gap: 10px; }
.li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px;
}
.li img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.li p {
  color: var(--m);
  font-size: 0.86rem;
  line-height: 1.4;
}

.grid2 {
  display: grid;
  gap: 10px;
}
.box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  border-top: 3px solid var(--a);
}
.box span {
  font-size: 0.72rem;
  font-weight: 800;
  color: #e8c07a;
  letter-spacing: .06em;
}
.box p {
  color: var(--m);
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 6px;
}

/* FINALE */
.finale {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
}
.finale > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.finale-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,16,24,.45), rgba(6,16,24,.95) 70%);
}
.finale-body {
  position: relative;
  z-index: 2;
  padding: 20px 16px 28px;
  max-width: 640px;
}
.finale-body ul {
  list-style: none;
  margin: 14px 0 18px;
  display: grid;
  gap: 8px;
}
.finale-body li {
  color: #c5d5e0;
  font-size: 0.98rem;
  padding-left: 22px;
  position: relative;
  line-height: 1.35;
}
.finale-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--a);
}
.bye {
  font-size: 1.35rem;
  font-weight: 800;
}

.bot {
  position: fixed;
  z-index: 30;
  left: 0; right: 0; bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(6,16,24,.94);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.bot button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--t);
  font-size: 1.5rem;
  cursor: pointer;
}
.bot button:disabled { opacity: .3; }
#dots { display: flex; gap: 6px; align-items: center; }
#dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.25);
  padding: 0;
  font-size: 0;
}
#dots button.on {
  width: 20px;
  background: var(--a);
}

@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .li { grid-template-columns: 120px 1fr; }
  .li img { width: 120px; height: 100px; }
  .cover-body, .finale-body, .pad {
    padding-left: 28px;
    padding-right: 28px;
  }
  .cover-body { padding-bottom: 40px; }
}
