@font-face { font-family: "Luckiest"; src: url(assets/luckiest.woff2) format("woff2"); font-display: swap; }

:root {
  --navy: #0e1630; --navy-2: #172347; --slate: #26325a; --gray: #a7a9bd; --white: #f2f2f7; --ink: #050914;
  --left: #c24b99; --down: #00d8ff; --up: #12fa05; --right: #f9393f;
  --display: "Luckiest", "Nunito", system-ui, sans-serif; --body: "Nunito", system-ui, sans-serif;
  --tabh: 68px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--navy); color: var(--white); font: 600 1rem/1.55 var(--body);
  background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--down); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

/* coluna única, com cara de app no celular e centralizada no PC */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(var(--tabh) + 28px + env(safe-area-inset-bottom)); }

.top { display: flex; align-items: center; gap: 10px; padding: 14px 0 10px; }
.logo { flex: none; }
.sub-btn { flex: none; max-width: 38vw; overflow: hidden; text-overflow: ellipsis; }
.logo { width: 52px; height: auto; }
.who { flex: 1; min-width: 0; line-height: 1.2; }
.who b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 400 1.2rem/1.1 var(--display); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.who span { display: block; color: var(--gray); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-btn { text-decoration: none; background: var(--right); font-weight: 900; font-size: .85rem; padding: 9px 11px; border-radius: 12px; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); white-space: nowrap; }

/* abas: barra fixa embaixo no celular (fácil de alcançar com o dedão) */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(7, minmax(52px, 1fr)); overflow-x: auto; scrollbar-width: none;
  height: calc(var(--tabh) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(10, 16, 38, .96); border-top: 3px solid var(--ink); box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.tabs button {
  background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-weight: 800; font-size: .62rem; color: var(--gray); padding: 6px 1px;
}
.tabs svg { width: 24px; height: 24px; transition: transform .15s; flex: none; }
.tabs svg path { fill: #5b6382; }
.tabs button[aria-selected="true"] { color: var(--white); }
.tabs button[aria-selected="true"] svg { transform: scale(1.18); filter: drop-shadow(0 0 8px var(--c)); }
.tabs button[aria-selected="true"] svg path { fill: var(--c); }
.tabs span { line-height: 1.1; text-align: center; }

.panel { padding-top: 8px; }
h1, h2 { font-family: var(--display); font-weight: 400; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); }
h1 { font-size: clamp(2.2rem, 10vw, 3rem); line-height: 1; margin: 0 0 12px; }
h2 { font-size: 1.8rem; line-height: 1.05; margin: 22px 0 6px; }
.sub { color: var(--gray); margin: 0 0 16px; }

/* topo da aba "jogar comigo" */
.hero { position: relative; background: var(--navy-2); border: 3px solid var(--ink); border-radius: 22px; padding: 22px 20px 20px; overflow: hidden; margin-top: 4px; }
.hero p { margin: 0; max-width: min(30ch, 62%); position: relative; z-index: 1; color: #dfe1ee; }
.hero h1 { max-width: 9ch; position: relative; z-index: 1; }
.silly { position: absolute; right: -34px; bottom: 6px; width: 176px; height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--left) 0 25%, var(--down) 0 50%, var(--up) 0 75%, var(--right) 0); }

.device { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 0 8px; padding: 5px; background: var(--ink); border-radius: 14px; }
.device button { border: 0; border-radius: 10px; padding: 11px 6px; font-weight: 900; background: transparent; color: var(--gray); cursor: pointer; }
.device button[aria-checked="true"] { background: var(--slate); color: var(--white); }

/* passo a passo: é uma sequência, então os números contam */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 58px; border-bottom: 2px dashed rgba(167,169,189,.18); }
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.45rem/1 var(--display); color: var(--ink); background: var(--c, var(--down)); border: 3px solid var(--ink);
}
.steps li:nth-child(4n+1) { --c: var(--left); } .steps li:nth-child(4n+2) { --c: var(--down); }
.steps li:nth-child(4n+3) { --c: var(--up); } .steps li:nth-child(4n+4) { --c: var(--right); }
.steps h3 { margin: 6px 0 2px; font-size: 1.12rem; font-weight: 900; line-height: 1.25; }
.steps p { margin: 0; color: #cfd2e2; }
.steps .btn-inline { display: inline-block; margin-top: 10px; text-decoration: none; font-weight: 900; padding: 10px 14px; border-radius: 12px; background: var(--right); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }

/* mini ilustrações de cada passo (desenhadas, não são prints do YouTube) */
.mock { margin-top: 12px; background: #0a1128; border: 2px solid var(--slate); border-radius: 14px; padding: 12px; font-size: .9rem; }
.mock .row { display: flex; align-items: center; gap: 8px; }
.mock .field { flex: 1; background: #1b2650; border-radius: 999px; padding: 9px 14px; color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock .field.typed { color: var(--white); }
.mock .dollar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #1b2650; position: relative; }
.mock .hot { background: var(--up); color: var(--ink); box-shadow: 0 0 0 4px rgba(18,250,5,.25); animation: ping 1.6s infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 9px rgba(18,250,5,0); } }
.mock .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mock .choice span { text-align: center; padding: 10px; border-radius: 10px; background: #1b2650; font-weight: 800; }
.mock .choice .on { background: var(--down); color: var(--ink); }
.mock .amount { font: 400 2rem/1 var(--display); text-align: center; margin-bottom: 8px; }
.mock .slider { height: 8px; border-radius: 4px; background: #1b2650; position: relative; }
.mock .slider::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8%; background: var(--up); border-radius: 4px; }
.mock .slider::after { content: ""; position: absolute; left: calc(8% - 10px); top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.mock .buy { margin-top: 10px; text-align: center; padding: 11px; border-radius: 10px; background: var(--up); color: var(--ink); font-weight: 900; }
.mock .msg { display: flex; gap: 10px; align-items: flex-start; background: var(--down); color: var(--ink); border-radius: 12px; padding: 10px 12px; font-weight: 800; }
.mock .msg small { display: block; font-weight: 900; }

.info { margin-top: 18px; background: var(--navy-2); border: 3px solid var(--ink); border-radius: 18px; padding: 6px 18px; }
.info p { margin: 12px 0; color: #cfd2e2; }
.info b { color: var(--white); }

/* live */
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--slate); background: var(--ink); }
.screen.live { box-shadow: 0 0 0 4px var(--right); }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wide-btn { display: block; text-align: center; text-decoration: none; margin-top: 20px; font-weight: 900; padding: 14px; border-radius: 14px; background: var(--right); border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }

/* jogo */
#game { width: 100%; max-width: 380px; margin: 4px auto 0; display: block; aspect-ratio: 360 / 520; height: auto; touch-action: manipulation;
  background: linear-gradient(#0a1128, #101b3d); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 0 0 5px var(--slate); }

/* links */
.lanes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.lanes a { --c: var(--down); display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; text-decoration: none;
  padding: 12px 16px 12px 12px; background: var(--navy-2); border-radius: 16px; border: 3px solid var(--ink); border-left: 10px solid var(--c); }
.lanes svg { width: 38px; height: 38px; }
.lanes .name { font-weight: 900; font-size: 1.08rem; line-height: 1.2; }
.lanes .handle { display: block; color: var(--gray); font-weight: 600; font-size: .9rem; }
.lanes .go { color: var(--gray); font-weight: 800; }
.biz { color: var(--gray); margin-top: 22px; }
.biz a { color: var(--white); font-weight: 800; }

footer { text-align: center; color: var(--gray); font-size: .8rem; margin-top: 36px; }

/* PC: abas viram uma barra no topo, conteúdo continua numa coluna confortável */
@media (min-width: 760px) {
  .app { max-width: 620px; padding-bottom: 40px; }
  .tabs { position: sticky; top: 0; bottom: auto; height: auto; margin: 6px 0 14px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
  .tabs button { font-size: .8rem; padding: 10px 4px; }
  .silly { width: 230px; right: -20px; }
}
@media (prefers-reduced-motion: reduce) { .mock .hot { animation: none; } .tabs svg { transition: none; } }

/* seletor de idioma */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lang { position: relative; flex: none; }
.lang-face { display: flex; align-items: center; gap: 3px; font-size: .8rem; font-weight: 900; background: var(--navy-2); border: 2px solid var(--slate); border-radius: 10px; padding: 8px 7px; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang:focus-within .lang-face { outline: 3px solid var(--down); outline-offset: 2px; }

/* config do Funky Friday */
.shot { margin: 6px 0 8px; }
.shot img { width: 100%; max-width: 360px; height: auto; margin: 0 auto; border-radius: 18px; border: 3px solid var(--ink); box-shadow: 0 0 0 4px var(--slate); }
.shot figcaption { text-align: center; color: var(--gray); font-size: .9rem; margin-top: 10px; }
.cfg { margin-top: 18px; background: var(--navy-2); border: 3px solid var(--ink); border-radius: 18px; padding: 4px 16px 10px; }
.grp { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font: 400 1.3rem/1 var(--display); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; color: var(--c); }
.grp svg { width: 26px; height: 26px; }
.cfg dl { margin: 0; }
.item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(167,169,189,.14); }
.item:first-child { border-top: 0; }
.item dt { font-weight: 800; }
.item dt small { display: block; font-weight: 600; color: var(--gray); font-size: .85rem; margin-top: 2px; }
.item dd { margin: 0; flex: none; font-weight: 900; padding: 5px 12px; border-radius: 999px; background: #0a1128; border: 2px solid var(--slate); }
.item dd.on { background: rgba(18,250,5,.14); border-color: var(--up); color: #8dff86; }
.item dd.off { background: rgba(249,57,63,.12); border-color: #7a2a33; color: #ff8e92; }
.item dd.val { color: var(--down); border-color: #1b6f86; background: rgba(0,216,255,.1); font-size: 1.05rem; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 4px; }
.key { display: grid; justify-items: center; gap: 8px; padding: 12px 4px; background: #0a1128; border-radius: 14px; border: 2px solid var(--slate); border-bottom: 5px solid var(--c); }
.key svg { width: 34px; height: 34px; }
.key kbd { font: 400 1.8rem/1 var(--display); color: var(--white); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.cfg .note { color: var(--gray); font-size: .9rem; margin: 6px 0 4px; }

/* osu!mania */
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 0; }
.big-stats div { background: var(--navy-2); border: 3px solid var(--ink); border-radius: 16px; padding: 14px 10px; text-align: center; }
.big-stats dt { color: var(--gray); font-size: .82rem; font-weight: 800; }
.big-stats dd { margin: 4px 0 0; font: 400 clamp(1.15rem, 5vw, 1.6rem)/1.1 var(--display); color: var(--white); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }
.skins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.skin { margin: 0; background: var(--navy-2); border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; }
.skin img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; background: #0a0c16; }
.skin figcaption { padding: 10px 12px 12px; line-height: 1.25; }
.skin b { display: block; font-weight: 900; }
.skin span { color: var(--gray); font-size: .82rem; }
.small-note { color: var(--gray); font-size: .85rem; margin-top: 12px; }

/* periféricos */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.chips button { flex: none; border: 2px solid var(--slate); background: var(--navy-2); border-radius: 999px; padding: 8px 14px; font-weight: 900; font-size: .88rem; color: var(--gray); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--c); border-color: var(--ink); color: var(--ink); }
.gear { display: grid; gap: 12px; }
.item-gear { display: grid; grid-template-columns: 112px 1fr; gap: 12px; background: var(--navy-2); border: 3px solid var(--ink); border-radius: 16px; padding: 10px; }
.thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; align-self: start; background: #0a1128; aspect-ratio: 16 / 9; }
.thumb img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.thumb .play { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--right); font-size: .7rem; border: 2px solid var(--ink); }
.g-body { min-width: 0; }
.item-gear h3 { margin: 0; font-size: 1rem; font-weight: 900; line-height: 1.2; }
.tags { margin: 2px 0 0; color: var(--gray); font-size: .82rem; }
.coupon { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px; background: rgba(18,250,5,.12); border: 2px dashed var(--up); font-size: .8rem; }
.coupon span { color: var(--gray); font-weight: 800; }
.coupon b { color: var(--white); letter-spacing: .02em; }
.coupon em { font-style: normal; color: #8dff86; font-weight: 900; }
.g-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g-btns a { text-decoration: none; font-weight: 900; font-size: .76rem; padding: 7px 9px; border-radius: 10px; border: 2px solid var(--ink); }
.g-buy { background: var(--up); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.g-watch { background: var(--slate); color: var(--white); }
@media (min-width: 760px) {
  .item-gear { grid-template-columns: 180px 1fr; }
}
