/* GENERADO por scripts/build-botc-app-theme.mjs — no editar a mano.
   Assets y estilos de botc.app: solo uso personal, no redistribuir. */

@font-face{font-family:"LHF Unlovable";src:url("fonts/LHFUnlovable1.woff2") format("woff2"),url("fonts/LHFUnlovable1.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Dumbledor";src:url("fonts/dumbledor.woff2") format("woff2"),url("fonts/dumbledor.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Sorts Mill Goudy";src:url("fonts/GoudyStM.woff2") format("woff2"),url("fonts/GoudyStM.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Trade Gothic LT Std";src:url("fonts/TradeGothicLTStd.woff2") format("woff2"),url("fonts/TradeGothicLTStd.woff") format("woff");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Trade Gothic LT Std";src:url("fonts/TradeGothicLTStd-Bd2.woff2") format("woff2"),url("fonts/TradeGothicLTStd-Bd2.woff") format("woff");font-weight:700;font-style:normal;font-display:swap}

/* fichas por edición / equipo */
#app .token{background-image:url("images/token-2.webp")}
#app .token span.leaf-left{background-image:url("images/inline/739ffde9c5.webp")}
#app .token span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token span.leaf-right{background-image:url("images/inline/968aa2185e.webp")}
#app .token span.leaf-top1{background-image:url("images/inline/6c6cf525c1.webp")}
#app .token span.leaf-top2{background-image:url("images/inline/8a1881bd8b.webp")}
#app .token span.leaf-top3{background-image:url("images/leaf-top3.webp")}
#app .token span.leaf-top4{background-image:url("images/leaf-top4-2.webp")}
#app .token span.leaf-top5{background-image:url("images/leaf-top5-2.webp")}
#app .token span.leaf-top6{background-image:url("images/leaf-top6.webp")}
#app .token.edition-homebrew{background-image:url("images/token-3.webp")}
#app .token.edition-homebrew span.leaf-left{background-image:url("images/inline/739ffde9c5.webp")}
#app .token.edition-homebrew span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token.edition-homebrew span.leaf-right{background-image:url("images/inline/968aa2185e.webp")}
#app .token.edition-homebrew span.leaf-top1{background-image:url("images/inline/6c6cf525c1.webp")}
#app .token.edition-homebrew span.leaf-top2{background-image:url("images/inline/8a1881bd8b.webp")}
#app .token.edition-homebrew span.leaf-top3{background-image:url("images/leaf-top3.webp")}
#app .token.edition-homebrew span.leaf-top4{background-image:url("images/leaf-top4-2.webp")}
#app .token.edition-homebrew span.leaf-top5{background-image:url("images/leaf-top5-2.webp")}
#app .token.edition-homebrew span.leaf-top6{background-image:url("images/leaf-top6.webp")}
#app .token.edition-tb{background-image:url("images/token-6.webp")}
#app .token.edition-tb span.leaf-left{background-image:url("images/inline/cc85cb9e72.webp")}
#app .token.edition-tb span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token.edition-tb span.leaf-right{background-image:url("images/inline/84796953fe.webp")}
#app .token.edition-tb span.leaf-top1{background-image:url("images/inline/8a3c27c1c5.webp")}
#app .token.edition-tb span.leaf-top2{background-image:url("images/leaf-top2-3.webp")}
#app .token.edition-tb span.leaf-top3{background-image:url("images/leaf-top3-4.webp")}
#app .token.edition-tb span.leaf-top4{background-image:url("images/leaf-top4-5.webp")}
#app .token.edition-tb span.leaf-top5{background-image:url("images/leaf-top5-4.webp")}
#app .token.edition-bmr{background-image:url("images/token.webp")}
#app .token.edition-bmr span.leaf-left{background-image:url("images/inline/b84d2d3cff.webp")}
#app .token.edition-bmr span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token.edition-bmr span.leaf-right{background-image:url("images/inline/fab1a30fee.webp")}
#app .token.edition-bmr span.leaf-top1{background-image:url("images/inline/d35726b15b.webp")}
#app .token.edition-bmr span.leaf-top2{background-image:url("images/inline/2323bab68f.webp")}
#app .token.edition-bmr span.leaf-top3{background-image:url("images/inline/fd80cec932.webp")}
#app .token.edition-bmr span.leaf-top4{background-image:url("images/leaf-top4.webp")}
#app .token.edition-bmr span.leaf-top5{background-image:url("images/leaf-top5.webp")}
#app .token.edition-snv{background-image:url("images/token-4.webp")}
#app .token.edition-snv span.leaf-left{background-image:url("images/inline/6528562365.webp")}
#app .token.edition-snv span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token.edition-snv span.leaf-right{background-image:url("images/inline/10ec64f063.webp")}
#app .token.edition-snv span.leaf-top1{background-image:url("images/inline/f54650ce14.webp")}
#app .token.edition-snv span.leaf-top2{background-image:url("images/leaf-top2.webp")}
#app .token.edition-snv span.leaf-top3{background-image:url("images/leaf-top3-2.webp")}
#app .token.edition-snv span.leaf-top4{background-image:url("images/leaf-top4-3.webp")}
#app .token.edition-snv span.leaf-top5{background-image:url("images/leaf-top5-3.webp")}
#app .token.edition-snv span.leaf-top6{background-image:url("images/leaf-top6-2.webp")}
#app .token.edition-snv span.leaf-top7{background-image:url("images/leaf-top7.webp")}
#app .token.team-fabled,#app .token.team-traveller{background-image:url("images/token-5.webp")}
#app .token.team-fabled span.leaf-left,#app .token.team-traveller span.leaf-left{background-image:url("images/inline/fd78ebcf43.webp")}
#app .token.team-fabled span.leaf-orange,#app .token.team-traveller span.leaf-orange{background-image:url("images/leaf-orange.webp")}
#app .token.team-fabled span.leaf-right,#app .token.team-traveller span.leaf-right{background-image:url("images/inline/0dc482d7b4.webp")}
#app .token.team-fabled span.leaf-top1,#app .token.team-traveller span.leaf-top1{background-image:url("images/inline/b4db88d95d.webp")}
#app .token.team-fabled span.leaf-top2,#app .token.team-traveller span.leaf-top2{background-image:url("images/leaf-top2-2.webp")}
#app .token.team-fabled span.leaf-top3,#app .token.team-traveller span.leaf-top3{background-image:url("images/leaf-top3-3.webp")}
#app .token.team-fabled span.leaf-top4,#app .token.team-traveller span.leaf-top4{background-image:url("images/leaf-top4-4.webp")}

#app .circle .reminder{background-image:url("images/inline/e841b6982f.webp");background-size:110%}

/* ----------------------------------------------------------------------------
   Estética de botc.app adaptada a los componentes de townsquare (código propio).
   build-botc-app-theme.mjs la añade al final de public/botc-app/theme.css.
   Las rutas son relativas a public/botc-app/. Se prefija con #app para ganar
   en especificidad a los estilos "scoped" de los componentes.
   ------------------------------------------------------------------------- */

/* Tipografías: Sorts Mill Goudy (texto), Dumbledor (títulos y nombres de
   ficha), Trade Gothic (UI y recordatorios) */
#app {
  font-family: "Sorts Mill Goudy", serif;
}
#app h1,
#app h2,
#app h3,
#app h4,
#app h5,
#app .menu .headline,
#app ul.editions .edition,
#app .town-info .meta {
  font-family: Dumbledor, serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0;
}
a,
#app a {
  color: #fff;
}
a:hover,
#app a:hover {
  color: #ffad00;
}

/* Botones: neutro, dorado (primary) y morado (secondary) */
#app .button {
  font-family: "Sorts Mill Goudy", serif;
  border: 0.125em solid transparent;
  background: radial-gradient(at 0 -15%, #ffffff12 70%, #fff0 71%) 0 0/80% 90%
      no-repeat content-box,
    linear-gradient(#4e4e4e, #040404) content-box,
    linear-gradient(#292929, #010101) border-box;
  box-shadow: inset 0 1px 1px #9c9c9c, 0 0 10px #000;
}
#app .button:not(.disabled):hover {
  color: #ffad00;
}
#app .button.townsfolk:not(.disabled) {
  background: radial-gradient(at 0 -15%, #ffffff12 70%, #fff0 71%) 0 0/80% 90%
      no-repeat content-box,
    linear-gradient(#ffc240, #05000038) content-box,
    linear-gradient(#292929, #805700) border-box;
  box-shadow: inset 0 1px 1px #cc8a00, 0 0 10px #000;
}
#app .button.demon:not(.disabled) {
  background: radial-gradient(at 0 -15%, #ffffff12 70%, #fff0 71%) 0 0/80% 90%
      no-repeat content-box,
    linear-gradient(#9a61da, #05000038) content-box,
    linear-gradient(#292929, #3d1866) border-box;
  box-shadow: inset 0 1px 1px #6126a2, 0 0 10px #000;
}
#app .button.demon:not(.disabled):hover {
  color: #bc95e7;
}

/* Menús y modales */
#app .modal {
  background: #000c;
  border: 3px solid #000;
}
#app .modal > .top-right-buttons > .top-right-button:hover,
#app .menu li:hover,
#app .player > .menu li:hover {
  color: #ffad00;
}
#app .menu .tabs .active,
#app .menu .tabs span:hover {
  background: linear-gradient(#792fcb 0%, #0000 100%);
}

/* Fichas de personaje */
#app .token {
  background-size: 113%;
  background-position: 50%;
}
#app .token > span {
  background-size: 103%;
  background-position: 50%;
  border-radius: 50%;
}
#app .token > span.leaf-orange {
  background-size: 113%;
}
#app .token .icon {
  background-size: 100%;
  background-position: 50%;
  margin-top: -10%;
}
#app .token .name {
  font-size: 20px;
  text-transform: uppercase;
}
#app .token .name .label {
  font-family: Dumbledor, serif;
  font-weight: 400;
  letter-spacing: 0;
  fill: #000;
  stroke: #ffffff80;
  text-shadow: none;
}
#app .token:hover .name .label {
  stroke: #00000080;
  fill: #fff;
  font-weight: 700;
}
/* tarjeta de habilidad sobre papel */
#app .token .ability {
  color: #000;
  text-shadow: none;
  background: url("images/sheet.webp") 50%;
  border: 1px solid #000;
  padding: 8px;
  width: min(50vw, 400px);
  font-family: "Trade Gothic LT Std", sans-serif;
}
#app .token .ability:before {
  border-right-color: #000;
}

/* Fichas de recordatorio */
#app .circle .reminder .text {
  color: #fff;
  font-family: "Trade Gothic LT Std", sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 1px 1px #000, 0 -1px 1px #000, 1px 0 1px #000,
    -1px 0 1px #000;
}

/* Orden nocturno: dorado primera noche, morado resto */
#app .night-order em {
  font-family: "Trade Gothic LT Std", sans-serif;
}
#app .night-order span {
  font-family: "Trade Gothic LT Std", sans-serif;
}
#app .night-order.first span {
  background: linear-gradient(90deg, #ffad00 0%, #00000080 20%);
}
#app .night-order.first span:after {
  border-left-color: #ffad00;
}
#app .night-order.other span {
  background: linear-gradient(90deg, #792fcb 0%, #00000080 20%);
}
#app .night-order.other span:after {
  border-right-color: #792fcb;
}
#app .night-order.first em {
  background: linear-gradient(#ffc240, #805700);
}
#app .night-order.other em {
  background: linear-gradient(#9a61da, #3d1866);
}

/* Reloj de votación */
@keyframes botc-rotate-cw {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes botc-rotate-ccw {
  from { transform: rotate(360deg); }
  to { transform: rotate(0); }
}
#app #vote {
  background: none;
}
#app #vote:before {
  content: " ";
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  pointer-events: none;
  background: url("images/clock_back.webp") 50% / 100% no-repeat;
  animation: botc-rotate-ccw 120s linear infinite;
}
#app #vote .arrows {
  filter: drop-shadow(3px 5px 1px #000);
}
#app #vote .arrows .nominator:before {
  background-image: url("images/clock-second.webp");
}
#app #vote .arrows .nominee:before {
  background-image: url("images/clock-minute.webp");
}
#app #vote .overlay {
  font-family: "Trade Gothic LT Std", sans-serif;
}
#app #vote em {
  color: #ffad00;
}
#app #vote em.blue {
  color: #bc95e7;
}

/* Referencia de personajes y orden nocturno sobre papel */
#app .characters .modal,
#app .night-reference .modal {
  background: url("images/sheet.webp") 50% / cover, #000c;
  color: #000;
  text-shadow: none;
}
#app .characters .modal h3,
#app .night-reference .modal h3 {
  color: #000;
}
#app .characters .modal .ability,
#app .night-reference .modal .reminder {
  font-family: "Trade Gothic LT Std", sans-serif;
}

/* Hoja de personajes: colores de equipo de la app oficial sobre papel */
#app .characters .modal .townsfolk .name,
#app .characters .modal .outsider .name {
  color: #006f9b;
}
#app .characters .modal .minion .name,
#app .characters .modal .demon .name {
  color: #85171a;
}
#app .characters .modal .traveler .name {
  color: #9600c2;
}
#app .characters .modal .fabled .name {
  color: #8a7500;
}
#app .characters .modal .ability,
#app .characters .modal .name {
  text-shadow: none;
}

/* Resumen de la plaza (tecla T) sobre papel */
#app #town-summary {
  background: url("images/sheet.webp") 50% / cover, #e8dcc0;
}

/* Menú: pestaña activa en morado y hover dorado, como la app oficial */
#app #controls .menu .tabs svg:hover {
  color: #ffad00;
}
#app #controls .menu li.tabs [class*="fa-"][class] {
  background: none;
}
#app #controls .menu li.tabs.grimoire .fa-book-open,
#app #controls .menu li.tabs.players .fa-users,
#app #controls .menu li.tabs.characters .fa-theater-masks,
#app #controls .menu li.tabs.session .fa-broadcast-tower,
#app #controls .menu li.tabs.help .fa-question,
#app #controls .menu li.tabs.keyboard .fa-keyboard {
  background: linear-gradient(#792fcb 0%, rgba(0, 0, 0, 0.5) 100%);
}
#app #controls .menu li:not(.headline):not(.tabs):not(.shortcut):hover {
  color: #ffad00;
}
#app #controls .menu .headline {
  background: linear-gradient(90deg, #ffad00, #805700 40%, rgba(0, 0, 0, 0.5));
}

/* Reloj de votación: esfera y engranajes girando, como la app oficial */
#app #vote .clock-background {
  position: absolute;
  width: 140%;
  aspect-ratio: 1;
  pointer-events: none;
  filter: drop-shadow(1px 3px 1px #000);
}
#app #vote .clock-background:before,
#app #vote .clock-background .ring {
  content: " ";
  position: absolute;
  inset: 0;
}
#app #vote .clock-background:before {
  background: url("images/clock_circle.webp") 50% / 78% no-repeat;
  animation: 1s ease-out botc-arrow-in, 60s linear infinite botc-rotate-cw;
}
#app #vote .clock-background .ring:before,
#app #vote .clock-background .ring:after {
  content: " ";
  position: absolute;
  aspect-ratio: 1;
}
#app #vote .clock-background .ring:before {
  width: 20%;
  left: 40%;
  top: 23%;
  background: url("images/clock_cog1.webp") 50% / 100% no-repeat;
  animation: 10s linear infinite botc-rotate-cw;
}
#app #vote .clock-background .ring:after {
  width: 10%;
  left: 50%;
  top: 42%;
  background: url("images/clock_cog2.webp") 50% / 100% no-repeat;
  animation: 5s linear infinite botc-rotate-ccw;
}
@keyframes botc-arrow-in {
  0% {
    opacity: 0;
    transform: rotate(-180deg);
  }
  100% {
    opacity: 1;
    transform: rotate(0);
  }
}
#app #vote:before {
  width: 140%;
  animation: 1s ease-out botc-fade-in, 120s linear infinite botc-rotate-ccw;
}
@keyframes botc-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


