/* RacoLabs: página do estúdio. Direção "Mesa Viva" (mesmos tokens dos jogos). */
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('/fonts/figtree-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fredoka'; font-weight: 700; font-display: swap; src: url('/fonts/fredoka-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2'); }

:root {
  --ground: #F4F5F9; --surface: #FFFFFF; --surface-2: #E4E7F2; --ink: #1C1D2B; --muted: #5E6075; --line: #D9DBE6;
  --gold-soft: #FFF3D6; --gold-ink: #6B4A0E; --accent: #FF6A3D; --felt: #1E5A4C; --card: #FBF8F1; --red: #C42F3A;
  --font-ui: 'Figtree', system-ui, sans-serif; --font-display: 'Fredoka', 'Figtree', system-ui, sans-serif; --font-serif: 'Fraunces', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --ground: #12131D; --surface: #1C1E2C; --surface-2: #272A3D; --ink: #EDEEF5; --muted: #A3A6BC; --line: #34364A; --gold-soft: #3A3020; --gold-ink: #F7D58C; --accent: #FF8458; --felt: #0F2F28; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 16px/1.55 var(--font-ui); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

header.top .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--font-display); letter-spacing: -.3px; }
.brand svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; color: var(--muted); padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.lang { border: 1px solid var(--line); }
.nav .short { display: none; }

.hero { padding-block: 40px 28px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero h1 { font: 700 clamp(36px, 6vw, 58px)/1.02 var(--font-display); letter-spacing: -1px; margin: 0 0 14px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0 0 22px; color: var(--muted); font-size: 18px; max-width: 46ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border-radius: 999px; padding: 7px 12px; font-weight: 700; font-size: 14px; }
.pill svg { width: 16px; height: 16px; color: var(--accent); }
.stage { position: relative; aspect-ratio: 1 / .9; max-width: 100%; }
.stage .tile { position: absolute; width: 30%; aspect-ratio: 1; border-radius: 18%; display: grid; place-items: center; font: 700 clamp(22px, 4vw, 36px) var(--font-display); color: #1B1B3A; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12), 0 14px 30px rgba(0,0,0,.12); animation: bob 5s ease-in-out infinite; }
.stage .pc { position: absolute; width: 24%; aspect-ratio: 5/7; border-radius: 10%; background: var(--card); color: #1C1D2B; font: 700 clamp(18px, 3vw, 28px)/1 var(--font-serif); padding: 6%; box-shadow: 0 14px 30px rgba(0,0,0,.18); animation: bob 6s ease-in-out infinite; }
.stage .pc.red { color: var(--red); }
.t1 { left: 6%; top: 10%; background: #FFD84D; --r: -4deg; rotate: -4deg; }
.t2 { left: 36%; top: 2%; background: #FF8A5C; --r: 3deg; rotate: 3deg; animation-delay: -1s !important; }
.t3 { left: 20%; top: 44%; background: #8F4AD8; color: #fff !important; --r: -2deg; rotate: -2deg; animation-delay: -2s !important; }
.c1 { left: 62%; top: 18%; rotate: 8deg; animation-delay: -1.5s !important; }
.c2 { left: 70%; top: 50%; rotate: -6deg; animation-delay: -3s !important; }
@keyframes bob { 50% { translate: 0 -8px; } }

section.block { padding-block: 34px; }
.block h2 { font: 700 30px/1.1 var(--font-display); margin: 0 0 6px; text-wrap: balance; }
.lead { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.game { background: var(--surface); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.game .art { height: 150px; border-radius: 18px; display: grid; place-items: center; overflow: hidden; }
.game .art.dobra { background: #1B1B3A; }
.game .art.paciencia { background: var(--felt); }
.game .art.sudoku { background: #F3F1EA; }
.game .art.mahjong { background: #165B57; }
.tiles { position: relative; width: 120px; height: 96px; }
.tiles span { position: absolute; width: 56px; height: 74px; border-radius: 9px; background: #FBF7EC; box-shadow: 0 0 0 1px #D9CDB1, 4px 5px 0 #B9A983; display: grid; place-items: center; font: 700 38px/1 serif; }
.tiles .green { left: 4px; top: 4px; color: #13805B; }
.tiles .red { left: 52px; top: 18px; color: #C4302B; }
.mini9 { display: grid; grid-template-columns: repeat(3, 40px); gap: 4px; }
.mini9 i { width: 40px; height: 40px; border-radius: 8px; background: #FFFDF7; display: grid; place-items: center; font: 700 17px var(--font-ui); font-style: normal; color: #1C1D2B; box-shadow: inset 0 0 0 1px #D6CFBC; }
.mini9 i.pen { color: #2F5BEA; background: #CFE0FF; }
.mini4 { display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; }
.mini4 i { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 700 15px var(--font-display); font-style: normal; color: #1B1B3A; }
.mini4 .m1 { background: #FFE8B8; } .mini4 .m2 { background: #FFB547; } .mini4 .m3 { background: #FF8A5C; } .mini4 .m4 { background: #C93A83; color: #fff; }
.fan { position: relative; width: 140px; height: 96px; }
.fan span { position: absolute; left: 50%; top: 6px; width: 52px; height: 74px; margin-left: -26px; border-radius: 8px; background: var(--card); color: #1C1D2B; font: 700 17px/1 var(--font-serif); padding: 6px; transform-origin: 50% 120%; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.fan span.red { color: var(--red); }
.fan .f1 { rotate: -18deg; } .fan .f2 { rotate: -6deg; } .fan .f3 { rotate: 6deg; } .fan .f4 { rotate: 18deg; }
.game h3 { margin: 0; font: 700 22px var(--font-display); }
.game p { margin: -8px 0 0; color: var(--muted); }
.game .row { display: flex; gap: 8px; align-items: center; margin-top: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px; font: 700 16px var(--font-display); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn.primary { background: var(--ink); color: var(--ground); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.btn.quiet { background: var(--surface); color: var(--ink); }
.btn:active { translate: 0 2px; }
.tag { font: 800 11px var(--font-ui); letter-spacing: .8px; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); border-radius: 6px; padding: 3px 8px; align-self: flex-start; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.value { background: var(--surface); border-radius: 20px; padding: 18px; }
.value svg { width: 28px; height: 28px; color: var(--accent); }
.value h3 { margin: 8px 0 4px; font: 700 18px var(--font-display); }
.value p { margin: 0; color: var(--muted); font-size: 15px; }

.contact { background: var(--surface); border-radius: 24px; padding: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.contact h2 { margin: 0 0 4px; }
.contact p { margin: 0; color: var(--muted); }
.mail { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 14px; padding: 6px 6px 6px 14px; font: 700 17px var(--font-ui); min-width: 0; }
.mail span { user-select: all; overflow-wrap: anywhere; }

.doc { max-width: 760px; padding-block: 20px 40px; }
.doc h1 { font: 700 clamp(30px, 5vw, 42px)/1.1 var(--font-display); margin: 0 0 8px; }
.doc h2 { font: 700 20px var(--font-display); margin: 26px 0 6px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: 14px; }

footer { border-top: 1px solid var(--line); margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; padding-block: 22px 34px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 20px; }
  .stage { order: -1; max-width: 260px; width: 100%; margin: 0 auto; }
  .nav a.hide-sm { display: none; }
  .nav { gap: 2px; flex-wrap: nowrap; }
  .nav a { padding: 8px 10px; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
