:root {
  --ink: #24233a;
  --yellow: #ffd23a;
  --yellow-soft: #ffe88f;
  --green: #22b04b;
  --green-dark: #198d3a;
  --red: #e8323c;
  --orange: #f39a3d;
  --blue: #2d8cff;
  --pink: #ff8fb1;
  --purple: #8b5cf6;
  --cream: #fff6e8;
  --cream-card: #ffffff;
  --cream-soft: #ffedd2;
  --tile-line: rgba(36, 35, 58, 0.06);
  --border: 3px solid var(--ink);
  --shadow-sm: 0 4px 0 var(--ink);
  --shadow-md: 0 6px 0 var(--ink);
  --shadow-lg: 0 8px 0 var(--ink);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: 'Fredoka', 'Arial Black', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 58, 0.45) 0%, rgba(255, 246, 232, 0) 48%),
    linear-gradient(to right, var(--tile-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--tile-line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px;
  line-height: 1.45;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* =========================================================================
   BARRA SUPERIOR DISCRETA (Hub e Subpáginas)
   ========================================================================= */
.portal-topbar {
  position: relative;
  z-index: 40;
  background: rgba(255, 246, 232, 0.96);
  border-bottom: 3px solid var(--ink);
}

.portal-topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.back-links-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.back-links-btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.back-links-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.brand-chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  object-fit: cover;
}

.portal-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.nav-pill:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.nav-pill.is-active {
  background: var(--yellow);
}

/* Container Principal */
.portal-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 14px 48px;
}

.portal-page--hub {
  max-width: 960px;
  padding-top: 22px;
}

/* =========================================================================
   PÍLULAS E BOTÕES
   ========================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.pill--green {
  background: var(--green);
  color: #ffffff;
}

.pill--red {
  background: var(--red);
  color: #ffffff;
}

.pill--orange {
  background: var(--orange);
  color: var(--ink);
}

.pill--white {
  background: #ffffff;
  color: var(--ink);
}

.pill--blue {
  background: var(--blue);
  color: #ffffff;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--green);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--ink);
}

.cta-btn--yellow {
  background: var(--yellow);
  color: var(--ink);
}

.cta-btn--orange {
  background: var(--orange);
  color: var(--ink);
}

.cta-btn--blue {
  background: var(--blue);
  color: #ffffff;
}

.cta-btn--white {
  background: #ffffff;
  color: var(--ink);
}

/* =========================================================================
   HUB CENTRAL (comunidade/index.html)
   ========================================================================= */
.hub-top-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hub-balance-card {
  background: linear-gradient(135deg, #22b04b 0%, #178d3a 100%);
  color: #ffffff;
  border: 3.5px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.hub-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hub-balance-main {
  min-width: 0;
}

.hub-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hub-balance-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.2vw, 1.24rem);
  font-weight: 700;
  color: #fff6c9;
  line-height: 1.2;
}

.hub-balance-amount {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  color: #ffffff;
  text-shadow: 0 3px 0 rgba(36, 35, 58, 0.35);
}

.hub-balance-art {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 2.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  padding: 8px 12px;
}

.hub-je-avatar {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--yellow);
  object-fit: cover;
  box-shadow: 0 3px 0 var(--ink);
}

.hub-pot-svg {
  width: 82px;
  height: 70px;
}

/* Dinheiro por Dia */
.daily-money-box {
  background: rgba(255, 255, 255, 0.16);
  border: 2.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  padding: 12px;
}

.daily-money-box--light {
  background: #ffffff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  padding: 14px 16px;
}

.daily-money-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.daily-money-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
}

.daily-money-tag {
  padding: 2px 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
}

.daily-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.daily-step {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.daily-money-box--light .daily-step {
  background: #fff9ee;
}

.daily-step--boom {
  background: var(--yellow) !important;
  box-shadow: 0 3px 0 var(--ink);
}

.daily-step-day {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.daily-step-val {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.15;
}

.daily-step-note {
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.8);
}

.daily-progress-track {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.daily-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd23a 0%, #f39a3d 45%, #22b04b 100%);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Coluna lateral do Hub: Destaque da Semana + Agradecimentos */
.hub-side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.week-spotlight-card {
  background: linear-gradient(135deg, #fff5bf 0%, #ffe066 100%);
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-char {
  width: 80px;
  height: 78px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  padding: 4px 4px 0;
  overflow: hidden;
}

.spotlight-copy {
  min-width: 0;
}

.spotlight-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.spotlight-handle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.15;
  word-break: break-word;
}

.spotlight-role {
  margin: 2px 0;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--green-dark);
}

.spotlight-desc {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(36, 35, 58, 0.85);
}

.thanks-card {
  background: #ffffff;
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 15px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.thanks-lead {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.26;
}

.thanks-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgba(36, 35, 58, 0.72);
}

.commenters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.commenter-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff8e6;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--ink);
}

/* Faixa animada com os 4 personagens oficiais */
.cast-parade-strip {
  background: linear-gradient(135deg, #fffdf8 0%, #ffefc7 100%);
  border: 3.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px 8px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  overflow: hidden;
}

.cast-parade-badge {
  flex: 1 1 220px;
}

.cast-parade-note {
  margin: 6px 0 0;
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.85);
}

.cast-parade-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  flex: 1 1 320px;
}

.cast-actor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 68px;
}

.cast-actor svg {
  width: 66px;
  height: 64px;
  overflow: visible;
}

.cast-tag {
  padding: 1px 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #ffffff;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Triptych de preview real dos 3 jogos no Hub */
.hub-games-triptych {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 340px;
  flex-shrink: 0;
}

.mini-scene {
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  padding: 5px 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.mini-scene--davi {
  background: linear-gradient(180deg, #fff5c8 0%, #ffe066 100%);
}

.mini-scene--je {
  background: linear-gradient(180deg, #e5ffef 0%, #9ef0ba 100%);
}

.mini-scene--neide {
  background: linear-gradient(180deg, #ffe7da 0%, #ffba96 100%);
}

.mini-scene svg {
  width: 100%;
  height: 76px;
}

.mini-scene-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}

/* Animações dos personagens e mini-cenas */
.char-anim-bob {
  animation: comBob 3s ease-in-out infinite;
  transform-origin: center bottom;
}

.char-anim-wave {
  animation: comWave 2.6s ease-in-out infinite;
  transform-origin: center bottom;
}

.char-anim-hop {
  animation: comHop 2.1s ease-in-out infinite;
  transform-origin: center bottom;
}

.char-anim-walk {
  animation: comWalk 2.4s ease-in-out infinite;
  transform-origin: center bottom;
}

.char-anim-sneak {
  animation: comSneak 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.steam-puff {
  animation: steamRise 2.2s ease-in-out infinite;
}

.steam-puff--delay {
  animation-delay: 0.9s;
}

.float-badge {
  animation: floatBadge 2.4s ease-in-out infinite;
}

.float-badge--delay {
  animation-delay: 0.8s;
}

.target-sway {
  animation: targetSway 2.8s ease-in-out infinite;
  transform-origin: 178px 52px;
}

.fruit-fly {
  animation: fruitFly 2s ease-in-out infinite;
}

.fruit-fly--delay {
  animation-delay: 0.7s;
}

.ingredient-drop {
  animation: comBob 2.2s ease-in-out infinite;
}

@keyframes comBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes comWave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-2.5deg); }
}

@keyframes comHop {
  0%, 100% { transform: translateY(0) scaleY(1); }
  45% { transform: translateY(-6px) scaleY(1.02); }
  75% { transform: translateY(0) scaleY(0.98); }
}

@keyframes comWalk {
  0%, 100% { transform: translateX(-3px) rotate(-1.5deg); }
  50% { transform: translateX(3px) rotate(1.5deg); }
}

@keyframes comSneak {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-3px, -2px) rotate(-2deg); }
}

@keyframes steamRise {
  0%, 100% { opacity: 0.35; transform: translateY(2px); }
  50% { opacity: 0.95; transform: translateY(-4px); }
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes targetSway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes fruitFly {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8px, -6px) scale(1.06); }
}

/* Grade de Cartões das 5 Subpáginas */
.hub-section-label {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink);
  text-align: center;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hub-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 3.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.hub-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--ink);
}

.hub-tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}

.hub-tile--featured {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  background: linear-gradient(135deg, #fff4be 0%, #ffe066 100%);
}

.hub-tile--kitchen {
  background: linear-gradient(180deg, #ffffff 0%, #eafcf0 100%);
}

.hub-tile--village {
  background: linear-gradient(180deg, #ffffff 0%, #e8f4ff 100%);
}

.hub-tile--diary {
  background: linear-gradient(180deg, #ffffff 0%, #fff1df 100%);
}

.hub-tile--sellers {
  background: linear-gradient(180deg, #ffffff 0%, #ffeef4 100%);
}

.hub-tile-visual {
  height: 112px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background: rgba(255, 255, 255, 0.85);
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: hidden;
}

.hub-tile--featured .hub-tile-visual {
  width: 240px;
  height: 132px;
  flex-shrink: 0;
  background: #ffffff;
}

.hub-tile-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1 1 auto;
}

.hub-tile-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.15;
}

.hub-tile-phrase {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.82);
}

.hub-tile-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--ink);
  white-space: nowrap;
}

.hub-tile--featured .hub-tile-go {
  background: var(--green);
  color: #ffffff;
  font-size: 0.96rem;
  padding: 11px 18px;
}

/* =========================================================================
   CABEÇALHO DE SUBPÁGINAS
   ========================================================================= */
.subpage-hero {
  background: linear-gradient(135deg, #fffdf8 0%, #ffefc2 100%);
  border: var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.subpage-title {
  margin: 4px 0 3px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.12;
}

.subpage-sub {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.82);
}

.card {
  background: var(--cream-card);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
}

/* =========================================================================
   SUBPÁGINA: JOGOS (jogos.html)
   ========================================================================= */
.games-portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.game-portal-card {
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.subpage-hero--with-chars {
  padding: 14px 18px;
}

.hero-right-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-mini-chars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.hero-mini-char {
  width: 52px;
  height: 52px;
  overflow: visible;
}

.game-portal-art {
  height: 158px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.game-preview-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-portal-art--davi {
  background: linear-gradient(135deg, #fff1ba 0%, #ffd23a 100%);
}

.game-portal-art--receitas {
  background: linear-gradient(135deg, #d9ffe5 0%, #86efac 100%);
}

.game-portal-art--neide {
  background: linear-gradient(135deg, #ffe0d6 0%, #ffb085 100%);
}

.game-portal-title {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.18;
}

.game-portal-desc {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(36, 35, 58, 0.84);
}

.game-portal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.best-tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #fff9ee;
}

.story-tip-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.96rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* =========================================================================
   SUBPÁGINA: COZINHA & SALDO (estoque.html)
   ========================================================================= */
.saldo-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.saldo-hero-box {
  background: linear-gradient(135deg, #22b04b 0%, #178d3a 100%);
  color: #ffffff;
  border: var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.saldo-big-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.92;
}

.saldo-big-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.45rem);
  line-height: 1.05;
  margin-top: 2px;
}

.saldo-pot-tag {
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px 11px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.metrics-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.m-box {
  background: #fff9ee;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 9px 8px;
  text-align: center;
}

.m-box--top {
  background: var(--yellow);
}

.m-val {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.m-lbl {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.82);
}

.inventory-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.inv-subtitle {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.inv-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.inv-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: #f3fff6;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.inv-chip:hover,
.inv-chip.is-active {
  background: var(--yellow);
  transform: translateY(-1px);
}

.inv-chip--missing {
  border-style: dashed;
  background: #fff5f5;
}

.inv-chip--missing:hover,
.inv-chip--missing.is-active {
  background: #ffe0e2;
}

.inv-price {
  font-family: var(--font-display);
  font-size: 0.76rem;
  white-space: nowrap;
}

.kitchen-stage-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #fffdf8 0%, #fff4db 100%);
}

.kitchen-svg-wrap {
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  background: #fff7e6;
}

.kitchen-svg {
  width: 100%;
  height: auto;
  cursor: pointer;
}

.kitchen-item {
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.kitchen-item:hover {
  filter: drop-shadow(0 0 6px rgba(255, 210, 58, 0.9));
}

.kitchen-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================================================================
   SUBPÁGINA: VILA DOS SEGUIDORES (cidade.html)
   ========================================================================= */
.city-card {
  background: linear-gradient(180deg, #e7f6ff 0%, #fff6e8 100%);
  padding: 18px;
}

.city-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.city-search {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 13px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.city-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
}

.filter-btn.is-active {
  background: var(--yellow);
}

.city-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.city-legend-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.city-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--yellow-soft);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.city-cam-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cam-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.cam-btn:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.aerial-map-frame {
  border: 3.5px solid var(--ink);
  border-radius: 22px;
  background: #89c87a;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.city-aerial-canvas {
  display: block;
  width: 100%;
  height: 540px;
  cursor: grab;
  touch-action: none;
}

.city-aerial-canvas:active {
  cursor: grabbing;
}

.city-roster-wrap {
  margin-top: 12px;
}

.city-roster {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 4px 2px 6px;
  scrollbar-width: thin;
}

.roster-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  white-space: nowrap;
}

.roster-pill--vip {
  background: var(--yellow-soft);
}

.roster-pill.is-selected {
  background: var(--yellow);
  transform: translateY(-1px);
}

.roster-pill.is-dimmed {
  opacity: 0.45;
}

.village-map {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 10%, #fff6c9 0%, rgba(255, 246, 201, 0) 24%),
    linear-gradient(180deg, #cbeeff 0%, #dff5df 28%, #bfe6b3 100%);
  padding: 16px 14px 18px;
  overflow: hidden;
}

.village-sky-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.village-sign {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--ink);
}

.vip-avenue {
  background: linear-gradient(135deg, #fff4bd 0%, #ffe06b 100%);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 14px;
  align-items: center;
}

.vip-lot-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.12s ease;
}

.vip-lot-btn:hover {
  transform: translateY(-2px);
}

.vip-house-art {
  width: 82px;
  height: 74px;
  flex-shrink: 0;
}

.vip-meta {
  min-width: 0;
}

.vip-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.verified-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  border: 2px solid var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.vip-handle {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  word-break: break-word;
}

.vip-role {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.85);
}

.kercia-car-box {
  background: rgba(255, 255, 255, 0.78);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.kercia-car-caption {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.street-road {
  background: #4e4d63;
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 6px 12px;
  margin: 0 0 14px;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 24px,
    rgba(255, 210, 58, 0.85) 24px,
    rgba(255, 210, 58, 0.85) 44px
  );
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: center;
}

.street-road span {
  background: #4e4d63;
  padding: 2px 8px;
  border-radius: 999px;
}

.lots-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.lot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 9px 6px 8px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s ease, background-color 0.12s ease;
  text-align: center;
  min-width: 0;
}

.lot-card:hover {
  background: var(--yellow-soft);
  transform: translateY(-2px);
}

.lot-card.is-selected {
  background: var(--yellow);
}

.lot-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.lot-num {
  padding: 1px 6px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--cream-soft);
}

.lot-kind {
  font-size: 0.76rem;
}

.lot-house-svg {
  width: 56px;
  height: 46px;
}

.lot-handle {
  width: 100%;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.18;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.expansion-sign {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 3px dashed var(--ink);
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.follower-drawer {
  margin-top: 14px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.follower-drawer-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.follower-drawer-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.follower-drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  word-break: break-word;
}

.follower-drawer-sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.82);
}

/* =========================================================================
   SUBPÁGINA: DIA A DIA DA JÉ (diario.html)
   ========================================================================= */
.schedule-banner {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.schedule-time-big {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.2;
}

.schedule-sub {
  margin: 2px 0 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.85);
}

.diary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ep-card {
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ep-day-badge {
  padding: 4px 11px;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--orange);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.ep-money-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: #eafcf0;
  color: var(--green-dark);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.ep-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}

.ep-summary {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(36, 35, 58, 0.84);
}

/* =========================================================================
   SUBPÁGINA: VENDEDORAS REAIS (vendedoras.html)
   ========================================================================= */
.sellers-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.honest-notice {
  background: linear-gradient(135deg, #fff5d4 0%, #ffe69a 100%);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.honest-notice h2 {
  margin: 6px 0 4px;
  font-family: var(--font-display);
  font-size: 1.18rem;
}

.honest-notice p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.86);
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 900;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.field-textarea {
  min-height: 86px;
  resize: vertical;
}

.field-error {
  margin: 0;
  min-height: 18px;
  font-size: 0.82rem;
  font-weight: 900;
  color: var(--red);
}

.field-status {
  margin: 0;
  min-height: 18px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--green-dark);
}

.mural-list {
  display: grid;
  gap: 10px;
}

.mural-empty {
  padding: 18px;
  border-radius: 16px;
  border: 2.5px dashed var(--ink);
  background: #fffaf0;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.mural-item {
  padding: 13px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #ffffff;
  box-shadow: 0 3px 0 var(--ink);
}

.mural-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.mural-item h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
}

.mural-item-handles {
  margin: 3px 0 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.78);
}

.mural-item-story {
  margin: 0 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mural-item-place {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--green-dark);
}

/* Rodapé */
.portal-footer {
  margin-top: 30px;
  text-align: center;
  padding-top: 16px;
  border-top: 2px dashed rgba(36, 35, 58, 0.25);
  font-size: 0.84rem;
  font-weight: 800;
  color: rgba(36, 35, 58, 0.82);
}

.portal-footer p {
  margin: 4px 0;
}

.portal-footer a {
  color: var(--ink);
}

/* =========================================================================
   RESPONSIVIDADE (Mobile 390x844 e Desktop 1280x800)
   ========================================================================= */
@media (max-width: 900px) {
  .hub-top-grid,
  .saldo-grid,
  .sellers-layout,
  .vip-avenue,
  .games-portal-grid {
    grid-template-columns: 1fr;
  }

  .hub-tile--featured {
    flex-direction: column;
    align-items: stretch;
  }

  .hub-games-triptych {
    width: 100%;
  }

  .lots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hub-balance-card {
    padding: 18px 15px;
  }

  .hub-balance-head {
    flex-direction: column;
    text-align: center;
  }

  .hub-badges-row {
    justify-content: center;
  }

  .hub-grid,
  .diary-grid {
    grid-template-columns: 1fr;
  }

  .hub-tile--featured {
    grid-column: span 1;
    flex-direction: column;
    align-items: stretch;
  }

  .hub-tile--featured .hub-tile-visual {
    width: 100%;
    height: 112px;
  }

  .city-aerial-canvas {
    height: 410px;
  }
}

@media (max-width: 560px) {
  .portal-topbar-inner {
    padding: 8px 10px;
  }

  .portal-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .portal-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .daily-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-spotlight-card {
    flex-direction: column;
    text-align: center;
  }

  .spotlight-badges {
    justify-content: center;
  }

  .cast-parade-stage {
    gap: 8px;
  }

  .cast-actor {
    width: 60px;
  }

  .cast-actor svg {
    width: 56px;
    height: 54px;
  }

  .hub-games-triptych {
    gap: 5px;
  }

  .mini-scene svg {
    height: 62px;
  }

  .metrics-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-chips,
  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .lots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-tile-body {
    flex-wrap: wrap;
  }

  .hub-tile-go {
    width: 100%;
  }

  .city-aerial-canvas {
    height: 360px;
  }
}
