:root {
  --ink: #41213F;
  --ink-hover: #5C3157;
  --plum: #7A3E6F;
  --muted: #6B5468;
  --faint: #76606F;
  --cream: #F7EFDC;
  --sand: #EFE4CC;
  --sand-deep: #E6D8BC;
  --line: rgba(65, 33, 63, .14);
  --line-strong: rgba(65, 33, 63, .35);
  --mono: 'IBM Plex Mono', monospace;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--plum); }
input, textarea, select, button { font: inherit; }
::placeholder { color: #8f7a8b; }
h1, h2, h3, p { margin: 0; }
img { display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--plum); }
.lead { font-size: 15px; line-height: 1.55; color: var(--muted); }
.icon-accent { color: var(--plum); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-radius: 4px; font-size: 15px;
  transition: all .15s; cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--cream); font-weight: 500; border: none; }
.btn-primary:hover { background: var(--ink-hover); color: var(--cream); }
.btn-outline { border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); background: rgba(65, 33, 63, .06); color: var(--ink); }
.btn-light { background: var(--cream); color: var(--ink); font-weight: 500; }
.btn-light:hover { background: #fff; color: var(--ink); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.pill {
  font-family: var(--mono); font-size: 12px;
  padding: 3px 9px; border-radius: 999px;
  background: var(--ink); color: var(--cream);
}

/* Header */
.site-header {
  max-width: 1280px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.site-header .logo img { height: 52px; }
.site-nav { display: flex; gap: 28px; font-size: 15px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active { font-weight: 500; }
.insta-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-size: 14px; transition: all .15s;
}
.insta-btn:hover { border-color: var(--ink); background: rgba(65, 33, 63, .06); color: var(--ink); }
.insta-btn i { font-size: 17px; }

/* Hero */
.hero {
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 {
  font-weight: 500; font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02; letter-spacing: -.03em; text-wrap: balance;
}
.hero-copy > p { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 460px; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
  display: flex; flex-direction: column; background: var(--sand);
  border-radius: 10px; overflow: hidden; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.hero-card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(65, 33, 63, .14); color: var(--ink); }
.hero-card .cover { aspect-ratio: 16/9; background: var(--sand-deep); }
.hero-card .cover i { font-size: 56px; }
.hero-card .body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.hero-card .title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
.hero-card .excerpt { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.hero-card .cta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; padding-top: 4px; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: 100%; max-width: 480px; }

.cover {
  border-radius: 8px; overflow: hidden; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover i { font-size: 40px; color: var(--plum); }

.meta { display: flex; gap: 10px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.meta .cat { color: var(--plum); }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap {
  padding-top: 22px; padding-bottom: 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 32px;
}
.strip-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.strip-item i { font-size: 24px; color: var(--plum); }

/* Split sections */
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split-head { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.split-head .lead { max-width: 280px; }
.section-title { font-weight: 500; font-size: 32px; letter-spacing: -.02em; }
.section-title-lg { font-weight: 500; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }

#jogos { padding-top: 88px; padding-bottom: 96px; }
.games { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.game-card {
  min-width: 0; background: var(--sand); border-radius: 8px;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px;
}
.game-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.game-top > div { display: flex; flex-direction: column; gap: 10px; }
.game-top .pill { align-self: flex-start; padding: 4px 10px; }
.game-top h3 { font-weight: 500; font-size: 28px; letter-spacing: -.02em; }
.game-top p { font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 440px; text-wrap: pretty; }
.game-top > i { font-size: 40px; color: var(--plum); }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.progress > div { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.progress .bar { height: 6px; border-radius: 3px; background: rgba(65, 33, 63, .18); }
.progress .done .bar { background: var(--ink); }
.progress .current .bar { background: linear-gradient(90deg, var(--ink) 50%, rgba(65, 33, 63, .18) 50%); }
.progress .current span { font-weight: 600; }
.progress .todo span { color: var(--faint); }
.game-card .link-arrow { align-self: flex-start; }
.game-img { margin: calc(-1 * clamp(24px, 3vw, 40px)) calc(-1 * clamp(24px, 3vw, 40px)) 0; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 8px 8px 0 0; }
.game-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.progress.finished .bar { background: var(--ink); }
.progress.paused { opacity: .55; }

/* News */
#novidades { padding-bottom: 96px; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; color: var(--ink); }
.post-card:hover { color: var(--plum); }
.post-card .cover { aspect-ratio: 16/10; }
.post-card h3 { font-weight: 500; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; text-wrap: pretty; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* Services */
#servicos { background: var(--ink); color: var(--cream); }
#servicos .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
#servicos .eyebrow, .on-dark-muted { color: rgba(247, 239, 220, .75); }
.services-head { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-end; }
.services-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.service {
  background: rgba(247, 239, 220, .06); border: 1px solid rgba(247, 239, 220, .14);
  border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: background .15s;
}
.service:hover { background: rgba(247, 239, 220, .1); }
.service > i { font-size: 34px; }
.service h3 { font-weight: 500; font-size: 20px; }
.service p { font-size: 15px; line-height: 1.55; color: rgba(247, 239, 220, .75); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tags span { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(247, 239, 220, .3); }
.process { display: flex; flex-direction: column; gap: 20px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px 40px; }
.step { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(247, 239, 220, .25); padding-top: 16px; }
.step .n { font-family: var(--mono); font-size: 12px; color: rgba(247, 239, 220, .75); }
.step strong { font-size: 18px; font-weight: 500; }
.step span:last-child { font-size: 15px; line-height: 1.5; color: rgba(247, 239, 220, .75); }

/* About */
#quem { padding-top: 96px; padding-bottom: 96px; }
.about { flex: 2 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.photo {
  flex: 0 1 300px; width: 300px; max-width: 100%; aspect-ratio: 4/5;
  border-radius: 8px; overflow: hidden; background: var(--sand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--faint); font-size: 14px; border: 1px dashed var(--line-strong);
}
.photo.has-img { border: none; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo i { font-size: 36px; color: var(--plum); }
.bio { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bio .name { font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.bio .role { font-size: 15px; color: var(--muted); }
.bio > div:first-child { display: flex; flex-direction: column; gap: 6px; }
.bio-text { display: flex; flex-direction: column; gap: 18px; }
.bio p { font-size: 17px; line-height: 1.6; text-wrap: pretty; }
.bio p + p { font-size: 16px; color: var(--muted); }
.facts { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; font-size: 15px; border-bottom: 1px solid var(--line); }
.facts dt { padding: 11px 24px 11px 0; border-top: 1px solid var(--line); color: var(--faint); }
.facts dd { margin: 0; padding: 11px 0; border-top: 1px solid var(--line); }

/* Contact */
#contato { background: var(--sand); }
#contato .wrap { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-info > p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 400px; }
.contact-links { display: flex; flex-direction: column; margin-top: 12px; border-bottom: 1px solid rgba(65, 33, 63, .18); }
.contact-links a { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(65, 33, 63, .18); font-size: 17px; overflow-wrap: anywhere; }
.contact-links i { font-size: 22px; color: var(--plum); }
.contact-form {
  flex: 1.2 1 380px; min-width: 0; background: var(--cream); border-radius: 8px;
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 12px 14px; border: 1px solid rgba(65, 33, 63, .25); border-radius: 4px;
  background: #fff; color: var(--ink); font-size: 15px; outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form button { align-self: flex-start; padding: 13px 22px; }

/* Footer */
.site-footer {
  max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint);
}
.site-footer.ruled { border-top: 1px solid var(--line); }
.site-footer > span:first-child { display: flex; align-items: center; gap: 14px; }
.site-footer img { height: 34px; opacity: .85; }
.site-footer .mono { font-size: 12px; }

/* Blog */
.blog-main { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.blog-intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.blog-intro h1 { font-weight: 500; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
.blog-intro p { font-size: 18px; line-height: 1.55; color: var(--muted); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(65, 33, 63, .3);
  background: transparent; color: var(--ink); font-weight: 500; font-size: 14px;
  cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: center; color: var(--ink); }
.featured:hover { color: var(--plum); }
.featured .cover { aspect-ratio: 16/10; }
.featured .cover i { font-size: 56px; }
.featured > div:last-child { display: flex; flex-direction: column; gap: 14px; }
.featured h2 { font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.featured p { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 480px; text-wrap: pretty; }
.featured .cta { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.rest { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); gap: 40px 24px; }
.empty { padding: 64px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; font-size: 18px; }
.empty i { font-size: 40px; color: var(--plum); }

.post-main { padding-top: clamp(32px, 5vw, 64px); padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.article { max-width: 720px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.back { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.back:hover { color: var(--ink); }
.article h1 { font-weight: 500; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.article .excerpt { font-size: 20px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sand); display: flex; align-items: center; justify-content: center; }
.avatar i { font-size: 20px; color: var(--plum); }
.byline > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.byline strong { font-size: 15px; font-weight: 500; }
.byline span { font-size: 13px; color: var(--faint); }
.article .cover-img { width: 100%; border-radius: 8px; }
.article-body { display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; }
.article-body h2 { margin-top: 16px; font-weight: 500; font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
.article-body p { text-wrap: pretty; }
.follow { margin-top: 16px; padding: 24px; border-radius: 8px; background: var(--sand); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 16px; }
.follow a { padding: 11px 16px; font-size: 14px; }
.more { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; border-top: 1px solid var(--line); }
.more h2 { font-weight: 500; font-size: 26px; letter-spacing: -.02em; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.more-item { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; color: var(--ink); }
.more-item:hover { color: var(--plum); }
.more-item .cover { aspect-ratio: 1; border-radius: 6px; }
.more-item .cover i { font-size: 28px; }
.more-item > div:last-child { display: flex; flex-direction: column; gap: 6px; }
.more-item .cat { font-family: var(--mono); font-size: 12px; color: var(--plum); }
.more-item .t { font-size: 18px; font-weight: 500; line-height: 1.3; }

[hidden] { display: none !important; }

/* Atalho secreto (Konami code): popup de login */
body.modal-open { overflow: hidden; }
.login-modal {
  position: fixed; inset: 0; z-index: 100; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(40, 18, 38, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s ease;
}
.login-modal[hidden] { display: none; }
.login-modal.show { opacity: 1; }
.login-modal-card {
  position: relative; width: 100%; max-width: 400px; background: var(--cream); color: var(--ink);
  border-radius: 14px; padding: 36px 32px 32px; display: flex; flex-direction: column; gap: 20px;
  box-shadow: 0 30px 80px rgba(20, 8, 18, .45);
  transform: translateY(16px) scale(.94); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.login-modal.show .login-modal-card { transform: none; }
.login-modal-card.shake { animation: lm-shake .4s; }
@keyframes lm-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.lm-close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.lm-close:hover { background: var(--sand); color: var(--ink); }
.lm-icon { width: 72px; height: 72px; align-self: center; animation: lm-wiggle 2.4s ease-in-out infinite; }
@keyframes lm-wiggle { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
.lm-head { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.lm-head h2 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; }
.lm-head span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.lm-form { display: flex; flex-direction: column; gap: 14px; }
.lm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.lm-form input {
  padding: 12px 14px; border: 1px solid rgba(65, 33, 63, .25); border-radius: 6px;
  background: #fff; color: var(--ink); font-size: 15px; outline: none;
}
.lm-form input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(122, 62, 111, .18); }
.lm-form .btn { justify-content: center; margin-top: 4px; }
.lm-form .btn:disabled { opacity: .6; cursor: default; }
.lm-error { font-size: 14px; color: #a3324a; text-align: center; line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .login-modal, .login-modal-card { transition: none; }
  .lm-icon, .login-modal-card.shake { animation: none; }
}

/* ===================== Efeitos ===================== */

/* Botões e links com resposta de jogo */
.btn { transition: background .15s, color .15s, border-color .15s, transform .18s cubic-bezier(.3, 1.6, .5, 1), box-shadow .18s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { box-shadow: 0 6px 0 -1px rgba(65, 33, 63, .25), 0 10px 24px rgba(65, 33, 63, .18); }
.btn:active { transform: translateY(1px) scale(.97); box-shadow: none; transition-duration: .05s; }
.btn i, .link-arrow i, .cta i { transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.btn:hover i.ph-arrow-right, .btn:hover i.ph-arrow-up-right,
.link-arrow:hover i, .hero-card:hover .cta i, .featured:hover .cta i { transform: translateX(4px); }
.link-arrow:hover i.ph-arrow-up-right { transform: translate(3px, -3px); }
.link-arrow { transition: border-color .2s; }
.link-arrow:hover { border-color: var(--ink); }

/* Sublinhado que se desenha no menu */
.site-nav a {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1.5px;
  padding-bottom: 3px; transition: background-size .25s ease, color .15s;
}
.site-nav a:hover, .site-nav a.active { background-size: 100% 1.5px; }

/* Logo: o polvo reage ao mouse */
.site-header .logo img { transition: transform .45s cubic-bezier(.3, 1.8, .5, 1); transform-origin: 30% 30%; }
.site-header .logo:hover img { transform: rotate(-5deg) scale(1.06); }
.site-header .logo:active img { transform: rotate(3deg) scale(.95); transition-duration: .1s; }

/* Revelar ao rolar (só quando o JS liga a classe .fx) */
.fx .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
.fx .reveal.in { opacity: 1; transform: none; }

/* Inclinação 3D com reflexo */
.fx .tilt {
  position: relative; transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, opacity .7s ease;
}
.fx .tilt.reveal:not(.in) { transform: perspective(900px) translateY(22px); }
.fx .tilt.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.fx .tilt.tilting { transition: transform .08s linear, box-shadow .3s; }
.fx .hero-card.tilt:hover, .fx .hero-card.tilt.reveal.in:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
.fx .tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .28), transparent 55%);
  opacity: 0; transition: opacity .3s;
}
.fx .service.tilt::after { background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(247, 239, 220, .14), transparent 60%); }
.fx .tilt.tilting::after { opacity: 1; }
.fx .post-card:hover .cover.tilt, .fx .featured:hover .cover.tilt { box-shadow: 0 16px 34px rgba(65, 33, 63, .18); }
.fx .game-card.tilt.tilting { box-shadow: 0 18px 40px rgba(65, 33, 63, .14); }

/* Barra de progresso que se enche ao aparecer */
.fx .progress .bar { position: relative; overflow: hidden; background: rgba(65, 33, 63, .18) !important; }
.fx .progress .bar::after {
  content: ''; position: absolute; inset: 0; background: var(--ink); transform-origin: left;
  transform: scaleX(0); transition: transform .7s cubic-bezier(.6, 0, .2, 1);
}
.fx .progress > div:nth-child(2) .bar::after { transition-delay: .35s; }
.fx .progress > div:nth-child(3) .bar::after { transition-delay: .7s; }
.fx .progress > div:nth-child(4) .bar::after { transition-delay: 1.05s; }
.fx .progress.play .done .bar::after, .fx .progress.play.finished .bar::after { transform: scaleX(1); }
.fx .progress.play .current .bar::after { transform: scaleX(.5); }
.fx .progress.play .current .bar::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(247, 239, 220, .55), transparent);
  transform: translateX(-100%); animation: fx-loading 2.2s ease-in-out 1.6s infinite;
}
@keyframes fx-loading { to { transform: translateX(200%); } }
.fx .progress span { transition: color .4s, font-weight .4s; }

/* Tinta do Konami code */
.ink-splash { position: fixed; inset: 0; z-index: 99; pointer-events: none; overflow: hidden; }
.ink-splash span {
  position: absolute; border-radius: 50%; background: #2a1228;
  width: var(--s); height: var(--s); left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) scale(0);
  animation: ink-in .55s cubic-bezier(.2, .9, .3, 1) var(--d) forwards, ink-out .5s ease 1s forwards;
}
@keyframes ink-in { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes ink-out { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn i, .link-arrow i, .site-header .logo img { transition: none; }
  .btn:hover, .btn:active, .site-header .logo:hover img { transform: none; }
}
