/* ===== BOJE (promeni ovde i menja se na celom sajtu) ===== */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5f6368;
  --border: #e6e6e6;
  --card: #fafafa;
  --accent: #1a1a1a;
  --green-bg: #cdeedb;  --green-text: #1d6b40;
  --yellow-bg: #fbe3a6; --yellow-text: #8a5800;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .stat-big, .big { font-family: "Inter Tight", "Inter", sans-serif; }
a { color: var(--text); }

main { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ===== HERO ===== */
.hero {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  padding: 80px 0 40px;
}
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #3c4043; margin: 0;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin: 14px 0 18px;
}
.lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); color: #3c4043; margin: 0; line-height: 1.55; }

/* Marker efekat iza reči */
mark { padding: 0 4px; border-radius: 3px; font-weight: 600; }
.hl-green  { background: linear-gradient(transparent 45%, var(--green-bg) 45%);  color: var(--green-text); }
.hl-yellow { background: linear-gradient(transparent 45%, var(--yellow-bg) 45%); color: var(--yellow-text); }

.hero-buttons { display: flex; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-block; background: #1a1a1a; color: #fff; text-decoration: none;
  padding: 14px 24px; border-radius: 8px; font-weight: 600;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.email-link { color: var(--text); text-underline-offset: 4px; }

.avatar {
  width: 170px; height: 170px; border-radius: 50%;
  border: 6px solid #fff; box-shadow: 0 4px 20px rgba(0,0,0,.12);
  image-rendering: pixelated;   /* pikseli ostaju oštri */
}

/* ===== BROJEVI ===== */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.stat { padding: 28px 24px 28px 0; }
.stat + .stat { border-left: 1px solid var(--border); padding-left: 24px; }
.stat-big { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-text { display: block; color: var(--muted); font-size: 0.95rem; margin-top: 6px; }

/* ===== OSTALE SEKCIJE (radimo ih posle) ===== */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.project { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.project h3 { margin: 12px 0 8px; }
.project p { color: var(--muted); font-size: 0.95rem; margin: 8px 0; }
.project-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; border: 1px solid var(--border); border-radius: 20px; padding: 2px 10px; color: var(--muted); }
.outcome { color: var(--text) !important; font-weight: 600; }
.job { padding: 4px 0 4px 20px; border-left: 2px solid var(--text); margin-bottom: 28px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.job h3 { margin: 0; }
.tag { background: #f1f3f4; padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; color: var(--muted); }
.role { color: var(--muted); margin: 4px 0 8px; font-weight: 500; }
.job ul { color: #3c4043; padding-left: 18px; margin: 0; }
.job li { margin-bottom: 6px; }
.footer { text-align: center; padding: 72px 24px; border-top: 1px solid var(--border); }
.footer h2 { font-size: 2.4rem; margin: 0 0 8px; letter-spacing: -0.02em; }
.small { color: var(--muted); font-size: 0.85rem; }

/* ===== MOBILNI ===== */
@media (max-width: 680px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .avatar { order: -1; width: 120px; height: 120px; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { border-left: none; padding: 20px 0; }
  .stat + .stat { border-top: 1px solid var(--border); }
}

/* ===== FUNNEL IGRA ===== */
.game-section { padding: 24px 0 56px; }
.game-title { font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.game-sub { color: var(--muted); margin: 0 0 20px; }
.game-sub a { color: var(--text); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.game-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #f6f8f7; }
#funnel-game { display: block; width: 100%; height: auto; cursor: pointer; outline: none; touch-action: manipulation; }
.game-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; border-top: 1px solid var(--border); background: #fff; font-size: 0.85rem; color: var(--muted);
}
.easy { display: flex; align-items: center; gap: 6px; cursor: pointer; }

.chapters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.chapter {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fff;
  transition: all .4s ease; position: relative;
}
.chapter h3 { font-size: 1rem; margin: 8px 0 6px; }
.chapter p  { font-size: 0.85rem; color: var(--muted); margin: 0; }
.ch-stage { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-text); }

/* zaključano poglavlje */
.chapter:not(.open) { background: #f4f4f4; }
.chapter:not(.open) h3, .chapter:not(.open) p { filter: blur(5px); user-select: none; }
.chapter:not(.open)::after { content: "🔒"; position: absolute; top: 12px; right: 12px; font-size: 0.9rem; }
.chapter.open { border-color: var(--green-text); box-shadow: 0 4px 16px rgba(29,107,64,.08); }
.chapter.just-opened { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.95); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ===== WHICH AD WON? ===== */
.quiz { border: 1px solid var(--border); border-radius: 14px; padding: 22px; background: #fff; }
.q-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.q-round { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-text); }
.q-score { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.q-progress { display: flex; gap: 6px; margin: 10px 0 14px; }
.q-progress span { height: 4px; flex: 1; border-radius: 4px; background: #e6e6e6; }
.q-progress span.done { background: var(--green-text); }
.q-progress span.miss { background: #e11d48; }
.q-question { font-family: "Inter Tight", Inter, sans-serif; font-size: 1.35rem; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }

.q-ads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ad {
  position: relative; border: 2px solid var(--border); border-radius: 12px; overflow: hidden;
  background: #fff; cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit;
  transition: transform .15s, border-color .15s, opacity .3s, box-shadow .15s;
}
.ad:hover:not(:disabled) { transform: translateY(-3px); border-color: #1a1a1a; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.ad:disabled { cursor: default; }
.ad.winner { border-color: var(--green-text); box-shadow: 0 0 0 3px var(--green-bg); }
.ad.loser { opacity: .45; }
.ad-letter {
  position: absolute; top: 10px; left: 10px; z-index: 2; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; color: #1a1a1a; font-weight: 800; display: grid; place-items: center; font-size: .9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.ad-badge {
  position: absolute; bottom: 14px; right: 14px; z-index: 2; background: var(--green-text); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 20px;
}
.ad-visual {
  aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; text-align: center;
  color: #fff; padding: 16px; overflow: hidden;
}
.ad-visual.square { aspect-ratio: 1 / 1; max-height: 260px; width: 100%; }
.ad-format {
  position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.ad-time {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.ad-body { padding: 12px 14px 14px; }
.ad-title { font-weight: 700; font-size: .95rem; margin: 0 0 4px; }
.ad-desc { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.ad-cta { display: inline-block; background: #1a1a1a; color: #fff; font-size: .8rem; font-weight: 700; padding: 7px 14px; border-radius: 6px; }
.ad-cta.soft { background: #e8eaed; color: #1a1a1a; }

/* vizuelni elementi unutar oglasa */
.v-sea { background: linear-gradient(180deg, #0b3a5b 0%, #145e8c 55%, #1b7bb3 100%); }
.v-dark { background: radial-gradient(circle at 50% 40%, #2b2b2b, #0d0d0d); }
.v-cine { background: linear-gradient(135deg, #3b1d5e, #b3476b 55%, #f2a65a); }
.v-busy { background: linear-gradient(135deg, #14532d, #1e3a8a); }
.big-emoji { font-size: 3rem; line-height: 1; }
.v-kicker { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.v-logo { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: .15em; }
.v-line { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1.15; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.v-small { font-size: .78rem; opacity: .9; margin-top: 6px; }
.v-hud { position: absolute; top: 10px; left: 46px; right: 10px; display: flex; gap: 8px; align-items: center; font-size: .65rem; font-weight: 700; }
.v-hp { flex: 1; height: 6px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; }
.v-hp i { display: block; height: 100%; width: 64%; background: #4ade80; }
.v-caption { position: absolute; bottom: 34px; left: 12px; right: 12px; background: rgba(0,0,0,.75); padding: 6px 8px; border-radius: 6px; font-weight: 800; font-size: .9rem; }
.v-muted { position: absolute; top: 10px; right: 10px; font-size: .9rem; }
.v-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 8px; }
.v-tags span { font-size: .62rem; font-weight: 700; background: rgba(255,255,255,.2); padding: 2px 6px; border-radius: 4px; }

.q-explain {
  margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: #f3faf6; border: 1px solid var(--green-bg);
  animation: pop .4s ease;
}
.q-explain.wrong { background: #fff5f6; border-color: #fbd0d8; }
.q-explain h4 { margin: 0 0 6px; font-size: 1rem; }
.q-explain p { margin: 0 0 12px; color: #3c4043; font-size: .93rem; }
.q-lesson { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-text); }
.q-next { font: inherit; font-weight: 700; background: #1a1a1a; color: #fff; border: none; border-radius: 8px; padding: 10px 18px; cursor: pointer; }
.q-final { text-align: center; padding: 20px 10px; }
.q-final .big { font-family: "Inter Tight", Inter, sans-serif; font-size: 3rem; font-weight: 800; display: block; }
.q-final p { color: var(--muted); max-width: 520px; margin: 8px auto 20px; }
.q-final .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.q-lessons { text-align: left; max-width: 520px; margin: 0 auto 20px; padding-left: 18px; color: #3c4043; font-size: .9rem; }

@media (max-width: 640px) {
  .q-ads { grid-template-columns: 1fr; }
  .quiz { padding: 16px; }
}

/* (stari stilovi igara ispod se više ne koriste) */
/* ===== SNAKE ===== */
#snake-game { display: block; width: 100%; height: auto; cursor: pointer; outline: none; touch-action: none; }
.playbook-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ===== FUNNEL IGRA v2 ===== */
.canvas-box { position: relative; }
#funnel-game { image-rendering: auto; }
.controls-right { display: flex; align-items: center; gap: 14px; }
.icon-btn { font: inherit; font-size: .82rem; font-weight: 600; background: #f1f3f4; border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; cursor: pointer; color: var(--text); }

.game-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.9); text-align: center; padding: 16px; animation: pop .35s ease;
}
.game-overlay[hidden] { display: none; }
.go-title { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: clamp(1.3rem, 3.5vw, 1.9rem); margin: 0; }
.go-sub { color: var(--muted); margin: 4px 0 14px; font-size: .95rem; }
.go-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.go-stat { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 8px 14px; min-width: 96px; }
.go-stat b { display: block; font-family: "Inter Tight", Inter, sans-serif; font-size: 1.3rem; }
.go-stat span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.go-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.go-btn { font: inherit; font-size: .88rem; font-weight: 700; padding: 9px 16px; border-radius: 8px; cursor: pointer; text-decoration: none; border: 1px solid #1a1a1a; }
.go-btn.dark { background: #1a1a1a; color: #fff; }
.go-btn.light { background: #fff; color: #1a1a1a; }
.go-btn.li { background: #0a66c2; border-color: #0a66c2; color: #fff; }

.skills-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fff; flex-wrap: wrap; }
.skills-label { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.skills-list { display: flex; gap: 6px; flex-wrap: wrap; }
.skill { font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: #f1f3f4; color: #b0b4b8; border: 1px dashed #d5d8db; transition: all .3s; }
.skill.on { background: #fdf3d0; color: #8a5800; border: 1px solid #f5c542; }
.skill.just { animation: pop .5s ease; }

.chapters-8 { grid-template-columns: repeat(4, 1fr); }
.chapter-final { border-style: dashed; }
.chapter-final.open { border-color: #ca8a04; background: #fffbeb; }
.chapter-final a { color: var(--text); font-weight: 700; }
@media (max-width: 760px) { .chapters-8 { grid-template-columns: repeat(2, 1fr); } }

/* ===== BOSS FIGHTS (RPG) ===== */
.rpg { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.rpg-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: .8rem; font-weight: 700; }
.rpg-top .boss-dots { display: flex; gap: 6px; align-items: center; }
.boss-dot { font-size: 1.1rem; filter: grayscale(1); opacity: .45; transition: all .3s; }
.boss-dot.current { filter: none; opacity: 1; transform: scale(1.2); }
.boss-dot.beaten { filter: none; opacity: 1; }
.boss-dot.beaten::after { content: "✓"; font-size: .7rem; color: var(--green-text); margin-left: 1px; }

.rpg-arena {
  position: relative; height: 330px; overflow: hidden;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 50%, #ecfdf5 50%, #d1fae5 100%);
}
.rpg-arena.dragon { background: linear-gradient(180deg, #fee2e2 0%, #fff7ed 55%, #fef3c7 55%, #fde68a 100%); }
.platform { position: absolute; width: 190px; height: 34px; border-radius: 50%; background: rgba(21, 128, 61, .18); }
.platform.p-boss { right: 60px; top: 122px; }
.platform.p-player { left: 50px; bottom: 18px; }

.sprite { position: absolute; font-size: 96px; line-height: 1; transition: transform .2s, opacity .6s, filter .2s; user-select: none; }
.sprite.boss { right: 100px; top: 32px; animation: bob 2.4s ease-in-out infinite; }
.sprite.player { left: 92px; bottom: 34px; width: 104px; height: 104px; border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.15); background: #fff; overflow: hidden; }
.sprite.player img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.sprite.hit { animation: hit .45s ease; filter: brightness(2) saturate(0); }
@keyframes hit { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-12px); } 40% { transform: translateX(10px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.sprite.lunge-left { transform: translateX(-40px) scale(1.05); }
.sprite.lunge-right { transform: translateX(40px) scale(1.05); }
.sprite.fainted { opacity: 0; transform: translateY(40px) scale(.6) !important; animation: none; }

.plate {
  position: absolute; background: #fff; border: 3px solid #1a1a1a; border-radius: 10px; padding: 8px 12px; width: 260px;
  box-shadow: 4px 4px 0 rgba(0,0,0,.12);
}
.plate.boss-plate { left: 24px; top: 20px; }
.plate.player-plate { right: 24px; bottom: 22px; }
.plate-name { display: flex; justify-content: space-between; font-weight: 800; font-size: .92rem; }
.plate-name small { font-weight: 700; color: var(--muted); }
.plate-sub { font-size: .7rem; color: var(--muted); margin: 1px 0 5px; }
.bar { height: 8px; background: #e5e7eb; border-radius: 6px; overflow: hidden; margin-top: 3px; }
.bar i { display: block; height: 100%; border-radius: 6px; transition: width .6s ease, background .3s; }
.bar.hp i { background: #22c55e; }
.bar.hp i.mid { background: #f59e0b; }
.bar.hp i.low { background: #ef4444; }
.bar.xp { height: 5px; }
.bar.xp i { background: #3b82f6; }
.bar-label { display: flex; justify-content: space-between; font-size: .66rem; font-weight: 700; color: var(--muted); margin-top: 3px; }

.dmg { position: absolute; font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 1.6rem; pointer-events: none;
  animation: dmg 1s ease forwards; text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; }
.dmg.super { color: #dc2626; font-size: 2rem; }
.dmg.weak { color: #6b7280; }
.dmg.normal { color: #1a1a1a; }
.dmg.heal { color: #16a34a; }
@keyframes dmg { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-50px) scale(1); opacity: 0; } }

.rpg-bottom { display: grid; grid-template-columns: 1.1fr 1fr; border-top: 3px solid #1a1a1a; }
.rpg-msg { padding: 16px 18px; font-size: .98rem; line-height: 1.5; min-height: 120px; border-right: 1px solid var(--border); }
.rpg-msg b { color: var(--text); }
.rpg-msg .eff-super { color: #dc2626; font-weight: 800; }
.rpg-msg .eff-weak { color: #6b7280; font-weight: 700; }
.rpg-moves { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; align-content: start; }
.move {
  font: inherit; font-size: .84rem; font-weight: 700; text-align: left; padding: 9px 10px; border-radius: 8px; cursor: pointer;
  background: #fff; border: 2px solid #1a1a1a; box-shadow: 3px 3px 0 #1a1a1a; transition: transform .1s, box-shadow .1s;
}
.move:hover:not(:disabled) { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #1a1a1a; }
.move:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1a1a1a; }
.move:disabled { opacity: .45; cursor: default; }
.move.wide { grid-column: 1 / -1; background: #1a1a1a; color: #fff; text-align: center; }
.move small { display: block; font-weight: 500; font-size: .68rem; color: var(--muted); margin-top: 1px; }

.trophies { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.trophy.open { border-color: #ca8a04; background: #fffbeb; }
.trophy .ch-stage { color: #8a5800; }

@media (max-width: 680px) {
  .rpg-arena { height: 310px; }
  .sprite { font-size: 56px; }
  .sprite.boss { right: 24px; top: 78px; }
  .sprite.player { left: 24px; width: 76px; height: 76px; }
  .platform.p-boss { right: 4px; top: 124px; width: 110px; }
  .platform.p-player { left: 10px; width: 130px; }
  .plate { width: 180px; padding: 6px 9px; }
  .plate-name { font-size: .82rem; }
  .plate.boss-plate { left: 10px; top: 12px; }
  .plate.player-plate { right: 10px; bottom: 12px; }
  .rpg-bottom { grid-template-columns: 1fr; }
  .rpg-msg { border-right: none; border-bottom: 1px solid var(--border); min-height: 96px; }
}

/* ===== UA RUNNER ===== */
#runner-game { display: block; width: 100%; height: auto; cursor: pointer; outline: none; touch-action: none; }
.run-cards { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.run-card h3 { font-size: .95rem; }

/* ===== CAREER LADDER ===== */
#ladder-game { display: block; width: 100%; height: auto; cursor: none; outline: none; touch-action: none; }
.ladder-cards { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ladder-card h3 { font-size: .95rem; }

/* ===== FLAPPY KARIJERA (Stephen stil) ===== */
.fl-section { padding: 48px 0 56px; }
.fl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.fl-title { font-family: "Inter Tight", Inter, sans-serif; font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.fl-head-right { display: flex; gap: 20px; align-items: baseline; color: var(--muted); font-size: .95rem; white-space: nowrap; }
.fl-head-right a { color: #9aa0a6; text-underline-offset: 4px; }

.fl-stage { position: relative; line-height: 0; }
#fl-canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; cursor: pointer; touch-action: manipulation; }

.fl-toast {
  position: absolute; top: 14px; right: 14px; width: min(420px, calc(100% - 28px)); line-height: 1.45;
  display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 14px 18px;
  border-left: 4px solid #c9962b; box-shadow: 0 8px 24px rgba(0,0,0,.12);
  animation: flToast .45s cubic-bezier(.2,.9,.3,1.2);
}
.fl-toast[hidden] { display: none; }
@keyframes flToast { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.fl-toast-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fdf3dc; display: grid; place-items: center; font-size: 1.15rem; }
.fl-toast-kicker { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b8862b; }
.fl-toast-title { margin: 2px 0 4px; font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.fl-toast-text { margin: 0; font-size: .88rem; color: #5f6368; }

.fl-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(370px, calc(100% - 40px));
  background: rgba(255,255,255,.94); border-radius: 12px; padding: 26px 24px 18px; text-align: center; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.fl-card[hidden] { display: none; }
.fl-card .k { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #80868b; }
.fl-card h3 { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 1.75rem); letter-spacing: -0.02em; margin: 10px 0 10px; }
.fl-card p.t { margin: 0 0 18px; color: #5f6368; font-size: .95rem; }
.fl-btn { display: inline-block; font: inherit; font-weight: 600; font-size: .95rem; background: #1f1f1f; color: #fff; border: none; border-radius: 6px; padding: 12px 22px; cursor: pointer; text-decoration: none; }
.fl-btn.full { display: block; width: 100%; }
.fl-link { display: inline-block; margin-top: 14px; font: inherit; font-size: .95rem; color: var(--text); background: none; border: none; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fl-cv { display: block; margin-top: 16px; font-size: .78rem; color: #80868b; }
.fl-cv a { color: #80868b; }

.fl-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; font-size: .88rem; color: #5f6368; }
.fl-options summary { cursor: pointer; list-style: none; color: #5f6368; }
.fl-options summary::before { content: "▶ "; font-size: .7rem; }
.fl-options[open] summary::before { content: "▼ "; }
.fl-options label { display: block; margin-top: 6px; cursor: pointer; text-align: right; }

@media (max-width: 600px) {
  .fl-toast { padding: 10px 12px; gap: 10px; top: 8px; right: 8px; }
  .fl-toast-icon { width: 30px; height: 30px; font-size: .9rem; }
  .fl-toast-title { font-size: .95rem; }
  .fl-toast-text { display: none; }
  .fl-card { padding: 16px 14px 12px; }
  .fl-card p.t { margin-bottom: 10px; font-size: .85rem; }
}
.fl-toast { z-index: 3; }
.fl-card { z-index: 2; }
@media (max-width: 600px) {
  .fl-card, .fl-toast { position: static; transform: none; width: 100%; margin-top: 10px; box-shadow: none; border: 1px solid var(--border); }
  .fl-toast { border-left: 4px solid #c9962b; }
  .fl-toast-text { display: block; }
  .fl-card { background: #fff; }
}

.fl-sub { margin: 6px 0 0; color: #80868b; font-size: .88rem; line-height: 1.5; }

/* ===== ISKUSTVO (Stephen stil) ===== */
.xp-section { padding: 56px 0; border-top: 1px solid var(--border); }
.xp-section .fl-title { margin-bottom: 28px; }
.xp-company { margin-bottom: 34px; }
.xp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.xp-head h3 { font-family: "Inter Tight", Inter, sans-serif; font-size: 1.25rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.xp-pill { background: #f1f3f4; color: #5f6368; font-size: .8rem; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.xp-desc { color: #9aa0a6; font-size: .9rem; margin: 2px 0 10px; }
.xp-role { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--green-text); font-weight: 600; margin: 14px 0 6px; }
.xp-years { font-size: .85rem; font-weight: 600; }
.xp-company ul { list-style: none; padding: 0; margin: 0; }
.xp-company li { position: relative; padding-left: 16px; margin-bottom: 6px; color: #3c4043; line-height: 1.55; }
.xp-company li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: #8fcfa9; }
.xp-company li b { color: var(--text); }

/* ===== TIMELINE (Stephen stil) ===== */
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 30px; width: 2px; background: #cfe3d6; }
.tl-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; margin-bottom: 40px; }
.tl-logo {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  color: #fff; font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  box-shadow: 0 0 0 4px #fff;
}
.tl-logo-light { background: #fff; color: #1a1a1a; border: 1px solid var(--border); }
.tl-body h3 { font-family: "Inter Tight", Inter, sans-serif; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 2px; }
.tl-meta { margin: 0 0 12px; color: #5f6368; font-size: .92rem; }
.tl-meta b { color: var(--green-text); margin-right: 8px; }
.tl-text { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.8; color: #3c4043; max-width: 640px; }
.tl-text u { text-decoration: none; border-bottom: 2px solid #9cc9ae; padding-bottom: 1px; }
.tl-result { margin: 0; font-size: .88rem; font-weight: 700; color: var(--green-text); }
@media (max-width: 600px) {
  .tl-item { grid-template-columns: 36px 1fr; gap: 14px; }
  .tl-logo { width: 36px; height: 36px; font-size: .72rem; }
  .tl::before { left: 17px; }
  .tl-text { font-size: 1rem; }
}
