:root{
  --bg: url("./background.jpg");
  --text: #ffffff;
  --shadow: 0 10px 24px rgba(0,0,0,.35);
  --focus: 0 0 0 3px rgba(255,210,120,.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  background-image: var(--bg);
  background-size: cover;
  background-repeat:no-repeat;
  background-position: center;

  -webkit-font-smoothing: antialiased;
}

/* Overlay quase imperceptível para não “matar” a arte */
.page{
  min-height:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding: 10px 10px;

  /* aurora suave sem escurecer a arte */
  background:
    radial-gradient(900px 260px at 50% 0%, rgba(110,190,255,.18), transparent 60%),
    radial-gradient(700px 220px at 20% 10%, rgba(255,205,112,.14), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.06));
}


/* CARD vira uma barra minimal no topo */
.card{
  width: min(520px, 96%);
  padding: 8px 10px;
  border-radius: 14px;
  box-shadow: var(--shadow);

  /* Fundo quase transparente */
  background: rgba(0,0,0,.36);
  backdrop-filter: blur(6px);

  text-align:center;
}

/* Título pequeno e direto */
.header h1{
  margin: 0 0 6px;
  font-size: .95rem;
  line-height: 1.15;
  color: var(--text);
}

/* Esconde subtítulo e footer para máxima área de imagem */
.sub{ display:none; }
.footer{ display:none; }

/* Links em linha (3 botões lado a lado) */
.links{
  list-style:none;
  padding:0;
  margin:0;

  display:flex;
  flex-direction: column;
  gap: 10px; /* um pouco mais para parecer “placas” */
}


/* Botões ultra compactos */
.btn{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  text-decoration:none;
  color: #2a1b10;

  /* “placa” */
  padding: 11px 14px;
  border-radius: 16px;

  background:
    linear-gradient(180deg, rgba(255,233,190,.98), rgba(255,207,120,.96));
  box-shadow:
    0 10px 18px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.75);

  /* borda/entalhe */
  border: 1px solid rgba(255,255,255,.38);

  /* flutuação + suavidade */
  transform: translateZ(0);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
  overflow: hidden;
}

/* brilho “mágico” a passar na placa */
.btn::before{
  content:"";
  position:absolute;
  inset:-40% -80%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), transparent 45%);
  transform: translateX(-40%) rotate(10deg);
  opacity: .0;
  transition: opacity 220ms ease, transform 420ms ease;
  pointer-events:none;
}

/* partículas/estrelinhas discretas */
.btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(2px 2px at 18% 35%, rgba(255,255,255,.70), transparent 60%),
    radial-gradient(2px 2px at 78% 30%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 60% 70%, rgba(110,190,255,.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 35% 78%, rgba(255,220,140,.55), transparent 60%);
  opacity: .55;
  pointer-events:none;
}

/* Ícone/flags (SVG) */
.emoji{
  width: 3.2rem;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 6px;
}

.flag, .icon{
  width: 20px;
  height: 20px;
  display:block;
}

.flag-group .sep{
  font-size: .8rem;
  opacity: .7;
}

/* Texto */
.text{
  flex:1;
  font-weight: 900;
  font-size: .88rem;
  line-height: 1.1;
  text-align:left;
  letter-spacing: .2px;
}

/* Seta vira um “runic glyph” minimal */
.chev{
  font-size: 1.05rem;
  opacity:.78;
  transform: translateX(0);
  transition: transform 220ms ease, opacity 220ms ease;
}

/* Hover: levita + glow */
.btn:hover{
  transform: translateY(-3px);
  box-shadow:
    0 16px 28px rgba(0,0,0,.30),
    0 0 0 1px rgba(255,220,140,.30),
    0 0 22px rgba(110,190,255,.22),
    inset 0 1px 0 rgba(255,255,255,.80);
  filter: saturate(1.06);
}

.btn:hover::before{
  opacity: .85;
  transform: translateX(10%) rotate(10deg);
}

.btn:hover .chev{
  transform: translateX(4px);
  opacity: 1;
}

/* Active: “toque” suave */
.btn:active{
  transform: translateY(-1px) scale(.995);
  box-shadow:
    0 12px 20px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.70);
}

/* Focus acessível */
.btn:focus{ outline:none; }
.btn:focus-visible{
  box-shadow:
    0 16px 28px rgba(0,0,0,.30),
    0 0 0 3px rgba(255,210,120,.55),
    0 0 22px rgba(110,190,255,.22);
}

/* Mantém apenas o essencial: bandeira + rótulo curto */
.text{
  font-weight: 800;
  font-size: .78rem;
  line-height: 1;
  white-space: nowrap;
}

/* Oculta a seta para ficar limpo */
.chev{ display:none; }

/* Animação leve */
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 9px 16px rgba(0,0,0,.26);
  filter: saturate(1.05);
}

.btn:active{
  transform: translateY(0px) scale(.99);
}

.btn:focus{ outline:none; }
.btn:focus-visible{
  box-shadow: var(--shadow), var(--focus);
}

/* Ajustes para ecrãs muito pequenos */
@media (max-width: 360px){
  .text{ font-size: .72rem; }
  .btn{ padding: 7px 7px; }
  .flag, .icon{ width: 18px; height: 18px; }
}

/* Desktop: continua minimal, mas com um pouco mais de conforto */
@media (min-width: 768px){
  .page{ padding-top: 14px; }
  .card{
    width: min(560px, 92%);
    padding: 10px 12px;
    background: rgba(0,0,0,.32);
  }
  .header h1{ font-size: 1.02rem; }
  .text{ font-size: .82rem; }
}

/* ========================= */
/* RECOMENDAÇÃO AUTOMÁTICA   */
/* ========================= */
.recommend{
  display:none;
  margin: 0 0 14px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 0.85rem;
  line-height: 1.25rem;
  color: var(--text);
}

.recommend strong{
  font-weight:700;
}

.mini{
  opacity:0.85;
  font-size:0.75rem;
}

.btn.recommended{
  outline: 2px solid rgba(255,255,255,0.28);
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.06),
    0 12px 22px rgba(0,0,0,.28);
  position: relative;
}

.badge{
  position:absolute;
  right:12px;
  top:8px;
  padding:5px 10px;
  border-radius:999px;
  font-size:0.68rem;
  display:flex;
  align-items:center;
  gap:6px;
  background: rgba(0,0,0,.40);
  border:1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(4px);
  color:#fff;
}

.badge .dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#7CFFB2;
}

/* ========================= */
/* ANIMAÇÃO SUAVE (FLIP)     */
/* ========================= */
.links li{
  will-change: transform;
}

.links li.flip-move{
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}