/* The village menu, Hoth's shop, training and the league table. */

.v-text { margin: 0; display: flex; align-items: center; font-size: calc(12 * var(--u)); line-height: 1.2; color: #fff; text-shadow: 0 calc(1 * var(--u)) 0 rgba(0, 0, 0, 0.6); }
.v-text.right { justify-content: flex-end; }
.panel.v-text { padding: 0 calc(10 * var(--u)); font-size: calc(11 * var(--u)); text-shadow: none; }
.v-bold { font-weight: bold; color: var(--gold); }
.v-small { margin: 0 0 calc(2 * var(--u)); font-size: calc(10 * var(--u)); line-height: 1.2; text-shadow: 0 calc(1 * var(--u)) 0 rgba(0, 0, 0, 0.6); }
.v-light { color: #fff; }

/* Pictures from the original, put together into a village. Without the artwork they are not shown. */
.v-pic { background: transparent 0 0 / 100% 100% no-repeat; }
html:not(.art) .v-pic { display: none; }
html.art .v-noart { display: none; }
.v-tent { background-image: url('/assets/gfx/level/tent.png'); }
.v-dummy { background-image: url('/assets/gfx/menu/dummyarmour.png'); }
.v-dummy::after { content: ''; position: absolute; left: 0; top: calc(44 * var(--u)); width: calc(64 * var(--u)); height: calc(64 * var(--u)); background: url('/assets/gfx/menu/dummyshield.png') 0 0 / 100% 100%; }
.v-banner { background-image: url('/assets/gfx/menu/tournament.png'); }
.v-crest { filter: drop-shadow(0 calc(2 * var(--u)) calc(1 * var(--u)) rgba(0, 0, 0, 0.45)); }
.v-crest.c1 { background-image: url('/assets/gfx/crests/crest1.png'); }
.v-crest.c2 { background-image: url('/assets/gfx/crests/crest2.png'); }
.v-crest.c3 { background-image: url('/assets/gfx/crests/crest3.png'); }
.v-crest.c4 { background-image: url('/assets/gfx/crests/crest4.png'); }
.v-crest.c5 { background-image: url('/assets/gfx/crests/crest5.png'); }
.v-spot .v-pic { cursor: pointer; transition: filter 0.15s; }
.v-spot:hover .v-pic, .v-spot:focus-within .v-pic { filter: brightness(1.12) drop-shadow(0 0 calc(4 * var(--u)) #ffe27a); }
.v-spot .panel.v-text { justify-content: center; text-align: center; }
.v-shop-tent { flex: 1 1 0; min-height: calc(40 * var(--u)); margin-top: calc(4 * var(--u)); background-size: contain; background-position: center bottom; }

/* The shop */
.v-list .v-row {
  display: grid;
  grid-template-columns: calc(24 * var(--u)) 1fr repeat(3, calc(24 * var(--u))) calc(38 * var(--u)) calc(36 * var(--u));
  gap: calc(4 * var(--u));
  align-items: center;
  padding: calc(2 * var(--u)) calc(12 * var(--u)) calc(2 * var(--u)) calc(8 * var(--u));
}
.v-list .v-head { position: sticky; top: 0; z-index: 1; background: linear-gradient(#4f7fd0, #2a56a8); color: #fff; border-bottom: calc(1 * var(--u)) solid var(--amber); font-size: calc(10 * var(--u)); font-weight: bold; padding-top: calc(1 * var(--u)); padding-bottom: calc(1 * var(--u)); }
.v-head span:nth-child(n + 3) { text-align: right; }
.v-name { overflow-wrap: anywhere; line-height: 1.15; }
.v-num { text-align: right; }
.v-mark { font-size: calc(10 * var(--u)); font-weight: bold; text-align: right; color: #1d2194; }
.v-ic { display: block; width: calc(24 * var(--u)); height: calc(24 * var(--u)); }
.v-ic canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.v-ic.big { width: calc(30 * var(--u)); height: calc(30 * var(--u)); flex: none; }

.v-detail {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: calc(4 * var(--u)) calc(6 * var(--u));
}
.v-body { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.v-body:has(.v-shop-tent) { display: flex; flex-direction: column; overflow: hidden; }
.v-item { display: flex; align-items: center; gap: calc(6 * var(--u)); margin: 0 0 calc(2 * var(--u)); font: bold calc(12 * var(--u)) var(--serif); color: var(--gold); overflow-wrap: anywhere; }
.v-item .v-name { flex: 1; min-width: 0; }
.v-price { font: bold calc(11 * var(--u)) Verdana, sans-serif; white-space: nowrap; color: #fff; }
.v-compare { width: 100%; border-collapse: collapse; margin-bottom: calc(1 * var(--u)); font-size: calc(10 * var(--u)); }
.v-compare th, .v-compare td { padding: calc(0.5 * var(--u)) calc(3 * var(--u)); border-bottom: calc(1 * var(--u)) solid rgba(255, 255, 255, 0.3); text-align: right; font-weight: normal; }
.v-compare thead th, .v-compare tbody th { font-weight: bold; }
.v-compare tbody th { text-align: left; }
.v-hint { margin: calc(2 * var(--u)) 0 0; font-size: calc(10 * var(--u)); line-height: 1.2; color: #d6dcff; }
.v-why { color: #ffc2b8; font-weight: bold; margin-bottom: 0; }
.v-ask { margin: calc(3 * var(--u)) 0 0; font-weight: bold; overflow-wrap: anywhere; }
.v-buttons { display: flex; gap: calc(6 * var(--u)); margin-top: auto; padding-top: calc(3 * var(--u)); }
.v-buttons button { flex: 1; height: calc(31 * var(--u)); }

/* The league table */
.v-scroll { height: 100%; overflow-y: auto; background: #fff; color: #111; border: calc(1 * var(--u)) solid #7a7a7a; scrollbar-width: thin; scrollbar-color: #2a56a8 #e7ecfa; }
.v-league { width: 100%; border-collapse: collapse; table-layout: fixed; }
.v-league th, .v-league td { padding: calc(3 * var(--u)) calc(6 * var(--u)); text-align: right; border-bottom: calc(1 * var(--u)) solid #d5dbef; font-weight: normal; }
.v-league th:first-child { text-align: left; overflow-wrap: anywhere; }
.v-league th:not(:first-child), .v-league td { width: calc(50 * var(--u)); }
.v-league thead th { position: sticky; top: 0; background: linear-gradient(#4f7fd0, #2a56a8); color: #fff; font-weight: bold; border-bottom: calc(1 * var(--u)) solid var(--amber); }
.v-me th, .v-me td { background: var(--gold); font-weight: bold; }

/* How many training points are waiting, on the village's Training button. */
.v-badge {
  position: absolute; right: calc(-3 * var(--u)); top: calc(-8 * var(--u));
  min-width: calc(16 * var(--u)); height: calc(16 * var(--u)); padding: 0 calc(3 * var(--u)); box-sizing: border-box;
  display: flex; align-items: center; justify-content: center;
  border-radius: calc(8 * var(--u)); border: calc(1 * var(--u)) solid #7a4a00;
  background: radial-gradient(circle at 35% 30%, #fff3a0, #f2b600 60%, #c98a00);
  font: bold calc(10 * var(--u)) Verdana, sans-serif; color: #3a2000 !important; text-shadow: none;
}
