/* piraterivals.com: the game's night blue and gold, and its own fonts (served from here, no third party) */
@font-face { font-family: 'Pirata One'; src: url('/assets/fonts/PirataOne-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/Cinzel-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/assets/fonts/Cinzel-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/Lora-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/assets/fonts/Lora-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --noche: #060d1a;
  --panel: rgba(10, 20, 38, 0.92);
  --oro: #e3bf66;
  --oro-medio: #c68f2f;
  --texto: #efe6d2;
  --suave: #b8ad97;
  --borde: rgba(227, 191, 102, 0.28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--texto);
  font: 17px/1.7 'Lora', Georgia, serif;
}
a { color: var(--oro); }
img { max-width: 100%; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  position: relative;
  z-index: 2;
}
.brand img { height: 46px; display: block; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6)); }
/* On the home page the big logo is the hero: the small one would repeat it */
.home-top .brand { visibility: hidden; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.site-header nav a {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--texto);
}
.site-header nav a:hover, .site-header nav a[aria-current='page'] { color: var(--oro); }
.site-header nav .lang {
  border: 1px solid var(--borde);
  border-radius: 999px;
  padding: 3px 11px;
  color: var(--oro);
}
/* The languages the page is in: its own in the pill, the others in a list under it (no script: a <details>) */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  font: 700 13px 'Cinzel', serif;
  letter-spacing: 0.1em;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ''; display: inline-block; margin-left: 7px; vertical-align: 2px; border: 4px solid transparent; border-top: 5px solid var(--oro); border-bottom: 0; }
.lang-menu[open] summary::after { transform: rotate(180deg); }
.lang-menu .lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 5;
}
.site-header nav .lang-list a { padding: 8px 12px; border-radius: 8px; text-transform: none; letter-spacing: 0.04em; font-size: 14px; }
.site-header nav .lang-list a:hover { background: rgba(227, 191, 102, 0.12); }

/* Home */
.home-top { position: relative; background: url('/assets/img/hero.jpg') center / cover no-repeat; }
.home-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.7), rgba(6, 13, 26, 0.2) 35%, rgba(6, 13, 26, 0.35) 65%, var(--noche));
}
.hero {
  position: relative;
  z-index: 1;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 20px 90px;
}
.hero .logo { width: min(520px, 84vw); filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.7)); }
.tagline {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--oro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 6px 0 10px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  /* On two lines when a language's motto is long (German), halves rather than a word left alone */
  text-wrap: balance;
}
.hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
  text-wrap: balance;
}
.pill {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 28px;
  border-radius: 999px;
  background: linear-gradient(#f3d488, var(--oro-medio));
  color: #2a1804;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.features {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: -56px auto 0;
  padding: 0 20px 64px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.card img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  /* The golden glow the game puts behind its icons, so the dark ones stand off the panel */
  filter: drop-shadow(0 0 10px rgba(227, 191, 102, 0.45)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
}
.card h2 { font-family: 'Pirata One', serif; font-weight: 400; color: var(--oro); font-size: 30px; line-height: 1.1; margin: 10px 0 6px; }
.card p { margin: 0; color: var(--texto); text-wrap: balance; }

/* Text pages */
.page-top { background: linear-gradient(180deg, #0b1628, var(--noche) 320px); }
.page { max-width: 820px; margin: 0 auto; padding: 16px 20px 64px; }
.article {
  background: var(--panel);
  border: 1px solid var(--borde);
  border-radius: 16px;
  padding: clamp(22px, 5vw, 48px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.article h1 { font-family: 'Pirata One', serif; font-weight: 400; color: var(--oro); font-size: clamp(36px, 6vw, 50px); line-height: 1.1; margin: 0 0 6px; }
.article .updated { color: var(--suave); font-size: 15px; margin: 0 0 22px; }
.article h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--oro);
  font-size: 19px;
  letter-spacing: 0.04em;
  margin: 34px 0 8px;
}
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }
.article .soon { text-align: center; }
.article .soon img { width: 120px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--borde);
  color: var(--suave);
  font-size: 15px;
  text-align: center;
  padding: 26px 20px 40px;
}
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 10px; }
.site-footer a { color: var(--suave); }
.site-footer a:hover { color: var(--oro); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .home-top { background-image: url('/assets/img/hero-movil.jpg'); }
  .hero { min-height: 80vh; padding-bottom: 80px; }
  .brand img { height: 36px; }
  .site-header nav { gap: 12px; }
  .site-header nav a { font-size: 11px; letter-spacing: 0.06em; }
  .lang-menu summary { font-size: 11px; letter-spacing: 0.06em; }
  .pill { font-size: 12px; letter-spacing: 0.04em; padding: 11px 18px; }
}

/* Shop: the gold, the web's extra on it (what the page is about), and the buyer's own game */
.shop { max-width: 1000px; margin: 0 auto; padding: 8px 20px 64px; }
.shop-head { text-align: center; margin: 4px 0 18px; }
.shop-head h1 { font-family: 'Pirata One', serif; font-weight: 400; color: var(--oro); font-size: clamp(44px, 8vw, 64px); line-height: 1; margin: 0; }
.shop-head p { margin: 8px auto 0; max-width: 560px; text-wrap: balance; }
.bonus-banner {
  max-width: 720px; margin: 0 auto 24px; padding: 14px 20px; text-align: center; border-radius: 14px;
  background: linear-gradient(180deg, #f6dc94, #d9a443 55%, #b9822a); color: #2a1804;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 30px rgba(227, 191, 102, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bonus-banner .kicker { font: 700 12px 'Cinzel', serif; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.bonus-banner .big { font-family: 'Pirata One', serif; font-size: clamp(30px, 6vw, 42px); line-height: 1.05; margin: 2px 0; }
.bonus-banner .small { font-size: 15px; font-weight: 700; }
.panel { background: var(--panel); border: 1px solid var(--borde); border-radius: 16px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4); }
.notice { max-width: 640px; margin: 0 auto 22px; padding: 14px 18px; text-align: center; font-size: 15px; }
.notice.ok { border-color: rgba(108, 197, 138, 0.6); }
.notice.ok strong { color: #8fe0a8; }
.notice.error { border-color: rgba(224, 96, 79, 0.6); }
.signin { max-width: 520px; margin: 0 auto 26px; padding: 24px; text-align: center; }
.signin h2 { font-family: 'Cinzel', serif; font-weight: 700; color: var(--oro); font-size: 18px; letter-spacing: 0.04em; margin: 0 0 6px; }
.signin p { margin: 0 0 16px; color: var(--suave); font-size: 15px; }
.signin .gsi { display: flex; justify-content: center; min-height: 44px; }
/* Google draws its button in a frame of its own: told it's light, it keeps its corners clear on this dark page */
.signin .gsi { color-scheme: light; }
.signin .daily-teaser { margin: 14px 0 0; color: var(--oro); font-weight: 700; }
.daily { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: -12px auto 26px; max-width: 640px; }
.daily img { width: 40px; flex: none; filter: drop-shadow(0 0 8px rgba(227, 191, 102, 0.4)); }
.daily > div { flex: 1 1 0; min-width: 0; }
.daily-title { font-family: 'Cinzel', serif; font-weight: 700; color: var(--oro); font-size: 15px; line-height: 1.3; }
.daily-sub { font-size: 14px; color: var(--suave); }
.daily .daily-btn { width: auto; margin: 0 0 0 auto; padding: 9px 18px; font-size: 14px; white-space: nowrap; flex: none; }
.signin .guest { margin: 16px 0 0; font-size: 14px; }
.who { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0 auto 26px; max-width: 640px; }
.who .name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 17px; line-height: 1.2; }
.who .meta { font-size: 14px; color: var(--suave); }
.who .gold { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: 'Cinzel', serif; font-weight: 700; color: var(--oro); }
.who .gold img { width: 26px; }
.who .out { font-size: 13px; color: var(--suave); margin-left: 14px; background: none; border: 0; text-decoration: underline; cursor: pointer; font-family: inherit; }
.packs { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack { position: relative; padding: 18px 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pack.best { border-color: rgba(227, 191, 102, 0.75); box-shadow: 0 0 0 1px rgba(227, 191, 102, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45); }
.pack .ribbon {
  position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(#f6dc94, #c68f2f); color: #2a1804; font: 700 13px 'Cinzel', serif; letter-spacing: 0.03em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 0 14px rgba(227, 191, 102, 0.45);
}
.pack .art { height: 120px; display: grid; place-items: center; margin: 6px 0 6px; }
.pack .art img { max-height: 120px; max-width: 150px; filter: drop-shadow(0 0 14px rgba(227, 191, 102, 0.35)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6)); }
.pack .amount { font-family: 'Pirata One', serif; font-size: 42px; color: var(--oro); line-height: 1; }
.pack .amount small { font-family: 'Cinzel', serif; font-size: 13px; color: var(--texto); letter-spacing: 0.06em; margin-left: 4px; }
.pack .split { margin: 6px 0 12px; font-size: 14px; color: var(--suave); }
.pack .gift { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; font-weight: 700; color: #f6dc94;
  background: rgba(227, 191, 102, 0.16); border: 1px solid rgba(227, 191, 102, 0.55); }
.price { width: 100%; margin-top: auto; border: 0; border-radius: 999px; padding: 11px 10px; cursor: pointer; background: linear-gradient(#f3d488, var(--oro-medio)); color: #2a1804;
  font: 700 16px 'Cinzel', serif; letter-spacing: 0.04em; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.price:disabled { cursor: default; background: rgba(227, 191, 102, 0.14); color: var(--suave); box-shadow: none; }
.fine { text-align: center; color: var(--suave); font-size: 14px; margin-top: 22px; }
.fine a { color: var(--suave); }
@media (max-width: 760px) { .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 640px) {
  .pack { padding: 14px 10px 12px; }
  .pack .art { height: 90px; margin-top: 22px; } .pack .art img { max-height: 90px; max-width: 110px; }
  .pack .amount { font-size: 34px; }
  .pack .split { font-size: 13px; }
  .pack .ribbon { top: 7px; right: 7px; font-size: 11px; padding: 3px 7px; }
  .price { font-size: 15px; padding: 10px 6px; }
  .who { flex-wrap: wrap; } .who .out { margin-left: auto; }
  .daily { flex-wrap: wrap; } .daily .daily-btn { width: 100%; margin: 4px 0 0; }
}
